diff --git a/.azure-pipelines/code-gen.yml b/.azure-pipelines/code-gen.yml index 54c85f355cbc..b3ba7b9fa52a 100644 --- a/.azure-pipelines/code-gen.yml +++ b/.azure-pipelines/code-gen.yml @@ -96,6 +96,9 @@ jobs: $Title = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}" $HeadBranch = "codegen/${{ parameters.ServiceName }}" $BaseBranch = "${{ parameters.TargetBranch }}" - $Description = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}" + $Description = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }} + The last commit of src/${{ parameters.ServiceName }} in $SourceBranch is: + $(git log -1 origin/$SourceBranch -- ./src/${{ parameters.ServiceName }}) + " ./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(GithubToken) -Description $Description displayName: Create PR to main branch diff --git a/VersionInfo.json b/VersionInfo.json index f294ad4bf122..e69de29bb2d1 100644 Binary files a/VersionInfo.json and b/VersionInfo.json differ diff --git a/src/Aks/Aks.Autorest/docs/Az.Aks.md b/src/Aks/Aks.Autorest/help/Az.Aks.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Az.Aks.md rename to src/Aks/Aks.Autorest/help/Az.Aks.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md rename to src/Aks/Aks.Autorest/help/Get-AzAksMaintenanceConfiguration.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md rename to src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterCommandResult.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md rename to src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOSOption.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md b/src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md rename to src/Aks/Aks.Autorest/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md b/src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md rename to src/Aks/Aks.Autorest/help/Get-AzAksNodePoolUpgradeProfile.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md rename to src/Aks/Aks.Autorest/help/Get-AzAksSnapshot.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md b/src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md rename to src/Aks/Aks.Autorest/help/Get-AzAksUpgradeProfile.md diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md b/src/Aks/Aks.Autorest/help/Get-AzAksVersion.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md rename to src/Aks/Aks.Autorest/help/Get-AzAksVersion.md diff --git a/src/Aks/Aks.Autorest/docs/Install-AzAksCliTool.md b/src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Install-AzAksCliTool.md rename to src/Aks/Aks.Autorest/help/Install-AzAksCliTool.md diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md rename to src/Aks/Aks.Autorest/help/Invoke-AzAksAbortAgentPoolLatestOperation.md diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md rename to src/Aks/Aks.Autorest/help/Invoke-AzAksAbortManagedClusterLatestOperation.md diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md b/src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md rename to src/Aks/Aks.Autorest/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md rename to src/Aks/Aks.Autorest/help/New-AzAksMaintenanceConfiguration.md diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md rename to src/Aks/Aks.Autorest/help/New-AzAksSnapshot.md diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md b/src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md rename to src/Aks/Aks.Autorest/help/New-AzAksTimeInWeekObject.md diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md b/src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md rename to src/Aks/Aks.Autorest/help/New-AzAksTimeSpanObject.md diff --git a/src/Aks/Aks.Autorest/docs/README.md b/src/Aks/Aks.Autorest/help/README.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/README.md rename to src/Aks/Aks.Autorest/help/README.md diff --git a/src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md rename to src/Aks/Aks.Autorest/help/Remove-AzAksMaintenanceConfiguration.md diff --git a/src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md b/src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md rename to src/Aks/Aks.Autorest/help/Remove-AzAksSnapshot.md diff --git a/src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md b/src/Aks/Aks.Autorest/help/Start-AzAksCluster.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md rename to src/Aks/Aks.Autorest/help/Start-AzAksCluster.md diff --git a/src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md b/src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md rename to src/Aks/Aks.Autorest/help/Start-AzAksManagedClusterCommand.md diff --git a/src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md b/src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md similarity index 100% rename from src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md rename to src/Aks/Aks.Autorest/help/Stop-AzAksCluster.md diff --git a/src/Alb/Alb.Autorest/Az.Alb.format.ps1xml b/src/Alb/Alb.Autorest/Az.Alb.format.ps1xml index 9e04a5c356e0..9b57886aae6b 100644 --- a/src/Alb/Alb.Autorest/Az.Alb.format.ps1xml +++ b/src/Alb/Alb.Autorest/Az.Alb.format.ps1xml @@ -4,7 +4,7 @@ Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AlbIdentity - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AlbIdentity + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AlbIdentity#Multiple @@ -48,33 +48,51 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association#Multiple - + - + - + + + + + + + + + + - Code + Name - Message + ResourceGroupName - Target + Location + + + AssociationType + + + SubnetId + + + ProvisioningState @@ -82,39 +100,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Operation + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationListResult - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Operation + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationListResult#Multiple - - - - - - - - - - + - ActionType - - - IsDataAction - - - Name - - - Origin + NextLink @@ -122,39 +122,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationProperties - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationProperties#Multiple - - - - - - - + - + - Description - - - Operation - - - Provider + AssociationType - Resource + ProvisioningState @@ -162,21 +150,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateProperties#Multiple - + - NextLink + AssociationType @@ -184,21 +172,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Resource + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Resource + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTags#Multiple - + - Name + Item @@ -206,51 +194,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail#Multiple - - - - - - - - - - + - + - + - CreatedAt - - - CreatedBy - - - CreatedByType - - - LastModifiedAt + Code - LastModifiedBy + Message - LastModifiedByType + Target @@ -258,9 +228,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend#Multiple @@ -268,25 +238,16 @@ - - - - - - - - - - + - + - + - + @@ -296,25 +257,16 @@ Name - SystemDataCreatedAt - - - SystemDataCreatedBy - - - SystemDataCreatedByType - - - SystemDataLastModifiedAt + ResourceGroupName - SystemDataLastModifiedBy + Location - SystemDataLastModifiedByType + Fqdn - Location + ProvisioningState @@ -322,21 +274,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendListResult - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendListResult#Multiple - + - Item + NextLink @@ -344,26 +296,14 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendProperties - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendProperties#Multiple - - - - - - - - - - - - - + @@ -373,19 +313,7 @@ - Name - - - ResourceGroupName - - - Location - - - AssociationType - - - SubnetId + Fqdn ProvisioningState @@ -396,21 +324,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTags#Multiple - + - NextLink + Item @@ -418,27 +346,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Operation - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Operation#Multiple - + - + + + + + + + - AssociationType + ActionType - ProvisioningState + IsDataAction + + + Name + + + Origin @@ -446,21 +386,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplay#Multiple - + + + + + + + + + + - AssociationType + Description + + + Operation + + + Provider + + + Resource @@ -468,21 +426,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationListResult#Multiple - + - Item + NextLink @@ -490,27 +448,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Resource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Resource#Multiple - - - - - - - - - - - - @@ -518,39 +464,57 @@ Name - - ResourceGroupName - - - Location - - - Fqdn - - - ProvisioningState - - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemData#Multiple - + + + + + + + + + + + + + + + + - NextLink + CreatedAt + + + CreatedBy + + + CreatedByType + + + LastModifiedAt + + + LastModifiedBy + + + LastModifiedByType @@ -558,27 +522,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource#Multiple - + - + + + + + + + + + + + + + + + + + + + - Fqdn + Name - ProvisioningState + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location @@ -586,9 +586,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTags#Multiple @@ -608,9 +608,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController#Multiple @@ -648,9 +648,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerListResult + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult#Multiple @@ -670,15 +670,12 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerProperties - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerProperties + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerProperties#Multiple - - - @@ -686,9 +683,6 @@ - - ConfigurationEndpoint - ProvisioningState @@ -698,9 +692,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTags#Multiple diff --git a/src/Alb/Alb.Autorest/Az.Alb.psd1 b/src/Alb/Alb.Autorest/Az.Alb.psd1 index 1419690c53e9..72b3cbd598e7 100644 --- a/src/Alb/Alb.Autorest/Az.Alb.psd1 +++ b/src/Alb/Alb.Autorest/Az.Alb.psd1 @@ -1,135 +1,23 @@ -# -# Module manifest for module 'Az.Alb' -# -# Generated by: Microsoft Corporation -# -# Generated on: 7/24/2023 -# - @{ - -# Script module or binary module file associated with this manifest. -RootModule = './Az.Alb.psm1' - -# Version number of this module. -ModuleVersion = '0.1.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = '1ee185fc-e626-4b80-be4c-0e42e44db17c' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: Alb cmdlets' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = './bin/Az.Alb.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.Alb.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions 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 functions to export. -FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'New-AzAlb', - 'New-AzAlbAssociation', 'New-AzAlbFrontend', 'Remove-AzAlb', - 'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Update-AzAlb', - 'Update-AzAlbAssociation', 'Update-AzAlbFrontend' - -# 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 = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases 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 aliases to export. -AliasesToExport = '*' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - + GUID = '593f5094-e96e-4646-9c96-5342db09e51a' + RootModule = './Az.Alb.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: Alb cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.Alb.private.dll' + FormatsToProcess = './Az.Alb.format.ps1xml' + FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'New-AzAlb', 'New-AzAlbAssociation', 'New-AzAlbFrontend', 'Remove-AzAlb', 'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Update-AzAlb', 'Update-AzAlbAssociation', 'Update-AzAlbFrontend' + PrivateData = @{ PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Alb' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - # ReleaseNotes = '' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Alb' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } } - diff --git a/src/Alb/Alb.Autorest/README.md b/src/Alb/Alb.Autorest/README.md index 50e84419eaad..9f24e747900c 100644 --- a/src/Alb/Alb.Autorest/README.md +++ b/src/Alb/Alb.Autorest/README.md @@ -35,24 +35,18 @@ module-version: 0.1.0 title: Alb subject-prefix: $(service-name) inlining-threshold: 100 -resourcegroup-append: true -nested-object-to-string: true # pin the swagger version by using the commit id instead of branch name -commit: f7c77a57cf879e3938f5084c3d0cf0611b5834e7 +commit: 1b338481329645df2d9460738cbaab6109472488 require: # readme.azure.noprofile.md is the common configuration file - - $(this-folder)/../readme.azure.noprofile.md + - $(this-folder)/../../readme.azure.noprofile.md - $(repo)/specification/servicenetworking/resource-manager/readme.md try-require: - $(repo)/specification/servicenetworking/resource-manager/readme.powershell.md directive: - # Bug: https://github.com/Azure/autorest.powershell/issues/983 - - from: source-file-csharp - where: $ - transform: $ = $.replace('((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType = value;', '((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType = value ?? "";'); # Fix swagger issues - from: swagger-document where: $.definitions.TrafficControllerUpdateProperties @@ -69,7 +63,10 @@ directive: subject: $1 # Remove the unexpanded parameter set - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$ + variant: ^(Create|Update)(?!.*?Expanded|JsonFilePath|JsonString) + remove: true + - where: + variant: ^CreateViaIdentity.*$ remove: true # Param and table formatting - where: @@ -149,16 +146,20 @@ directive: - where: verb: New set: - preview-message: Application Gateway for Containers is currently in Preview. + preview-announcement: + preview-message: Application Gateway for Containers is currently in Preview. - where: verb: Get set: - preview-message: Application Gateway for Containers is currently in Preview. + preview-announcement: + preview-message: Application Gateway for Containers is currently in Preview. - where: verb: Update set: - preview-message: Application Gateway for Containers is currently in Preview. + preview-announcement: + preview-message: Application Gateway for Containers is currently in Preview. - where: verb: Remove set: - preview-message: Application Gateway for Containers is currently in Preview. + preview-announcement: + preview-message: Application Gateway for Containers is currently in Preview. diff --git a/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-associations.json b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-associations.json new file mode 100644 index 000000000000..22cd98f39792 --- /dev/null +++ b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-associations.json @@ -0,0 +1,95 @@ +{ + "resourceType": "trafficControllers/associations", + "apiVersion": "2023-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb" + }, + "commands": [ + { + "name": "Get-AzAlbAssociation", + "description": "Get a Association", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation" + }, + "parameterSets": [ + { + "parameters": [ + "-AlbName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a Association", + "parameters": [ + { + "name": "-AlbName", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-Name", + "value": "[Path.associationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzAlbAssociation", + "description": "Delete a Association", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation" + }, + "parameterSets": [ + { + "parameters": [ + "-AlbName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a Association", + "parameters": [ + { + "name": "-AlbName", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-Name", + "value": "[Path.associationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-frontends.json b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-frontends.json new file mode 100644 index 000000000000..04d283d7b98f --- /dev/null +++ b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers-frontends.json @@ -0,0 +1,95 @@ +{ + "resourceType": "trafficControllers/frontends", + "apiVersion": "2023-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb" + }, + "commands": [ + { + "name": "Get-AzAlbFrontend", + "description": "Get a Frontend", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/get-azalbfrontend" + }, + "parameterSets": [ + { + "parameters": [ + "-AlbName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a Frontend", + "parameters": [ + { + "name": "-AlbName", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-Name", + "value": "[Path.frontendName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzAlbFrontend", + "description": "Delete a Frontend", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/remove-azalbfrontend" + }, + "parameterSets": [ + { + "parameters": [ + "-AlbName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a Frontend", + "parameters": [ + { + "name": "-AlbName", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-Name", + "value": "[Path.frontendName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers.json b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers.json new file mode 100644 index 000000000000..a91fe1bd7617 --- /dev/null +++ b/src/Alb/Alb.Autorest/UX/Microsoft.ServiceNetworking/trafficControllers.json @@ -0,0 +1,85 @@ +{ + "resourceType": "trafficControllers", + "apiVersion": "2023-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb" + }, + "commands": [ + { + "name": "Get-AzAlb", + "description": "Get a TrafficController", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/get-azalb" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a TrafficController", + "parameters": [ + { + "name": "-Name", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzAlb", + "description": "Delete a TrafficController", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.alb/remove-azalb" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a TrafficController", + "parameters": [ + { + "name": "-Name", + "value": "[Path.trafficControllerName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Alb/Alb.Autorest/build-module.ps1 b/src/Alb/Alb.Autorest/build-module.ps1 index 7a6a4039d547..cb0ad0459cde 100644 --- a/src/Alb/Alb.Autorest/build-module.ps1 +++ b/src/Alb/Alb.Autorest/build-module.ps1 @@ -12,17 +12,17 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.' } -if(-not $Isolated -and -not $Debugger) { +if(-not $NotIsolated -and -not $Debugger) { Write-Host -ForegroundColor Green 'Creating isolated process...' $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated if($LastExitCode -ne 0) { # Build failed. Don't attempt to run the module. @@ -45,6 +45,14 @@ if(-not $Isolated -and -not $Debugger) { } } + if($UX) { + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') + if($LastExitCode -ne 0) { + # UX generation failed. Don't attempt to run the module. + return + } + } + if($Pack) { . (Join-Path $PSScriptRoot 'pack-module.ps1') if($LastExitCode -ne 0) { @@ -143,7 +151,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 +171,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/Alb/Alb.Autorest/check-dependencies.ps1 b/src/Alb/Alb.Autorest/check-dependencies.ps1 index c29591c7bfe1..90ca9867ae40 100644 --- a/src/Alb/Alb.Autorest/check-dependencies.ps1 +++ b/src/Alb/Alb.Autorest/check-dependencies.ps1 @@ -12,13 +12,13 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) +param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) $ErrorActionPreference = 'Stop' -if(-not $Isolated) { +if(-not $NotIsolated) { Write-Host -ForegroundColor Green 'Creating isolated process...' $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated return } diff --git a/src/Alb/Alb.Autorest/create-model-cmdlets.ps1 b/src/Alb/Alb.Autorest/create-model-cmdlets.ps1 index dd01ab685994..bd6dd7aa40ef 100644 --- a/src/Alb/Alb.Autorest/create-model-cmdlets.ps1 +++ b/src/Alb/Alb.Autorest/create-model-cmdlets.ps1 @@ -15,7 +15,7 @@ function CreateModelCmdlet { - param([string[]]$Models) + param([Hashtable[]]$Models) if ($Models.Count -eq 0) { @@ -30,7 +30,6 @@ function CreateModelCmdlet { } else { $ModuleName = 'Az.Alb' } - $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 ) @@ -39,15 +38,34 @@ function CreateModelCmdlet { $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content) $Nodes = $Tree.ChildNodes().ChildNodes() + $classConstantMember = @{} foreach ($Model in $Models) { - $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") } + $ModelName = $Model.modelName + $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$ModelName") } + $ClassNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'class') -and ($_.Identifier.value -eq "$ModelName") } + $classConstantMember = @() + foreach ($class in $ClassNode) { + foreach ($member in $class.Members) { + $isConstant = $false + foreach ($attr in $member.AttributeLists) { + $memberName = $attr.Attributes.Name.ToString() + if ($memberName.EndsWith('.Constant')) { + $isConstant = $true + break + } + } + if (($member.Modifiers.ToString() -eq 'public') -and $isConstant) { + $classConstantMember += $member.Identifier.Value + } + } + } if ($InterfaceNode.count -eq 0) { continue } # through a queue, we iterate all the parent models. $Queue = @($InterfaceNode) - $visited = @("I$Model") + $visited = @("I$ModelName") $AllInterfaceNodes = @() while ($Queue.count -ne 0) { @@ -65,7 +83,7 @@ function CreateModelCmdlet { } $Namespace = $InterfaceNode.Parent.Name - $ObjectType = $Model + $ObjectType = $ModelName $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name if ($ObjectType.StartsWith('Alb')) { @@ -81,10 +99,15 @@ function CreateModelCmdlet { { foreach ($Member in $Node.Members) { + if ($classConstantMember.Contains($Member.Identifier.Value)) { + # skip constant member + continue + } $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments $Required = $false $Description = "" $Readonly = $False + $mutability = @{Read = $true; Create = $true; Update = $true} foreach ($Argument in $Arguments) { if ($Argument.NameEquals.Name.Identifier.Value -eq "Required") @@ -99,6 +122,18 @@ function CreateModelCmdlet { { $Readonly = $Argument.Expression.Token.Value } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Read") + { + $mutability.Read = $Argument.Expression.Token.Value + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Create") + { + $mutability.Create = $Argument.Expression.Token.Value + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Update") + { + $mutability.Update = $Argument.Expression.Token.Value + } } if ($Readonly) { @@ -106,8 +141,18 @@ function CreateModelCmdlet { } $Identifier = $Member.Identifier.Value $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1] + $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1] + if ($Type.StartsWith("System.Collections.Generic.List")) + { + # if the type is a list, we need to convert it to array + $matched = $Type -match '\<(?.+)\>$' + if ($matched) + { + $Type = $matches.Name + '[]'; + } + } $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string] - if ($Required) + if ($Required -and $mutability.Create -and $mutability.Update) { $ParameterDefinePropertyList.Add("Mandatory") } @@ -117,11 +162,9 @@ function CreateModelCmdlet { } $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList) # check whether completer is needed - $completer = ''; - if($Type.Split('.').Split('.')[-2] -eq 'Support') { - # If Type is an array, need to strip [] - $strippedType = $Type.Replace('[]', '') - $completer += "`n [ArgumentCompleter([${strippedType}])]" + $completer = ''; + if(IsEnumType($Member)){ + $completer += GetCompleter($Member) } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} @@ -137,6 +180,12 @@ function CreateModelCmdlet { $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator "," $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator "" + $cmdletName = "New-Az${ModulePrefix}${ObjectType}Object" + if ('' -ne $Model.cmdletName) { + $cmdletName = $Model.cmdletName + } + $OutputPath = Join-Path -ChildPath "${cmdletName}.ps1" -Path $OutputDir + $cmdletNameInLowerCase = $cmdletName.ToLower() $Script = " # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -162,9 +211,9 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/${cmdletNameInLowerCase} #> -function New-Az${ModulePrefix}${ObjectType}Object { +function ${cmdletName} { [OutputType('${ObjectTypeWithNamespace}')] [CmdletBinding(PositionalBinding=`$false)] Param( @@ -181,3 +230,33 @@ ${ParameterAssignScript} Set-Content -Path $OutputPath -Value $Script } } + +function IsEnumType { + param ( + [Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property + ) + $isEnum = $false + foreach ($attr in $property.AttributeLists) { + $attributeName = $attr.Attributes.Name.ToString() + if ($attributeName.Contains('ArgumentCompleter')) { + $isEnum = $true + break + } + } + return $isEnum; +} + +function GetCompleter { + param ( + [Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property + ) + foreach ($attr in $property.AttributeLists) { + $attributeName = $attr.Attributes.Name.ToString() + if ($attributeName.Contains('ArgumentCompleter')) { + $attributeName = $attributeName.Split("::")[-1] + $possibleValues = [System.String]::Join(", ", $attr.Attributes.ArgumentList.Arguments) + $completer += "`n [${attributeName}(${possibleValues})]" + return $completer + } + } +} diff --git a/src/Alb/Alb.Autorest/export-surface.ps1 b/src/Alb/Alb.Autorest/export-surface.ps1 index 7186a9a28c5b..9a957fbe3f9a 100644 --- a/src/Alb/Alb.Autorest/export-surface.ps1 +++ b/src/Alb/Alb.Autorest/export-surface.ps1 @@ -12,13 +12,13 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) +param([switch]$NotIsolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) $ErrorActionPreference = 'Stop' $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path -if(-not $Isolated) { +if(-not $NotIsolated) { Write-Host -ForegroundColor Green 'Creating isolated process...' - & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated return } diff --git a/src/Alb/Alb.Autorest/exports/Get-AzAlb.ps1 b/src/Alb/Alb.Autorest/exports/Get-AzAlb.ps1 index 8a7a6d096f5f..03fab9e9d200 100644 --- a/src/Alb/Alb.Autorest/exports/Get-AzAlb.ps1 +++ b/src/Alb/Alb.Autorest/exports/Get-AzAlb.ps1 @@ -29,7 +29,7 @@ Get-AzAlb .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Notes COMPLEX PARAMETER PROPERTIES @@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.alb/get-azalb #> function Get-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -159,11 +159,15 @@ begin { List = 'Az.Alb.private\Get-AzAlb_List'; List1 = 'Az.Alb.private\Get-AzAlb_List1'; } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Get-AzAlbAssociation.ps1 b/src/Alb/Alb.Autorest/exports/Get-AzAlbAssociation.ps1 index bc58e161c79c..e5d43474f4cb 100644 --- a/src/Alb/Alb.Autorest/exports/Get-AzAlbAssociation.ps1 +++ b/src/Alb/Alb.Autorest/exports/Get-AzAlbAssociation.ps1 @@ -27,7 +27,7 @@ Get-AzAlbAssociation -AlbName test-alb -ResourceGroupName test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Notes COMPLEX PARAMETER PROPERTIES @@ -40,11 +40,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation #> function Get-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -55,6 +63,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -83,6 +92,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -160,13 +176,18 @@ begin { $mapping = @{ Get = 'Az.Alb.private\Get-AzAlbAssociation_Get'; GetViaIdentity = 'Az.Alb.private\Get-AzAlbAssociation_GetViaIdentity'; + GetViaIdentityTrafficController = 'Az.Alb.private\Get-AzAlbAssociation_GetViaIdentityTrafficController'; List = 'Az.Alb.private\Get-AzAlbAssociation_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Get-AzAlbFrontend.ps1 b/src/Alb/Alb.Autorest/exports/Get-AzAlbFrontend.ps1 index b207e98f5c17..a93c975210bb 100644 --- a/src/Alb/Alb.Autorest/exports/Get-AzAlbFrontend.ps1 +++ b/src/Alb/Alb.Autorest/exports/Get-AzAlbFrontend.ps1 @@ -27,7 +27,7 @@ Get-AzAlbFrontend -AlbName test-alb -ResourceGroupName test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Notes COMPLEX PARAMETER PROPERTIES @@ -40,11 +40,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalbfrontend #> function Get-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -55,6 +63,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -83,6 +92,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -160,13 +176,18 @@ begin { $mapping = @{ Get = 'Az.Alb.private\Get-AzAlbFrontend_Get'; GetViaIdentity = 'Az.Alb.private\Get-AzAlbFrontend_GetViaIdentity'; + GetViaIdentityTrafficController = 'Az.Alb.private\Get-AzAlbFrontend_GetViaIdentityTrafficController'; List = 'Az.Alb.private\Get-AzAlbFrontend_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/New-AzAlb.ps1 b/src/Alb/Alb.Autorest/exports/New-AzAlb.ps1 index 701d8931f4df..ed28d7cd719c 100644 --- a/src/Alb/Alb.Autorest/exports/New-AzAlb.ps1 +++ b/src/Alb/Alb.Autorest/exports/New-AzAlb.ps1 @@ -23,12 +23,12 @@ Create a TrafficController New-AzAlb -Name test-alb -ResourceGroupName test-rg -Location NorthCentralUS .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalb #> function New-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -59,7 +59,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -153,11 +153,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlb_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/New-AzAlbAssociation.ps1 b/src/Alb/Alb.Autorest/exports/New-AzAlbAssociation.ps1 index 923d3ff308dd..81003437dce8 100644 --- a/src/Alb/Alb.Autorest/exports/New-AzAlbAssociation.ps1 +++ b/src/Alb/Alb.Autorest/exports/New-AzAlbAssociation.ps1 @@ -23,12 +23,12 @@ Create a Association New-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/alb-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalbassociation #> function New-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -71,7 +71,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -165,11 +165,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlbAssociation_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/New-AzAlbFrontend.ps1 b/src/Alb/Alb.Autorest/exports/New-AzAlbFrontend.ps1 index c04031a3b68b..4152ca97452d 100644 --- a/src/Alb/Alb.Autorest/exports/New-AzAlbFrontend.ps1 +++ b/src/Alb/Alb.Autorest/exports/New-AzAlbFrontend.ps1 @@ -23,12 +23,12 @@ Create a Frontend New-AzAlbFrontend -Name alb-frontend -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalbfrontend #> function New-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -65,7 +65,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -159,11 +159,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlbFrontend_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Alb/Alb.Autorest/exports/ProxyCmdletDefinitions.ps1 index 3f56324f8dc0..29b662ff9b53 100644 --- a/src/Alb/Alb.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Alb/Alb.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -27,7 +27,7 @@ Get-AzAlbAssociation -AlbName test-alb -ResourceGroupName test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Notes COMPLEX PARAMETER PROPERTIES @@ -40,11 +40,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation #> function Get-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -55,6 +63,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -83,6 +92,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -160,13 +176,18 @@ begin { $mapping = @{ Get = 'Az.Alb.private\Get-AzAlbAssociation_Get'; GetViaIdentity = 'Az.Alb.private\Get-AzAlbAssociation_GetViaIdentity'; + GetViaIdentityTrafficController = 'Az.Alb.private\Get-AzAlbAssociation_GetViaIdentityTrafficController'; List = 'Az.Alb.private\Get-AzAlbAssociation_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -224,7 +245,7 @@ Get-AzAlbFrontend -AlbName test-alb -ResourceGroupName test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Notes COMPLEX PARAMETER PROPERTIES @@ -237,11 +258,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalbfrontend #> function Get-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -252,6 +281,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -280,6 +310,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='GetViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -357,13 +394,18 @@ begin { $mapping = @{ Get = 'Az.Alb.private\Get-AzAlbFrontend_Get'; GetViaIdentity = 'Az.Alb.private\Get-AzAlbFrontend_GetViaIdentity'; + GetViaIdentityTrafficController = 'Az.Alb.private\Get-AzAlbFrontend_GetViaIdentityTrafficController'; List = 'Az.Alb.private\Get-AzAlbFrontend_List'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -423,7 +465,7 @@ Get-AzAlb .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Notes COMPLEX PARAMETER PROPERTIES @@ -440,7 +482,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.alb/get-azalb #> function Get-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -553,11 +595,15 @@ begin { List = 'Az.Alb.private\Get-AzAlb_List'; List1 = 'Az.Alb.private\Get-AzAlb_List1'; } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -611,12 +657,12 @@ Create a Association New-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/alb-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalbassociation #> function New-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -659,7 +705,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -753,11 +799,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlbAssociation_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -811,12 +861,12 @@ Create a Frontend New-AzAlbFrontend -Name alb-frontend -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalbfrontend #> function New-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -853,7 +903,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -947,11 +997,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlbFrontend_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -1005,12 +1059,12 @@ Create a TrafficController New-AzAlb -Name test-alb -ResourceGroupName test-rg -Location NorthCentralUS .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Link https://learn.microsoft.com/powershell/module/az.alb/new-azalb #> function New-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1041,7 +1095,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -1135,11 +1189,15 @@ begin { $mapping = @{ CreateExpanded = 'Az.Alb.private\New-AzAlb_CreateExpanded'; } - if (('CreateExpanded') -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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -1208,6 +1266,14 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation #> @@ -1222,6 +1288,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -1248,6 +1315,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1343,12 +1417,17 @@ begin { $mapping = @{ Delete = 'Az.Alb.private\Remove-AzAlbAssociation_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlbAssociation_DeleteViaIdentity'; + DeleteViaIdentityTrafficController = 'Az.Alb.private\Remove-AzAlbAssociation_DeleteViaIdentityTrafficController'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -1417,6 +1496,14 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/remove-azalbfrontend #> @@ -1431,6 +1518,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -1457,6 +1545,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1552,12 +1647,17 @@ begin { $mapping = @{ Delete = 'Az.Alb.private\Remove-AzAlbFrontend_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlbFrontend_DeleteViaIdentity'; + DeleteViaIdentityTrafficController = 'Az.Alb.private\Remove-AzAlbFrontend_DeleteViaIdentityTrafficController'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -1756,11 +1856,15 @@ begin { Delete = 'Az.Alb.private\Remove-AzAlb_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlb_DeleteViaIdentity'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -1816,7 +1920,7 @@ Update-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Notes COMPLEX PARAMETER PROPERTIES @@ -1829,11 +1933,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/update-azalbassociation #> function Update-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -1843,6 +1955,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -1869,10 +1982,17 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType])] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType] + [System.String] # Association Type ${AssociationType}, @@ -1884,7 +2004,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -1966,12 +2086,17 @@ begin { $mapping = @{ UpdateExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateViaIdentityExpanded'; + UpdateViaIdentityTrafficControllerExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -2027,7 +2152,7 @@ Update-AzAlbFrontend -Name test-frontend -AlbName test-alb -ResourceGroupName te .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Notes COMPLEX PARAMETER PROPERTIES @@ -2040,11 +2165,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/update-azalbfrontend #> function Update-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -2054,6 +2187,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -2080,9 +2214,16 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -2164,12 +2305,17 @@ begin { $mapping = @{ UpdateExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateViaIdentityExpanded'; + UpdateViaIdentityTrafficControllerExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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) @@ -2225,7 +2371,7 @@ Update-AzAlb -Name test-alb -ResourceGroupName test-rg -Tag @{TestTag="Test tag .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Notes COMPLEX PARAMETER PROPERTIES @@ -2242,7 +2388,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.alb/update-azalb #> function Update-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -2274,7 +2420,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -2357,11 +2503,15 @@ begin { UpdateExpanded = 'Az.Alb.private\Update-AzAlb_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlb_UpdateViaIdentityExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Remove-AzAlb.ps1 b/src/Alb/Alb.Autorest/exports/Remove-AzAlb.ps1 index f8337d10745a..af07786fff9e 100644 --- a/src/Alb/Alb.Autorest/exports/Remove-AzAlb.ps1 +++ b/src/Alb/Alb.Autorest/exports/Remove-AzAlb.ps1 @@ -168,11 +168,15 @@ begin { Delete = 'Az.Alb.private\Remove-AzAlb_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlb_DeleteViaIdentity'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Remove-AzAlbAssociation.ps1 b/src/Alb/Alb.Autorest/exports/Remove-AzAlbAssociation.ps1 index 8751733b65b9..26aec7178087 100644 --- a/src/Alb/Alb.Autorest/exports/Remove-AzAlbAssociation.ps1 +++ b/src/Alb/Alb.Autorest/exports/Remove-AzAlbAssociation.ps1 @@ -38,6 +38,14 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation #> @@ -52,6 +60,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -78,6 +87,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -173,12 +189,17 @@ begin { $mapping = @{ Delete = 'Az.Alb.private\Remove-AzAlbAssociation_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlbAssociation_DeleteViaIdentity'; + DeleteViaIdentityTrafficController = 'Az.Alb.private\Remove-AzAlbAssociation_DeleteViaIdentityTrafficController'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Remove-AzAlbFrontend.ps1 b/src/Alb/Alb.Autorest/exports/Remove-AzAlbFrontend.ps1 index 7e6b24996d38..d2a96b67f409 100644 --- a/src/Alb/Alb.Autorest/exports/Remove-AzAlbFrontend.ps1 +++ b/src/Alb/Alb.Autorest/exports/Remove-AzAlbFrontend.ps1 @@ -38,6 +38,14 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/remove-azalbfrontend #> @@ -52,6 +60,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -78,6 +87,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='DeleteViaIdentityTrafficController', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -173,12 +189,17 @@ begin { $mapping = @{ Delete = 'Az.Alb.private\Remove-AzAlbFrontend_Delete'; DeleteViaIdentity = 'Az.Alb.private\Remove-AzAlbFrontend_DeleteViaIdentity'; + DeleteViaIdentityTrafficController = 'Az.Alb.private\Remove-AzAlbFrontend_DeleteViaIdentityTrafficController'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Update-AzAlb.ps1 b/src/Alb/Alb.Autorest/exports/Update-AzAlb.ps1 index a569c51b9dfe..e9457bce34e4 100644 --- a/src/Alb/Alb.Autorest/exports/Update-AzAlb.ps1 +++ b/src/Alb/Alb.Autorest/exports/Update-AzAlb.ps1 @@ -25,7 +25,7 @@ Update-AzAlb -Name test-alb -ResourceGroupName test-rg -Tag @{TestTag="Test tag .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController .Notes COMPLEX PARAMETER PROPERTIES @@ -42,7 +42,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.alb/update-azalb #> function Update-AzAlb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -74,7 +74,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -157,11 +157,15 @@ begin { UpdateExpanded = 'Az.Alb.private\Update-AzAlb_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlb_UpdateViaIdentityExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Update-AzAlbAssociation.ps1 b/src/Alb/Alb.Autorest/exports/Update-AzAlbAssociation.ps1 index f8c35cd0a0b6..1a9512784650 100644 --- a/src/Alb/Alb.Autorest/exports/Update-AzAlbAssociation.ps1 +++ b/src/Alb/Alb.Autorest/exports/Update-AzAlbAssociation.ps1 @@ -25,7 +25,7 @@ Update-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation .Notes COMPLEX PARAMETER PROPERTIES @@ -38,11 +38,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/update-azalbassociation #> function Update-AzAlbAssociation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -52,6 +60,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Name of Association @@ -78,10 +87,17 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType])] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType] + [System.String] # Association Type ${AssociationType}, @@ -93,7 +109,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -175,12 +191,17 @@ begin { $mapping = @{ UpdateExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateViaIdentityExpanded'; + UpdateViaIdentityTrafficControllerExpanded = 'Az.Alb.private\Update-AzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/exports/Update-AzAlbFrontend.ps1 b/src/Alb/Alb.Autorest/exports/Update-AzAlbFrontend.ps1 index b133fc176502..9760bf39b01d 100644 --- a/src/Alb/Alb.Autorest/exports/Update-AzAlbFrontend.ps1 +++ b/src/Alb/Alb.Autorest/exports/Update-AzAlbFrontend.ps1 @@ -25,7 +25,7 @@ Update-AzAlbFrontend -Name test-frontend -AlbName test-alb -ResourceGroupName te .Inputs Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend .Notes COMPLEX PARAMETER PROPERTIES @@ -38,11 +38,19 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [SubscriptionId ]: The ID of the target subscription. [TrafficControllerName ]: traffic controller name for path + +TRAFFICCONTROLLERINPUTOBJECT : Identity Parameter + [AssociationName ]: Name of Association + [FrontendName ]: Frontends + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [TrafficControllerName ]: traffic controller name for path .Link https://learn.microsoft.com/powershell/module/az.alb/update-azalbfrontend #> function Update-AzAlbFrontend { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -52,6 +60,7 @@ param( ${AlbName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] [System.String] # Frontends @@ -78,9 +87,16 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='UpdateViaIdentityTrafficControllerExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity] + # Identity Parameter + # To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + ${TrafficControllerInputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -162,12 +178,17 @@ begin { $mapping = @{ UpdateExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateViaIdentityExpanded'; + UpdateViaIdentityTrafficControllerExpanded = 'Az.Alb.private\Update-AzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + 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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generate-help.ps1 b/src/Alb/Alb.Autorest/generate-help.ps1 index 421a4240b7fa..0b819ec86d80 100644 --- a/src/Alb/Alb.Autorest/generate-help.ps1 +++ b/src/Alb/Alb.Autorest/generate-help.ps1 @@ -12,13 +12,13 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated) +param([switch]$NotIsolated) $ErrorActionPreference = 'Stop' $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path -if(-not $Isolated) { +if(-not $NotIsolated) { Write-Host -ForegroundColor Green 'Creating isolated process...' - & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated return } @@ -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/Alb/Alb.Autorest/generate-portal-ux.ps1 b/src/Alb/Alb.Autorest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..d34da666d671 --- /dev/null +++ b/src/Alb/Alb.Autorest/generate-portal-ux.ps1 @@ -0,0 +1,374 @@ +# ---------------------------------------------------------------------------------- +# 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]$NotIsolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $NotIsolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated + return +} + +$moduleName = 'Az.Alb' +$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.Alb.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName +$parameterSetsInfo = Get-Module -Name "$moduleName.private" + +function Test-FunctionSupported() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + If (-not $FunctionName.Contains("_")) { + return $false + } + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity") -or $parameterSetName.Contains("ViaJson")) { + 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) + { + Write-Host -ForegroundColor Yellow "There are come custom files for $cmdletName, skip generate UX data for it." + 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" +} diff --git a/src/Alb/Alb.Autorest/generated/api/Alb.cs b/src/Alb/Alb.Autorest/generated/api/Alb.cs index 4d41a0d80432..507087a43edf 100644 --- a/src/Alb/Alb.Autorest/generated/api/Alb.cs +++ b/src/Alb/Alb.Autorest/generated/api/Alb.cs @@ -25,12 +25,13 @@ public partial class Alb /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -57,11 +58,11 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } @@ -73,12 +74,13 @@ public partial class Alb /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -118,207 +120,140 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Create a Association + /// + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // verify that Identity format is an exact match for uri - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); - } - } + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); + } - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var associationName = _match.Groups["associationName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/associations/" + + associationName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - // drop the old response - _response?.Dispose(); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); } } - /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. - /// + /// Create a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association - /// Resource create parameters. + /// Json string supplied to the AssociationsInterfaceCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(associationName),associationName); - await eventListener.AssertRegEx(nameof(associationName),associationName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AssociationsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Delete a Association + /// Create a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Json string supplied to the AssociationsInterfaceCreateOrUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -336,88 +271,84 @@ public partial class Alb + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.AssociationsInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + return await this.AssociationsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); } } - /// Delete a Association - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Create a Association + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Name of Association + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var associationName = _match.Groups["associationName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" - + subscriptionId + + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" - + resourceGroupName + + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName + + global::System.Uri.EscapeDataString(trafficControllerName) + "/associations/" - + associationName + + global::System.Uri.EscapeDataString(associationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.AssociationsInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + return await this.AssociationsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -425,24 +356,19 @@ public partial class Alb try { var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // while we wait, let's grab the headers and get ready to poll. if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { @@ -456,57 +382,53 @@ public partial class Alb // and let's look at the current response body and see if we have some information we can give back to the listener var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); // make the polling call _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); - } - } + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } // check for terminal status code if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -515,37 +437,44 @@ public partial class Alb } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); // drop the old response _response?.Dispose(); // make the final call _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } break; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { case global::System.Net.HttpStatusCode.OK: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; } default: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } } } } @@ -560,18 +489,159 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -581,18 +651,21 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); await eventListener.AssertNotNull(nameof(associationName),associationName); - await eventListener.AssertRegEx(nameof(associationName),associationName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(associationName), associationName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Get a Association + /// Delete a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -600,9 +673,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -624,18 +697,19 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); } } - /// Get a Association + /// Delete a Association /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -643,9 +717,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -680,18 +754,19 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -699,7 +774,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -708,8 +783,98 @@ public partial class Alb { var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -717,13 +882,19 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -739,8 +910,8 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -750,7 +921,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -760,16 +931,17 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); await eventListener.AssertNotNull(nameof(associationName),associationName); - await eventListener.AssertRegEx(nameof(associationName),associationName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(associationName), associationName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// List Association resources by TrafficController + /// Get a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path + /// Name of Association /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -778,9 +950,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -792,7 +964,8 @@ public partial class Alb + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + global::System.Uri.EscapeDataString(trafficControllerName) - + "/associations" + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -806,11 +979,11 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceListByTrafficController_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// List Association resources by TrafficController + /// Get a Association /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -820,24 +993,25 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficControllerViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var associationName = _match.Groups["associationName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -846,7 +1020,8 @@ public partial class Alb + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + trafficControllerName - + "/associations" + + "/associations/" + + associationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -860,103 +1035,78 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.AssociationsInterfaceListByTrafficController_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Get a Association + /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + // verify that Identity format is an exact match for uri - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); } - } - } - /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. - /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var associationName = _match.Groups["associationName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/associations/" + + associationName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceGetWithResult_Call (request, eventListener,sender); } } - /// Update a Association + /// Get a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association - /// The resource properties to be updated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceGetWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -974,85 +1124,80 @@ public partial class Alb + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.AssociationsInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); + return await this.AssociationsInterfaceGetWithResult_Call (request, eventListener,sender); } } - /// Update a Association - /// - /// The resource properties to be updated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; - // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var associationName = _match.Groups["associationName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName - + "/associations/" - + associationName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.AssociationsInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1062,7 +1207,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1073,6 +1218,7 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -1080,13 +1226,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1102,19 +1248,18 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path /// Name of Association - /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1124,20 +1269,16 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); await eventListener.AssertNotNull(nameof(associationName),associationName); - await eventListener.AssertRegEx(nameof(associationName),associationName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertRegEx(nameof(associationName), associationName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// Create a Frontend + /// List Association resources by TrafficController /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends - /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1146,9 +1287,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1160,8 +1301,7 @@ public partial class Alb + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + global::System.Uri.EscapeDataString(trafficControllerName) - + "/frontends/" - + global::System.Uri.EscapeDataString(frontendName) + + "/associations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1170,22 +1310,17 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceListByTrafficController_Call (request, onOk,onDefault,eventListener,sender); } } - /// Create a Frontend + /// List Association resources by TrafficController /// - /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1194,25 +1329,24 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficControllerViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var frontendName = _match.Groups["frontendName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -1221,8 +1355,7 @@ public partial class Alb + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + trafficControllerName - + "/frontends/" - + frontendName + + "/associations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1231,151 +1364,158 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceListByTrafficController_Call (request, onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// List Association resources by TrafficController + /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficControllerViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { + // verify that Identity format is an exact match for uri - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations'"); + } - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/associations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceListByTrafficControllerWithResult_Call (request, eventListener,sender); + } + } - // drop the old response - _response?.Dispose(); + /// List Association resources by TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficControllerWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/associations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); - } - } + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceListByTrafficControllerWithResult_Call (request, eventListener,sender); + } + } - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficControllerWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { case global::System.Net.HttpStatusCode.OK: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; } default: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } } } } @@ -1390,144 +1530,10 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Actual wire call for method. /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path - /// Frontends - /// Resource create parameters. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(frontendName),frontendName); - await eventListener.AssertRegEx(nameof(frontendName),frontendName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Delete a Frontend - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path - /// Frontends - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-05-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + global::System.Uri.EscapeDataString(trafficControllerName) - + "/frontends/" - + global::System.Uri.EscapeDataString(frontendName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendsInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); - } - } - - /// Delete a Frontend - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-05-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var frontendName = _match.Groups["frontendName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName - + "/frontends/" - + frontendName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendsInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -1535,7 +1541,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1546,103 +1552,7 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -1650,19 +1560,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1678,18 +1582,17 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceListByTrafficController_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1699,28 +1602,28 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(frontendName),frontendName); - await eventListener.AssertRegEx(nameof(frontendName),frontendName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// Get a Frontend + /// Update a Association /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends + /// Name of Association + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1732,8 +1635,8 @@ public partial class Alb + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + global::System.Uri.EscapeDataString(trafficControllerName) - + "/frontends/" - + global::System.Uri.EscapeDataString(frontendName) + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1742,44 +1645,50 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Get a Frontend + /// Update a Association /// + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var frontendName = _match.Groups["frontendName"].Value; + var associationName = _match.Groups["associationName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -1788,8 +1697,8 @@ public partial class Alb + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + trafficControllerName - + "/frontends/" - + frontendName + + "/associations/" + + associationName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1798,26 +1707,302 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.AssociationsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled + /// Update a Association + /// + /// The resource properties to be updated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/associations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var associationName = _match.Groups["associationName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/associations/" + + associationName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Update a Association + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Name of Association + /// Json string supplied to the AssociationsInterfaceUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.AssociationsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Update a Association + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Name of Association + /// Json string supplied to the AssociationsInterfaceUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Update a Association + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Name of Association + /// The resource properties to be updated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/associations/" + + global::System.Uri.EscapeDataString(associationName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.AssociationsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task AssociationsInterfaceUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1828,6 +2013,7 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -1835,13 +2021,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1857,18 +2043,19 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends + /// Name of Association + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AssociationsInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string associationName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1878,27 +2065,32 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(frontendName),frontendName); - await eventListener.AssertRegEx(nameof(frontendName),frontendName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(associationName),associationName); + await eventListener.AssertRegEx(nameof(associationName), associationName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// List Frontend resources by TrafficController + /// Create a Frontend /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path + /// Frontends + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1910,7 +2102,8 @@ public partial class Alb + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + global::System.Uri.EscapeDataString(trafficControllerName) - + "/frontends" + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1919,43 +2112,50 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceListByTrafficController_Call(request,onOk,onDefault,eventListener,sender); + await this.FrontendsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// List Frontend resources by TrafficController + /// Create a Frontend /// + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficControllerViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -1964,7 +2164,8 @@ public partial class Alb + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + trafficControllerName - + "/frontends" + + "/frontends/" + + frontendName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1973,38 +2174,2810 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.FrontendsInterfaceListByTrafficController_Call(request,onOk,onDefault,eventListener,sender); - } - } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Create a Frontend + /// + /// Resource create parameters. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Create a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Json string supplied to the FrontendsInterfaceCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Create a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Json string supplied to the FrontendsInterfaceCreateOrUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Create a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Resource create parameters. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Resource create parameters. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(frontendName),frontendName); + await eventListener.AssertRegEx(nameof(frontendName), frontendName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Delete a Frontend + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(frontendName),frontendName); + await eventListener.AssertRegEx(nameof(frontendName), frontendName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + } + } + + /// Get a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Get a Frontend + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Get a Frontend + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceGetWithResult_Call (request, eventListener,sender); + } + } + + /// Get a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceGetWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(frontendName),frontendName); + await eventListener.AssertRegEx(nameof(frontendName), frontendName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + } + } + + /// List Frontend resources by TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceListByTrafficController_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List Frontend resources by TrafficController + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficControllerViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceListByTrafficController_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List Frontend resources by TrafficController + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficControllerViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceListByTrafficControllerWithResult_Call (request, eventListener,sender); + } + } + + /// List Frontend resources by TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficControllerWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceListByTrafficControllerWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficControllerWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + } + } + + /// Update a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// The resource properties to be updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Update a Frontend + /// + /// The resource properties to be updated. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Update a Frontend + /// + /// The resource properties to be updated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + var frontendName = _match.Groups["frontendName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "/frontends/" + + frontendName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Update a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Json string supplied to the FrontendsInterfaceUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.FrontendsInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Update a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// Json string supplied to the FrontendsInterfaceUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Update a Frontend + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// The resource properties to be updated. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "/frontends/" + + global::System.Uri.EscapeDataString(frontendName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.FrontendsInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Frontends + /// The resource properties to be updated. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(frontendName),frontendName); + await eventListener.AssertRegEx(nameof(frontendName), frontendName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// List the operations for the provider + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceNetworking/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List the operations for the provider + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.ServiceNetworking/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.ServiceNetworking/operations'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceNetworking/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.OperationsList_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List the operations for the provider + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.ServiceNetworking/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.ServiceNetworking/operations'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceNetworking/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.OperationsListWithResult_Call (request, eventListener,sender); + } + } + + /// List the operations for the provider + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/providers/Microsoft.ServiceNetworking/operations" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.OperationsListWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + + } + } + + /// Create a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Resource create parameters. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.TrafficControllerInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Create a TrafficController + /// + /// Resource create parameters. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.TrafficControllerInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Create a TrafficController + /// + /// Resource create parameters. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Create a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Json string supplied to the TrafficControllerInterfaceCreateOrUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.TrafficControllerInterfaceCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Create a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Json string supplied to the TrafficControllerInterfaceCreateOrUpdate operation + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// Create a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Resource create parameters. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceCreateOrUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -2012,13 +4985,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2034,17 +5007,18 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, + /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceListByTrafficController_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2054,17 +5028,18 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a Frontend + /// Delete a TrafficController /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends - /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2072,9 +5047,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2086,8 +5061,6 @@ public partial class Alb + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + global::System.Uri.EscapeDataString(trafficControllerName) - + "/frontends/" - + global::System.Uri.EscapeDataString(frontendName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2096,23 +5069,19 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); } } - /// Update a Frontend + /// Delete a TrafficController /// - /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2120,25 +5089,24 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task FrontendsInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)/frontends/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var trafficControllerName = _match.Groups["trafficControllerName"].Value; - var frontendName = _match.Groups["frontendName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -2147,8 +5115,6 @@ public partial class Alb + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + trafficControllerName - + "/frontends/" - + frontendName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2157,22 +5123,19 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.FrontendsInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2180,7 +5143,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2189,8 +5152,98 @@ public partial class Alb { var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -2198,13 +5251,19 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2220,19 +5279,17 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Frontends - /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task FrontendsInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, string frontendName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2242,15 +5299,14 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(frontendName),frontendName); - await eventListener.AssertRegEx(nameof(frontendName),frontendName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// List the operations for the provider + /// Get a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2259,15 +5315,20 @@ public partial class Alb /// /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.ServiceNetworking/operations" + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2281,11 +5342,11 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// List the operations for the provider + /// Get a TrafficController /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2295,133 +5356,32 @@ public partial class Alb /// /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.ServiceNetworking/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.ServiceNetworking/operations'"); - } - - // replace URI parameters with values from identity - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.ServiceNetworking/operations" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.OperationsList_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. - /// - /// 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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task OperationsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - } - } - - /// Create a TrafficController - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path - /// Resource create parameters. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-05-01-preview"; - // Constant Parameters - using( NoSynchronizationContext ) - { + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) + + subscriptionId + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) + + resourceGroupName + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + global::System.Uri.EscapeDataString(trafficControllerName) + + trafficControllerName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2430,33 +5390,26 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceGet_Call (request, onOk,onDefault,eventListener,sender); } } - /// Create a TrafficController + /// Get a TrafficController /// - /// Resource create parameters. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2484,36 +5437,71 @@ public partial class Alb + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceGetWithResult_Call (request, eventListener,sender); + } + } + + /// Get a TrafficController + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGetWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.TrafficControllerInterfaceCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + return await this.TrafficControllerInterfaceGetWithResult_Call (request, eventListener,sender); } } /// - /// Actual wire call for method. + /// Actual wire call for method. /// /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2521,105 +5509,72 @@ public partial class Alb try { var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + else + { + throw new global::System.Exception($"[{code}] : {message}"); } } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -2627,13 +5582,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2649,18 +5604,17 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2670,18 +5624,14 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// Delete a TrafficController + /// List TrafficController resources by resource group /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2689,9 +5639,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2701,8 +5651,7 @@ public partial class Alb + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + global::System.Uri.EscapeDataString(trafficControllerName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2711,19 +5660,18 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); } } - /// Delete a TrafficController + /// List TrafficController resources by resource group /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2731,32 +5679,30 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceDeleteViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroupViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2765,27 +5711,114 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.TrafficControllerInterfaceListByResourceGroup_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List TrafficController resources by resource group + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceListByResourceGroupWithResult_Call (request, eventListener,sender); + } + } + + /// List TrafficController resources by resource group + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroupWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.TrafficControllerInterfaceDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + return await this.TrafficControllerInterfaceListByResourceGroupWithResult_Call (request, eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroupWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2793,106 +5826,74 @@ public partial class Alb try { var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException(_response); + else + { + throw new global::System.Exception($"[{code}] : {message}"); } } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -2900,19 +5901,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2928,17 +5923,16 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceDelete_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2947,15 +5941,11 @@ public partial class Alb await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); } } - /// Get a TrafficController + /// List TrafficController resources by subscription ID /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2964,9 +5954,9 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2974,10 +5964,7 @@ public partial class Alb var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + global::System.Uri.EscapeDataString(trafficControllerName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2991,11 +5978,11 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceListBySubscription_Call (request, onOk,onDefault,eventListener,sender); } } - /// Get a TrafficController + /// List TrafficController resources by subscription ID /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3005,32 +5992,27 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceGetViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscriptionViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3044,98 +6026,67 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceGet_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceListBySubscription_Call (request, onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// List TrafficController resources by subscription ID + /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + // verify that Identity format is an exact match for uri - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers'"); } - } - } - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// traffic controller name for path - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceGet_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.ServiceNetworking/trafficControllers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceListBySubscriptionWithResult_Call (request, eventListener,sender); } } - /// List TrafficController resources by resource group + /// List TrafficController resources by subscription ID /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3143,79 +6094,88 @@ public partial class Alb var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.TrafficControllerInterfaceListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + return await this.TrafficControllerInterfaceListBySubscriptionWithResult_Call (request, eventListener,sender); } } - /// List TrafficController resources by resource group - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroupViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; - // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers'"); + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.ServiceNetworking/trafficControllers" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.TrafficControllerInterfaceListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } /// - /// Actual wire call for method. + /// Actual wire call for method. /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). @@ -3226,7 +6186,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3237,6 +6197,7 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3244,13 +6205,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3266,40 +6227,40 @@ public partial class Alb } /// - /// Validation method for method. Call this like the actual call, + /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } - /// List TrafficController resources by subscription ID + /// Update a TrafficController /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3307,7 +6268,10 @@ public partial class Alb var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.ServiceNetworking/trafficControllers" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3316,46 +6280,57 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// List TrafficController resources by subscription ID + /// Update a TrafficController /// + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscriptionViaIdentity(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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.ServiceNetworking/trafficControllers" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3364,81 +6339,121 @@ public partial class Alb // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.TrafficControllerInterfaceListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.TrafficControllerInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Update a TrafficController + /// + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + // verify that Identity format is an exact match for uri - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var trafficControllerName = _match.Groups["trafficControllerName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + trafficControllerName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.TrafficControllerInterfaceUpdateWithResult_Call (request, eventListener,sender); } } - /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. - /// + /// Update a TrafficController /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path + /// Json string supplied to the TrafficControllerInterfaceUpdate operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateViaJsonString(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { + var apiVersion = @"2023-11-01"; + // Constant Parameters using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.ServiceNetworking/trafficControllers/" + + global::System.Uri.EscapeDataString(trafficControllerName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.TrafficControllerInterfaceUpdate_Call (request, onOk,onDefault,eventListener,sender); } } @@ -3446,18 +6461,16 @@ public partial class Alb /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// traffic controller name for path - /// The resource properties to be updated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// Json string supplied to the TrafficControllerInterfaceUpdate operation /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateViaJsonStringWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3473,82 +6486,133 @@ public partial class Alb + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.TrafficControllerInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); + return await this.TrafficControllerInterfaceUpdateWithResult_Call (request, eventListener,sender); } } /// Update a TrafficController - /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// traffic controller name for path /// The resource properties to be updated. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateWithResult(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-05-01-preview"; + var apiVersion = @"2023-11-01"; // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.ServiceNetworking/trafficControllers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var trafficControllerName = _match.Groups["trafficControllerName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" - + subscriptionId + + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" - + resourceGroupName + + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.ServiceNetworking/trafficControllers/" - + trafficControllerName + + global::System.Uri.EscapeDataString(trafficControllerName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - await this.TrafficControllerInterfaceUpdate_Call(request,onOk,onDefault,eventListener,sender); + return await this.TrafficControllerInterfaceUpdateWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A + /// that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3558,7 +6622,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate_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.Alb.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3569,6 +6633,7 @@ public partial class Alb await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3576,13 +6641,13 @@ public partial class Alb case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3609,7 +6674,7 @@ public partial class Alb /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task TrafficControllerInterfaceUpdate_Validate(string subscriptionId, string resourceGroupName, string trafficControllerName, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate body, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3619,7 +6684,7 @@ public partial class Alb await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(trafficControllerName),trafficControllerName); - await eventListener.AssertRegEx(nameof(trafficControllerName),trafficControllerName,@"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); + await eventListener.AssertRegEx(nameof(trafficControllerName), trafficControllerName, @"^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.cs b/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.cs index 1c336611baa8..832cefd75727 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.cs @@ -67,6 +67,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Name of Association", SerializedName = @"associationName", PossibleTypes = new [] { typeof(string) })] @@ -75,6 +78,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Frontends", SerializedName = @"frontendName", PossibleTypes = new [] { typeof(string) })] @@ -83,6 +89,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Resource identity path", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] @@ -91,6 +100,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] @@ -99,6 +111,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The ID of the target subscription.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] @@ -107,6 +122,9 @@ public partial interface IAlbIdentity : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"traffic controller name for path", SerializedName = @"trafficControllerName", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.json.cs index 4dd9d2b67e7a..64b0dfab11b3 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AlbIdentity.json.cs @@ -64,12 +64,12 @@ internal AlbIdentity(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObj { return; } - {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} - {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} - {_trafficControllerName = If( json?.PropertyT("trafficControllerName"), out var __jsonTrafficControllerName) ? (string)__jsonTrafficControllerName : (string)TrafficControllerName;} - {_associationName = If( json?.PropertyT("associationName"), out var __jsonAssociationName) ? (string)__jsonAssociationName : (string)AssociationName;} - {_frontendName = If( json?.PropertyT("frontendName"), out var __jsonFrontendName) ? (string)__jsonFrontendName : (string)FrontendName;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} + {_trafficControllerName = If( json?.PropertyT("trafficControllerName"), out var __jsonTrafficControllerName) ? (string)__jsonTrafficControllerName : (string)_trafficControllerName;} + {_associationName = If( json?.PropertyT("associationName"), out var __jsonAssociationName) ? (string)__jsonAssociationName : (string)_associationName;} + {_frontendName = If( json?.PropertyT("frontendName"), out var __jsonFrontendName) ? (string)__jsonFrontendName : (string)_frontendName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Any.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Any.PowerShell.cs index de646611a0dc..c017e5765d97 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Any.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Any.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - /// Any object + /// Anything [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] public partial class Any { @@ -146,7 +146,7 @@ public override string ToString() return ToJsonString(); } } - /// Any object + /// Anything [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] public partial interface IAny diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Any.cs b/src/Alb/Alb.Autorest/generated/api/Models/Any.cs index effc7d6bd2a2..877c9ba67f1a 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Any.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Any.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - /// Any object + /// Anything public partial class Any : Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAnyInternal @@ -19,13 +19,13 @@ public Any() } } - /// Any object + /// Anything public partial interface IAny : Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable { } - /// Any object + /// Anything internal partial interface IAnyInternal { diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Any.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/Any.json.cs index 2f451781cbcc..f61be0bd1e58 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Any.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Any.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - /// Any object + /// Anything public partial class Any { diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.PowerShell.cs deleted file mode 100644 index 7c511a7abdac..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.PowerShell.cs +++ /dev/null @@ -1,292 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// Association Subresource of Traffic Controller - [System.ComponentModel.TypeConverter(typeof(AssociationTypeConverter))] - public partial class Association - { - - /// - /// 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 Association(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetTypeConverter.ConvertFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).SubnetId, 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 Association(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetTypeConverter.ConvertFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal)this).SubnetId, 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.Alb.Models.Api20230501Preview.IAssociation DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Association(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.Alb.Models.Api20230501Preview.IAssociation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Association(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.Alb.Models.Api20230501Preview.IAssociation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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(); - } - } - /// Association Subresource of Traffic Controller - [System.ComponentModel.TypeConverter(typeof(AssociationTypeConverter))] - public partial interface IAssociation - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.cs deleted file mode 100644 index 7ab4aa1eb6fd..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.cs +++ /dev/null @@ -1,204 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// Association Subresource of Traffic Controller - public partial class Association : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(); - - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for AssociationType - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal.AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType = value ?? ""; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).Subnet = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties _property; - - /// The resource-specific properties for this resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationProperties()); set => this._property = value; } - - /// Provisioning State of Traffic Controller Association Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 5)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).ProvisioningState; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 4)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).SubnetId = value ?? null; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public Association() - { - - } - - /// 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.Alb.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Association Subresource of Traffic Controller - public partial interface IAssociation : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource - { - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Association Type", - SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; } - /// Provisioning State of Traffic Controller Association Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Provisioning State of Traffic Controller Association Resource", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - - } - /// Association Subresource of Traffic Controller - internal partial interface IAssociationInternal : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal - { - /// Association Type - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; set; } - /// The resource-specific properties for this resource. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties Property { get; set; } - /// Provisioning State of Traffic Controller Association Resource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - /// Association Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet Subnet { get; set; } - /// Association ID. - string SubnetId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.cs deleted file mode 100644 index 884c542ddf25..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.cs +++ /dev/null @@ -1,68 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The response of a Association list operation. - public partial class AssociationListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResult, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[] _value; - - /// The Association items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public AssociationListResult() - { - - } - } - /// The response of a Association list operation. - public partial interface IAssociationListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The link to the next page of items", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// The Association items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The Association items on this page", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[] Value { get; set; } - - } - /// The response of a Association list operation. - internal partial interface IAssociationListResultInternal - - { - /// The link to the next page of items - string NextLink { get; set; } - /// The Association items on this page - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.PowerShell.cs deleted file mode 100644 index 9601066d9409..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.PowerShell.cs +++ /dev/null @@ -1,188 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// Association Properties. - [System.ComponentModel.TypeConverter(typeof(AssociationPropertiesTypeConverter))] - public partial class AssociationProperties - { - - /// - /// 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 AssociationProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).SubnetId, 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 AssociationProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)this).SubnetId, 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.Alb.Models.Api20230501Preview.IAssociationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AssociationProperties(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.Alb.Models.Api20230501Preview.IAssociationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AssociationProperties(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.Alb.Models.Api20230501Preview.IAssociationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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(); - } - } - /// Association Properties. - [System.ComponentModel.TypeConverter(typeof(AssociationPropertiesTypeConverter))] - public partial interface IAssociationProperties - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.cs deleted file mode 100644 index 88b2ca0ce94b..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.cs +++ /dev/null @@ -1,100 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// Association Properties. - public partial class AssociationProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType _associationType= @"subnets"; - - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType AssociationType { get => this._associationType; } - - /// Internal Acessors for AssociationType - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal.AssociationType { get => this._associationType; set { {_associationType = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnet()); set { {_subnet = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? _provisioningState; - - /// Provisioning State of Traffic Controller Association Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet _subnet; - - /// Association Subnet - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnet()); set => this._subnet = value; } - - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)Subnet).Id = value ?? null; } - - /// Creates an new instance. - public AssociationProperties() - { - - } - } - /// Association Properties. - public partial interface IAssociationProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = true, - ReadOnly = true, - Description = @"Association Type", - SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType AssociationType { get; } - /// Provisioning State of Traffic Controller Association Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Provisioning State of Traffic Controller Association Resource", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - - } - /// Association Properties. - internal partial interface IAssociationPropertiesInternal - - { - /// Association Type - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType AssociationType { get; set; } - /// Provisioning State of Traffic Controller Association Resource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - /// Association Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet Subnet { get; set; } - /// Association ID. - string SubnetId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.PowerShell.cs deleted file mode 100644 index 9c3739ed4180..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.PowerShell.cs +++ /dev/null @@ -1,196 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// The type used for update operations of the Association. - [System.ComponentModel.TypeConverter(typeof(AssociationUpdateTypeConverter))] - public partial class AssociationUpdate - { - - /// - /// 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 AssociationUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTagsTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType?) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdateTypeConverter.ConvertFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).SubnetId, 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 AssociationUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTagsTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType?) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdateTypeConverter.ConvertFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal)this).SubnetId, 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.Alb.Models.Api20230501Preview.IAssociationUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AssociationUpdate(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.Alb.Models.Api20230501Preview.IAssociationUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AssociationUpdate(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.Alb.Models.Api20230501Preview.IAssociationUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 type used for update operations of the Association. - [System.ComponentModel.TypeConverter(typeof(AssociationUpdateTypeConverter))] - public partial interface IAssociationUpdate - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.cs deleted file mode 100644 index 0aca28475a4c..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.cs +++ /dev/null @@ -1,96 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The type used for update operations of the Association. - public partial class AssociationUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal - { - - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).AssociationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).AssociationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType)""); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateProperties()); set { {_property = value;} } } - - /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).Subnet = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties _property; - - /// The updatable properties of the Association. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateProperties()); set => this._property = value; } - - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)Property).SubnetId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTags()); set => this._tag = value; } - - /// Creates an new instance. - public AssociationUpdate() - { - - } - } - /// The type used for update operations of the Association. - public partial interface IAssociationUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association Type", - SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; set; } - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags Tag { get; set; } - - } - /// The type used for update operations of the Association. - internal partial interface IAssociationUpdateInternal - - { - /// Association Type - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; set; } - /// The updatable properties of the Association. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties Property { get; set; } - /// Association Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate Subnet { get; set; } - /// Association ID. - string SubnetId { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.PowerShell.cs deleted file mode 100644 index b09dae0756f9..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,182 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// The updatable properties of the Association. - [System.ComponentModel.TypeConverter(typeof(AssociationUpdatePropertiesTypeConverter))] - public partial class AssociationUpdateProperties - { - - /// - /// 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 AssociationUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdateTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType?) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).SubnetId, 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 AssociationUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Subnet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdateTypeConverter.ConvertFrom); - } - if (content.Contains("AssociationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).AssociationType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType?) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).AssociationType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal)this).SubnetId, 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.Alb.Models.Api20230501Preview.IAssociationUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AssociationUpdateProperties(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.Alb.Models.Api20230501Preview.IAssociationUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AssociationUpdateProperties(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.Alb.Models.Api20230501Preview.IAssociationUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 updatable properties of the Association. - [System.ComponentModel.TypeConverter(typeof(AssociationUpdatePropertiesTypeConverter))] - public partial interface IAssociationUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.cs deleted file mode 100644 index 6d30cc1250d0..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.cs +++ /dev/null @@ -1,77 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The updatable properties of the Association. - public partial class AssociationUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? _associationType; - - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get => this._associationType; set => this._associationType = value; } - - /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdatePropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdate()); set { {_subnet = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate _subnet; - - /// Association Subnet - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdate()); set => this._subnet = value; } - - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)Subnet).Id = value ?? null; } - - /// Creates an new instance. - public AssociationUpdateProperties() - { - - } - } - /// The updatable properties of the Association. - public partial interface IAssociationUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Association Type - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association Type", - SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; set; } - /// Association ID. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Association ID.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - - } - /// The updatable properties of the Association. - internal partial interface IAssociationUpdatePropertiesInternal - - { - /// Association Type - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType? AssociationType { get; set; } - /// Association Subnet - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate Subnet { get; set; } - /// Association ID. - string SubnetId { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.PowerShell.cs deleted file mode 100644 index d1fdbd52af0c..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.PowerShell.cs +++ /dev/null @@ -1,276 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// Frontend Subresource of Traffic Controller. - [System.ComponentModel.TypeConverter(typeof(FrontendTypeConverter))] - public partial class Frontend - { - - /// - /// 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.Alb.Models.Api20230501Preview.IFrontend DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Frontend(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.Alb.Models.Api20230501Preview.IFrontend DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Frontend(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.Alb.Models.Api20230501Preview.IFrontend FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Frontend(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Fqdn, 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 Frontend(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Fqdn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal)this).Fqdn, 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.Alb.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(); - } - } - /// Frontend Subresource of Traffic Controller. - [System.ComponentModel.TypeConverter(typeof(FrontendTypeConverter))] - public partial interface IFrontend - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.cs deleted file mode 100644 index 3c7eeb0cccc1..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.cs +++ /dev/null @@ -1,190 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// Frontend Subresource of Traffic Controller. - public partial class Frontend : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(); - - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] - public string Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).Fqdn; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).Fqdn = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties _property; - - /// The resource-specific properties for this resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendProperties()); set => this._property = value; } - - /// Provisioning State of Traffic Controller Frontend Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 4)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)Property).ProvisioningState; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public Frontend() - { - - } - - /// 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.Alb.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Frontend Subresource of Traffic Controller. - public partial interface IFrontend : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource - { - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string Fqdn { get; } - /// Provisioning State of Traffic Controller Frontend Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Provisioning State of Traffic Controller Frontend Resource", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Frontend Subresource of Traffic Controller. - internal partial interface IFrontendInternal : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal - { - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - string Fqdn { get; set; } - /// The resource-specific properties for this resource. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties Property { get; set; } - /// Provisioning State of Traffic Controller Frontend Resource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.cs deleted file mode 100644 index e25ad9dbe4a0..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.cs +++ /dev/null @@ -1,68 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The response of a Frontend list operation. - public partial class FrontendListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[] _value; - - /// The Frontend items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public FrontendListResult() - { - - } - } - /// The response of a Frontend list operation. - public partial interface IFrontendListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The link to the next page of items", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// The Frontend items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The Frontend items on this page", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[] Value { get; set; } - - } - /// The response of a Frontend list operation. - internal partial interface IFrontendListResultInternal - - { - /// The link to the next page of items - string NextLink { get; set; } - /// The Frontend items on this page - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.cs deleted file mode 100644 index 330442587ae5..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// Frontend Properties. - public partial class FrontendProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal - { - - /// Backing field for property. - private string _fqdn; - - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Fqdn { get => this._fqdn; } - - /// Internal Acessors for Fqdn - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? _provisioningState; - - /// Provisioning State of Traffic Controller Frontend Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public FrontendProperties() - { - - } - } - /// Frontend Properties. - public partial interface IFrontendProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.", - SerializedName = @"fqdn", - PossibleTypes = new [] { typeof(string) })] - string Fqdn { get; } - /// Provisioning State of Traffic Controller Frontend Resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Provisioning State of Traffic Controller Frontend Resource", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Frontend Properties. - internal partial interface IFrontendPropertiesInternal - - { - /// - /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. - /// - string Fqdn { get; set; } - /// Provisioning State of Traffic Controller Frontend Resource - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.cs deleted file mode 100644 index fa4edbef5786..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.cs +++ /dev/null @@ -1,51 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The type used for update operations of the Frontend. - public partial class FrontendUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTags()); set => this._tag = value; } - - /// Creates an new instance. - public FrontendUpdate() - { - - } - } - /// The type used for update operations of the Frontend. - public partial interface IFrontendUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags Tag { get; set; } - - } - /// The type used for update operations of the Frontend. - internal partial interface IFrontendUpdateInternal - - { - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.PowerShell.cs deleted file mode 100644 index 78203d097963..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.PowerShell.cs +++ /dev/null @@ -1,294 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// - /// Concrete tracked resource types can be created by aliasing this type using a specific property type. - /// - [System.ComponentModel.TypeConverter(typeof(TrafficControllerTypeConverter))] - public partial class TrafficController - { - - /// - /// 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.Alb.Models.Api20230501Preview.ITrafficController DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TrafficController(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.Alb.Models.Api20230501Preview.ITrafficController DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TrafficController(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.Alb.Models.Api20230501Preview.ITrafficController FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 TrafficController(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ConfigurationEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ConfigurationEndpoint = (string[]) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Frontend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Frontend = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Frontend, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("Association")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Association = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Association, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TrafficController(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ConfigurationEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ConfigurationEndpoint = (string[]) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Frontend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Frontend = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Frontend, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("Association")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Association = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal)this).Association, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - } - /// Concrete tracked resource types can be created by aliasing this type using a specific property type. - [System.ComponentModel.TypeConverter(typeof(TrafficControllerTypeConverter))] - public partial interface ITrafficController - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.cs deleted file mode 100644 index c98a499537b8..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.cs +++ /dev/null @@ -1,222 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// Concrete tracked resource types can be created by aliasing this type using a specific property type. - /// - public partial class TrafficController : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(); - - /// Associations References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Association; } - - /// Configuration Endpoints. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string[] ConfigurationEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint; } - - /// Frontends References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Frontend; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Association - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal.Association { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Association; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Association = value; } - - /// Internal Acessors for ConfigurationEndpoint - string[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal.ConfigurationEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint = value; } - - /// Internal Acessors for Frontend - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal.Frontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Frontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).Frontend = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties _property; - - /// The resource-specific properties for this resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerProperties()); set => this._property = value; } - - /// The status of the last operation. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)Property).ProvisioningState; } - - /// Gets the resource group name - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] - public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public TrafficController() - { - - } - - /// 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.Alb.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Concrete tracked resource types can be created by aliasing this type using a specific property type. - public partial interface ITrafficController : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource - { - /// Associations References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Associations References List", - SerializedName = @"associations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get; } - /// Configuration Endpoints. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Configuration Endpoints.", - SerializedName = @"configurationEndpoints", - PossibleTypes = new [] { typeof(string) })] - string[] ConfigurationEndpoint { get; } - /// Frontends References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Frontends References List", - SerializedName = @"frontends", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get; } - /// The status of the last operation. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The status of the last operation.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Concrete tracked resource types can be created by aliasing this type using a specific property type. - internal partial interface ITrafficControllerInternal : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal - { - /// Associations References List - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get; set; } - /// Configuration Endpoints. - string[] ConfigurationEndpoint { get; set; } - /// Frontends References List - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get; set; } - /// The resource-specific properties for this resource. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties Property { get; set; } - /// The status of the last operation. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.cs deleted file mode 100644 index 0e338976304a..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.cs +++ /dev/null @@ -1,68 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The response of a TrafficController list operation. - public partial class TrafficControllerListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[] _value; - - /// The TrafficController items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public TrafficControllerListResult() - { - - } - } - /// The response of a TrafficController list operation. - public partial interface ITrafficControllerListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// The link to the next page of items - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The link to the next page of items", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// The TrafficController items on this page - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The TrafficController items on this page", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[] Value { get; set; } - - } - /// The response of a TrafficController list operation. - internal partial interface ITrafficControllerListResultInternal - - { - /// The link to the next page of items - string NextLink { get; set; } - /// The TrafficController items on this page - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.PowerShell.cs deleted file mode 100644 index 3bcd01687cb7..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.PowerShell.cs +++ /dev/null @@ -1,190 +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.Alb.Models.Api20230501Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// Traffic Controller Properties. - [System.ComponentModel.TypeConverter(typeof(TrafficControllerPropertiesTypeConverter))] - public partial class TrafficControllerProperties - { - - /// - /// 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.Alb.Models.Api20230501Preview.ITrafficControllerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new TrafficControllerProperties(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.Alb.Models.Api20230501Preview.ITrafficControllerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new TrafficControllerProperties(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.Alb.Models.Api20230501Preview.ITrafficControllerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 TrafficControllerProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ConfigurationEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint = (string[]) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Frontend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Frontend = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Frontend, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("Association")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Association = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Association, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal TrafficControllerProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ConfigurationEndpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint = (string[]) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("Frontend")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Frontend = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Frontend, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("Association")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Association = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[]) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).Association, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceIdTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); - } - AfterDeserializePSObject(content); - } - } - /// Traffic Controller Properties. - [System.ComponentModel.TypeConverter(typeof(TrafficControllerPropertiesTypeConverter))] - public partial interface ITrafficControllerProperties - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.cs deleted file mode 100644 index b1bc648ebb94..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.cs +++ /dev/null @@ -1,114 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// Traffic Controller Properties. - public partial class TrafficControllerProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] _association; - - /// Associations References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get => this._association; } - - /// Backing field for property. - private string[] _configurationEndpoint; - - /// Configuration Endpoints. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string[] ConfigurationEndpoint { get => this._configurationEndpoint; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] _frontend; - - /// Frontends References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get => this._frontend; } - - /// Internal Acessors for Association - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal.Association { get => this._association; set { {_association = value;} } } - - /// Internal Acessors for ConfigurationEndpoint - string[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal.ConfigurationEndpoint { get => this._configurationEndpoint; set { {_configurationEndpoint = value;} } } - - /// Internal Acessors for Frontend - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal.Frontend { get => this._frontend; set { {_frontend = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? _provisioningState; - - /// The status of the last operation. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public TrafficControllerProperties() - { - - } - } - /// Traffic Controller Properties. - public partial interface ITrafficControllerProperties : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Associations References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Associations References List", - SerializedName = @"associations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get; } - /// Configuration Endpoints. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Configuration Endpoints.", - SerializedName = @"configurationEndpoints", - PossibleTypes = new [] { typeof(string) })] - string[] ConfigurationEndpoint { get; } - /// Frontends References List - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Frontends References List", - SerializedName = @"frontends", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get; } - /// The status of the last operation. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The status of the last operation.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Traffic Controller Properties. - internal partial interface ITrafficControllerPropertiesInternal - - { - /// Associations References List - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Association { get; set; } - /// Configuration Endpoints. - string[] ConfigurationEndpoint { get; set; } - /// Frontends References List - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId[] Frontend { get; set; } - /// The status of the last operation. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.cs deleted file mode 100644 index fd6b7db715ac..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.cs +++ /dev/null @@ -1,51 +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.Alb.Models.Api20230501Preview -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The type used for update operations of the TrafficController. - public partial class TrafficControllerUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTags()); set => this._tag = value; } - - /// Creates an new instance. - public TrafficControllerUpdate() - { - - } - } - /// The type used for update operations of the TrafficController. - public partial interface ITrafficControllerUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags Tag { get; set; } - - } - /// The type used for update operations of the TrafficController. - internal partial interface ITrafficControllerUpdateInternal - - { - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs deleted file mode 100644 index d6d515b881b4..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.PowerShell.cs +++ /dev/null @@ -1,196 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// The error detail. - [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] - public partial class ErrorDetail - { - - /// - /// 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.Alb.Models.Api30.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ErrorDetail(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.Alb.Models.Api30.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ErrorDetail(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ErrorDetail(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorDetail(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(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.Alb.Models.Api30.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 error detail. - [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] - public partial interface IErrorDetail - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.cs deleted file mode 100644 index 68582df7c2ea..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.cs +++ /dev/null @@ -1,134 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// The error detail. - public partial class ErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] _additionalInfo; - - /// The error additional info. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } - - /// Backing field for property. - private string _code; - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Code { get => this._code; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] _detail; - - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get => this._detail; } - - /// Backing field for property. - private string _message; - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Message { get => this._message; } - - /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } - - /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } - - /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } - - /// Backing field for property. - private string _target; - - /// The error target. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Target { get => this._target; } - - /// Creates an new instance. - public ErrorDetail() - { - - } - } - /// The error detail. - public partial interface IErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// The error additional info. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error additional info.", - SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error details.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - /// The error target. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error target.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; } - - } - /// The error detail. - internal partial interface IErrorDetailInternal - - { - /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } - /// The error code. - string Code { get; set; } - /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get; set; } - /// The error message. - string Message { get; set; } - /// The error target. - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs deleted file mode 100644 index 28f993c08db8..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.PowerShell.cs +++ /dev/null @@ -1,208 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// - /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows - /// the OData error response format.). - /// - [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] - public partial class ErrorResponse - { - - /// - /// 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.Alb.Models.Api30.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ErrorResponse(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.Alb.Models.Api30.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ErrorResponse(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ErrorResponse(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ErrorResponse(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(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.Alb.Models.Api30.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows - /// the OData error response format.). - [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] - public partial interface IErrorResponse - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.cs deleted file mode 100644 index dc6be32c8b4a..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.cs +++ /dev/null @@ -1,136 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows - /// the OData error response format.). - /// - public partial class ErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponse, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal - { - - /// The error additional info. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; } - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Code; } - - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Detail; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail _error; - - /// The error object. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail()); set => this._error = value; } - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Message; } - - /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).AdditionalInfo = value; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Code = value; } - - /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Detail = value; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail()); set { {_error = value;} } } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Message = value; } - - /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Target = value; } - - /// The error target. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetailInternal)Error).Target; } - - /// Creates an new instance. - public ErrorResponse() - { - - } - } - /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows - /// the OData error response format.). - public partial interface IErrorResponse : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// The error additional info. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error additional info.", - SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; } - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; } - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error details.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error message.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; } - /// The error target. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The error target.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; } - - } - /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows - /// the OData error response format.). - internal partial interface IErrorResponseInternal - - { - /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get; set; } - /// The error code. - string Code { get; set; } - /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail[] Detail { get; set; } - /// The error object. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail Error { get; set; } - /// The error message. - string Message { get; set; } - /// The error target. - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs deleted file mode 100644 index 1ee30d9af22c..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.PowerShell.cs +++ /dev/null @@ -1,230 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// - /// Details of a REST API operation, returned from the Resource Provider Operations API - /// - [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] - public partial class Operation - { - - /// - /// 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.Alb.Models.Api30.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Operation(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.Alb.Models.Api30.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Operation(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.Alb.Models.Api30.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Operation(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Display")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("IsDataAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Origin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin.CreateFrom); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType.CreateFrom); - } - if (content.Contains("DisplayProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); - } - if (content.Contains("DisplayResource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); - } - if (content.Contains("DisplayOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayDescription, 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 Operation(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Display")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationDisplayTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("IsDataAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Origin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin.CreateFrom); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType.CreateFrom); - } - if (content.Contains("DisplayProvider")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); - } - if (content.Contains("DisplayResource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); - } - if (content.Contains("DisplayOperation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal)this).DisplayDescription, 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.Alb.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(); - } - } - /// Details of a REST API operation, returned from the Resource Provider Operations API - [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] - public partial interface IOperation - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.cs deleted file mode 100644 index 2db10e696f27..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.cs +++ /dev/null @@ -1,256 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// Details of a REST API operation, returned from the Resource Provider Operations API - /// - public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType? _actionType; - - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType? ActionType { get => this._actionType; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay _display; - - /// Localized display information for this particular operation. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Resource; } - - /// Backing field for property. - private bool? _isDataAction; - - /// - /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane - /// operations. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public bool? IsDataAction { get => this._isDataAction; } - - /// Internal Acessors for ActionType - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } - - /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationDisplay()); set { {_display = value;} } } - - /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Description = value; } - - /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Operation = value; } - - /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Provider = value; } - - /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)Display).Resource = value; } - - /// Internal Acessors for IsDataAction - bool? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Origin - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } - - /// Backing field for property. - private string _name; - - /// - /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", - /// "Microsoft.Compute/virtualMachines/capture/action" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin? _origin; - - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin? Origin { get => this._origin; } - - /// Creates an new instance. - public Operation() - { - - } - } - /// Details of a REST API operation, returned from the Resource Provider Operations API - public partial interface IOperation : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.", - SerializedName = @"actionType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType? ActionType { get; } - /// - /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string DisplayDescription { get; } - /// - /// 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.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".", - SerializedName = @"operation", - PossibleTypes = new [] { typeof(string) })] - string DisplayOperation { get; } - /// - /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".", - SerializedName = @"provider", - PossibleTypes = new [] { typeof(string) })] - string DisplayProvider { get; } - /// - /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".", - SerializedName = @"resource", - PossibleTypes = new [] { typeof(string) })] - string DisplayResource { get; } - /// - /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane - /// operations. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Whether the operation applies to data-plane. This is ""true"" for data-plane operations and ""false"" for ARM/control-plane operations.", - SerializedName = @"isDataAction", - PossibleTypes = new [] { typeof(bool) })] - bool? IsDataAction { get; } - /// - /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", - /// "Microsoft.Compute/virtualMachines/capture/action" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the operation, as per Resource-Based Access Control (RBAC). Examples: ""Microsoft.Compute/virtualMachines/write"", ""Microsoft.Compute/virtualMachines/capture/action""", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""", - SerializedName = @"origin", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin? Origin { get; } - - } - /// Details of a REST API operation, returned from the Resource Provider Operations API - internal partial interface IOperationInternal - - { - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType? ActionType { get; set; } - /// Localized display information for this particular operation. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay Display { get; set; } - /// - /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. - /// - string DisplayDescription { get; set; } - /// - /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", - /// "Restart Virtual Machine". - /// - string DisplayOperation { get; set; } - /// - /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - /// - string DisplayProvider { get; set; } - /// - /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - /// - string DisplayResource { get; set; } - /// - /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane - /// operations. - /// - bool? IsDataAction { get; set; } - /// - /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", - /// "Microsoft.Compute/virtualMachines/capture/action" - /// - string Name { get; set; } - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin? Origin { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.cs deleted file mode 100644 index e823730c29d2..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.cs +++ /dev/null @@ -1,79 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of - /// results. - /// - public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of operation list results (if there are any). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation[] _value; - - /// List of operations supported by the resource provider - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation[] Value { get => this._value; } - - /// Creates an new instance. - public OperationListResult() - { - - } - } - /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of - /// results. - public partial interface IOperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable - { - /// URL to get the next set of operation list results (if there are any). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of operation list results (if there are any).", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of operations supported by the resource provider - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"List of operations supported by the resource provider", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.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 - /// results. - 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.Alb.Models.Api30.IOperation[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.PowerShell.cs deleted file mode 100644 index ee63ab3f27cf..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.PowerShell.cs +++ /dev/null @@ -1,238 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.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.Alb.Models.Api30.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.cs deleted file mode 100644 index f5a9d6299091..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.cs +++ /dev/null @@ -1,208 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemData()); set { {_systemData = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData _systemData; - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemData()); } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.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.Alb.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.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.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.Alb.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.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; } - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.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.Alb.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.Alb.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/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs deleted file mode 100644 index 78815f3e4525..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.PowerShell.cs +++ /dev/null @@ -1,204 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; - - /// Metadata pertaining to creation and last modification of the resource. - [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] - public partial class SystemData - { - - /// - /// 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.Alb.Models.Api30.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SystemData(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.Alb.Models.Api30.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SystemData(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.Alb.Models.Api30.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SystemData(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); - } - if (content.Contains("CreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("CreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("LastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("LastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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 . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SystemData(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); - } - if (content.Contains("CreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("CreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("LastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("LastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Alb.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(); - } - } - /// Metadata pertaining to creation and last modification of the resource. - [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] - public partial interface ISystemData - - { - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs deleted file mode 100644 index c0e57ab11b22..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.PowerShell.cs +++ /dev/null @@ -1,254 +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.Alb.Models.Api30 -{ - using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.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.Alb.Models.Api30.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.cs b/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.cs deleted file mode 100644 index 3181a35f4880..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.cs +++ /dev/null @@ -1,146 +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.Alb.Models.Api30 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; - - /// - /// 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.Alb.Models.Api30.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Id; } - - /// Backing field for property. - private string _location; - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Name; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType)""); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public TrackedResource() - { - - } - - /// 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.Alb.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// 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.Alb.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource - { - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The geo-location where the resource lives", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResourceInternal - { - /// The geo-location where the resource lives - string Location { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Association.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Association.PowerShell.cs new file mode 100644 index 000000000000..ca7326dbc99e --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Association.PowerShell.cs @@ -0,0 +1,292 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// Association Subresource of Traffic Controller + [System.ComponentModel.TypeConverter(typeof(AssociationTypeConverter))] + public partial class Association + { + + /// + /// 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 Association(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).SubnetId, 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 Association(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal)this).SubnetId, 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.Alb.Models.IAssociation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Association(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.Alb.Models.IAssociation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Association(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.Alb.Models.IAssociation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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(); + } + } + /// Association Subresource of Traffic Controller + [System.ComponentModel.TypeConverter(typeof(AssociationTypeConverter))] + public partial interface IAssociation + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/Association.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Association.TypeConverter.cs index 4f904d8e1269..b334e6fadf5f 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Association.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Association.cs b/src/Alb/Alb.Autorest/generated/api/Models/Association.cs new file mode 100644 index 000000000000..124c8a021fbb --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Association.cs @@ -0,0 +1,217 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// Association Subresource of Traffic Controller + public partial class Association : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(); + + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] + public string AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).AssociationType; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for AssociationType + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal.AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).AssociationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).AssociationType = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).Subnet = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationProperties()); set => this._property = value; } + + /// Provisioning State of Traffic Controller Association Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 5)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 4)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)Property).SubnetId = value ?? null; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public Association() + { + + } + + /// 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.Alb.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Association Subresource of Traffic Controller + public partial interface IAssociation : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource + { + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = true, + Update = false, + Description = @"Association Type", + SerializedName = @"associationType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; } + /// Provisioning State of Traffic Controller Association Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning State of Traffic Controller Association Resource", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Association ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + /// Association Subresource of Traffic Controller + internal partial interface IAssociationInternal : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal + { + /// Association Type + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties Property { get; set; } + /// Provisioning State of Traffic Controller Association Resource + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + /// Association Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet Subnet { get; set; } + /// Association ID. + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/Association.json.cs similarity index 87% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Association.json.cs index cd8387f28ec4..b9c629f8bda1 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Association.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Association.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,19 +65,17 @@ internal Association(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObj { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new Association(json) : null; } @@ -102,7 +100,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro return container; } __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.PowerShell.cs similarity index 76% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.PowerShell.cs index c5ebc8da8c08..db6bb3b5056a 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AssociationListResult 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 AssociationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)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 AssociationListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal)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.Alb.Models.Api20230501Preview.IAssociationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AssociationListResult(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.Alb.Models.Api20230501Preview.IAssociationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AssociationListResult(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.TypeConverter.cs index b5e65b75c5d8..40e692ac69f2 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.cs new file mode 100644 index 000000000000..1484f5950f9c --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.cs @@ -0,0 +1,74 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The response of a Association list operation. + public partial class AssociationListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// The Association items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public AssociationListResult() + { + + } + } + /// The response of a Association list operation. + public partial interface IAssociationListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The link to the next page of items", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The Association items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The Association items on this page", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation) })] + System.Collections.Generic.List Value { get; set; } + + } + /// The response of a Association list operation. + internal partial interface IAssociationListResultInternal + + { + /// The link to the next page of items + string NextLink { get; set; } + /// The Association items on this page + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.json.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.json.cs index ab0b1ad4a0d4..72f26f73a906 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationListResult.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AssociationListResult(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociation) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association.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.Alb.Models.Api20230501Preview.IAssociationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationListResult(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.PowerShell.cs new file mode 100644 index 000000000000..63b2557d5c3e --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.PowerShell.cs @@ -0,0 +1,188 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// Association Properties. + [System.ComponentModel.TypeConverter(typeof(AssociationPropertiesTypeConverter))] + public partial class AssociationProperties + { + + /// + /// 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 AssociationProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).SubnetId, 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 AssociationProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal)this).SubnetId, 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.Alb.Models.IAssociationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AssociationProperties(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.Alb.Models.IAssociationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AssociationProperties(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.Alb.Models.IAssociationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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(); + } + } + /// Association Properties. + [System.ComponentModel.TypeConverter(typeof(AssociationPropertiesTypeConverter))] + public partial interface IAssociationProperties + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.TypeConverter.cs index ae10b4d80866..fb18fa685e40 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.cs new file mode 100644 index 000000000000..c965d8c1ccaf --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// Association Properties. + public partial class AssociationProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal + { + + /// Backing field for property. + private string _associationType= @"subnets"; + + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string AssociationType { get => this._associationType; } + + /// Internal Acessors for AssociationType + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal.AssociationType { get => this._associationType; set { {_associationType = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnet()); set { {_subnet = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// Provisioning State of Traffic Controller Association Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet _subnet; + + /// Association Subnet + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnet()); set => this._subnet = value; } + + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)Subnet).Id = value ?? null; } + + /// Creates an new instance. + public AssociationProperties() + { + + } + } + /// Association Properties. + public partial interface IAssociationProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = true, + Read = true, + Create = true, + Update = true, + Description = @"Association Type", + SerializedName = @"associationType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; } + /// Provisioning State of Traffic Controller Association Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning State of Traffic Controller Association Resource", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Association ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + /// Association Properties. + internal partial interface IAssociationPropertiesInternal + + { + /// Association Type + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// Provisioning State of Traffic Controller Association Resource + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + /// Association Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet Subnet { get; set; } + /// Association ID. + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.json.cs similarity index 92% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.json.cs index 7c50f60bb681..77d311f2df43 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationProperties.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AssociationProperties(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Js { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnet.FromJson(__jsonSubnet) : Subnet;} - {_associationType = If( json?.PropertyT("associationType"), out var __jsonAssociationType) ? (string)__jsonAssociationType : (string)AssociationType;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnet.FromJson(__jsonSubnet) : _subnet;} + {_associationType = If( json?.PropertyT("associationType"), out var __jsonAssociationType) ? (string)__jsonAssociationType : (string)_associationType;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationProperties(json) : null; } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro } AddIf( null != this._subnet ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._subnet.ToJson(null,serializationMode) : null, "subnet" ,container.Add ); AddIf( null != (((object)this._associationType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._associationType.ToString()) : null, "associationType" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.PowerShell.cs similarity index 85% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.PowerShell.cs index 25c30c0b4a90..2304c4a0d3db 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AssociationSubnet 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,13 +78,13 @@ internal AssociationSubnet(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)this).Id, 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. @@ -99,33 +99,33 @@ internal AssociationSubnet(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal)this).Id, 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.Alb.Models.Api20230501Preview.IAssociationSubnet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AssociationSubnet(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.Alb.Models.Api20230501Preview.IAssociationSubnet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AssociationSubnet(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.TypeConverter.cs index bb860d99af8a..c92251b3accd 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationSubnet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.cs similarity index 85% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.cs index a2b95bacbef1..dcbd78861c4c 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Association Subnet. public partial class AssociationSubnet : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetInternal { /// Backing field for property. @@ -34,6 +34,9 @@ public partial interface IAssociationSubnet : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = true, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Association ID.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.json.cs similarity index 94% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.json.cs index c5473bbe258a..166edc7dfc77 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnet.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnet.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AssociationSubnet(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.J { return; } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnet FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationSubnet(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.PowerShell.cs similarity index 84% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.PowerShell.cs index e5dadaef4c08..d4fecf5e47fc 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AssociationSubnetUpdate 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,13 +78,13 @@ internal AssociationSubnetUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)this).Id, 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. @@ -99,33 +99,33 @@ internal AssociationSubnetUpdate(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)this).Id, 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.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AssociationSubnetUpdate(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.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AssociationSubnetUpdate(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.TypeConverter.cs index 57accbe55d35..93d84ea5c381 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.cs similarity index 85% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.cs index 592a4885563f..d6bb62c4aa81 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Association Subnet. public partial class AssociationSubnetUpdate : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal { /// Backing field for property. @@ -34,6 +34,9 @@ public partial interface IAssociationSubnetUpdate : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Association ID.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.json.cs similarity index 94% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.json.cs index cae051d45a0a..9ba876454383 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationSubnetUpdate.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationSubnetUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AssociationSubnetUpdate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime. { return; } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationSubnetUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationSubnetUpdate(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.PowerShell.cs new file mode 100644 index 000000000000..9897a9c755a3 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.PowerShell.cs @@ -0,0 +1,196 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// The type used for update operations of the Association. + [System.ComponentModel.TypeConverter(typeof(AssociationUpdateTypeConverter))] + public partial class AssociationUpdate + { + + /// + /// 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 AssociationUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdateTypeConverter.ConvertFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).SubnetId, 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 AssociationUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdateTypeConverter.ConvertFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal)this).SubnetId, 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.Alb.Models.IAssociationUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AssociationUpdate(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.Alb.Models.IAssociationUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AssociationUpdate(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.Alb.Models.IAssociationUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 type used for update operations of the Association. + [System.ComponentModel.TypeConverter(typeof(AssociationUpdateTypeConverter))] + public partial interface IAssociationUpdate + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.TypeConverter.cs index 6f6a987057b5..dccc71a64bbc 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.cs new file mode 100644 index 000000000000..b6bba356e161 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.cs @@ -0,0 +1,107 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The type used for update operations of the Association. + public partial class AssociationUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal + { + + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string AssociationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).AssociationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).AssociationType = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateProperties()); set { {_property = value;} } } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).Subnet = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties _property; + + /// The updatable properties of the Association. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateProperties()); set => this._property = value; } + + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)Property).SubnetId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public AssociationUpdate() + { + + } + } + /// The type used for update operations of the Association. + public partial interface IAssociationUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Association Type", + SerializedName = @"associationType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Association ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get; set; } + + } + /// The type used for update operations of the Association. + internal partial interface IAssociationUpdateInternal + + { + /// Association Type + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// The updatable properties of the Association. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties Property { get; set; } + /// Association Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate Subnet { get; set; } + /// Association ID. + string SubnetId { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.json.cs similarity index 92% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.json.cs index e8bc7fc70bf0..d9229f3f54c2 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdate.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AssociationUpdate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.J { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdateTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateProperties.FromJson(__jsonProperties) : _property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationUpdate(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..bc00752e0a3c --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// The updatable properties of the Association. + [System.ComponentModel.TypeConverter(typeof(AssociationUpdatePropertiesTypeConverter))] + public partial class AssociationUpdateProperties + { + + /// + /// 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 AssociationUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdateTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).SubnetId, 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 AssociationUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdateTypeConverter.ConvertFrom); + } + if (content.Contains("AssociationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).AssociationType = (string) content.GetValueForProperty("AssociationType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).AssociationType, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal)this).SubnetId, 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.Alb.Models.IAssociationUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AssociationUpdateProperties(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.Alb.Models.IAssociationUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AssociationUpdateProperties(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.Alb.Models.IAssociationUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 updatable properties of the Association. + [System.ComponentModel.TypeConverter(typeof(AssociationUpdatePropertiesTypeConverter))] + public partial interface IAssociationUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.TypeConverter.cs index d2e8f37a58a4..7b7bcc33d225 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.cs new file mode 100644 index 000000000000..34bea2272273 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.cs @@ -0,0 +1,85 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The updatable properties of the Association. + public partial class AssociationUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal + { + + /// Backing field for property. + private string _associationType; + + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string AssociationType { get => this._associationType; set => this._associationType = value; } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdatePropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdate()); set { {_subnet = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate _subnet; + + /// Association Subnet + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdate()); set => this._subnet = value; } + + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdateInternal)Subnet).Id = value ?? null; } + + /// Creates an new instance. + public AssociationUpdateProperties() + { + + } + } + /// The updatable properties of the Association. + public partial interface IAssociationUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Association Type + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Association Type", + SerializedName = @"associationType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// Association ID. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Association ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + /// The updatable properties of the Association. + internal partial interface IAssociationUpdatePropertiesInternal + + { + /// Association Type + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + string AssociationType { get; set; } + /// Association Subnet + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationSubnetUpdate Subnet { get; set; } + /// Association ID. + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.json.cs similarity index 92% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.json.cs index 6a9f93ee4881..51be894478de 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateProperties.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AssociationUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runt { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationSubnetUpdate.FromJson(__jsonSubnet) : Subnet;} - {_associationType = If( json?.PropertyT("associationType"), out var __jsonAssociationType) ? (string)__jsonAssociationType : (string)AssociationType;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationSubnetUpdate.FromJson(__jsonSubnet) : _subnet;} + {_associationType = If( json?.PropertyT("associationType"), out var __jsonAssociationType) ? (string)__jsonAssociationType : (string)_associationType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationUpdateProperties(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.PowerShell.cs similarity index 89% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.PowerShell.cs index c765c9aecb7e..28bd9e1bbfee 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,7 +63,7 @@ public partial class AssociationUpdateTags 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. @@ -82,7 +82,7 @@ internal AssociationUpdateTags(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. @@ -101,27 +101,27 @@ internal AssociationUpdateTags(global::System.Management.Automation.PSObject con } /// - /// 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.Alb.Models.Api20230501Preview.IAssociationUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AssociationUpdateTags(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.Alb.Models.Api20230501Preview.IAssociationUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AssociationUpdateTags(content); } @@ -131,7 +131,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.TypeConverter.cs index 44e6e319b869..ac1d255659f7 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IAssociationUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.cs similarity index 78% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.cs index 17d4998260ef..b392eff27e2e 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Resource tags. public partial class AssociationUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTagsInternal { /// Creates an new instance. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.dictionary.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.dictionary.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.dictionary.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.dictionary.cs index 7b2152a20a6b..c4d202e6f7fd 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.dictionary.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.AssociationUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.json.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.json.cs index 8b5c1dbdba91..b0478d10688d 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/AssociationUpdateTags.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/AssociationUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -71,13 +71,13 @@ internal AssociationUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new AssociationUpdateTags(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs similarity index 81% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs index 15768a61fddd..77cdaa1192f0 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs index 9205425f32f9..ca17f2fde1a4 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.cs similarity index 81% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.cs index b9a7463d38ea..91b87d1341c2 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// The resource management error additional info. public partial class ErrorAdditionalInfo : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ErrorAdditionalInfo : public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Any()); } /// Internal Acessors for Info - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Any()); set { {_info = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Any()); set { {_info = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; @@ -47,6 +47,9 @@ public partial interface IErrorAdditionalInfo : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The additional info.", SerializedName = @"info", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAny) })] @@ -55,6 +58,9 @@ public partial interface IErrorAdditionalInfo : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The additional info type.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs similarity index 93% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs index 33688d469be0..b5af53e7a8de 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorAdditionalInfo.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,19 +65,19 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json { return; } - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Any.FromJson(__jsonInfo) : Info;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Any.FromJson(__jsonInfo) : _info;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; } @@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs new file mode 100644 index 000000000000..aca7423be8f1 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs @@ -0,0 +1,196 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial class ErrorDetail + { + + /// + /// 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.Alb.Models.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorDetail(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.Alb.Models.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorDetail(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorDetail(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorDetail(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.Alb.Models.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial interface IErrorDetail + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs index 549617736e25..50afa1abe237 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.cs new file mode 100644 index 000000000000..deccf7fb1ffc --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.cs @@ -0,0 +1,149 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _additionalInfo; + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List AdditionalInfo { get => this._additionalInfo; } + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private System.Collections.Generic.List _detail; + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Detail { get => this._detail; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for AdditionalInfo + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Detail + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + + /// Backing field for property. + private string _target; + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Target { get => this._target; } + + /// Creates an new instance. + public ErrorDetail() + { + + } + } + /// The error detail. + public partial interface IErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo) })] + System.Collections.Generic.List AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail) })] + System.Collections.Generic.List Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// The error detail. + internal partial interface IErrorDetailInternal + + { + /// The error additional info. + System.Collections.Generic.List AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + System.Collections.Generic.List Detail { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.json.cs similarity index 84% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorDetail.json.cs index 58da18455c85..866a18d2da09 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorDetail.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -65,22 +65,20 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObj { return; } - {_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.Alb.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.Alb.Models.Api30.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + {_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.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } @@ -104,19 +102,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._detail) { @@ -128,7 +126,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro container.Add("details",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._additionalInfo) { diff --git a/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..c0e03fa385dd --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial class ErrorResponse + { + + /// + /// 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.Alb.Models.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorResponse(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.Alb.Models.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Detail = (System.Collections.Generic.List) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).AdditionalInfo = (System.Collections.Generic.List) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.Alb.Models.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial interface IErrorResponse + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs index dc5b9fcb84cb..88d715f47c70 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IErrorResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.cs new file mode 100644 index 000000000000..72c458e97c26 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal + { + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public System.Collections.Generic.List AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Detail; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail _error; + + /// The error object. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail()); set => this._error = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Message; } + + /// Internal Acessors for AdditionalInfo + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Code = value; } + + /// Internal Acessors for Detail + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Detail = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Target = value; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetailInternal)Error).Target; } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorAdditionalInfo) })] + System.Collections.Generic.List AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail) })] + System.Collections.Generic.List Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + internal partial interface IErrorResponseInternal + + { + /// The error additional info. + System.Collections.Generic.List AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + System.Collections.Generic.List Detail { get; set; } + /// The error object. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorDetail Error { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.json.cs similarity index 93% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ErrorResponse.json.cs index e2b497993426..2640a8b4d67d 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/ErrorResponse.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -68,18 +68,16 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonO { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ErrorDetail.FromJson(__jsonError) : _error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponse. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Frontend.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.PowerShell.cs new file mode 100644 index 000000000000..8ec92e673d4b --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.PowerShell.cs @@ -0,0 +1,276 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// Frontend Subresource of Traffic Controller. + [System.ComponentModel.TypeConverter(typeof(FrontendTypeConverter))] + public partial class Frontend + { + + /// + /// 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.Alb.Models.IFrontend DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Frontend(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.Alb.Models.IFrontend DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Frontend(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.Alb.Models.IFrontend FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Frontend(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Fqdn, 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 Frontend(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Fqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal)this).Fqdn, 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.Alb.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(); + } + } + /// Frontend Subresource of Traffic Controller. + [System.ComponentModel.TypeConverter(typeof(FrontendTypeConverter))] + public partial interface IFrontend + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Frontend.TypeConverter.cs index 10714cfd3a8e..428582433568 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontend ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Frontend.cs b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.cs new file mode 100644 index 000000000000..70d478cd21ea --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.cs @@ -0,0 +1,198 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// Frontend Subresource of Traffic Controller. + public partial class Frontend : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(); + + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] + public string Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).Fqdn; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Fqdn + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal.Fqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).Fqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).Fqdn = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendProperties()); set => this._property = value; } + + /// Provisioning State of Traffic Controller Frontend Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 4)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public Frontend() + { + + } + + /// 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.Alb.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Frontend Subresource of Traffic Controller. + public partial interface IFrontend : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource + { + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string Fqdn { get; } + /// Provisioning State of Traffic Controller Frontend Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning State of Traffic Controller Frontend Resource", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + + } + /// Frontend Subresource of Traffic Controller. + internal partial interface IFrontendInternal : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal + { + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + string Fqdn { get; set; } + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties Property { get; set; } + /// Provisioning State of Traffic Controller Frontend Resource + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.json.cs similarity index 87% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Frontend.json.cs index 335d1dcf1dc0..bac25faaf925 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/Frontend.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/Frontend.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,11 @@ public partial class Frontend partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new Frontend(json) : null; } @@ -77,8 +75,8 @@ internal Frontend(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -102,7 +100,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro return container; } __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.PowerShell.cs similarity index 76% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.PowerShell.cs index 16ae4ed3bf9e..9522ee9afbdc 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class FrontendListResult 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.Alb.Models.Api20230501Preview.IFrontendListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FrontendListResult(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.Alb.Models.Api20230501Preview.IFrontendListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FrontendListResult(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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 FrontendListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)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 FrontendListResult(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.TypeConverter.cs index c6425caa3276..93a93ade68a8 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontendListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.cs new file mode 100644 index 000000000000..703817d77b5d --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.cs @@ -0,0 +1,74 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The response of a Frontend list operation. + public partial class FrontendListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// The Frontend items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public FrontendListResult() + { + + } + } + /// The response of a Frontend list operation. + public partial interface IFrontendListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The link to the next page of items", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The Frontend items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The Frontend items on this page", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend) })] + System.Collections.Generic.List Value { get; set; } + + } + /// The response of a Frontend list operation. + internal partial interface IFrontendListResultInternal + + { + /// The link to the next page of items + string NextLink { get; set; } + /// The Frontend items on this page + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.json.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.json.cs index 8f2c26b9968e..0200e2dfb370 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendListResult.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class FrontendListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new FrontendListResult(json) : null; } @@ -77,8 +77,8 @@ internal FrontendListResult(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontend) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.PowerShell.cs similarity index 78% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.PowerShell.cs index 2050f31daeb4..c48a6a176bcb 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class FrontendProperties 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.Alb.Models.Api20230501Preview.IFrontendProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FrontendProperties(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.Alb.Models.Api20230501Preview.IFrontendProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FrontendProperties(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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 FrontendProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Fqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).Fqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).Fqdn, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).ProvisioningState, 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 FrontendProperties(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Fqdn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).Fqdn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).Fqdn = (string) content.GetValueForProperty("Fqdn",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).Fqdn, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.TypeConverter.cs index 59527ddd0477..240ca23887f2 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontendProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.cs new file mode 100644 index 000000000000..43aed5c5f5cc --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.cs @@ -0,0 +1,88 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// Frontend Properties. + public partial class FrontendProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal + { + + /// Backing field for property. + private string _fqdn; + + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Fqdn { get => this._fqdn; } + + /// Internal Acessors for Fqdn + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal.Fqdn { get => this._fqdn; set { {_fqdn = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// Provisioning State of Traffic Controller Frontend Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public FrontendProperties() + { + + } + } + /// Frontend Properties. + public partial interface IFrontendProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.", + SerializedName = @"fqdn", + PossibleTypes = new [] { typeof(string) })] + string Fqdn { get; } + /// Provisioning State of Traffic Controller Frontend Resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Provisioning State of Traffic Controller Frontend Resource", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + + } + /// Frontend Properties. + internal partial interface IFrontendPropertiesInternal + + { + /// + /// The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. + /// + string Fqdn { get; set; } + /// Provisioning State of Traffic Controller Frontend Resource + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.json.cs similarity index 92% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.json.cs index a7e05aa1f073..7e90124e39e9 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendProperties.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class FrontendProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new FrontendProperties(json) : null; } @@ -77,8 +77,8 @@ internal FrontendProperties(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json. { return; } - {_fqdn = If( json?.PropertyT("fqdn"), out var __jsonFqdn) ? (string)__jsonFqdn : (string)Fqdn;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_fqdn = If( json?.PropertyT("fqdn"), out var __jsonFqdn) ? (string)__jsonFqdn : (string)_fqdn;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} AfterFromJson(json); } @@ -101,11 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._fqdn)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._fqdn.ToString()) : null, "fqdn" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.PowerShell.cs similarity index 82% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.PowerShell.cs index cd32b4a1eef4..0830ec280ebf 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class FrontendUpdate 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.Alb.Models.Api20230501Preview.IFrontendUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FrontendUpdate(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.Alb.Models.Api20230501Preview.IFrontendUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FrontendUpdate(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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 FrontendUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTagsTypeConverter.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. @@ -132,7 +132,7 @@ internal FrontendUpdate(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.TypeConverter.cs index 4865b2a60707..e5220b9163d3 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontendUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.cs new file mode 100644 index 000000000000..6f577ee80ed6 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The type used for update operations of the Frontend. + public partial class FrontendUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public FrontendUpdate() + { + + } + } + /// The type used for update operations of the Frontend. + public partial interface IFrontendUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get; set; } + + } + /// The type used for update operations of the Frontend. + internal partial interface IFrontendUpdateInternal + + { + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.json.cs similarity index 92% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.json.cs index 958bbe1581d1..ffbd7460dccf 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdate.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,11 @@ public partial class FrontendUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new FrontendUpdate(json) : null; } @@ -77,7 +75,7 @@ internal FrontendUpdate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.Json { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdateTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.PowerShell.cs similarity index 89% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.PowerShell.cs index 1a866e5cd242..b872241d55de 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class FrontendUpdateTags 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.Alb.Models.Api20230501Preview.IFrontendUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FrontendUpdateTags(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.Alb.Models.Api20230501Preview.IFrontendUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FrontendUpdateTags(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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. @@ -115,7 +115,7 @@ internal FrontendUpdateTags(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/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.TypeConverter.cs index 67f0be9c8cdb..ab2694d53986 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IFrontendUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.cs similarity index 78% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.cs index 8e4f52e50260..3a85546c3028 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Resource tags. public partial class FrontendUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTagsInternal { /// Creates an new instance. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.dictionary.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.dictionary.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.dictionary.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.dictionary.cs index 542e69e44781..b05c0c4a29f5 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.dictionary.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.FrontendUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.json.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.json.cs index f33d2b7786e0..87853c855c62 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/FrontendUpdateTags.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/FrontendUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class FrontendUpdateTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new FrontendUpdateTags(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Operation.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Operation.PowerShell.cs new file mode 100644 index 000000000000..51e3e8095183 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Operation.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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// + /// Details of a REST API operation, returned from the Resource Provider Operations API + /// + [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] + public partial class Operation + { + + /// + /// 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.Alb.Models.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Operation(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.Alb.Models.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Operation(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.Alb.Models.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Operation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplayTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("IsDataAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayDescription, 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 Operation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplayTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("IsDataAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal)this).DisplayDescription, 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.Alb.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(); + } + } + /// Details of a REST API operation, returned from the Resource Provider Operations API + [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] + public partial interface IOperation + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/Operation.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Operation.TypeConverter.cs index aeb6682ff4ca..ea65893fed9d 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Operation.cs b/src/Alb/Alb.Autorest/generated/api/Models/Operation.cs new file mode 100644 index 000000000000..5eb593c28590 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Operation.cs @@ -0,0 +1,284 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// Details of a REST API operation, returned from the Resource Provider Operations API + /// + public partial class Operation : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal + { + + /// Backing field for property. + private string _actionType; + + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string ActionType { get => this._actionType; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay _display; + + /// Localized display information for this particular operation. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplay()); set => this._display = value; } + + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Operation; } + + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Resource; } + + /// Backing field for property. + private bool? _isDataAction; + + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public bool? IsDataAction { get => this._isDataAction; } + + /// Internal Acessors for ActionType + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } + + /// Internal Acessors for Display + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationDisplay()); set { {_display = value;} } } + + /// Internal Acessors for DisplayDescription + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Description = value; } + + /// Internal Acessors for DisplayOperation + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Operation = value; } + + /// Internal Acessors for DisplayProvider + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Provider = value; } + + /// Internal Acessors for DisplayResource + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)Display).Resource = value; } + + /// Internal Acessors for IsDataAction + bool? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Origin + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } + + /// Backing field for property. + private string _name; + + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _origin; + + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Origin { get => this._origin; } + + /// Creates an new instance. + public Operation() + { + + } + } + /// Details of a REST API operation, returned from the Resource Provider Operations API + public partial interface IOperation : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Internal")] + string ActionType { get; } + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string DisplayDescription { get; } + /// + /// 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.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".", + SerializedName = @"operation", + PossibleTypes = new [] { typeof(string) })] + string DisplayOperation { get; } + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".", + SerializedName = @"provider", + PossibleTypes = new [] { typeof(string) })] + string DisplayProvider { get; } + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".", + SerializedName = @"resource", + PossibleTypes = new [] { typeof(string) })] + string DisplayResource { get; } + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Whether the operation applies to data-plane. This is ""true"" for data-plane operations and ""false"" for ARM/control-plane operations.", + SerializedName = @"isDataAction", + PossibleTypes = new [] { typeof(bool) })] + bool? IsDataAction { get; } + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The name of the operation, as per Resource-Based Access Control (RBAC). Examples: ""Microsoft.Compute/virtualMachines/write"", ""Microsoft.Compute/virtualMachines/capture/action""", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""", + SerializedName = @"origin", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("user", "system", "user,system")] + string Origin { get; } + + } + /// Details of a REST API operation, returned from the Resource Provider Operations API + internal partial interface IOperationInternal + + { + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Internal")] + string ActionType { get; set; } + /// Localized display information for this particular operation. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay Display { get; set; } + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// + string DisplayDescription { get; set; } + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// + string DisplayOperation { get; set; } + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// + string DisplayProvider { get; set; } + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// + string DisplayResource { get; set; } + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// + bool? IsDataAction { get; set; } + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// + string Name { get; set; } + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("user", "system", "user,system")] + string Origin { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/Operation.json.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Operation.json.cs index ba2de02ff0ef..cebe18e60581 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Operation.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -56,11 +56,11 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -77,11 +77,11 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObjec { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.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;} - {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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;} + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;} AfterFromJson(json); } @@ -105,19 +105,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro return container; } AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs similarity index 77% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs index f98a9f043df9..751aa2a6cf8d 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.TypeConverter.cs index 4ebe6e3c5dba..8fcad5f346a5 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.cs similarity index 85% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.cs index 04ca3ed11afb..66369730c9c3 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Localized display information for this particular operation. public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal.Operation { get => this._operation; set { {_operation = value;} } } /// Internal Acessors for Provider - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal.Provider { get => this._provider; set { {_provider = value;} } } /// Internal Acessors for Resource - string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplayInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Backing field for property. private string _operation; @@ -78,6 +78,9 @@ public partial interface IOperationDisplay : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] @@ -89,6 +92,9 @@ public partial interface IOperationDisplay : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".", SerializedName = @"operation", PossibleTypes = new [] { typeof(string) })] @@ -99,6 +105,9 @@ public partial interface IOperationDisplay : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".", SerializedName = @"provider", PossibleTypes = new [] { typeof(string) })] @@ -109,6 +118,9 @@ public partial interface IOperationDisplay : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = true, + Read = true, + Create = false, + Update = false, Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".", SerializedName = @"resource", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.json.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationDisplay.json.cs index b2f9dbf368da..6ce93ecd3fb6 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationDisplay.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,11 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } @@ -77,10 +75,10 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.Js { return; } - {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;} - {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;} - {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)_provider;} + {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)_resource;} + {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)_operation;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} AfterFromJson(json); } @@ -103,19 +101,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.PowerShell.cs similarity index 79% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.PowerShell.cs index af8aab0cd637..ebc569d8cf66 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -96,10 +96,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationList /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs index ed6f97e11219..7341c10ef1b1 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.cs new file mode 100644 index 000000000000..c8653c1b1f5f --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.cs @@ -0,0 +1,85 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + public partial class OperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of operation list results (if there are any). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// List of operations supported by the resource provider + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; } + + /// Creates an new instance. + public OperationListResult() + { + + } + } + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + public partial interface IOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// URL to get the next set of operation list results (if there are any). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"URL to get the next set of operation list results (if there are any).", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// List of operations supported by the resource provider + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"List of operations supported by the resource provider", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation) })] + System.Collections.Generic.List 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 + /// results. + 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 + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.json.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/OperationListResult.json.cs index 24b248ac9fdb..b2b48b287ffb 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/OperationListResult.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -80,8 +80,8 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Operation.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Operation.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._value) { @@ -116,7 +116,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro container.Add("value",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Resource.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/Resource.PowerShell.cs new file mode 100644 index 000000000000..5fb35020eabb --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.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.Alb.Models.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.Alb.Models.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.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/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/Resource.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Resource.TypeConverter.cs index fb678e5e8915..af230b697566 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Resource.cs b/src/Alb/Alb.Autorest/generated/api/Models/Resource.cs new file mode 100644 index 000000000000..e3a3b9f126d2 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/Resource.cs @@ -0,0 +1,239 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + + /// 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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.IJsonSerializable + { + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + 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.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + 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.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataCreatedByType { get; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataLastModifiedByType { get; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + 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; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string 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. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string 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/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/Resource.json.cs similarity index 91% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/Resource.json.cs index 87a22782d2c8..e0b1e607471f 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/Resource.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -56,11 +56,11 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -77,10 +77,10 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.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;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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;} AfterFromJson(json); } @@ -103,19 +103,19 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.PowerShell.cs similarity index 85% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ResourceId.PowerShell.cs index 9347a1e59409..bdc7f748edfc 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class ResourceId 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.Alb.Models.Api20230501Preview.IResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceId(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.Alb.Models.Api20230501Preview.IResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceId(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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 ResourceId(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceIdInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceIdInternal)this).Id, 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 ResourceId(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceIdInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceIdInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceIdInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ResourceId.TypeConverter.cs index 6bc9a01d2bf0..9bbd5c4efa2e 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IResourceId ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.cs b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.cs similarity index 87% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ResourceId.cs index 18363d67178f..ae9e051618ca 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Resource ID definition used by parent to reference child resources. public partial class ResourceId : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceIdInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceIdInternal { /// Backing field for property. @@ -34,6 +34,9 @@ public partial interface IResourceId : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = true, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"Resource ID of child resource.", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.json.cs similarity index 93% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/ResourceId.json.cs index fb5aa85745e5..361ac7b7f399 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/ResourceId.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/ResourceId.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,11 @@ public partial class ResourceId partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new ResourceId(json) : null; } @@ -77,7 +75,7 @@ internal ResourceId(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObje { return; } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/SystemData.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/SystemData.PowerShell.cs new file mode 100644 index 000000000000..98fd87894623 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/SystemData.PowerShell.cs @@ -0,0 +1,204 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial class SystemData + { + + /// + /// 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.Alb.Models.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SystemData(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.Alb.Models.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SystemData(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.Alb.Models.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SystemData(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + } + if (content.Contains("CreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); + } + if (content.Contains("CreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SystemData(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + } + if (content.Contains("CreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); + } + if (content.Contains("CreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.Alb.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(); + } + } + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial interface ISystemData + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/SystemData.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/SystemData.TypeConverter.cs index 99c947e950ad..df0585d8bdf8 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.cs b/src/Alb/Alb.Autorest/generated/api/Models/SystemData.cs similarity index 78% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.cs rename to src/Alb/Alb.Autorest/generated/api/Models/SystemData.cs index bcc24d77c1b3..999f3d481a36 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemDataInternal { /// Backing field for property. @@ -28,11 +28,11 @@ public partial class SystemData : public string CreatedBy { get => this._createdBy; set => this._createdBy = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? _createdByType; + private string _createdByType; /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? CreatedByType { get => this._createdByType; set => this._createdByType = value; } + public string CreatedByType { get => this._createdByType; set => this._createdByType = value; } /// Backing field for property. private global::System.DateTime? _lastModifiedAt; @@ -49,11 +49,11 @@ public partial class SystemData : public string LastModifiedBy { get => this._lastModifiedBy; set => this._lastModifiedBy = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? _lastModifiedByType; + private string _lastModifiedByType; /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; } + public string LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; } /// Creates an new instance. public SystemData() @@ -69,6 +69,9 @@ public partial interface ISystemData : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The timestamp of resource creation (UTC).", SerializedName = @"createdAt", PossibleTypes = new [] { typeof(global::System.DateTime) })] @@ -77,6 +80,9 @@ public partial interface ISystemData : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The identity that created the resource.", SerializedName = @"createdBy", PossibleTypes = new [] { typeof(string) })] @@ -85,14 +91,21 @@ public partial interface ISystemData : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The type of identity that created the resource.", SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? CreatedByType { get; set; } + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string CreatedByType { get; set; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The timestamp of resource last modification (UTC)", SerializedName = @"lastModifiedAt", PossibleTypes = new [] { typeof(global::System.DateTime) })] @@ -101,6 +114,9 @@ public partial interface ISystemData : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The identity that last modified the resource.", SerializedName = @"lastModifiedBy", PossibleTypes = new [] { typeof(string) })] @@ -109,10 +125,14 @@ public partial interface ISystemData : [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( Required = false, ReadOnly = false, + Read = true, + Create = true, + Update = true, Description = @"The type of identity that last modified the resource.", SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? LastModifiedByType { get; set; } + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string LastModifiedByType { get; set; } } /// Metadata pertaining to creation and last modification of the resource. @@ -124,13 +144,15 @@ internal partial interface ISystemDataInternal /// The identity that created the resource. string CreatedBy { get; set; } /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? CreatedByType { get; set; } + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string CreatedByType { get; set; } /// The timestamp of resource last modification (UTC) global::System.DateTime? LastModifiedAt { get; set; } /// The identity that last modified the resource. string LastModifiedBy { get; set; } /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType? LastModifiedByType { get; set; } + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string LastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/SystemData.json.cs similarity index 94% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/SystemData.json.cs index 846d8b75dc20..2ad291e750e7 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/SystemData.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,11 +54,11 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new SystemData(json) : null; } @@ -75,12 +75,12 @@ internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObje { return; } - {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy;} - {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType;} - {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : CreatedAt : CreatedAt;} - {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy;} - {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType;} - {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt;} + {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;} + {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;} + {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;} + {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;} + {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;} + {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;} AfterFromJson(json); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.PowerShell.cs new file mode 100644 index 000000000000..5049f9016a68 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.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.Alb.Models.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.Alb.Models.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.TypeConverter.cs index 5ba1350f1645..a6113cc75138 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.cs new file mode 100644 index 000000000000..780d2f13167a --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.cs @@ -0,0 +1,152 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// 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.Alb.Models.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Id; } + + /// Backing field for property. + private string _location; + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTags()); set => this._tag = value; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public TrackedResource() + { + + } + + /// 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.Alb.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// 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.Alb.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResource + { + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal + { + /// The geo-location where the resource lives + string Location { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.json.cs similarity index 86% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResource.json.cs index 59679a0fdf5d..79162076fcc8 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResource.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -56,13 +56,11 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource. /// /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource. + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -88,7 +86,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro } __resource?.ToJson(container, serializationMode); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } AfterToJson(ref container); return container; } @@ -105,9 +106,9 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.Jso { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResourceTags.FromJson(__jsonTags) : Tag;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTags.FromJson(__jsonTags) : _tag;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs similarity index 90% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs index bebfeed2116f..ea94795b6c48 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResour /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs index 1173d3f578f3..311dca0c6c74 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.cs similarity index 80% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.cs index 7336bfac22df..3b04157b8193 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs index 20b4871b8d80..7ec0cd7f6e1a 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.dictionary.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api30.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.json.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrackedResourceTags.json.cs index 89b85ebf39fa..f61b95aa5dcc 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api30/TrackedResourceTags.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/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.Alb.Models.Api30 +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.PowerShell.cs new file mode 100644 index 000000000000..18ed4f481d67 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.PowerShell.cs @@ -0,0 +1,294 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + /// + [System.ComponentModel.TypeConverter(typeof(TrafficControllerTypeConverter))] + public partial class TrafficController + { + + /// + /// 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.Alb.Models.ITrafficController DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrafficController(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.Alb.Models.ITrafficController DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrafficController(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.Alb.Models.ITrafficController FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 TrafficController(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ConfigurationEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ConfigurationEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Frontend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Frontend = (System.Collections.Generic.List) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Frontend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("Association")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Association = (System.Collections.Generic.List) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Association, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TrafficController(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ConfigurationEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ConfigurationEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Frontend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Frontend = (System.Collections.Generic.List) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Frontend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("Association")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Association = (System.Collections.Generic.List) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal)this).Association, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + } + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + [System.ComponentModel.TypeConverter(typeof(TrafficControllerTypeConverter))] + public partial interface ITrafficController + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.TypeConverter.cs similarity index 97% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficController.TypeConverter.cs index 984bbd54af57..bb0f16d8397b 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficController ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.cs new file mode 100644 index 000000000000..abdccd8a57a3 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.cs @@ -0,0 +1,236 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + /// + public partial class TrafficController : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(); + + /// Associations References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public System.Collections.Generic.List Association { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Association; } + + /// Configuration Endpoints. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public System.Collections.Generic.List ConfigurationEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint; } + + /// Frontends References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public System.Collections.Generic.List Frontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Frontend; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 2)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type = value; } + + /// Internal Acessors for Association + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal.Association { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Association; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Association = value; } + + /// Internal Acessors for ConfigurationEndpoint + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal.ConfigurationEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ConfigurationEndpoint = value; } + + /// Internal Acessors for Frontend + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal.Frontend { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Frontend; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).Frontend = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ProvisioningState = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 0)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerProperties()); set => this._property = value; } + + /// The status of the last operation. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 3)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.FormatTable(Index = 1)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public TrafficController() + { + + } + + /// 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.Alb.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + public partial interface ITrafficController : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResource + { + /// Associations References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Associations References List", + SerializedName = @"associations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) })] + System.Collections.Generic.List Association { get; } + /// Configuration Endpoints. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Configuration Endpoints.", + SerializedName = @"configurationEndpoints", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ConfigurationEndpoint { get; } + /// Frontends References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Frontends References List", + SerializedName = @"frontends", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) })] + System.Collections.Generic.List Frontend { get; } + /// The status of the last operation. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The status of the last operation.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + + } + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + internal partial interface ITrafficControllerInternal : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceInternal + { + /// Associations References List + System.Collections.Generic.List Association { get; set; } + /// Configuration Endpoints. + System.Collections.Generic.List ConfigurationEndpoint { get; set; } + /// Frontends References List + System.Collections.Generic.List Frontend { get; set; } + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties Property { get; set; } + /// The status of the last operation. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.json.cs similarity index 88% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficController.json.cs index df3b4e742d6d..6a7a6676de9d 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficController.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficController.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class TrafficController partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrafficController(json) : null; } @@ -87,7 +87,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro return container; } __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } @@ -104,8 +107,8 @@ internal TrafficController(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.J { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerProperties.FromJson(__jsonProperties) : Property;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.PowerShell.cs similarity index 76% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.PowerShell.cs index 91560eebe53e..26ca1d47d966 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,29 +63,27 @@ public partial class TrafficControllerListResult 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.Alb.Models.Api20230501Preview.ITrafficControllerListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrafficControllerListResult(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.Alb.Models.Api20230501Preview.ITrafficControllerListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrafficControllerListResult(content); } @@ -95,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,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. @@ -130,17 +128,17 @@ internal TrafficControllerListResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)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. @@ -155,11 +153,11 @@ internal TrafficControllerListResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.TypeConverter.cs index 1228fbb47def..b8200713df43 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficControllerListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.cs new file mode 100644 index 000000000000..9215f7345ce8 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.cs @@ -0,0 +1,74 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The response of a TrafficController list operation. + public partial class TrafficControllerListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// The TrafficController items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public TrafficControllerListResult() + { + + } + } + /// The response of a TrafficController list operation. + public partial interface ITrafficControllerListResult : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The link to the next page of items", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The TrafficController items on this page + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The TrafficController items on this page", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController) })] + System.Collections.Generic.List Value { get; set; } + + } + /// The response of a TrafficController list operation. + internal partial interface ITrafficControllerListResultInternal + + { + /// The link to the next page of items + string NextLink { get; set; } + /// The TrafficController items on this page + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.json.cs similarity index 89% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.json.cs index 3f55867a1467..1606744e7798 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerListResult.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerListResult.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrafficControllerListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrafficControllerListResult(json) : null; } @@ -110,8 +110,8 @@ internal TrafficControllerListResult(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runt { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficController) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.PowerShell.cs new file mode 100644 index 000000000000..e5b6384b7d0d --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.PowerShell.cs @@ -0,0 +1,188 @@ +// 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.Alb.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + + /// Traffic Controller Properties. + [System.ComponentModel.TypeConverter(typeof(TrafficControllerPropertiesTypeConverter))] + public partial class TrafficControllerProperties + { + + /// + /// 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.Alb.Models.ITrafficControllerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrafficControllerProperties(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.Alb.Models.ITrafficControllerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrafficControllerProperties(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.Alb.Models.ITrafficControllerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.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 TrafficControllerProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ConfigurationEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Frontend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Frontend = (System.Collections.Generic.List) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Frontend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("Association")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Association = (System.Collections.Generic.List) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Association, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ProvisioningState, 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 TrafficControllerProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ConfigurationEndpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint = (System.Collections.Generic.List) content.GetValueForProperty("ConfigurationEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ConfigurationEndpoint, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Frontend")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Frontend = (System.Collections.Generic.List) content.GetValueForProperty("Frontend",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Frontend, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("Association")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Association = (System.Collections.Generic.List) content.GetValueForProperty("Association",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).Association, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceIdTypeConverter.ConvertFrom)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// Traffic Controller Properties. + [System.ComponentModel.TypeConverter(typeof(TrafficControllerPropertiesTypeConverter))] + public partial interface ITrafficControllerProperties + + { + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.TypeConverter.cs index eae40505aa5a..11c1266290b9 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficControllerProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.cs new file mode 100644 index 000000000000..7e3a7c8b2638 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.cs @@ -0,0 +1,128 @@ +// 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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// Traffic Controller Properties. + public partial class TrafficControllerProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal + { + + /// Backing field for property. + private System.Collections.Generic.List _association; + + /// Associations References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Association { get => this._association; } + + /// Backing field for property. + private System.Collections.Generic.List _configurationEndpoint; + + /// Configuration Endpoints. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List ConfigurationEndpoint { get => this._configurationEndpoint; } + + /// Backing field for property. + private System.Collections.Generic.List _frontend; + + /// Frontends References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public System.Collections.Generic.List Frontend { get => this._frontend; } + + /// Internal Acessors for Association + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal.Association { get => this._association; set { {_association = value;} } } + + /// Internal Acessors for ConfigurationEndpoint + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal.ConfigurationEndpoint { get => this._configurationEndpoint; set { {_configurationEndpoint = value;} } } + + /// Internal Acessors for Frontend + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal.Frontend { get => this._frontend; set { {_frontend = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// The status of the last operation. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public TrafficControllerProperties() + { + + } + } + /// Traffic Controller Properties. + public partial interface ITrafficControllerProperties : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Associations References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Associations References List", + SerializedName = @"associations", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) })] + System.Collections.Generic.List Association { get; } + /// Configuration Endpoints. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Configuration Endpoints.", + SerializedName = @"configurationEndpoints", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ConfigurationEndpoint { get; } + /// Frontends References List + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Frontends References List", + SerializedName = @"frontends", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) })] + System.Collections.Generic.List Frontend { get; } + /// The status of the last operation. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The status of the last operation.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } + + } + /// Traffic Controller Properties. + internal partial interface ITrafficControllerPropertiesInternal + + { + /// Associations References List + System.Collections.Generic.List Association { get; set; } + /// Configuration Endpoints. + System.Collections.Generic.List ConfigurationEndpoint { get; set; } + /// Frontends References List + System.Collections.Generic.List Frontend { get; set; } + /// The status of the last operation. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.json.cs similarity index 84% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.json.cs index 1493a7e03159..5ce71274fb0c 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerProperties.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerProperties.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrafficControllerProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrafficControllerProperties(json) : null; } @@ -84,7 +84,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._configurationEndpoint) { @@ -96,7 +96,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro container.Add("configurationEndpoints",__w); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._frontend) { @@ -108,7 +108,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro container.Add("frontends",__r); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { if (null != this._association) { @@ -120,7 +120,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode ToJson(Micro container.Add("associations",__m); } } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeReadOnly)) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } @@ -140,10 +140,10 @@ internal TrafficControllerProperties(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runt { return; } - {_configurationEndpoint = If( json?.PropertyT("configurationEndpoints"), out var __jsonConfigurationEndpoints) ? If( __jsonConfigurationEndpoints as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : ConfigurationEndpoint;} - {_frontend = If( json?.PropertyT("frontends"), out var __jsonFrontends) ? If( __jsonFrontends as Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.IResourceId) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceId.FromJson(__p) )) ))() : null : Frontend;} - {_association = If( json?.PropertyT("associations"), out var __jsonAssociations) ? If( __jsonAssociations as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IResourceId) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ResourceId.FromJson(__k) )) ))() : null : Association;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_configurationEndpoint = If( json?.PropertyT("configurationEndpoints"), out var __jsonConfigurationEndpoints) ? If( __jsonConfigurationEndpoints as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _configurationEndpoint;} + {_frontend = If( json?.PropertyT("frontends"), out var __jsonFrontends) ? If( __jsonFrontends as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceId.FromJson(__p) )) ))() : null : _frontend;} + {_association = If( json?.PropertyT("associations"), out var __jsonAssociations) ? If( __jsonAssociations as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IResourceId) (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ResourceId.FromJson(__k) )) ))() : null : _association;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} AfterFromJson(json); } } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.PowerShell.cs similarity index 81% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.PowerShell.cs index d7a362609a13..9725875daa45 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,27 +63,27 @@ public partial class TrafficControllerUpdate 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.Alb.Models.Api20230501Preview.ITrafficControllerUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrafficControllerUpdate(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.Alb.Models.Api20230501Preview.ITrafficControllerUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrafficControllerUpdate(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.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. @@ -128,13 +128,13 @@ internal TrafficControllerUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTagsTypeConverter.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. @@ -149,7 +149,7 @@ internal TrafficControllerUpdate(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.TypeConverter.cs index 771ea1fc1755..6bca827172e5 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficControllerUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.cs new file mode 100644 index 000000000000..d59923d4ff79 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.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.Alb.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// The type used for update operations of the TrafficController. + public partial class TrafficControllerUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Origin(Microsoft.Azure.PowerShell.Cmdlets.Alb.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public TrafficControllerUpdate() + { + + } + } + /// The type used for update operations of the TrafficController. + public partial interface ITrafficControllerUpdate : + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IJsonSerializable + { + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags Tag { get; set; } + + } + /// The type used for update operations of the TrafficController. + internal partial interface ITrafficControllerUpdateInternal + + { + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.json.cs similarity index 93% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.json.cs index de23c247d1d6..d6ebba46e5a3 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdate.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdate.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrafficControllerUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrafficControllerUpdate(json) : null; } @@ -101,7 +101,7 @@ internal TrafficControllerUpdate(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime. { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdateTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.PowerShell.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.PowerShell.cs similarity index 88% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.PowerShell.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.PowerShell.cs index 39a87a65d98d..cbf456728fb2 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.PowerShell.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; @@ -63,29 +63,27 @@ public partial class TrafficControllerUpdateTags 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.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrafficControllerUpdateTags(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.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrafficControllerUpdateTags(content); } @@ -95,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.I /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,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. @@ -134,7 +132,7 @@ internal TrafficControllerUpdateTags(global::System.Collections.IDictionary cont } /// - /// 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/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.TypeConverter.cs similarity index 96% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.TypeConverter.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.TypeConverter.cs index 9734fbd644a9..ac5bdb564866 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.TypeConverter.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.cs similarity index 77% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.cs index 8b91f59bff81..d37ae24b1f64 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; /// Resource tags. public partial class TrafficControllerUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTagsInternal { /// Creates an new instance. diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.dictionary.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.dictionary.cs similarity index 95% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.dictionary.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.dictionary.cs index 0eebd97c5e9b..c11243cc9579 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.dictionary.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Models.Api20230501Preview.TrafficControllerUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.json.cs b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.json.cs similarity index 94% rename from src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.json.cs rename to src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.json.cs index 6673a9556f10..110bbfa6f6ba 100644 --- a/src/Alb/Alb.Autorest/generated/api/Models/Api20230501Preview/TrafficControllerUpdateTags.json.cs +++ b/src/Alb/Alb.Autorest/generated/api/Models/TrafficControllerUpdateTags.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.Alb.Models.Api20230501Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Models { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrafficControllerUpdateTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Json.JsonObject json ? new TrafficControllerUpdateTags(json) : null; } diff --git a/src/Alb/Alb.Autorest/generated/api/Support/ActionType.Completer.cs b/src/Alb/Alb.Autorest/generated/api/Support/ActionType.Completer.cs deleted file mode 100644 index f5fb1eca52c0..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ActionType.Completer.cs +++ /dev/null @@ -1,37 +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.Alb.Support -{ - - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionTypeTypeConverter))] - public partial struct ActionType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Internal".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Internal'", "Internal", global::System.Management.Automation.CompletionResultType.ParameterValue, "Internal"); - } - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/ActionType.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Support/ActionType.TypeConverter.cs deleted file mode 100644 index 5a2596b0dc8d..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ActionType.TypeConverter.cs +++ /dev/null @@ -1,61 +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.Alb.Support -{ - - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - public partial class ActionTypeTypeConverter : - 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) => true; - - /// - /// 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 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) => ActionType.CreateFrom(sourceValue); - - /// 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/Alb/Alb.Autorest/generated/api/Support/ActionType.cs b/src/Alb/Alb.Autorest/generated/api/Support/ActionType.cs deleted file mode 100644 index 6da960648f26..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ActionType.cs +++ /dev/null @@ -1,98 +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.Alb.Support -{ - - /// - /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// - public partial struct ActionType : - System.IEquatable - { - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType Internal = @"Internal"; - - /// the value for an instance of the Enum. - private string _value { get; set; } - - /// Creates an instance of the Enum class. - /// the value to create an instance for. - private ActionType(string underlyingValue) - { - this._value = underlyingValue; - } - - /// Conversion from arbitrary object to ActionType - /// the value to convert to an instance of . - internal static object CreateFrom(object value) - { - return new ActionType(global::System.Convert.ToString(value)); - } - - /// Compares values of enum type ActionType - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e) - { - return _value.Equals(e._value); - } - - /// Compares values of enum type ActionType (override for Object) - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public override bool Equals(object obj) - { - return obj is ActionType && Equals((ActionType)obj); - } - - /// Returns hashCode for enum ActionType - /// The hashCode of the value - public override int GetHashCode() - { - return this._value.GetHashCode(); - } - - /// Returns string representation for ActionType - /// A string for this value. - public override string ToString() - { - return this._value; - } - - /// Implicit operator to convert string to ActionType - /// the value to convert to an instance of . - - public static implicit operator ActionType(string value) - { - return new ActionType(value); - } - - /// Implicit operator to convert ActionType to string - /// the value to convert to an instance of . - - public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e) - { - return e._value; - } - - /// Overriding != operator for enum ActionType - /// the value to compare against - /// the value to compare against - /// true if the two instances are not equal to the same value - public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e2) - { - return !e2.Equals(e1); - } - - /// Overriding == operator for enum ActionType - /// the value to compare against - /// the value to compare against - /// true if the two instances are equal to the same value - public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ActionType e2) - { - return e2.Equals(e1); - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.Completer.cs b/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.Completer.cs deleted file mode 100644 index 243562bb04b6..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.Completer.cs +++ /dev/null @@ -1,35 +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.Alb.Support -{ - - /// Argument completer implementation for AssociationType. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationTypeTypeConverter))] - public partial struct AssociationType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "subnets".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'subnets'", "subnets", global::System.Management.Automation.CompletionResultType.ParameterValue, "subnets"); - } - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.TypeConverter.cs deleted file mode 100644 index 182952473790..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.TypeConverter.cs +++ /dev/null @@ -1,59 +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.Alb.Support -{ - - /// TypeConverter implementation for AssociationType. - public partial class AssociationTypeTypeConverter : - 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) => true; - - /// - /// 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 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) => AssociationType.CreateFrom(sourceValue); - - /// 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/Alb/Alb.Autorest/generated/api/Support/AssociationType.cs b/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.cs deleted file mode 100644 index 4f60bded4f4e..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/AssociationType.cs +++ /dev/null @@ -1,95 +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.Alb.Support -{ - - public partial struct AssociationType : - System.IEquatable - { - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType Subnets = @"subnets"; - - /// the value for an instance of the Enum. - private string _value { get; set; } - - /// Creates an instance of the Enum class. - /// the value to create an instance for. - private AssociationType(string underlyingValue) - { - this._value = underlyingValue; - } - - /// Conversion from arbitrary object to AssociationType - /// the value to convert to an instance of . - internal static object CreateFrom(object value) - { - return new AssociationType(global::System.Convert.ToString(value)); - } - - /// Compares values of enum type AssociationType - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e) - { - return _value.Equals(e._value); - } - - /// Compares values of enum type AssociationType (override for Object) - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public override bool Equals(object obj) - { - return obj is AssociationType && Equals((AssociationType)obj); - } - - /// Returns hashCode for enum AssociationType - /// The hashCode of the value - public override int GetHashCode() - { - return this._value.GetHashCode(); - } - - /// Returns string representation for AssociationType - /// A string for this value. - public override string ToString() - { - return this._value; - } - - /// Implicit operator to convert string to AssociationType - /// the value to convert to an instance of . - - public static implicit operator AssociationType(string value) - { - return new AssociationType(value); - } - - /// Implicit operator to convert AssociationType to string - /// the value to convert to an instance of . - - public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e) - { - return e._value; - } - - /// Overriding != operator for enum AssociationType - /// the value to compare against - /// the value to compare against - /// true if the two instances are not equal to the same value - public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e2) - { - return !e2.Equals(e1); - } - - /// Overriding == operator for enum AssociationType - /// the value to compare against - /// the value to compare against - /// true if the two instances are equal to the same value - public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType e2) - { - return e2.Equals(e1); - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.Completer.cs b/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.Completer.cs deleted file mode 100644 index 048ffa81ffb5..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.Completer.cs +++ /dev/null @@ -1,47 +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.Alb.Support -{ - - /// The type of identity that created the resource. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByTypeTypeConverter))] - public partial struct CreatedByType : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "User".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'User'", "User", global::System.Management.Automation.CompletionResultType.ParameterValue, "User"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Application".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Application'", "Application", global::System.Management.Automation.CompletionResultType.ParameterValue, "Application"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "ManagedIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'ManagedIdentity'", "ManagedIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "ManagedIdentity"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Key".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Key'", "Key", global::System.Management.Automation.CompletionResultType.ParameterValue, "Key"); - } - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs deleted file mode 100644 index 48156b83e2a9..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs +++ /dev/null @@ -1,59 +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.Alb.Support -{ - - /// The type of identity that created the resource. - public partial class CreatedByTypeTypeConverter : - 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) => true; - - /// - /// 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 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) => CreatedByType.CreateFrom(sourceValue); - - /// 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/Alb/Alb.Autorest/generated/api/Support/CreatedByType.cs b/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.cs deleted file mode 100644 index 35ac30080720..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/CreatedByType.cs +++ /dev/null @@ -1,102 +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.Alb.Support -{ - - /// The type of identity that created the resource. - public partial struct CreatedByType : - System.IEquatable - { - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType Application = @"Application"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType Key = @"Key"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType ManagedIdentity = @"ManagedIdentity"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType User = @"User"; - - /// the value for an instance of the Enum. - private string _value { get; set; } - - /// Conversion from arbitrary object to CreatedByType - /// the value to convert to an instance of . - internal static object CreateFrom(object value) - { - return new CreatedByType(global::System.Convert.ToString(value)); - } - - /// Creates an instance of the Enum class. - /// the value to create an instance for. - private CreatedByType(string underlyingValue) - { - this._value = underlyingValue; - } - - /// Compares values of enum type CreatedByType - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e) - { - return _value.Equals(e._value); - } - - /// Compares values of enum type CreatedByType (override for Object) - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public override bool Equals(object obj) - { - return obj is CreatedByType && Equals((CreatedByType)obj); - } - - /// Returns hashCode for enum CreatedByType - /// The hashCode of the value - public override int GetHashCode() - { - return this._value.GetHashCode(); - } - - /// Returns string representation for CreatedByType - /// A string for this value. - public override string ToString() - { - return this._value; - } - - /// Implicit operator to convert string to CreatedByType - /// the value to convert to an instance of . - - public static implicit operator CreatedByType(string value) - { - return new CreatedByType(value); - } - - /// Implicit operator to convert CreatedByType to string - /// the value to convert to an instance of . - - public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e) - { - return e._value; - } - - /// Overriding != operator for enum CreatedByType - /// the value to compare against - /// the value to compare against - /// true if the two instances are not equal to the same value - public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e2) - { - return !e2.Equals(e1); - } - - /// Overriding == operator for enum CreatedByType - /// the value to compare against - /// the value to compare against - /// true if the two instances are equal to the same value - public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.CreatedByType e2) - { - return e2.Equals(e1); - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/Origin.Completer.cs b/src/Alb/Alb.Autorest/generated/api/Support/Origin.Completer.cs deleted file mode 100644 index dad14a6aa843..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/Origin.Completer.cs +++ /dev/null @@ -1,46 +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.Alb.Support -{ - - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.OriginTypeConverter))] - public partial struct Origin : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "user".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'user'", "user", global::System.Management.Automation.CompletionResultType.ParameterValue, "user"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "system".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'system'", "system", global::System.Management.Automation.CompletionResultType.ParameterValue, "system"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "user,system".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'user,system'", "user,system", global::System.Management.Automation.CompletionResultType.ParameterValue, "user,system"); - } - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/Origin.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Support/Origin.TypeConverter.cs deleted file mode 100644 index c8b67c2fefd4..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/Origin.TypeConverter.cs +++ /dev/null @@ -1,62 +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.Alb.Support -{ - - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - public partial class OriginTypeConverter : - 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) => true; - - /// - /// 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 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) => Origin.CreateFrom(sourceValue); - - /// 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/Alb/Alb.Autorest/generated/api/Support/Origin.cs b/src/Alb/Alb.Autorest/generated/api/Support/Origin.cs deleted file mode 100644 index e13069ab178c..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/Origin.cs +++ /dev/null @@ -1,103 +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.Alb.Support -{ - - /// - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is - /// "user,system" - /// - public partial struct Origin : - System.IEquatable - { - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin System = @"system"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin User = @"user"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin UserSystem = @"user,system"; - - /// the value for an instance of the Enum. - private string _value { get; set; } - - /// Conversion from arbitrary object to Origin - /// the value to convert to an instance of . - internal static object CreateFrom(object value) - { - return new Origin(global::System.Convert.ToString(value)); - } - - /// Compares values of enum type Origin - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e) - { - return _value.Equals(e._value); - } - - /// Compares values of enum type Origin (override for Object) - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public override bool Equals(object obj) - { - return obj is Origin && Equals((Origin)obj); - } - - /// Returns hashCode for enum Origin - /// The hashCode of the value - public override int GetHashCode() - { - return this._value.GetHashCode(); - } - - /// Creates an instance of the Enum class. - /// the value to create an instance for. - private Origin(string underlyingValue) - { - this._value = underlyingValue; - } - - /// Returns string representation for Origin - /// A string for this value. - public override string ToString() - { - return this._value; - } - - /// Implicit operator to convert string to Origin - /// the value to convert to an instance of . - - public static implicit operator Origin(string value) - { - return new Origin(value); - } - - /// Implicit operator to convert Origin to string - /// the value to convert to an instance of . - - public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e) - { - return e._value; - } - - /// Overriding != operator for enum Origin - /// the value to compare against - /// the value to compare against - /// true if the two instances are not equal to the same value - public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e2) - { - return !e2.Equals(e1); - } - - /// Overriding == operator for enum Origin - /// the value to compare against - /// the value to compare against - /// true if the two instances are equal to the same value - public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.Origin e2) - { - return e2.Equals(e1); - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.Completer.cs b/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.Completer.cs deleted file mode 100644 index a3ab21b865e9..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.Completer.cs +++ /dev/null @@ -1,59 +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.Alb.Support -{ - - /// Argument completer implementation for ProvisioningState. - [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningStateTypeConverter))] - public partial struct ProvisioningState : - System.Management.Automation.IArgumentCompleter - { - - /// - /// Implementations of this function are called by PowerShell to complete arguments. - /// - /// The name of the command that needs argument completion. - /// The name of the parameter that needs argument completion. - /// The (possibly empty) word being completed. - /// The command ast in case it is needed for completion. - /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot - /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. - /// - /// A collection of completion results, most like with ResultType set to ParameterValue. - /// - public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) - { - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Provisioning".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Provisioning'", "Provisioning", global::System.Management.Automation.CompletionResultType.ParameterValue, "Provisioning"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Updating".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Updating'", "Updating", global::System.Management.Automation.CompletionResultType.ParameterValue, "Updating"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Deleting".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Deleting'", "Deleting", global::System.Management.Automation.CompletionResultType.ParameterValue, "Deleting"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Accepted".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Accepted'", "Accepted", global::System.Management.Automation.CompletionResultType.ParameterValue, "Accepted"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "Canceled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'Canceled'", "Canceled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Canceled"); - } - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs b/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs deleted file mode 100644 index a7a7d8bc950b..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.TypeConverter.cs +++ /dev/null @@ -1,59 +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.Alb.Support -{ - - /// TypeConverter implementation for ProvisioningState. - public partial class ProvisioningStateTypeConverter : - 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) => true; - - /// - /// 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 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) => ProvisioningState.CreateFrom(sourceValue); - - /// 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/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.cs b/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.cs deleted file mode 100644 index d4168dd9dff7..000000000000 --- a/src/Alb/Alb.Autorest/generated/api/Support/ProvisioningState.cs +++ /dev/null @@ -1,107 +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.Alb.Support -{ - - public partial struct ProvisioningState : - System.IEquatable - { - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Accepted = @"Accepted"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Canceled = @"Canceled"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Deleting = @"Deleting"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Failed = @"Failed"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Provisioning = @"Provisioning"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Succeeded = @"Succeeded"; - - public static Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState Updating = @"Updating"; - - /// the value for an instance of the Enum. - private string _value { get; set; } - - /// Conversion from arbitrary object to ProvisioningState - /// the value to convert to an instance of . - internal static object CreateFrom(object value) - { - return new ProvisioningState(global::System.Convert.ToString(value)); - } - - /// Compares values of enum type ProvisioningState - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e) - { - return _value.Equals(e._value); - } - - /// Compares values of enum type ProvisioningState (override for Object) - /// the value to compare against this instance. - /// true if the two instances are equal to the same value - public override bool Equals(object obj) - { - return obj is ProvisioningState && Equals((ProvisioningState)obj); - } - - /// Returns hashCode for enum ProvisioningState - /// The hashCode of the value - public override int GetHashCode() - { - return this._value.GetHashCode(); - } - - /// Creates an instance of the Enum class. - /// the value to create an instance for. - private ProvisioningState(string underlyingValue) - { - this._value = underlyingValue; - } - - /// Returns string representation for ProvisioningState - /// A string for this value. - public override string ToString() - { - return this._value; - } - - /// Implicit operator to convert string to ProvisioningState - /// the value to convert to an instance of . - - public static implicit operator ProvisioningState(string value) - { - return new ProvisioningState(value); - } - - /// Implicit operator to convert ProvisioningState to string - /// the value to convert to an instance of . - - public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e) - { - return e._value; - } - - /// Overriding != operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against - /// true if the two instances are not equal to the same value - public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e2) - { - return !e2.Equals(e1); - } - - /// Overriding == operator for enum ProvisioningState - /// the value to compare against - /// the value to compare against - /// true if the two instances are equal to the same value - public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e1, Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.ProvisioningState e2) - { - return e2.Equals(e1); - } - } -} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_Get.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_Get.cs index 1a200d59c8dd..4437b2a1c18b 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_Get.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_Get.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a Association @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbAssociation_Get")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class GetAzAlbAssociation_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class GetAzAlbAssociation_Get : global::System.Management.Automat /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -53,6 +69,9 @@ public partial class GetAzAlbAssociation_Get : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -66,6 +85,9 @@ public partial class GetAzAlbAssociation_Get : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,7 +128,7 @@ public partial class GetAzAlbAssociation_Get : global::System.Management.Automat /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -152,7 +174,8 @@ public partial class GetAzAlbAssociation_Get : global::System.Management.Automat [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -161,24 +184,24 @@ public partial class GetAzAlbAssociation_Get : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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) @@ -201,11 +224,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbAssociation_Get() { @@ -256,8 +283,33 @@ public GetAzAlbAssociation_Get() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -310,7 +362,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -331,7 +383,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -354,12 +406,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +428,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -394,12 +446,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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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,8 +463,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentity.cs index 11f4b2d3e33a..5275b00036d0 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a Association @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbAssociation_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class GetAzAlbAssociation_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,11 +38,26 @@ public partial class GetAzAlbAssociation_GetViaIdentity : global::System.Managem /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -52,6 +71,9 @@ public partial class GetAzAlbAssociation_GetViaIdentity : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -86,7 +108,7 @@ public partial class GetAzAlbAssociation_GetViaIdentity : global::System.Managem /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -109,24 +131,24 @@ public partial class GetAzAlbAssociation_GetViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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) @@ -149,11 +171,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbAssociation_GetViaIdentity() { @@ -204,8 +230,33 @@ public GetAzAlbAssociation_GetViaIdentity() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -258,7 +309,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -300,7 +351,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -323,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -345,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } @@ -363,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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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 ) { @@ -380,8 +431,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentityTrafficController.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentityTrafficController.cs new file mode 100644 index 000000000000..e70ec4384925 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_GetViaIdentityTrafficController.cs @@ -0,0 +1,468 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Get a Association + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbAssociation_GetViaIdentityTrafficController")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Association")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] + public partial class GetAzAlbAssociation_GetViaIdentityTrafficController : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of Association + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of Association")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of Association", + SerializedName = @"associationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// 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.Alb.Models.IAssociation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzAlbAssociation_GetViaIdentityTrafficController() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/associations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.AssociationsInterfaceGetViaIdentity(TrafficControllerInputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.AssociationsInterfaceGet(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.Alb.Models.IAssociation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_List.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_List.cs index 4209e7b0a1d8..ea3475e19a37 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_List.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbAssociation_List.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// List Association resources by TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbAssociation_List")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"List Association resources by TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations", ApiVersion = "2023-11-01")] public partial class GetAzAlbAssociation_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,12 +38,24 @@ public partial class GetAzAlbAssociation_List : global::System.Management.Automa /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -59,6 +75,9 @@ public partial class GetAzAlbAssociation_List : global::System.Management.Automa [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -72,6 +91,9 @@ public partial class GetAzAlbAssociation_List : global::System.Management.Automa [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -98,7 +120,7 @@ public partial class GetAzAlbAssociation_List : global::System.Management.Automa /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -144,7 +166,8 @@ public partial class GetAzAlbAssociation_List : global::System.Management.Automa [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -153,24 +176,24 @@ public partial class GetAzAlbAssociation_List : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult /// 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) @@ -193,11 +216,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbAssociation_List() { @@ -248,8 +275,33 @@ public GetAzAlbAssociation_List() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -302,7 +354,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -323,7 +375,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -346,12 +398,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -368,15 +420,15 @@ 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.Alb.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, AlbName=AlbName }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -386,12 +438,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.Alb.Models.Api20230501Preview.IAssociationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult /// 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 ) { @@ -403,15 +455,38 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationListResult + var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - var result = await response; - WriteObject(result.Value,true); + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } _nextLink = result.NextLink; if (_isFirst) { _isFirst = false; - while (_nextLink != null) + while (!String.IsNullOrEmpty(_nextLink)) { if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) { diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_Get.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_Get.cs index 429fc43d4a5f..9c7a66f8b2da 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_Get.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_Get.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a Frontend @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbFrontend_Get")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class GetAzAlbFrontend_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -53,6 +69,9 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -66,6 +85,9 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,7 +128,7 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -152,7 +174,8 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -161,24 +184,24 @@ public partial class GetAzAlbFrontend_Get : global::System.Management.Automation /// 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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) @@ -201,11 +224,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbFrontend_Get() { @@ -256,8 +283,33 @@ public GetAzAlbFrontend_Get() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -310,7 +362,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -331,7 +383,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -354,12 +406,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +428,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -394,12 +446,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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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,8 +463,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentity.cs index 73176dade261..aeac4d5d8b1d 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a Frontend @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbFrontend_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class GetAzAlbFrontend_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,11 +38,26 @@ public partial class GetAzAlbFrontend_GetViaIdentity : global::System.Management /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -52,6 +71,9 @@ public partial class GetAzAlbFrontend_GetViaIdentity : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -86,7 +108,7 @@ public partial class GetAzAlbFrontend_GetViaIdentity : global::System.Management /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -109,24 +131,24 @@ public partial class GetAzAlbFrontend_GetViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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) @@ -149,11 +171,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbFrontend_GetViaIdentity() { @@ -204,8 +230,33 @@ public GetAzAlbFrontend_GetViaIdentity() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -258,7 +309,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -300,7 +351,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -323,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -345,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } @@ -363,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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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 ) { @@ -380,8 +431,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentityTrafficController.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentityTrafficController.cs new file mode 100644 index 000000000000..8fe81768fa9f --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_GetViaIdentityTrafficController.cs @@ -0,0 +1,468 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Get a Frontend + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbFrontend_GetViaIdentityTrafficController")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a Frontend")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] + public partial class GetAzAlbFrontend_GetViaIdentityTrafficController : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Frontends + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Frontends")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Frontends", + SerializedName = @"frontendName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// 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.Alb.Models.IFrontend + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzAlbFrontend_GetViaIdentityTrafficController() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/frontends/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.FrontendsInterfaceGetViaIdentity(TrafficControllerInputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.FrontendsInterfaceGet(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.Alb.Models.IFrontend + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_List.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_List.cs index 7dc5c8415003..93c6ddb1248b 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_List.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbFrontend_List.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// List Frontend resources by TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbFrontend_List")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"List Frontend resources by TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends", ApiVersion = "2023-11-01")] public partial class GetAzAlbFrontend_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,12 +38,24 @@ public partial class GetAzAlbFrontend_List : global::System.Management.Automatio /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -59,6 +75,9 @@ public partial class GetAzAlbFrontend_List : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -72,6 +91,9 @@ public partial class GetAzAlbFrontend_List : global::System.Management.Automatio [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -98,7 +120,7 @@ public partial class GetAzAlbFrontend_List : global::System.Management.Automatio /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -144,7 +166,8 @@ public partial class GetAzAlbFrontend_List : global::System.Management.Automatio [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -153,24 +176,24 @@ public partial class GetAzAlbFrontend_List : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontendListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult /// 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) @@ -193,11 +216,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbFrontend_List() { @@ -248,8 +275,33 @@ public GetAzAlbFrontend_List() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -302,7 +354,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -323,7 +375,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -346,12 +398,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -368,15 +420,15 @@ 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.Alb.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, AlbName=AlbName }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -386,12 +438,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.Alb.Models.Api20230501Preview.IFrontendListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult /// 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 ) { @@ -403,15 +455,38 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendListResult + var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - var result = await response; - WriteObject(result.Value,true); + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } _nextLink = result.NextLink; if (_isFirst) { _isFirst = false; - while (_nextLink != null) + while (!String.IsNullOrEmpty(_nextLink)) { if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) { diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbOperation_List.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbOperation_List.cs index 9483a18f8dcc..aeab533fa96e 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbOperation_List.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlbOperation_List.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// List the operations for the provider @@ -14,11 +16,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlbOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation))] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"List the operations for the provider")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/providers/Microsoft.ServiceNetworking/operations", ApiVersion = "2023-11-01")] public partial class GetAzAlbOperation_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,17 +39,32 @@ public partial class GetAzAlbOperation_List : global::System.Management.Automati /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -58,6 +78,9 @@ public partial class GetAzAlbOperation_List : global::System.Management.Automati [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -84,7 +107,7 @@ public partial class GetAzAlbOperation_List : global::System.Management.Automati /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -107,24 +130,24 @@ public partial class GetAzAlbOperation_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api30.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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) @@ -147,11 +170,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlbOperation_List() { @@ -202,8 +229,33 @@ public GetAzAlbOperation_List() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -256,7 +308,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -274,7 +326,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -297,12 +349,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 +371,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 +389,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.Alb.Models.Api30.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -354,15 +406,38 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperationListResult + var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - var result = await response; - WriteObject(result.Value,true); + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } _nextLink = result.NextLink; if (_isFirst) { _isFirst = false; - while (_nextLink != null) + while (!String.IsNullOrEmpty(_nextLink)) { if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) { diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_Get.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_Get.cs index 4ddec2fcf95e..e123178c36e1 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_Get.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_Get.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlb_Get")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,11 +38,26 @@ public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdle /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -52,6 +71,9 @@ public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdle [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -92,7 +114,7 @@ public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdle /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -138,7 +160,8 @@ public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdle [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -147,24 +170,24 @@ public partial class GetAzAlb_Get : global::System.Management.Automation.PSCmdle /// 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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) @@ -187,10 +210,14 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. public GetAzAlb_Get() { @@ -240,8 +267,33 @@ public GetAzAlb_Get() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -294,7 +346,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -315,7 +367,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -338,12 +390,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +412,15 @@ 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.Alb.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 }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -378,12 +430,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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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,8 +447,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_GetViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_GetViaIdentity.cs index ec5363821503..095ba0594179 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_GetViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_GetViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Get a TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlb_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Get a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class GetAzAlb_GetViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,11 +38,26 @@ public partial class GetAzAlb_GetViaIdentity : global::System.Management.Automat /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -52,6 +71,9 @@ public partial class GetAzAlb_GetViaIdentity : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -86,7 +108,7 @@ public partial class GetAzAlb_GetViaIdentity : global::System.Management.Automat /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -109,24 +131,24 @@ public partial class GetAzAlb_GetViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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) @@ -149,11 +171,15 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public GetAzAlb_GetViaIdentity() { @@ -204,8 +230,33 @@ public GetAzAlb_GetViaIdentity() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -258,7 +309,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -296,7 +347,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -319,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -341,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } @@ -359,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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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 ) { @@ -376,8 +427,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List.cs index 5f29ff0e44c8..ab9285b10d04 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// List TrafficController resources by subscription ID @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlb_List")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"List TrafficController resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.ServiceNetworking/trafficControllers", ApiVersion = "2023-11-01")] public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,17 +38,32 @@ public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdl /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -58,6 +77,9 @@ public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdl [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -84,7 +106,7 @@ public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdl /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -116,7 +138,8 @@ public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdl [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -125,24 +148,24 @@ public partial class GetAzAlb_List : global::System.Management.Automation.PSCmdl /// 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficControllerListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult /// 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) @@ -165,10 +188,14 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. public GetAzAlb_List() { @@ -218,8 +245,33 @@ public GetAzAlb_List() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -272,7 +324,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -293,7 +345,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -316,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -338,15 +390,15 @@ 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.Alb.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -356,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.Alb.Models.Api20230501Preview.ITrafficControllerListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult /// 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 ) { @@ -373,15 +425,38 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult + var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - var result = await response; - WriteObject(result.Value,true); + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } _nextLink = result.NextLink; if (_isFirst) { _isFirst = false; - while (_nextLink != null) + while (!String.IsNullOrEmpty(_nextLink)) { if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) { diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List1.cs b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List1.cs index 31b3111de3bd..6efcfd3b0aad 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List1.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/GetAzAlb_List1.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// List TrafficController resources by resource group @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzAlb_List1")] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"List TrafficController resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers", ApiVersion = "2023-11-01")] public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,17 +38,32 @@ public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmd /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; /// Link to retrieve next page. private string _nextLink; + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -58,6 +77,9 @@ public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmd [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -84,7 +106,7 @@ public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmd /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -130,7 +152,8 @@ public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmd [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -139,24 +162,24 @@ public partial class GetAzAlb_List1 : global::System.Management.Automation.PSCmd /// 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficControllerListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult /// 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) @@ -179,10 +202,14 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. public GetAzAlb_List1() { @@ -232,8 +259,33 @@ public GetAzAlb_List1() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -286,7 +338,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -307,7 +359,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -330,12 +382,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +404,15 @@ 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.Alb.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 }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -370,12 +422,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.Alb.Models.Api20230501Preview.ITrafficControllerListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult /// 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,15 +439,38 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerListResult + var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink - var result = await response; - WriteObject(result.Value,true); + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } _nextLink = result.NextLink; if (_isFirst) { _isFirst = false; - while (_nextLink != null) + while (!String.IsNullOrEmpty(_nextLink)) { if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) { diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbAssociation_CreateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbAssociation_CreateExpanded.cs index b47714e41ed4..40849e91a0a4 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbAssociation_CreateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbAssociation_CreateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Create a Association @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzAlbAssociation_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Create a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class NewAzAlbAssociation_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,8 +38,20 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// Association Subresource of Traffic Controller - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Association(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Association(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Backing field for property. private string _albName; @@ -61,6 +77,9 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -74,6 +93,9 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -133,7 +155,7 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -190,7 +212,8 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -203,32 +226,32 @@ public partial class NewAzAlbAssociation_CreateExpanded : global::System.Managem ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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) @@ -276,7 +299,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.NewAzAlbAssociation_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -323,11 +350,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -339,10 +391,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -352,7 +420,7 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public NewAzAlbAssociation_CreateExpanded() { @@ -418,7 +486,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -431,12 +499,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AssociationsInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _resourceBody, onOk, onDefault, this, Pipeline); + await this.Client.AssociationsInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name,body=_resourceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -459,12 +527,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -481,15 +549,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name, body=_resourceBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name, body=_resourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -499,12 +567,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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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 ) { @@ -516,8 +584,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbFrontend_CreateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbFrontend_CreateExpanded.cs index ea2ae5c666db..f2357ce1118f 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbFrontend_CreateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlbFrontend_CreateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Create a Frontend @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzAlbFrontend_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Create a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,8 +38,20 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// Frontend Subresource of Traffic Controller. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.Frontend(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Frontend(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Backing field for property. private string _albName; @@ -61,6 +77,9 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -74,6 +93,9 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -133,7 +155,7 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -179,7 +201,8 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -192,32 +215,32 @@ public partial class NewAzAlbFrontend_CreateExpanded : global::System.Management ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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) @@ -265,7 +288,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.NewAzAlbFrontend_CreateExp /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -312,11 +339,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -328,10 +380,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -341,7 +409,7 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public NewAzAlbFrontend_CreateExpanded() { @@ -407,7 +475,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -420,12 +488,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendsInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _resourceBody, onOk, onDefault, this, Pipeline); + await this.Client.FrontendsInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name,body=_resourceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -448,12 +516,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -470,15 +538,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name, body=_resourceBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name, body=_resourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -488,12 +556,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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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 ) { @@ -505,8 +573,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlb_CreateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlb_CreateExpanded.cs index 56f16a7ce7b8..0c2daa7c643d 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlb_CreateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/NewAzAlb_CreateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Create a TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzAlb_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Create a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class NewAzAlb_CreateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,10 +38,22 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// /// Concrete tracked resource types can be created by aliasing this type using a specific property type. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficController(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficController(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -49,6 +65,9 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -62,6 +81,9 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -121,7 +143,7 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -167,7 +189,8 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -180,32 +203,32 @@ public partial class NewAzAlb_CreateExpanded : global::System.Management.Automat ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrackedResourceTags Tag { get => _resourceBody.Tag ?? null /* object */; set => _resourceBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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) @@ -252,7 +275,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.NewAzAlb_CreateExpanded Cl /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -299,11 +326,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -315,10 +367,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -328,7 +396,7 @@ protected override void EndProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public NewAzAlb_CreateExpanded() { @@ -394,7 +462,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -407,12 +475,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.TrafficControllerInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _resourceBody, onOk, onDefault, this, Pipeline); + await this.Client.TrafficControllerInterfaceCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeCreate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_resourceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -435,12 +503,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -457,15 +525,15 @@ 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.Alb.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=_resourceBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_resourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -475,12 +543,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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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 ) { @@ -492,8 +560,26 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_Delete.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_Delete.cs index b97a0f970365..e0c899f76f20 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_Delete.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_Delete.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a Association @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlbAssociation_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlbAssociation_Delete : global::System.Management.A /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -58,6 +74,9 @@ public partial class RemoveAzAlbAssociation_Delete : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -71,6 +90,9 @@ public partial class RemoveAzAlbAssociation_Delete : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -126,7 +148,7 @@ public partial class RemoveAzAlbAssociation_Delete : global::System.Management.A /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -172,7 +194,8 @@ public partial class RemoveAzAlbAssociation_Delete : global::System.Management.A [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -181,12 +204,12 @@ public partial class RemoveAzAlbAssociation_Delete : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -253,7 +276,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbAssociation_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -300,11 +327,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -316,10 +368,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -387,7 +455,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -405,7 +473,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -418,7 +486,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlbAssociation_Delete() { @@ -436,12 +504,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +526,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentity.cs index 332ca0de42f6..6d381bed5a9f 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a Association @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlbAssociation_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlbAssociation_DeleteViaIdentity : global::System.M /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] @@ -44,6 +60,9 @@ public partial class RemoveAzAlbAssociation_DeleteViaIdentity : global::System.M [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -57,6 +76,9 @@ public partial class RemoveAzAlbAssociation_DeleteViaIdentity : global::System.M [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,7 +128,7 @@ public partial class RemoveAzAlbAssociation_DeleteViaIdentity : global::System.M /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -129,12 +151,12 @@ public partial class RemoveAzAlbAssociation_DeleteViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -197,7 +219,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbAssociation_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -244,11 +270,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -260,10 +311,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -331,7 +398,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -373,7 +440,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -386,7 +453,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlbAssociation_DeleteViaIdentity() { @@ -404,12 +471,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 +493,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentityTrafficController.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentityTrafficController.cs new file mode 100644 index 000000000000..36279c376607 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbAssociation_DeleteViaIdentityTrafficController.cs @@ -0,0 +1,574 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Delete a Association + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzAlbAssociation_DeleteViaIdentityTrafficController", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Association")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] + public partial class RemoveAzAlbAssociation_DeleteViaIdentityTrafficController : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of Association + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of Association")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of Association", + SerializedName = @"associationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzAlbAssociation_DeleteViaIdentityTrafficController + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbAssociation_DeleteViaIdentityTrafficController Clone() + { + var clone = new RemoveAzAlbAssociation_DeleteViaIdentityTrafficController(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'AssociationsInterfaceDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/associations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.AssociationsInterfaceDeleteViaIdentity(TrafficControllerInputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.AssociationsInterfaceDelete(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzAlbAssociation_DeleteViaIdentityTrafficController() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_Delete.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_Delete.cs index 4995c44082dd..601d5b2ea4a2 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_Delete.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_Delete.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a Frontend @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Auto /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// Backing field for property. private string _albName; @@ -58,6 +74,9 @@ public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Auto [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -71,6 +90,9 @@ public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Auto [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -126,7 +148,7 @@ public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Auto /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -172,7 +194,8 @@ public partial class RemoveAzAlbFrontend_Delete : global::System.Management.Auto [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -181,12 +204,12 @@ public partial class RemoveAzAlbFrontend_Delete : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -253,7 +276,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbFrontend_Delete /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -300,11 +327,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -316,10 +368,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -387,7 +455,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -405,7 +473,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -418,7 +486,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlbFrontend_Delete() { @@ -436,12 +504,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +526,15 @@ 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.Alb.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, AlbName=AlbName, Name=Name }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentity.cs index 3b83b075ae7e..60f9a0e96ff5 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a Frontend @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlbFrontend_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlbFrontend_DeleteViaIdentity : global::System.Mana /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] @@ -44,6 +60,9 @@ public partial class RemoveAzAlbFrontend_DeleteViaIdentity : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -57,6 +76,9 @@ public partial class RemoveAzAlbFrontend_DeleteViaIdentity : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,7 +128,7 @@ public partial class RemoveAzAlbFrontend_DeleteViaIdentity : global::System.Mana /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -129,12 +151,12 @@ public partial class RemoveAzAlbFrontend_DeleteViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -197,7 +219,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbFrontend_Delete /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -244,11 +270,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -260,10 +311,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -331,7 +398,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -373,7 +440,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -386,7 +453,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlbFrontend_DeleteViaIdentity() { @@ -404,12 +471,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 +493,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentityTrafficController.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentityTrafficController.cs new file mode 100644 index 000000000000..2bd6d0494631 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlbFrontend_DeleteViaIdentityTrafficController.cs @@ -0,0 +1,572 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Delete a Frontend + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzAlbFrontend_DeleteViaIdentityTrafficController", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a Frontend")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] + public partial class RemoveAzAlbFrontend_DeleteViaIdentityTrafficController : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Frontends + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Frontends")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Frontends", + SerializedName = @"frontendName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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. + /// /// 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, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzAlbFrontend_DeleteViaIdentityTrafficController + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlbFrontend_DeleteViaIdentityTrafficController Clone() + { + var clone = new RemoveAzAlbFrontend_DeleteViaIdentityTrafficController(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendsInterfaceDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/frontends/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.FrontendsInterfaceDeleteViaIdentity(TrafficControllerInputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.FrontendsInterfaceDelete(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzAlbFrontend_DeleteViaIdentityTrafficController() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_Delete.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_Delete.cs index b53339441b5c..f3883367275e 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_Delete.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_Delete.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a TrafficController @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlb_Delete : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] @@ -44,6 +60,9 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -57,6 +76,9 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -112,7 +134,7 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -158,7 +180,8 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -167,12 +190,12 @@ public partial class RemoveAzAlb_Delete : global::System.Management.Automation.P /// 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -238,7 +261,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlb_Delete Clone() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -285,11 +312,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -301,10 +353,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -372,7 +440,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -390,7 +458,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -403,7 +471,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlb_Delete() { @@ -421,12 +489,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -443,15 +511,15 @@ 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.Alb.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 }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_DeleteViaIdentity.cs b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_DeleteViaIdentity.cs index fa21a3f39902..7a56231cdf18 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_DeleteViaIdentity.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/RemoveAzAlb_DeleteViaIdentity.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Delete a TrafficController @@ -17,8 +19,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Delete a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class RemoveAzAlb_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,6 +38,18 @@ public partial class RemoveAzAlb_DeleteViaIdentity : global::System.Management.A /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] @@ -44,6 +60,9 @@ public partial class RemoveAzAlb_DeleteViaIdentity : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -57,6 +76,9 @@ public partial class RemoveAzAlb_DeleteViaIdentity : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,7 +128,7 @@ public partial class RemoveAzAlb_DeleteViaIdentity : global::System.Management.A /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -129,12 +151,12 @@ public partial class RemoveAzAlb_DeleteViaIdentity : 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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 @@ -197,7 +219,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets.RemoveAzAlb_DeleteViaIdent /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -244,11 +270,36 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.DelayBeforePolling: { + var data = messageData(); if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) { - var data = messageData(); if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) { var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); @@ -260,10 +311,26 @@ protected override void EndProcessing() return; } } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } break; } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -331,7 +398,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -369,7 +436,7 @@ protected override void ProcessRecord() } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -382,7 +449,7 @@ protected override void ProcessRecord() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public RemoveAzAlb_DeleteViaIdentity() { @@ -400,12 +467,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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 +489,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.Alb.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateExpanded.cs index 189d71098b80..53f988db6b66 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a Association @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbAssociation_UpdateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,8 +38,20 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the Association. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Backing field for property. private string _albName; @@ -59,15 +75,18 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana ReadOnly = false, Description = @"Association Type", SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType))] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType AssociationType { get => _propertiesBody.AssociationType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType)""); set => _propertiesBody.AssociationType = value; } + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + public string AssociationType { get => _propertiesBody.AssociationType ?? null; set => _propertiesBody.AssociationType = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -81,6 +100,9 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -121,7 +143,7 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -178,7 +200,8 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -191,32 +214,32 @@ public partial class UpdateAzAlbAssociation_UpdateExpanded : global::System.Mana ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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) @@ -239,7 +262,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -286,8 +313,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -343,7 +395,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -356,12 +408,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.AssociationsInterfaceUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.AssociationsInterfaceUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name,body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -381,7 +433,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlbAssociation_UpdateExpanded() { @@ -392,12 +444,12 @@ public UpdateAzAlbAssociation_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -414,15 +466,15 @@ public UpdateAzAlbAssociation_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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, AlbName=AlbName, Name=Name, body=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name, body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -432,12 +484,12 @@ public UpdateAzAlbAssociation_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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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 ) { @@ -449,8 +501,26 @@ public UpdateAzAlbAssociation_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityExpanded.cs index 5d4ede81270c..36c349372fe4 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a Association @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbAssociation_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Association")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,8 +38,20 @@ public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global:: /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the Association. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.AssociationUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Association Type [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Association Type")] @@ -45,15 +61,18 @@ public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global:: ReadOnly = false, Description = @"Association Type", SerializedName = @"associationType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType) })] - [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType))] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType AssociationType { get => _propertiesBody.AssociationType ?? ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType)""); set => _propertiesBody.AssociationType = value; } + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + public string AssociationType { get => _propertiesBody.AssociationType ?? null; set => _propertiesBody.AssociationType = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -67,6 +86,9 @@ public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -101,7 +123,7 @@ public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global:: /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -139,32 +161,32 @@ public partial class UpdateAzAlbAssociation_UpdateViaIdentityExpanded : global:: ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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) @@ -187,7 +209,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -234,8 +260,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -291,7 +342,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -306,7 +357,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.AssociationsInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.AssociationsInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } else { @@ -327,13 +378,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.AssociationName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.AssociationsInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, InputObject.AssociationName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.AssociationsInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, InputObject.AssociationName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -353,7 +404,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlbAssociation_UpdateViaIdentityExpanded() { @@ -364,12 +415,12 @@ public UpdateAzAlbAssociation_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -386,15 +437,15 @@ public UpdateAzAlbAssociation_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -404,12 +455,12 @@ public UpdateAzAlbAssociation_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.Alb.Models.Api20230501Preview.IAssociation + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation /// 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 ) { @@ -421,8 +472,26 @@ public UpdateAzAlbAssociation_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociation - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded.cs new file mode 100644 index 000000000000..083e0cd0edd7 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded.cs @@ -0,0 +1,510 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Update a Association + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Association")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", ApiVersion = "2023-11-01")] + public partial class UpdateAzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// The type used for update operations of the Association. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.AssociationUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Association Type + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Association Type")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Association Type", + SerializedName = @"associationType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.PSArgumentCompleterAttribute("subnets")] + public string AssociationType { get => _propertiesBody.AssociationType ?? null; set => _propertiesBody.AssociationType = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Name of Association + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of Association")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of Association", + SerializedName = @"associationName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Association ID. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Association ID.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Association ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string SubnetId { get => _propertiesBody.SubnetId ?? null; set => _propertiesBody.SubnetId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociationUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// 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.Alb.Models.IAssociation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'AssociationsInterfaceUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/associations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.AssociationsInterfaceUpdateViaIdentity(TrafficControllerInputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.AssociationsInterfaceUpdate(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public UpdateAzAlbAssociation_UpdateViaIdentityTrafficControllerExpanded() + { + + } + + /// + /// 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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.Alb.Models.IAssociation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateExpanded.cs index 69bb8e6879a9..68477fa62755 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a Frontend @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbFrontend_UpdateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,8 +38,20 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the Frontend. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Backing field for property. private string _albName; @@ -56,6 +72,9 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -69,6 +88,9 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -109,7 +131,7 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -155,7 +177,8 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -168,32 +191,32 @@ public partial class UpdateAzAlbFrontend_UpdateExpanded : global::System.Managem ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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) @@ -216,7 +239,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -263,8 +290,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -320,7 +372,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -333,12 +385,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.FrontendsInterfaceUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.FrontendsInterfaceUpdate(SubscriptionId, ResourceGroupName, AlbName, Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name,body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AlbName=AlbName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -358,7 +410,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlbFrontend_UpdateExpanded() { @@ -369,12 +421,12 @@ public UpdateAzAlbFrontend_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +443,15 @@ public UpdateAzAlbFrontend_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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, AlbName=AlbName, Name=Name, body=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, AlbName=AlbName, Name=Name, body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -409,12 +461,12 @@ public UpdateAzAlbFrontend_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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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,8 +478,26 @@ public UpdateAzAlbFrontend_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityExpanded.cs index df63c9c047ed..1351ee065ce8 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a Frontend @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbFrontend_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Frontend")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlbFrontend_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,14 +38,29 @@ public partial class UpdateAzAlbFrontend_UpdateViaIdentityExpanded : global::Sys /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the Frontend. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.FrontendUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -55,6 +74,9 @@ public partial class UpdateAzAlbFrontend_UpdateViaIdentityExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -89,7 +111,7 @@ public partial class UpdateAzAlbFrontend_UpdateViaIdentityExpanded : global::Sys /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -116,32 +138,32 @@ public partial class UpdateAzAlbFrontend_UpdateViaIdentityExpanded : global::Sys ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontendUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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) @@ -164,7 +186,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -211,8 +237,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -268,7 +319,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -283,7 +334,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.FrontendsInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.FrontendsInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } else { @@ -304,13 +355,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.FrontendName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.FrontendsInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, InputObject.FrontendName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.FrontendsInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, InputObject.FrontendName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -330,7 +381,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlbFrontend_UpdateViaIdentityExpanded() { @@ -341,12 +392,12 @@ public UpdateAzAlbFrontend_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +414,15 @@ public UpdateAzAlbFrontend_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -381,12 +432,12 @@ public UpdateAzAlbFrontend_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.Alb.Models.Api20230501Preview.IFrontend + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend /// 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,8 +449,26 @@ public UpdateAzAlbFrontend_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IFrontend - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded.cs new file mode 100644 index 000000000000..f991935ef9a4 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded.cs @@ -0,0 +1,487 @@ +// 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.Alb.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; + using System; + + /// Update a Frontend + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a Frontend")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/frontends/{frontendName}", ApiVersion = "2023-11-01")] + public partial class UpdateAzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// The type used for update operations of the Frontend. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.FrontendUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// Frontends + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Frontends")] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Frontends", + SerializedName = @"frontendName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontendUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity _trafficControllerInputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity TrafficControllerInputObject { get => this._trafficControllerInputObject; set => this._trafficControllerInputObject = 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.Alb.Models.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); + + /// + /// 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.Alb.Models.IFrontend + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'FrontendsInterfaceUpdate' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (TrafficControllerInputObject?.Id != null) + { + this.TrafficControllerInputObject.Id += $"/frontends/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; + await this.Client.FrontendsInterfaceUpdateViaIdentity(TrafficControllerInputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == TrafficControllerInputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + if (null == TrafficControllerInputObject.TrafficControllerName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("TrafficControllerInputObject has null value for TrafficControllerInputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, TrafficControllerInputObject) ); + } + await this.Client.FrontendsInterfaceUpdate(TrafficControllerInputObject.SubscriptionId ?? null, TrafficControllerInputObject.ResourceGroupName ?? null, TrafficControllerInputObject.TrafficControllerName ?? null, Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet + /// class. + /// + public UpdateAzAlbFrontend_UpdateViaIdentityTrafficControllerExpanded() + { + + } + + /// + /// 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.Alb.Models.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.Alb.Models.IFrontend + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateExpanded.cs index 18ca968d37e0..1d772875ed23 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlb_UpdateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,14 +38,29 @@ public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Auto /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the TrafficController. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -55,6 +74,9 @@ public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Auto [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -95,7 +117,7 @@ public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Auto /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -141,7 +163,8 @@ public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Auto [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.DefaultInfo( Name = @"", Description =@"", - Script = @"(Get-AzContext).Subscription.Id")] + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -154,32 +177,32 @@ public partial class UpdateAzAlb_UpdateExpanded : global::System.Management.Auto ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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) @@ -202,7 +225,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -249,8 +276,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -306,7 +358,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -319,12 +371,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.TrafficControllerInterfaceUpdate(SubscriptionId, ResourceGroupName, Name, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.TrafficControllerInterfaceUpdate(SubscriptionId, ResourceGroupName, Name, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -344,7 +396,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlb_UpdateExpanded() { @@ -355,12 +407,12 @@ public UpdateAzAlb_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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,15 +429,15 @@ public UpdateAzAlb_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -395,12 +447,12 @@ public UpdateAzAlb_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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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,8 +464,26 @@ public UpdateAzAlb_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateViaIdentityExpanded.cs b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateViaIdentityExpanded.cs index 9e6cae6cccb2..76e5b88ce678 100644 --- a/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateViaIdentityExpanded.cs +++ b/src/Alb/Alb.Autorest/generated/cmdlets/UpdateAzAlb_UpdateViaIdentityExpanded.cs @@ -6,6 +6,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets; using System; /// Update a TrafficController @@ -14,11 +16,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzAlb_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PreviewMessage("Application Gateway for Containers is currently in Preview.")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController))] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Description(@"Update a TrafficController")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}", ApiVersion = "2023-11-01")] public partial class UpdateAzAlb_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext { /// A unique id generatd for the this cmdlet when it is instantiated. private string __correlationId = System.Guid.NewGuid().ToString(); @@ -34,14 +38,29 @@ public partial class UpdateAzAlb_UpdateViaIdentityExpanded : global::System.Mana /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + /// The type used for update operations of the TrafficController. - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.TrafficControllerUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdate _propertiesBody = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.TrafficControllerUpdate(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client => Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.ClientAPI; @@ -55,6 +74,9 @@ public partial class UpdateAzAlb_UpdateViaIdentityExpanded : global::System.Mana [global::Microsoft.Azure.PowerShell.Cmdlets.Alb.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Alb.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -89,7 +111,7 @@ public partial class UpdateAzAlb_UpdateViaIdentityExpanded : global::System.Mana /// /// The instance of the that the remote call will use. /// - private Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.HttpPipeline Pipeline { get; set; } /// 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")] @@ -116,32 +138,32 @@ public partial class UpdateAzAlb_UpdateViaIdentityExpanded : global::System.Mana ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficControllerUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficControllerUpdateTags Tag { get => _propertiesBody.Tag ?? null /* object */; set => _propertiesBody.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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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) @@ -164,7 +186,11 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } } /// Handles/Dispatches events during the call to the REST service. @@ -211,8 +237,33 @@ protected override void EndProcessing() WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } + case Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } } - await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + await Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); if (token.IsCancellationRequested) { return ; @@ -268,7 +319,7 @@ protected override void ProcessRecord() using( NoSynchronizationContext ) { await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Alb.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); @@ -283,7 +334,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.TrafficControllerInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.TrafficControllerInterfaceUpdateViaIdentity(InputObject.Id, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } else { @@ -300,13 +351,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TrafficControllerName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.TrafficControllerInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline); + await this.Client.TrafficControllerInterfaceUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.TrafficControllerName ?? null, _propertiesBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -326,7 +377,7 @@ protected override void StopProcessing() } /// - /// Intializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// public UpdateAzAlb_UpdateViaIdentityExpanded() { @@ -337,12 +388,12 @@ public UpdateAzAlb_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.Alb.Models.Api30.IErrorResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.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 ) { @@ -359,15 +410,15 @@ public UpdateAzAlb_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Alb.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 } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_propertiesBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -377,12 +428,12 @@ public UpdateAzAlb_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.Alb.Models.Api20230501Preview.ITrafficController + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController /// 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 ) { @@ -394,8 +445,26 @@ public UpdateAzAlb_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.ITrafficController - WriteObject((await response)); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } } } } diff --git a/src/Alb/Alb.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs b/src/Alb/Alb.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs new file mode 100644 index 000000000000..d767421c2e41 --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/runtime/Attributes/ExternalDocsAttribute.cs @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb +{ + using System; + using System.Collections.Generic; + using System.Text; + + [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)] + public class ExternalDocsAttribute : Attribute + { + + public string Description { get; } + + public string Url { get; } + + public ExternalDocsAttribute(string url) + { + Url = url; + } + + public ExternalDocsAttribute(string url, string description) + { + Url = url; + Description = description; + } + } +} diff --git a/src/Alb/Alb.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs b/src/Alb/Alb.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs new file mode 100644 index 000000000000..100315d5f38b --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/runtime/Attributes/PSArgumentCompleterAttribute.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; + +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb +{ + public class PSArgumentCompleterAttribute : ArgumentCompleterAttribute + { + internal string[] ResourceTypes; + + public PSArgumentCompleterAttribute(params string[] argumentList) : base(CreateScriptBlock(argumentList)) + { + ResourceTypes = argumentList; + } + + public static ScriptBlock CreateScriptBlock(string[] resourceTypes) + { + List outputResourceTypes = new List(); + foreach (string resourceType in resourceTypes) + { + if (resourceType.Contains(" ")) + { + outputResourceTypes.Add("\'\'" + resourceType + "\'\'"); + } + else + { + outputResourceTypes.Add(resourceType); + } + } + string scriptResourceTypeList = "'" + String.Join("' , '", outputResourceTypes) + "'"; + string script = "param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)\n" + + String.Format("$values = {0}\n", scriptResourceTypeList) + + "$values | Where-Object { $_ -Like \"$wordToComplete*\" -or $_ -Like \"'$wordToComplete*\" } | Sort-Object | ForEach-Object { [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) }"; + ScriptBlock scriptBlock = ScriptBlock.Create(script); + return scriptBlock; + } + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs index e2a5a6e7893e..b3b1361117a1 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -20,11 +20,13 @@ public class ExportFormatPs1xml : PSCmdlet public string FilePath { get; set; } private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.Alb.Models"; - private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.Alb.Support"; + private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; private const string PropertiesExcludedForTableview = @"Id,Type"; private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private static string SelectedBySuffix = @"#Multiple"; + protected override void ProcessRecord() { try @@ -76,7 +78,7 @@ private static View CreateViewModel(ViewParameters viewParameters) Name = viewParameters.Type.FullName, ViewSelectedBy = new ViewSelectedBy { - TypeName = viewParameters.Type.FullName + TypeName = string.Concat(viewParameters.Type.FullName, SelectedBySuffix) }, TableControl = new TableControl { diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index e3413b8e34a7..cc61be38629d 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/Alb/Alb.Autorest/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/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs index f633f51a073c..dddf7a16ae53 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs @@ -24,7 +24,7 @@ public class ExportModelSurface : PSCmdlet public bool UseExpandedFormat { get; set; } private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.Alb.Models"; - private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.Alb.Support"; + private const string SupportNamespace = @"${$project.supportNamespace.fullName}"; protected override void ProcessRecord() { diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 9b6a4e5de180..21323818c7a1 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/Alb/Alb.Autorest/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/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index 944c4559fbe3..1a4ef5f4fc8f 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -137,7 +137,7 @@ protected override void ProcessRecord() } else { - var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().ToPsList(); sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); } @@ -148,8 +148,10 @@ protected override void ProcessRecord() } else { - var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().ToPsList(); + if (!String.IsNullOrEmpty(aliasesList)) { + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + } } // CmdletsToExport diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs index ff3e672fd74f..bbbd5a496eca 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -56,6 +56,31 @@ protected override void ProcessRecord() return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) } } +function Start-TestSleep { + [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] + param( + [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] + [ValidateRange(0.0, 2147483.0)] + [double] $Seconds, + + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] + [ValidateRange('NonNegative')] + [Alias('ms')] + [int] $Milliseconds + ) + + if ($TestMode -ne 'playback') { + switch ($PSCmdlet.ParameterSetName) { + 'SleepBySeconds' { + Start-Sleep -Seconds $Seconds + } + 'SleepByMilliseconds' { + Start-Sleep -Milliseconds $Milliseconds + } + } + } +} + $env = @{} if ($UsePreviousConfigForRecord) { $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index d1665e82c33d..2c7a3f98d0bc 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.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/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index ecb2d48563a6..359d3c2ca72f 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -31,7 +31,7 @@ internal class MarkdownHelpInfo public string[] Inputs { get; } public string[] Outputs { get; } public ComplexInterfaceInfo[] ComplexInterfaceInfos { get; } - public string[] RelatedLinks { get; } + public MarkdownRelatedLinkInfo[] RelatedLinks { get; } public bool SupportsShouldProcess { get; } public bool SupportsPaging { get; } @@ -67,7 +67,11 @@ public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string ComplexInterfaceInfos = variantGroup.ComplexInterfaceInfos; OnlineVersion = commentInfo.OnlineVersion; - RelatedLinks = commentInfo.RelatedLinks; + + var relatedLinkLists = new List(); + relatedLinkLists.AddRange(commentInfo.RelatedLinks?.Select(link => new MarkdownRelatedLinkInfo(link))); + relatedLinkLists.AddRange(variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Distinct()?.Select(link => new MarkdownRelatedLinkInfo(link.Url, link.Description))); + RelatedLinks = relatedLinkLists?.ToArray(); SupportsShouldProcess = variantGroup.SupportsShouldProcess; SupportsPaging = variantGroup.SupportsPaging; @@ -218,14 +222,45 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param } } + internal class MarkdownRelatedLinkInfo + { + public string Url { get; } + public string Description { get; } + + public MarkdownRelatedLinkInfo(string url) + { + Url = url; + } + + public MarkdownRelatedLinkInfo(string url, string description) + { + Url = url; + Description = description; + } + + public override string ToString() + { + if (string.IsNullOrEmpty(Description)) + { + return Url; + } + else + { + return $@"[{Description}]({Url})"; + + } + + } + } + internal static class MarkdownTypesExtensions { public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here (remove the output block if the example doesn't have an output) }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 11cf374b4740..1a0fddb9e2f7 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -121,6 +121,21 @@ public override string ToString() => CompleterInfo != null : String.Empty; } + internal class PSArgumentCompleterOutput : ArgumentCompleterOutput + { + public PSArgumentCompleterInfo PSArgumentCompleterInfo { get; } + + public PSArgumentCompleterOutput(PSArgumentCompleterInfo completerInfo) : base(completerInfo) + { + PSArgumentCompleterInfo = completerInfo; + } + + + public override string ToString() => PSArgumentCompleterInfo != null + ? $"{Indent}[{typeof(PSArgumentCompleterAttribute)}({(PSArgumentCompleterInfo.IsTypeCompleter ? $"[{PSArgumentCompleterInfo.Type.Unwrap().ToPsType()}]" : $"{PSArgumentCompleterInfo.ResourceTypes?.Select(r => $"\"{r}\"")?.JoinIgnoreEmpty(", ")}")})]{Environment.NewLine}" + : String.Empty; + } + internal class DefaultInfoOutput { public bool HasDefaultInfo { get; } @@ -191,8 +206,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.Alb.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.Alb.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.Alb.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Alb.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.Alb.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -262,7 +284,12 @@ private string GetDefaultValuesStatements() var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); var parameterName = defaultInfo.ParameterGroup.ParameterName; sb.AppendLine(); - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + var setCondition = " "; + if (!String.IsNullOrEmpty(defaultInfo.SetCondition)) + { + setCondition = $" -and {defaultInfo.SetCondition}"; + } + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); sb.Append($"{Indent}{Indent}}}"); } @@ -357,6 +384,8 @@ public override string ToString() var notesText = !String.IsNullOrEmpty(notes) ? $"{Environment.NewLine}.Notes{Environment.NewLine}{ComplexParameterHeader}{notes}" : String.Empty; var relatedLinks = String.Join(Environment.NewLine, CommentInfo.RelatedLinks.Select(l => $".Link{Environment.NewLine}{l}")); var relatedLinksText = !String.IsNullOrEmpty(relatedLinks) ? $"{Environment.NewLine}{relatedLinks}" : String.Empty; + var externalUrls = String.Join(Environment.NewLine, CommentInfo.ExternalUrls.Select(l => $".Link{Environment.NewLine}{l}")); + var externalUrlsText = !String.IsNullOrEmpty(externalUrls) ? $"{Environment.NewLine}{externalUrls}" : String.Empty; var examples = ""; foreach (var example in VariantGroup.HelpInfo.Examples) { @@ -369,7 +398,7 @@ public override string ToString() {CommentInfo.Description.ToDescriptionFormat(false)} {examples}{inputsText}{outputsText}{notesText} .Link -{CommentInfo.OnlineVersion}{relatedLinksText} +{CommentInfo.OnlineVersion}{relatedLinksText}{externalUrlsText} #> "; } @@ -563,7 +592,9 @@ public static string ToSyntaxTypeName(this Type type) public static AllowEmptyArrayOutput ToAllowEmptyArray(this bool hasAllowEmptyArray) => new AllowEmptyArrayOutput(hasAllowEmptyArray); - public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => new ArgumentCompleterOutput(completerInfo); + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => (completerInfo is PSArgumentCompleterInfo psArgumentCompleterInfo) ? psArgumentCompleterInfo.ToArgumentCompleterOutput() : new ArgumentCompleterOutput(completerInfo); + + public static PSArgumentCompleterOutput ToArgumentCompleterOutput(this PSArgumentCompleterInfo completerInfo) => new PSArgumentCompleterOutput(completerInfo); public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index eaa7283ddb46..56c7e92e4a57 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -101,12 +101,23 @@ private string DetermineDefaultParameterSetName() if (String.IsNullOrEmpty(defaultParameterSet)) { var variantParamCountGroups = Variants + .Where(v => !v.IsNotSuggestDefaultParameterSet) .Select(v => ( variant: v.VariantName, paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) .GroupBy(vpc => vpc.isSimple) .ToArray(); + if (variantParamCountGroups.Length == 0) + { + variantParamCountGroups = Variants + .Select(v => ( + variant: v.VariantName, + paramCount: v.CmdletOnlyParameters.Count(p => p.IsMandatory), + isSimple: v.CmdletOnlyParameters.Where(p => p.IsMandatory).All(p => p.ParameterType.IsPsSimple()))) + .GroupBy(vpc => vpc.isSimple) + .ToArray(); + } var variantParameterCounts = (variantParamCountGroups.Any(g => g.Key) ? variantParamCountGroups.Where(g => g.Key) : variantParamCountGroups).SelectMany(g => g).ToArray(); var smallestParameterCount = variantParameterCounts.Min(vpc => vpc.paramCount); defaultParameterSet = variantParameterCounts.First(vpc => vpc.paramCount == smallestParameterCount).variant; @@ -135,6 +146,7 @@ internal class Variant public Parameter[] CmdletOnlyParameters { get; } public bool IsInternal { get; } public bool IsDoNotExport { get; } + public bool IsNotSuggestDefaultParameterSet { get; } public string[] Profiles { get; } public Variant(string cmdletName, string variantName, CommandInfo info, CommandMetadata metadata, bool hasParameterSets = false, PsHelpInfo helpInfo = null) @@ -155,6 +167,7 @@ public Variant(string cmdletName, string variantName, CommandInfo info, CommandM Parameters = this.ToParameters().OrderBy(p => p.OrderCategory).ThenByDescending(p => p.IsMandatory).ToArray(); IsInternal = Attributes.OfType().Any(); IsDoNotExport = Attributes.OfType().Any(); + IsNotSuggestDefaultParameterSet = Attributes.OfType().Any(); CmdletOnlyParameters = Parameters.Where(p => !p.Categories.Any(c => c == ParameterCategory.Azure || c == ParameterCategory.Runtime)).ToArray(); Profiles = Attributes.OfType().SelectMany(pa => pa.Profiles).ToArray(); } @@ -210,6 +223,7 @@ public ParameterGroup(string parameterName, Parameter[] parameters, string[] all HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); HasAllowEmptyArray = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() + ?? Parameters.Select(p => p.PSArgumentCompleterAttribute).FirstOrDefault()?.ToPSArgumentCompleterInfo() ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) ?? Parameters.Select(p => p.DefaultValueAttribute).FirstOrDefault(dv => dv != null)?.ToDefaultInfo(this); @@ -254,6 +268,7 @@ internal class Parameter public bool SupportsWildcards { get; } public CompleterInfoAttribute CompleterInfoAttribute { get; } public ArgumentCompleterAttribute ArgumentCompleterAttribute { get; } + public PSArgumentCompleterAttribute PSArgumentCompleterAttribute { get; } public bool ValueFromPipeline { get; } public bool ValueFromPipelineByPropertyName { get; } @@ -286,7 +301,8 @@ public Parameter(string variantName, string parameterName, ParameterMetadata met } SupportsWildcards = Attributes.OfType().Any(); CompleterInfoAttribute = Attributes.OfType().FirstOrDefault(); - ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + PSArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(); + ArgumentCompleterAttribute = Attributes.OfType().FirstOrDefault(attr => !attr.GetType().Equals(typeof(PSArgumentCompleterAttribute))); ValueFromPipeline = ParameterAttribute.ValueFromPipeline; ValueFromPipelineByPropertyName = ParameterAttribute.ValueFromPipelineByPropertyName; @@ -366,6 +382,7 @@ internal class CommentInfo public string OnlineVersion { get; } public string[] RelatedLinks { get; } + public string[] ExternalUrls { get; } private const string HelpLinkPrefix = @"https://learn.microsoft.com/powershell/module/"; @@ -391,6 +408,9 @@ public CommentInfo(VariantGroup variantGroup) var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant(); OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}"; RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); + + // Get external urls from attribute + ExternalUrls = variantGroup.Variants.SelectMany(v => v.Attributes).OfType()?.Select(e => e.Url)?.Distinct()?.ToArray(); } } @@ -420,11 +440,22 @@ public CompleterInfo(ArgumentCompleterAttribute completerAttribute) } } + internal class PSArgumentCompleterInfo: CompleterInfo + { + public string[] ResourceTypes { get; } + + public PSArgumentCompleterInfo(PSArgumentCompleterAttribute completerAttribute) : base(completerAttribute) + { + ResourceTypes = completerAttribute.ResourceTypes; + } + } + internal class DefaultInfo { public string Name { get; } public string Description { get; } public string Script { get; } + public string SetCondition { get; } public ParameterGroup ParameterGroup { get; } public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) @@ -432,6 +463,7 @@ public DefaultInfo(DefaultInfoAttribute infoAttribute, ParameterGroup parameterG Name = infoAttribute.Name; Description = infoAttribute.Description; Script = infoAttribute.Script; + SetCondition = infoAttribute.SetCondition; ParameterGroup = parameterGroup; } @@ -507,7 +539,7 @@ public static ComplexInterfaceInfo ToComplexInterfaceInfo(this InfoAttribute inf public static CompleterInfo ToCompleterInfo(this CompleterInfoAttribute infoAttribute) => new CompleterInfo(infoAttribute); public static CompleterInfo ToCompleterInfo(this ArgumentCompleterAttribute completerAttribute) => new CompleterInfo(completerAttribute); - + public static PSArgumentCompleterInfo ToPSArgumentCompleterInfo(this PSArgumentCompleterAttribute completerAttribute) => new PSArgumentCompleterInfo(completerAttribute); public static DefaultInfo ToDefaultInfo(this DefaultInfoAttribute infoAttribute, ParameterGroup parameterGroup) => new DefaultInfo(infoAttribute, parameterGroup); public static DefaultInfo ToDefaultInfo(this PSDefaultValueAttribute defaultValueAttribute, ParameterGroup parameterGroup) => new DefaultInfo(defaultValueAttribute, parameterGroup); } diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 4cab84ba5a23..333ad74780b7 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -48,6 +48,18 @@ public ProfileAttribute(params string[] profiles) } } + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + + [AttributeUsage(AttributeTargets.Class)] + public class NotSuggestDefaultParameterSetAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class CategoryAttribute : Attribute { @@ -102,6 +114,11 @@ public enum PropertyOrigin Inlined } + [AttributeUsage(AttributeTargets.Property)] + public class ConstantAttribute : Attribute + { + } + [AttributeUsage(AttributeTargets.Property)] public class FormatTableAttribute : Attribute { diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsExtensions.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsExtensions.cs index 1fe8be8fdc74..93651e677f9a 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsExtensions.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsExtensions.cs @@ -13,6 +13,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PowerShell { internal static class PsExtensions { + public static PSObject AddMultipleTypeNameIntoPSObject(this object obj, string multipleTag = "#Multiple") + { + var psObj = new PSObject(obj); + psObj.TypeNames.Insert(0, $"{psObj.TypeNames[0]}{multipleTag}"); + return psObj; + } + // https://stackoverflow.com/a/863944/294804 // https://stackoverflow.com/a/4452598/294804 // https://stackoverflow.com/a/28701974/294804 diff --git a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsHelpers.cs b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsHelpers.cs index 5064b4562978..757e892bb848 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsHelpers.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/BuildTime/PsHelpers.cs @@ -67,7 +67,7 @@ public static IEnumerable GetScriptHelpInfo(params string[] modulePath public static IEnumerable GetModuleCmdletsAndHelpInfo(PSCmdlet cmdlet, params string[] modulePaths) { - var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => + var getCmdletAndHelp = String.Join(" + ", modulePaths.Select(mp => $@"(Get-Command -Module (Import-Module '{mp}' -PassThru) | Where-Object {{ $_.CommandType -ne 'Alias' }} | ForEach-Object {{ @{{ CommandInfo = $_; HelpInfo = ( invoke-command {{ try {{ Get-Help -Name $_.Name -Full }} catch{{ '' }} }} ) }} }})" )); return (cmdlet?.RunScript(getCmdletAndHelp) ?? RunScript(getCmdletAndHelp)) @@ -88,7 +88,7 @@ public static Guid ReadGuidFromPsd1(string psd1Path) if (File.Exists(psd1Path)) { var currentGuid = File.ReadAllLines(psd1Path) - .FirstOrDefault(l => l.StartsWith(GuidStart))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) + .FirstOrDefault(l => l.TrimStart().StartsWith(GuidStart.TrimStart()))?.Split(new[] { " = " }, StringSplitOptions.RemoveEmptyEntries) .LastOrDefault()?.Replace("'", String.Empty); guid = currentGuid != null ? Guid.Parse(currentGuid) : guid; } diff --git a/src/Alb/Alb.Autorest/generated/runtime/Context.cs b/src/Alb/Alb.Autorest/generated/runtime/Context.cs new file mode 100644 index 000000000000..77127d54040f --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/runtime/Context.cs @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime +{ + + using System; + using System.Linq; + using System.Collections; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + using GetEventData = System.Func; + using static Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Extensions; + + /// + /// The IContext Interface defines the communication mechanism for input customization. + /// + /// + /// In the context, we will have client, pipeline, PSBoundParamters, default EventListener, Cancellation. + /// + public interface IContext + { + System.Management.Automation.InvocationInfo InvocationInformation { get; set; } + System.Threading.CancellationTokenSource CancellationTokenSource { get; set; } + System.Collections.Generic.IDictionary ExtensibleParameters { get; } + HttpPipeline Pipeline { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.Alb.Alb Client { get; } + } +} diff --git a/src/Alb/Alb.Autorest/generated/runtime/Events.cs b/src/Alb/Alb.Autorest/generated/runtime/Events.cs index 9d11cdc7f0dd..ca6f1c090edb 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/Events.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/Events.cs @@ -22,6 +22,6 @@ public static partial class Events public const string FollowingNextLink = nameof(FollowingNextLink); public const string DelayBeforePolling = nameof(DelayBeforePolling); public const string Polling = nameof(Polling); - + public const string Progress = nameof(Progress); } -} \ No newline at end of file +} diff --git a/src/Alb/Alb.Autorest/generated/runtime/ISendAsync.cs b/src/Alb/Alb.Autorest/generated/runtime/ISendAsync.cs index 3b231ef6d5ce..948a8fbff557 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/ISendAsync.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/ISendAsync.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime using System.Threading.Tasks; using System.Collections; using System.Linq; + using System; + /// /// The interface for sending an HTTP request across the wire. @@ -70,6 +72,7 @@ public interface ISendAsyncTerminalFactory public partial class HttpPipeline : ISendAsync { + private const int DefaultMaxRetry = 3; private ISendAsync pipeline; private ISendAsyncTerminalFactory terminal; private List steps = new List(); @@ -92,6 +95,111 @@ public HttpPipeline(ISendAsyncTerminalFactory terminalStep) /// public HttpPipeline Clone() => new HttpPipeline(terminal) { steps = this.steps.ToList(), pipeline = this.pipeline }; + private bool shouldRetry429(HttpResponseMessage response) + { + if (response.StatusCode == (System.Net.HttpStatusCode)429) + { + var retryAfter = response.Headers.RetryAfter; + if (retryAfter != null && retryAfter.Delta.HasValue) + { + return true; + } + } + return false; + } + /// + /// The step to handle 429 response with retry-after header. + /// + public async Task Retry429(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + int retryCount = int.MaxValue; + + try + { + try + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES_FOR_429")); + } + finally + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES_FOR_429")); + } + } + catch (System.Exception) + { + //no action + } + var cloneRequest = await request.CloneWithContent(); + var response = await next.SendAsync(request, callback); + int count = 0; + while (shouldRetry429(response) && count++ < retryCount) + { + request = await cloneRequest.CloneWithContent(); + var retryAfter = response.Headers.RetryAfter; + await Task.Delay(retryAfter.Delta.Value, callback.Token); + await callback.Signal("Debug", $"Start to retry {count} time(s) on status code 429 after waiting {retryAfter.Delta.Value.TotalSeconds} seconds."); + response = await next.SendAsync(request, callback); + } + return response; + } + + private bool shouldRetryError(HttpResponseMessage response) + { + if (response.StatusCode >= System.Net.HttpStatusCode.InternalServerError) + { + if (response.StatusCode != System.Net.HttpStatusCode.NotImplemented && + response.StatusCode != System.Net.HttpStatusCode.HttpVersionNotSupported) + { + return true; + } + } + else if (response.StatusCode == System.Net.HttpStatusCode.RequestTimeout) + { + return true; + } + else if (response.StatusCode == (System.Net.HttpStatusCode)429 && response.Headers.RetryAfter == null) + { + return true; + } + return false; + } + + /// + /// Returns true if status code in HttpRequestExceptionWithStatus exception is greater + /// than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505). + /// Or it's 429 (TOO MANY REQUESTS) without Retry-After header. + /// + public async Task RetryError(HttpRequestMessage request, IEventListener callback, ISendAsync next) + { + int retryCount = DefaultMaxRetry; + + try + { + try + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("PS_HTTP_MAX_RETRIES")); + } + finally + { + retryCount = int.Parse(System.Environment.GetEnvironmentVariable("AZURE_PS_HTTP_MAX_RETRIES")); + } + } + catch (System.Exception) + { + //no action + } + var cloneRequest = await request.CloneWithContent(); + var response = await next.SendAsync(request, callback); + int count = 0; + while (shouldRetryError(response) && count++ < retryCount) + { + await callback.Signal("Debug", $"Start to retry {count} time(s) on status code {response.StatusCode}"); + request = await cloneRequest.CloneWithContent(); + response = await next.SendAsync(request, callback); + } + return response; + } + public ISendAsyncTerminalFactory TerminalFactory { get => terminal; @@ -117,6 +225,11 @@ public ISendAsync Pipeline // create the pipeline from scratch. var next = terminal.Create(); + if (Convert.ToBoolean(@"true")) + { + next = (new SendAsyncFactory(Retry429)).Create(next) ?? next; + next = (new SendAsyncFactory(RetryError)).Create(next) ?? next; + } foreach (var factory in steps) { // skip factories that return null. diff --git a/src/Alb/Alb.Autorest/generated/runtime/InfoAttribute.cs b/src/Alb/Alb.Autorest/generated/runtime/InfoAttribute.cs index 4ff3011e1f17..669136b7e33e 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/InfoAttribute.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/InfoAttribute.cs @@ -11,6 +11,9 @@ public class InfoAttribute : Attribute { public bool Required { get; set; } = false; public bool ReadOnly { get; set; } = false; + public bool Read { get; set; } = true; + public bool Create { get; set; } = true; + public bool Update { get; set; } = true; public Type[] PossibleTypes { get; set; } = new Type[0]; public string Description { get; set; } = ""; public string SerializedName { get; set; } = ""; @@ -30,5 +33,6 @@ public class DefaultInfoAttribute : Attribute public string Script { get; set; } = ""; public string Name { get; set; } = ""; public string Description { get; set; } = ""; + public string SetCondition { get; set; } = ""; } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/runtime/InputHandler.cs b/src/Alb/Alb.Autorest/generated/runtime/InputHandler.cs new file mode 100644 index 000000000000..c196eba5701e --- /dev/null +++ b/src/Alb/Alb.Autorest/generated/runtime/InputHandler.cs @@ -0,0 +1,22 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.Cmdlets +{ + public abstract class InputHandler + { + protected InputHandler NextHandler = null; + + public void SetNextHandler(InputHandler nextHandler) + { + this.NextHandler = nextHandler; + } + + public abstract void Process(Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.IContext context); + } +} \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/runtime/MessageAttribute.cs b/src/Alb/Alb.Autorest/generated/runtime/MessageAttribute.cs index 4b77ee96fdbe..4246508c6279 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/MessageAttribute.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/MessageAttribute.cs @@ -168,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; @@ -175,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) + { + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) { - psCmdlet.WriteWarning(this._message); + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) diff --git a/src/Alb/Alb.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/Alb/Alb.Autorest/generated/runtime/MessageAttributeHelper.cs index b52930e9d191..45c6fc766bd7 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/MessageAttributeHelper.cs +++ b/src/Alb/Alb.Autorest/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/Alb/Alb.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs b/src/Alb/Alb.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs index 005e8ec61dd3..605ea8175f59 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/Nodes/Collections/XNodeArray.cs @@ -21,6 +21,11 @@ internal XNodeArray(params JsonNode[] values) items = new List(values); } + internal XNodeArray(System.Collections.Generic.List values) + { + items = new List(values); + } + public override JsonNode this[int index] => items[index]; internal override JsonType? ElementType => null; diff --git a/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.Designer.cs index a178ca891a81..1324ef306dc3 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.Designer.cs @@ -3135,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 { diff --git a/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.resx b/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.resx index 613700a3a418..a08a2e50172b 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.resx +++ b/src/Alb/Alb.Autorest/generated/runtime/Properties/Resources.resx @@ -1736,7 +1736,10 @@ 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}' diff --git a/src/Alb/Alb.Autorest/generated/runtime/SerializationMode.cs b/src/Alb/Alb.Autorest/generated/runtime/SerializationMode.cs index bb0da403337f..a299ccaeff13 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/SerializationMode.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/SerializationMode.cs @@ -9,8 +9,10 @@ public enum SerializationMode { None = 0, IncludeHeaders = 1 << 0, - IncludeReadOnly = 1 << 1, - - IncludeAll = IncludeHeaders | IncludeReadOnly + IncludeRead = 1 << 1, + IncludeCreate = 1 << 2, + IncludeUpdate = 1 << 3, + IncludeAll = IncludeHeaders | IncludeRead | IncludeCreate | IncludeUpdate, + IncludeCreateOrUpdate = IncludeCreate | IncludeUpdate } } \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/generated/runtime/TypeConverterExtensions.cs b/src/Alb/Alb.Autorest/generated/runtime/TypeConverterExtensions.cs index 7a47f4a9c098..8a2ff1f3bb92 100644 --- a/src/Alb/Alb.Autorest/generated/runtime/TypeConverterExtensions.cs +++ b/src/Alb/Alb.Autorest/generated/runtime/TypeConverterExtensions.cs @@ -62,6 +62,56 @@ internal static T[] SelectToArray(object source, System.Func return result.ToArray(); } + internal static System.Collections.Generic.List SelectToList(object source, System.Func converter) + { + // null begets null + if (source == null) + { + return null; + } + + // single values and strings are just encapsulated in the array. + if (source is string || !(source is System.Collections.IEnumerable)) + { + try + { + return new T[] { (T)converter(source) }.ToList(); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + return new T[0].ToList(); // empty result if couldn't convert. + } + + var result = new System.Collections.Generic.List(); + foreach (var each in (System.Collections.IEnumerable)source) + { + try + { + result.Add((T)converter(each)); + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + // silent conversion fail + } +#endif + } + return result; + } internal static System.Collections.Generic.IEnumerable GetPropertyKeys(this System.Collections.Generic.IDictionary dictionary) { if (null != dictionary) diff --git a/src/Alb/Alb.Autorest/help/Az.Alb.md b/src/Alb/Alb.Autorest/help/Az.Alb.md new file mode 100644 index 000000000000..7392dd0e83da --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Az.Alb.md @@ -0,0 +1,49 @@ +--- +Module Name: Az.Alb +Module Guid: 593f5094-e96e-4646-9c96-5342db09e51a +Download Help Link: https://learn.microsoft.com/powershell/module/az.alb +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.Alb Module +## Description +Microsoft Azure PowerShell: Alb cmdlets + +## Az.Alb Cmdlets +### [Get-AzAlb](Get-AzAlb.md) +Get a TrafficController + +### [Get-AzAlbAssociation](Get-AzAlbAssociation.md) +Get a Association + +### [Get-AzAlbFrontend](Get-AzAlbFrontend.md) +Get a Frontend + +### [New-AzAlb](New-AzAlb.md) +Create a TrafficController + +### [New-AzAlbAssociation](New-AzAlbAssociation.md) +Create a Association + +### [New-AzAlbFrontend](New-AzAlbFrontend.md) +Create a Frontend + +### [Remove-AzAlb](Remove-AzAlb.md) +Delete a TrafficController + +### [Remove-AzAlbAssociation](Remove-AzAlbAssociation.md) +Delete a Association + +### [Remove-AzAlbFrontend](Remove-AzAlbFrontend.md) +Delete a Frontend + +### [Update-AzAlb](Update-AzAlb.md) +Update a TrafficController + +### [Update-AzAlbAssociation](Update-AzAlbAssociation.md) +Update a Association + +### [Update-AzAlbFrontend](Update-AzAlbFrontend.md) +Update a Frontend + diff --git a/src/Alb/Alb.Autorest/help/Get-AzAlb.md b/src/Alb/Alb.Autorest/help/Get-AzAlb.md new file mode 100644 index 000000000000..9427a951f8d7 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Get-AzAlb.md @@ -0,0 +1,176 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalb +schema: 2.0.0 +--- + +# Get-AzAlb + +## SYNOPSIS +Get a TrafficController + +## SYNTAX + +### List (Default) +``` +Get-AzAlb [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzAlb -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzAlb -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzAlb -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a TrafficController + +## EXAMPLES + +### Example 1: Get a specified Application Gateway for Containers resource +```powershell +Get-AzAlb -Name test-alb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location ProvisioningState +---- ----------------- -------- ----------------- +test-alb 1bcdr NorthCentralUS Succeeded +``` + +This command shows a specific Application Gateway for Containers resource. + +### Example 2: List Application Gateway for Containers resources for a resource group +```powershell +Get-AzAlb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location ProvisioningState +---- ----------------- -------- ----------------- +AGfC test-rg northcentralus Succeeded +``` + +This command lists all Application Gateway for Containers resources belonging to a specific resource group. + +### Example 3: List Application Gateway for Containers resources for a subscription +```powershell +Get-AzAlb +``` + +```output +Name ResourceGroupName Location ProvisioningState +---- ----------------- -------- ----------------- +AGfC agfc-aks northcentralus Succeeded +test-alb 00 westeurope Succeeded +``` + +This command lists all Application Gateway for Containers resources belonging to the current subscription context. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +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: Get, List1 +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: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Get-AzAlbAssociation.md b/src/Alb/Alb.Autorest/help/Get-AzAlbAssociation.md new file mode 100644 index 000000000000..906e5ccbfa8c --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Get-AzAlbAssociation.md @@ -0,0 +1,196 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation +schema: 2.0.0 +--- + +# Get-AzAlbAssociation + +## SYNOPSIS +Get a Association + +## SYNTAX + +### List (Default) +``` +Get-AzAlbAssociation -AlbName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzAlbAssociation -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzAlbAssociation -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityTrafficController +``` +Get-AzAlbAssociation -Name -TrafficControllerInputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Association + +## EXAMPLES + +### Example 1: Get a specified Application Gateway for Containers association resource +```powershell +Get-AzAlbAssociation -Name association1 -AlbName test-alb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location AssociationType SubnetId Provisioni + ngState +---- ----------------- -------- --------------- -------- ---------- +association1 test-rg NorthCentralUS subnets /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/primary-VNET/subnets/alb-primary-subnet Succeeded +``` + +This command shows a specific Application Gateway for Containers association resource. + +### Example 2: List associations for a given Application Gateway for Containers resource +```powershell +Get-AzAlbAssociation -AlbName test-alb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location AssociationType SubnetId Provisioni + ngState +---- ----------------- -------- --------------- -------- ---------- +association1 test-rg NorthCentralUS subnets /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/primary-VNET/subnets/alb-primary-subnet Succeeded +``` + +This command lists all Application Gateway for Containers association resources belonging to a specific Application Gateway for Containers resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of Association + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityTrafficController +Aliases: + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Get-AzAlbFrontend.md b/src/Alb/Alb.Autorest/help/Get-AzAlbFrontend.md new file mode 100644 index 000000000000..8affa12d39a4 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Get-AzAlbFrontend.md @@ -0,0 +1,195 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalbfrontend +schema: 2.0.0 +--- + +# Get-AzAlbFrontend + +## SYNOPSIS +Get a Frontend + +## SYNTAX + +### List (Default) +``` +Get-AzAlbFrontend -AlbName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzAlbFrontend -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityTrafficController +``` +Get-AzAlbFrontend -Name -TrafficControllerInputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Frontend + +## EXAMPLES + +### Example 1: Get a specified Application Gateway for Containers frontend resource +```powershell +Get-AzAlbFrontend -Name test-frontend -AlbName test-alb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location Fqdn ProvisioningState +---- ----------------- -------- ---- ----------------- +test-frontend test-rg northcentralus c70d8be2a2d358417f901f8264d4bc32.fz54.alb.azure.com Succeeded +``` + +This command shows a specific Application Gateway for Containers frontend resource. + +### Example 2: List frontends for a given Application Gateway for Containers resource +```powershell +Get-AzAlbFrontend -AlbName test-alb -ResourceGroupName test-rg +``` + +```output +Name ResourceGroupName Location Fqdn ProvisioningState +---- ----------------- -------- ---- ----------------- +test-frontend2 test-rg northcentralus e853d603ee81f4af13e83a6df300045d.fz85.alb.azure.com Succeeded +test-frontend test-rg northcentralus c70d8be2a2d358417f901f8264d4bc32.fz54.alb.azure.com Succeeded +``` + +This command lists all Application Gateway for Containers frontend resources belonging to a specific Application Gateway for Containers resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Frontends + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityTrafficController +Aliases: + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/New-AzAlb.md b/src/Alb/Alb.Autorest/help/New-AzAlb.md new file mode 100644 index 000000000000..617657e08155 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/New-AzAlb.md @@ -0,0 +1,205 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalb +schema: 2.0.0 +--- + +# New-AzAlb + +## SYNOPSIS +Create a TrafficController + +## SYNTAX + +``` +New-AzAlb -Name -ResourceGroupName -Location [-SubscriptionId ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a TrafficController + +## EXAMPLES + +### Example 1: Create a new Application Gateway for Containers resource +```powershell +New-AzAlb -Name test-alb -ResourceGroupName test-rg -Location NorthCentralUS +``` + +```output +Name ResourceGroupName Location ProvisioningState +---- ----------------- -------- ----------------- +test-alb test-rg NorthCentralUS Succeeded +``` + +This command creates a new Application Gateway for Containers resource. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/New-AzAlbAssociation.md b/src/Alb/Alb.Autorest/help/New-AzAlbAssociation.md new file mode 100644 index 000000000000..505e09bc1cfe --- /dev/null +++ b/src/Alb/Alb.Autorest/help/New-AzAlbAssociation.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalbassociation +schema: 2.0.0 +--- + +# New-AzAlbAssociation + +## SYNOPSIS +Create a Association + +## SYNTAX + +``` +New-AzAlbAssociation -AlbName -Name -ResourceGroupName -Location + [-SubscriptionId ] [-SubnetId ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a Association + +## EXAMPLES + +### Example 1: Create a new Application Gateway for Containers association resource +```powershell +New-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/alb-subnet +``` + +```output +Name ResourceGroupName Location AssociationType SubnetId ProvisioningState +---- ----------------- -------- --------------- -------- ----------------- +test-association test-rg NorthCentralUS subnets /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet01/subnets/alb-subnet Succeeded +``` + +This command creates a new Application Gateway for Containers association resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of Association + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -SubnetId +Association ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/New-AzAlbFrontend.md b/src/Alb/Alb.Autorest/help/New-AzAlbFrontend.md new file mode 100644 index 000000000000..6b21609444b7 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/New-AzAlbFrontend.md @@ -0,0 +1,221 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalbfrontend +schema: 2.0.0 +--- + +# New-AzAlbFrontend + +## SYNOPSIS +Create a Frontend + +## SYNTAX + +``` +New-AzAlbFrontend -AlbName -Name -ResourceGroupName -Location + [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Create a Frontend + +## EXAMPLES + +### Example 1: Create a new Application Gateway for Containers frontend resource +```powershell +New-AzAlbFrontend -Name alb-frontend -AlbName test-alb -ResourceGroupName test-rg -Location NorthCentralUS +``` + +```output +Name ResourceGroupName Location Fqdn ProvisioningState +---- ----------------- -------- ---- ----------------- +alb-frontend test-rg northcentralus d11eeb0c9547bed828e7ae249c424c55.fz05.alb.azure.com Succeeded +``` + +This command creates a new Application Gateway for Containers frontend resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Frontends + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/README.md b/src/Alb/Alb.Autorest/help/README.md new file mode 100644 index 000000000000..59b5f7413c9b --- /dev/null +++ b/src/Alb/Alb.Autorest/help/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.Alb` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.Alb` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/Alb/Alb.Autorest/help/Remove-AzAlb.md b/src/Alb/Alb.Autorest/help/Remove-AzAlb.md new file mode 100644 index 000000000000..1d140e189ae6 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Remove-AzAlb.md @@ -0,0 +1,209 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalb +schema: 2.0.0 +--- + +# Remove-AzAlb + +## SYNOPSIS +Delete a TrafficController + +## SYNTAX + +### Delete (Default) +``` +Remove-AzAlb -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzAlb -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a TrafficController + +## EXAMPLES + +### Example 1: Remove an Application Gateway for Containers resource +```powershell +Remove-AzAlb -Name test-alb -ResourceGroupName test-rg +``` + +This command removes an Application Gateway for Containers resource. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Remove-AzAlbAssociation.md b/src/Alb/Alb.Autorest/help/Remove-AzAlbAssociation.md new file mode 100644 index 000000000000..75af64d32755 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Remove-AzAlbAssociation.md @@ -0,0 +1,247 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation +schema: 2.0.0 +--- + +# Remove-AzAlbAssociation + +## SYNOPSIS +Delete a Association + +## SYNTAX + +### Delete (Default) +``` +Remove-AzAlbAssociation -AlbName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzAlbAssociation -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityTrafficController +``` +Remove-AzAlbAssociation -Name -TrafficControllerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Association + +## EXAMPLES + +### Example 1: Remove an Application Gateway for Containers association resource +```powershell +Remove-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupName test-rg +``` + +This command removes an Application Gateway for Containers association resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of Association + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Remove-AzAlbFrontend.md b/src/Alb/Alb.Autorest/help/Remove-AzAlbFrontend.md new file mode 100644 index 000000000000..ca1d54befa8e --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Remove-AzAlbFrontend.md @@ -0,0 +1,246 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalbfrontend +schema: 2.0.0 +--- + +# Remove-AzAlbFrontend + +## SYNOPSIS +Delete a Frontend + +## SYNTAX + +### Delete (Default) +``` +Remove-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzAlbFrontend -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityTrafficController +``` +Remove-AzAlbFrontend -Name -TrafficControllerInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Frontend + +## EXAMPLES + +### Example 1: Remove an Application Gateway for Containers frontend resource +```powershell +Remove-AzAlbFrontend -Name alb-frontend -AlbName test-alb -ResourceGroupName test-rg +``` + +This command removes an Application Gateway for Containers frontend resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Frontends + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Update-AzAlb.md b/src/Alb/Alb.Autorest/help/Update-AzAlb.md new file mode 100644 index 000000000000..ac8047645bbe --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Update-AzAlb.md @@ -0,0 +1,179 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalb +schema: 2.0.0 +--- + +# Update-AzAlb + +## SYNOPSIS +Update a TrafficController + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAlb -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAlb -InputObject [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update a TrafficController + +## EXAMPLES + +### Example 1: Update Application Gateway for Containers resource with tag +```powershell +Update-AzAlb -Name test-alb -ResourceGroupName test-rg -Tag @{TestTag="Test tag value"} +``` + +This command updates tag values for an Application Gateway for Containers resource. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +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 +``` + +### -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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.ITrafficController + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Update-AzAlbAssociation.md b/src/Alb/Alb.Autorest/help/Update-AzAlbAssociation.md new file mode 100644 index 000000000000..f6337d241ebf --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Update-AzAlbAssociation.md @@ -0,0 +1,248 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalbassociation +schema: 2.0.0 +--- + +# Update-AzAlbAssociation + +## SYNOPSIS +Update a Association + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAlbAssociation -AlbName -Name -ResourceGroupName + [-SubscriptionId ] [-AssociationType ] [-SubnetId ] [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAlbAssociation -InputObject [-AssociationType ] [-SubnetId ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityTrafficControllerExpanded +``` +Update-AzAlbAssociation -Name -TrafficControllerInputObject + [-AssociationType ] [-SubnetId ] [-Tag ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Update a Association + +## EXAMPLES + +### Example 1: Update Application Gateway for Containers association resource with tag +```powershell +Update-AzAlbAssociation -Name test-association -AlbName test-alb -ResourceGroupName test-rg -Tag @{TestTag="Test tag value"} +``` + +This command updates tag values for an Application Gateway for Containers association resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AssociationType +Association Type + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of Association + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityTrafficControllerExpanded +Aliases: + +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 +``` + +### -SubnetId +Association ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityTrafficControllerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAssociation + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/help/Update-AzAlbFrontend.md b/src/Alb/Alb.Autorest/help/Update-AzAlbFrontend.md new file mode 100644 index 000000000000..833eb2c4eed2 --- /dev/null +++ b/src/Alb/Alb.Autorest/help/Update-AzAlbFrontend.md @@ -0,0 +1,216 @@ +--- +external help file: +Module Name: Az.Alb +online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalbfrontend +schema: 2.0.0 +--- + +# Update-AzAlbFrontend + +## SYNOPSIS +Update a Frontend + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAlbFrontend -InputObject [-Tag ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityTrafficControllerExpanded +``` +Update-AzAlbFrontend -Name -TrafficControllerInputObject [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a Frontend + +## EXAMPLES + +### Example 1: Update Application Gateway for Containers frontend resource with tag +```powershell +Update-AzAlbFrontend -Name test-frontend -AlbName test-alb -ResourceGroupName test-rg -Tag @{TestTag="Test tag value"} +``` + +This command updates tag values for an Application Gateway for Containers frontend resource. + +## PARAMETERS + +### -AlbName +traffic controller name for path + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Frontends + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityTrafficControllerExpanded +Aliases: + +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 +``` + +### -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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityTrafficControllerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.Alb.Models.IAlbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IFrontend + +## NOTES + +## RELATED LINKS + diff --git a/src/Alb/Alb.Autorest/internal/Get-AzAlbOperation.ps1 b/src/Alb/Alb.Autorest/internal/Get-AzAlbOperation.ps1 index 4cbcbbe83b0f..784bd9e55469 100644 --- a/src/Alb/Alb.Autorest/internal/Get-AzAlbOperation.ps1 +++ b/src/Alb/Alb.Autorest/internal/Get-AzAlbOperation.ps1 @@ -25,12 +25,12 @@ List the operations for the provider {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalboperation #> function Get-AzAlbOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/Alb/Alb.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Alb/Alb.Autorest/internal/ProxyCmdletDefinitions.ps1 index 4cbcbbe83b0f..784bd9e55469 100644 --- a/src/Alb/Alb.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Alb/Alb.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -25,12 +25,12 @@ List the operations for the provider {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation +Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation .Link https://learn.microsoft.com/powershell/module/az.alb/get-azalboperation #> function Get-AzAlbOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api30.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/Alb/Alb.Autorest/run-module.ps1 b/src/Alb/Alb.Autorest/run-module.ps1 index 968337d6b5bb..e59bd329bbe9 100644 --- a/src/Alb/Alb.Autorest/run-module.ps1 +++ b/src/Alb/Alb.Autorest/run-module.ps1 @@ -12,19 +12,19 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Code) +param([switch]$NotIsolated, [switch]$Code) $ErrorActionPreference = 'Stop' -if(-not $Isolated) { +if(-not $NotIsolated) { Write-Host -ForegroundColor Green 'Creating isolated process...' $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated return } $isAzure = $true if($isAzure) { - . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts + . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts # Load the latest version of Az.Accounts installed Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version } diff --git a/src/Alb/Alb.Autorest/test-module.ps1 b/src/Alb/Alb.Autorest/test-module.ps1 index a438cdecbbc3..c5112e070bcb 100644 --- a/src/Alb/Alb.Autorest/test-module.ps1 +++ b/src/Alb/Alb.Autorest/test-module.ps1 @@ -12,17 +12,17 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) +param([switch]$NotIsolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) $ErrorActionPreference = 'Stop' -if(-not $Isolated) +if(-not $NotIsolated) { Write-Host -ForegroundColor Green 'Creating isolated process...' if ($PSBoundParameters.ContainsKey("TestName")) { $PSBoundParameters["TestName"] = $PSBoundParameters["TestName"] -join "," } $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path - & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated return } @@ -34,7 +34,7 @@ if ($PSBoundParameters.ContainsKey("TestName") -and ($TestName.count -eq 1) -and $ProgressPreference = 'SilentlyContinue' $baseName = $PSScriptRoot.BaseName $requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) -. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -NotIsolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule . ("$PSScriptRoot\test\utils.ps1") if ($requireResourceModule) @@ -91,4 +91,4 @@ try } } -Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file +Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/Alb/Alb.Autorest/test/Get-AzAlb.Recording.json b/src/Alb/Alb.Autorest/test/Get-AzAlb.Recording.json index 624a03181b54..97d75e1c275a 100644 --- a/src/Alb/Alb.Autorest/test/Get-AzAlb.Recording.json +++ b/src/Alb/Alb.Autorest/test/Get-AzAlb.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzAlb+[NoContext]+List+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-05-01-preview+1": { + "Get-AzAlb+[NoContext]+List+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "2d4e2600-a135-409f-82d0-aa22e7b64e57" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "e3a78102-739a-4481-bc0e-a95fc5a7cde2" ], "CommandName": [ "Get-AzAlb" ], "FullCommandName": [ "Get-AzAlb_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "", "", "", "" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], - "x-ms-request-id": [ "43970f32-ff17-4f6f-aed2-524a6d966eb7" ], - "x-ms-correlation-request-id": [ "43970f32-ff17-4f6f-aed2-524a6d966eb7" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044017Z:43970f32-ff17-4f6f-aed2-524a6d966eb7" ], + "x-ms-request-id": [ "19aefde1-3c9f-46c2-a39c-31d873d3c30b" ], + "x-ms-correlation-request-id": [ "19aefde1-3c9f-46c2-a39c-31d873d3c30b" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215628Z:19aefde1-3c9f-46c2-a39c-31d873d3c30b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:17 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CA7B404BF00C4459B31EA6F5AE51D288 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:28Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:28 GMT" ] }, "ContentHeaders": { + "Content-Length": [ "4861" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ], - "Content-Length": [ "10856" ] + "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"configurationEndpoints\":[\"7fffc011048a4e9ebf28dc9012b99aa8.trafficcontroller.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/tc-aks/providers/Microsoft.ServiceNetworking/trafficControllers/traffic-controller/frontends/frontend\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/tc-aks/providers/Microsoft.ServiceNetworking/trafficControllers/traffic-controller/associations/association\"}],\"provisioningState\":\"Failed\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/tc-aks/providers/Microsoft.ServiceNetworking/trafficControllers/traffic-controller\",\"name\":\"traffic-controller\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"e54fcb14-824a-484b-8fa4-3cdd58a7728e\",\"location\":\"northcentralus\",\"tags\":{\"moo\":\"moo\"}},{\"properties\":{\"configurationEndpoints\":[\"3792806fb1314cb980c6425ae11d5be7.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/00/providers/Microsoft.ServiceNetworking/trafficControllers/PSH-TC/frontends/FE01\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/00/providers/Microsoft.ServiceNetworking/trafficControllers/PSH-TC/associations/Assoc1\"},{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/00/providers/Microsoft.ServiceNetworking/trafficControllers/PSH-TC/associations/Assoc1\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/00/providers/Microsoft.ServiceNetworking/trafficControllers/PSH-TC\",\"name\":\"PSH-TC\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"d8579767-47f4-455f-9bdb-d94c4b9cddbe\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"f58749dda3ee4c279637eb87d3d9163f.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/0022/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/0022/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/0022/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\"name\":\"test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"5e855b5b-1cf4-477c-8c5a-aa8ddd1b1d31\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"af74397473244619b2883b36356833ed.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/associations/test-association\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb\",\"name\":\"remove-test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"d912a55a-007b-47d3-9437-af3927f56fe0\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"7546c645d2e245759530cf8db666a829.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-primary/frontends/frontend-primary\"},{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-primary/Frontends/ingress-frontend\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-primary/associations/association-primary\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-primary\",\"name\":\"alb-primary\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"e269aecf-5a27-4c2b-aaef-87cdc484a068\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"df3ff90c2fa243e7a4ba1ee9b3b01bd8.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"},{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\"name\":\"test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"3fbd1ebd-ed81-4ddf-a32b-460d81d33fa8\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"9ecba99c4e5b4b6f8d03e082d53400ee.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"},{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\"name\":\"test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"19bd4c43-10c0-4151-890a-1bd7c5a6c84a\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"2f8a57b51e544716a694a7bae7ca5f08.alb.azure.com\"],\"frontends\":[],\"associations\":[],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb\",\"name\":\"delete-test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"ffad3d79-a083-4200-814e-6e78d33fce15\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"bbbf4538c7654b5a8be840d1349e46ef.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/associations/test-association\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-psh-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb\",\"name\":\"remove-test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"ebbbbfa4-b030-433c-b6e7-d47b6492c00d\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"56bc8611eedd45fd9e6d919915c79c2e.alb.azure.com\"],\"frontends\":[],\"associations\":[],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb\",\"name\":\"association-test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"e65667a6-aa3a-4cd0-bfe4-656cbfc2a2eb\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"7101202696154a02b91ecee7589921eb.alb.azure.com\"],\"frontends\":[],\"associations\":[],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb\",\"name\":\"delete-test-alb\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"e5f699be-63be-443a-93ed-2bfcf2793da0\",\"location\":\"NorthCentralUS\"},{\"properties\":{\"configurationEndpoints\":[\"afb91d7db7294bfd830b83065240ee08.alb.azure.com\"],\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-secondary/frontends/frontend-secondary\"}],\"associations\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-secondary/associations/association-secondary\"}],\"provisioningState\":\"Succeeded\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/AGFC-Lab-RG/providers/Microsoft.ServiceNetworking/trafficControllers/alb-secondary\",\"name\":\"alb-secondary\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"93169af3-a60a-4b29-81c7-b904f0ad9547\",\"location\":\"NorthEurope\"},{\"properties\":{\"frontends\":[{\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/acctest5196/providers/Microsoft.ServiceNetworking/trafficControllers/acctest2913/frontends/fe\"}],\"associations\":[],\"provisioningState\":\"Failed\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/acctest5196/providers/Microsoft.ServiceNetworking/trafficControllers/acctest2913\",\"name\":\"acctest2913\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"e200172b-6b55-44a6-8c79-cd2da5f068a8\",\"location\":\"West US\",\"tags\":{\"key1\":\"value1\"}},{\"properties\":{\"frontends\":[],\"associations\":[],\"provisioningState\":\"Failed\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test/providers/Microsoft.ServiceNetworking/trafficControllers/asdfasdf\",\"name\":\"asdfasdf\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"c09464a4-dab4-489d-a599-5a16229c5b37\",\"location\":\"westeurope\"},{\"properties\":{\"frontends\":[],\"associations\":[],\"provisioningState\":\"Failed\"},\"id\":\"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test/providers/Microsoft.ServiceNetworking/trafficControllers/asdfasdfff\",\"name\":\"asdfasdfff\",\"type\":\"Microsoft.ServiceNetworking/TrafficControllers\",\"etag\":\"6c0fb720-7941-477f-a142-5dbf1160b64a\",\"location\":\"westeurope\"}]}", + "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"4054475fc01a4b4f9b523451b1cf8465.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb\",\r\n \"name\": \"remove-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"7112de40-7db1-4e1c-9ff9-e161158ee344\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.649172Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.649172Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"5221eb54e3ef4ac08ff30957e9efa683.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb\",\r\n \"name\": \"delete-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"6cf5c71b-e338-4000-b23f-8aead72775e0\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.7272961Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.7272961Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"f2d6ccf4d2ea480197d4e5bf4f3afc55.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb\",\r\n \"name\": \"association-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"95236c6a-1c85-4466-9ce7-1f1dd810b87a\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.6961087Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.6961087Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"5ac828c82e1744fb9097f3ced36dca2c.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\r\n \"name\": \"test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"67aee5ef-f320-4651-a307-60c4c1226b5d\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.8211081Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.8211081Z\"\r\n }\r\n }\r\n ]\r\n}", "isContentBase64": false } }, - "Get-AzAlb+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb?api-version=2023-05-01-preview+1": { + "Get-AzAlb+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "0d78cee6-7bb5-4537-a2ee-8c341f7b8263" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "a55dd1e0-a5a8-4868-954e-eb10233e7954" ], "CommandName": [ "Get-AzAlb" ], "FullCommandName": [ "Get-AzAlb_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,38 +64,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"3fbd1ebd-ed81-4ddf-a32b-460d81d33fa8\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], - "x-ms-request-id": [ "9aefca97-b04d-4afd-973e-eb01aa71cf82" ], - "x-ms-correlation-request-id": [ "9aefca97-b04d-4afd-973e-eb01aa71cf82" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044017Z:9aefca97-b04d-4afd-973e-eb01aa71cf82" ], + "ETag": [ "\"67aee5ef-f320-4651-a307-60c4c1226b5d\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "8893b56a-b5b3-4bca-8db9-bb6ce1298130" ], + "x-ms-correlation-request-id": [ "8893b56a-b5b3-4bca-8db9-bb6ce1298130" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215629Z:8893b56a-b5b3-4bca-8db9-bb6ce1298130" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:17 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D392FDD1F8CF49AA9E061396B5A9AB5D Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:29Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1152" ], + "Content-Length": [ "1441" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"df3ff90c2fa243e7a4ba1ee9b3b01bd8.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\r\n \"name\": \"test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"3fbd1ebd-ed81-4ddf-a32b-460d81d33fa8\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"5ac828c82e1744fb9097f3ced36dca2c.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\r\n \"name\": \"test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"67aee5ef-f320-4651-a307-60c4c1226b5d\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.8211081Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.8211081Z\"\r\n }\r\n}", "isContentBase64": false } }, - "Get-AzAlb+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-05-01-preview+1": { + "Get-AzAlb+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "198f11ef-ef6b-400c-b9f7-5deb6f9079d8" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "a7043caa-bf58-4814-9628-c410300b0faa" ], "CommandName": [ "Get-AzAlb" ], "FullCommandName": [ "Get-AzAlb_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -105,21 +107,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-request-id": [ "19f8d00b-325d-4356-9171-b14d4479b849" ], - "x-ms-correlation-request-id": [ "19f8d00b-325d-4356-9171-b14d4479b849" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044018Z:19f8d00b-325d-4356-9171-b14d4479b849" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "fb93ea6a-0973-404e-b8b0-a466cdda0431" ], + "x-ms-correlation-request-id": [ "fb93ea6a-0973-404e-b8b0-a466cdda0431" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215629Z:fb93ea6a-0973-404e-b8b0-a466cdda0431" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:17 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8C9BEB27F003413E82E0EA586657CB51 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:29Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "3579" ], + "Content-Length": [ "4861" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"af74397473244619b2883b36356833ed.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb\",\r\n \"name\": \"remove-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"d912a55a-007b-47d3-9437-af3927f56fe0\",\r\n \"location\": \"NorthCentralUS\"\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"df3ff90c2fa243e7a4ba1ee9b3b01bd8.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\r\n \"name\": \"test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"3fbd1ebd-ed81-4ddf-a32b-460d81d33fa8\",\r\n \"location\": \"NorthCentralUS\"\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"56bc8611eedd45fd9e6d919915c79c2e.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb\",\r\n \"name\": \"association-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"e65667a6-aa3a-4cd0-bfe4-656cbfc2a2eb\",\r\n \"location\": \"NorthCentralUS\"\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"7101202696154a02b91ecee7589921eb.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb\",\r\n \"name\": \"delete-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"e5f699be-63be-443a-93ed-2bfcf2793da0\",\r\n \"location\": \"NorthCentralUS\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"4054475fc01a4b4f9b523451b1cf8465.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb\",\r\n \"name\": \"remove-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"7112de40-7db1-4e1c-9ff9-e161158ee344\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.649172Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.649172Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"5221eb54e3ef4ac08ff30957e9efa683.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb\",\r\n \"name\": \"delete-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"6cf5c71b-e338-4000-b23f-8aead72775e0\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.7272961Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.7272961Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"f2d6ccf4d2ea480197d4e5bf4f3afc55.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb\",\r\n \"name\": \"association-test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"95236c6a-1c85-4466-9ce7-1f1dd810b87a\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.6961087Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.6961087Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"5ac828c82e1744fb9097f3ced36dca2c.alb.azure.com\"\r\n ],\r\n \"frontends\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\"\r\n }\r\n ],\r\n \"associations\": [\r\n {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\"\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb\",\r\n \"name\": \"test-alb\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"67aee5ef-f320-4651-a307-60c4c1226b5d\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:49:57.8211081Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:49:57.8211081Z\"\r\n }\r\n }\r\n ]\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/Get-AzAlbAssociation.Recording.json b/src/Alb/Alb.Autorest/test/Get-AzAlbAssociation.Recording.json index 0dd49b002bb2..f454538a6000 100644 --- a/src/Alb/Alb.Autorest/test/Get-AzAlbAssociation.Recording.json +++ b/src/Alb/Alb.Autorest/test/Get-AzAlbAssociation.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzAlbAssociation+[NoContext]+List+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations?api-version=2023-05-01-preview+1": { + "Get-AzAlbAssociation+[NoContext]+List+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "7e2e168b-8d8d-4390-8970-3d254bf4d9d7" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "aa5b7cb8-984a-4a0a-8327-124ceddd7610" ], "CommandName": [ "Get-AzAlbAssociation" ], "FullCommandName": [ "Get-AzAlbAssociation_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], - "x-ms-request-id": [ "e8fd554a-a17a-4ac1-b23a-20aa51354e1c" ], - "x-ms-correlation-request-id": [ "e8fd554a-a17a-4ac1-b23a-20aa51354e1c" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044025Z:e8fd554a-a17a-4ac1-b23a-20aa51354e1c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "f6e47fa7-9ea8-4245-ba44-a56516cfa770" ], + "x-ms-correlation-request-id": [ "f6e47fa7-9ea8-4245-ba44-a56516cfa770" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215631Z:f6e47fa7-9ea8-4245-ba44-a56516cfa770" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:24 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0507DB0AD0304D41A3347239436AB996 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:30Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "742" ], + "Content-Length": [ "1063" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"2f8eb238-3421-4ced-a46b-abcd99087fe0\",\r\n \"location\": \"NorthCentralUS\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"d2582db2-cc02-402c-91d2-09201dac750e\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:52:58.3561348Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:52:58.3561348Z\"\r\n }\r\n }\r\n ]\r\n}", "isContentBase64": false } }, - "Get-AzAlbAssociation+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association?api-version=2023-05-01-preview+1": { + "Get-AzAlbAssociation+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "6a33de25-2c83-41a2-af40-a4d62d53988b" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "6251502a-99b4-4f5a-af6d-c569caf9ceb9" ], "CommandName": [ "Get-AzAlbAssociation" ], "FullCommandName": [ "Get-AzAlbAssociation_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,22 +64,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2f8eb238-3421-4ced-a46b-abcd99087fe0\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-request-id": [ "d270f6f0-dc53-46fe-a282-5b6b0f08144f" ], - "x-ms-correlation-request-id": [ "d270f6f0-dc53-46fe-a282-5b6b0f08144f" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044025Z:d270f6f0-dc53-46fe-a282-5b6b0f08144f" ], + "ETag": [ "\"d2582db2-cc02-402c-91d2-09201dac750e\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "754e7400-053f-46ca-946f-e9acc80ac1b7" ], + "x-ms-correlation-request-id": [ "754e7400-053f-46ca-946f-e9acc80ac1b7" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215631Z:754e7400-053f-46ca-946f-e9acc80ac1b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:25 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F15BDF80FCDE4AD1B1EB033AC99D2FD8 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:31Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "661" ], + "Content-Length": [ "950" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"2f8eb238-3421-4ced-a46b-abcd99087fe0\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"d2582db2-cc02-402c-91d2-09201dac750e\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:52:58.3561348Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:52:58.3561348Z\"\r\n }\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/Get-AzAlbFrontend.Recording.json b/src/Alb/Alb.Autorest/test/Get-AzAlbFrontend.Recording.json index 20a0274c0a8f..110a336eaa72 100644 --- a/src/Alb/Alb.Autorest/test/Get-AzAlbFrontend.Recording.json +++ b/src/Alb/Alb.Autorest/test/Get-AzAlbFrontend.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzAlbFrontend+[NoContext]+List+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends?api-version=2023-05-01-preview+1": { + "Get-AzAlbFrontend+[NoContext]+List+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "302905ba-3073-4d92-bf23-40275c695874" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "bc4011e0-2ee0-4c93-bc2c-f3eba343d165" ], "CommandName": [ "Get-AzAlbFrontend" ], "FullCommandName": [ "Get-AzAlbFrontend_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,37 +22,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], - "x-ms-request-id": [ "86ae65d0-8bdf-4066-ae9f-833e9b090305" ], - "x-ms-correlation-request-id": [ "86ae65d0-8bdf-4066-ae9f-833e9b090305" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044033Z:86ae65d0-8bdf-4066-ae9f-833e9b090305" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "43dac6d7-6212-4efa-8de8-f7236739f8e6" ], + "x-ms-correlation-request-id": [ "43dac6d7-6212-4efa-8de8-f7236739f8e6" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215632Z:43dac6d7-6212-4efa-8de8-f7236739f8e6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3B94DE9DB530492CAC3FC4918D713542 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:31Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1108" ], + "Content-Length": [ "1718" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"fqdn\": \"0f3d063c2eedf612df507fd35e261274.fz56.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\",\r\n \"name\": \"test-frontend1\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"c86f50c9-0107-44cf-b2cc-b898179a7dfe\",\r\n \"location\": \"NorthCentralUS\"\r\n },\r\n {\r\n \"properties\": {\r\n \"fqdn\": \"e853d603ee81f4af13e83a6df300045d.fz85.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\",\r\n \"name\": \"test-frontend2\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"b0df8997-743d-45f2-a453-4a8008a91e54\",\r\n \"location\": \"NorthCentralUS\"\r\n }\r\n ]\r\n}", + "Content": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"fqdn\": \"dzbshcaaethageaz.fz75.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\",\r\n \"name\": \"test-frontend1\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"5193ca1b-d776-4713-8d0d-3900d3e9ec72\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:51:27.1416699Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:51:27.1416699Z\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"fqdn\": \"b9arfvcmdhd7aqft.fz74.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend2\",\r\n \"name\": \"test-frontend2\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"7225c975-85b8-483f-842b-a0f562a5f218\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:52:12.7776324Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:52:12.7776324Z\"\r\n }\r\n }\r\n ]\r\n}", "isContentBase64": false } }, - "Get-AzAlbFrontend+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1?api-version=2023-05-01-preview+1": { + "Get-AzAlbFrontend+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1?api-version=2023-11-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "f8e1442d-cb09-43ea-a40a-c5c04b6ee06b" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "d8a86e73-186c-492e-b55d-254c9e885864" ], "CommandName": [ "Get-AzAlbFrontend" ], "FullCommandName": [ "Get-AzAlbFrontend_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -63,22 +64,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"c86f50c9-0107-44cf-b2cc-b898179a7dfe\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], - "x-ms-request-id": [ "cafc8dcb-cd1c-41b2-934c-c45de49393cf" ], - "x-ms-correlation-request-id": [ "cafc8dcb-cd1c-41b2-934c-c45de49393cf" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044033Z:cafc8dcb-cd1c-41b2-934c-c45de49393cf" ], + "ETag": [ "\"5193ca1b-d776-4713-8d0d-3900d3e9ec72\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "ce105cdc-04fb-4e67-8dda-697196bd5e55" ], + "x-ms-correlation-request-id": [ "ce105cdc-04fb-4e67-8dda-697196bd5e55" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215632Z:ce105cdc-04fb-4e67-8dda-697196bd5e55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:32 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8B8B2ABB03EA4C589A03E5CCE13A7F4D Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:32Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "496" ], + "Content-Length": [ "769" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"fqdn\": \"0f3d063c2eedf612df507fd35e261274.fz56.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\",\r\n \"name\": \"test-frontend1\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"c86f50c9-0107-44cf-b2cc-b898179a7dfe\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"fqdn\": \"dzbshcaaethageaz.fz75.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourcegroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontend1\",\r\n \"name\": \"test-frontend1\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"5193ca1b-d776-4713-8d0d-3900d3e9ec72\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:51:27.1416699Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:51:27.1416699Z\"\r\n }\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/New-AzAlb.Recording.json b/src/Alb/Alb.Autorest/test/New-AzAlb.Recording.json index c2329cfa4815..1ee8fd323bbd 100644 --- a/src/Alb/Alb.Autorest/test/New-AzAlb.Recording.json +++ b/src/Alb/Alb.Autorest/test/New-AzAlb.Recording.json @@ -1,15 +1,15 @@ { - "New-AzAlb+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-05-01-preview+1": { + "New-AzAlb+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-11-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-05-01-preview", - "Content": "{\n \"location\": \"northcentralus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-11-01", + "Content": "{\r\n \"location\": \"northcentralus\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "34" ] + "Content-Length": [ "36" ] } }, "Response": { @@ -18,39 +18,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "fae06903-8b82-4e56-99b6-cb46353b2ca4", "fae06903-8b82-4e56-99b6-cb46353b2ca4" ], - "x-ms-correlation-request-id": [ "22079c41-d050-4fce-94a2-1677b83a9d6e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-request-id": [ "a3226168-c42e-44b4-a9d0-6cfe530ce592", "a3226168-c42e-44b4-a9d0-6cfe530ce592" ], + "x-ms-correlation-request-id": [ "eea25875-ce3b-446e-90b8-c9f07b8d9a21" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044040Z:22079c41-d050-4fce-94a2-1677b83a9d6e" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215635Z:eea25875-ce3b-446e-90b8-c9f07b8d9a21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:40 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BDBB0219500A4ADDA392BD452A6E55CF Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:32Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "439" ], + "Content-Length": [ "728" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew\",\r\n \"name\": \"test-albnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"7a5aa9c9-ac20-48e3-984e-b89bc1a5f1b8\",\r\n \"location\": \"northcentralus\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew\",\r\n \"name\": \"test-albnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"96a33ed6-bbce-4597-9ddc-df442d75e724\",\r\n \"location\": \"northcentralus\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:56:33.2065612Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:56:33.2065612Z\"\r\n }\r\n}", "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview+2": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -61,14 +62,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "dd45ff42-33d6-4d87-9486-300581207459", "dd45ff42-33d6-4d87-9486-300581207459" ], - "x-ms-correlation-request-id": [ "0e53c039-4e34-4c36-8f4d-b33d687dfa6f" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044051Z:0e53c039-4e34-4c36-8f4d-b33d687dfa6f" ], + "x-ms-request-id": [ "c2d17edc-cc92-4026-870c-be2984d49634", "c2d17edc-cc92-4026-870c-be2984d49634" ], + "x-ms-correlation-request-id": [ "f820871c-deb6-48dc-8617-d38c5920d04d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215645Z:f820871c-deb6-48dc-8617-d38c5920d04d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:40:50 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D9969EA01F724C3CBF31F5C3EDE587BE Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:45Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -79,20 +81,20 @@ "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview+3": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -103,14 +105,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "a6d9256a-20ba-437e-a5a7-238250b6e74f", "a6d9256a-20ba-437e-a5a7-238250b6e74f" ], - "x-ms-correlation-request-id": [ "835d33fa-66ac-48bb-bc86-31c54746bec1" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044101Z:835d33fa-66ac-48bb-bc86-31c54746bec1" ], + "x-ms-request-id": [ "ec19a2ec-bc49-41f2-85d1-b3cfe13da75b", "ec19a2ec-bc49-41f2-85d1-b3cfe13da75b" ], + "x-ms-correlation-request-id": [ "04ebe203-2808-4c04-b3ca-bc61938d20f5" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215655Z:04ebe203-2808-4c04-b3ca-bc61938d20f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:00 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FC7C5D7692594046A101E4E2DB3E1CA2 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:56:55Z" ], + "Date": [ "Tue, 05 Dec 2023 21:56:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -121,20 +124,20 @@ "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview+4": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -145,14 +148,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "b48543c0-8143-4442-b05f-98cc62082630", "b48543c0-8143-4442-b05f-98cc62082630" ], - "x-ms-correlation-request-id": [ "b6c31689-0e8f-4da7-913a-c7bf690f5553" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044111Z:b6c31689-0e8f-4da7-913a-c7bf690f5553" ], + "x-ms-request-id": [ "43209560-286d-427b-95ff-53a922853239", "43209560-286d-427b-95ff-53a922853239" ], + "x-ms-correlation-request-id": [ "8ca5717e-4ba4-4657-805d-53ae2126e667" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215706Z:8ca5717e-4ba4-4657-805d-53ae2126e667" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:10 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8C52803AE2A1457A99DC6B2D7DF12F8D Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:05Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -163,20 +167,20 @@ "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview+5": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -187,14 +191,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "0248b109-989f-4a6c-8b60-e99e581d2dba", "0248b109-989f-4a6c-8b60-e99e581d2dba" ], - "x-ms-correlation-request-id": [ "45e635f5-e144-4a4b-8eb8-ebce3f48b923" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044121Z:45e635f5-e144-4a4b-8eb8-ebce3f48b923" ], + "x-ms-request-id": [ "4811f7bc-c867-4ac3-bdfc-7ac1f0728840", "4811f7bc-c867-4ac3-bdfc-7ac1f0728840" ], + "x-ms-correlation-request-id": [ "c5557752-bfb3-4d4c-b763-793dc31853b7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215716Z:c5557752-bfb3-4d4c-b763-793dc31853b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E6A6B64A17AF4E529670DC2262B13AEC Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:16Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -205,20 +210,20 @@ "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview+6": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/fae06903-8b82-4e56-99b6-cb46353b2ca4?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -228,14 +233,144 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "d8841c27-9d73-4eb1-aa39-e16a92c4a8af", "d8841c27-9d73-4eb1-aa39-e16a92c4a8af" ], - "x-ms-correlation-request-id": [ "bad955ce-a437-405d-bd89-54fd74883252" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044131Z:bad955ce-a437-405d-bd89-54fd74883252" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "1c671e03-4500-4419-9fea-4b651335197c", "1c671e03-4500-4419-9fea-4b651335197c" ], + "x-ms-correlation-request-id": [ "e372e7d4-c06f-467e-8173-f832f2532481" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215727Z:e372e7d4-c06f-467e-8173-f832f2532481" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A13DD476704E481EB3BA150066428778 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:26Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], + "CommandName": [ "New-AzAlb" ], + "FullCommandName": [ "New-AzAlb_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "f6d546fa-b8d5-4ba1-a534-50c50fda8d69", "f6d546fa-b8d5-4ba1-a534-50c50fda8d69" ], + "x-ms-correlation-request-id": [ "13d068d1-c9ef-4659-ab3d-e870e7bc6fbd" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215737Z:13d068d1-c9ef-4659-ab3d-e870e7bc6fbd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5215C2924A8D4BAB80675DAC50537349 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:37Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], + "CommandName": [ "New-AzAlb" ], + "FullCommandName": [ "New-AzAlb_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "d38a1823-2fe2-4925-95d7-fea00972d24e", "d38a1823-2fe2-4925-95d7-fea00972d24e" ], + "x-ms-correlation-request-id": [ "321ae1e4-4847-4c74-b6c8-dfec2f23124c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215748Z:321ae1e4-4847-4c74-b6c8-dfec2f23124c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 39E11BD236CE455492A05B9FA3386562 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:47Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a3226168-c42e-44b4-a9d0-6cfe530ce592?api-version=2023-11-01\u0026t=638374101949878283\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=B_207pZk_aO0-hfMTCxUidupv7WdUL9y1RZh5hgUXypMD7FWS-0f5R5OLaMFrqceI8R7EtO3alAKCWpHBHzFKDUeeXbiAMyYyiICQhhWMAxONzFvUZuRsbQ2F-Y9v_rGfO1a7O40WsKViQEv_n_N3Sp4eSeYwuXealYwK5F_zmvScsYLz8igcURlNe-0rUdfGitcorGlkwfFfrVbCLCzzCxNRXMRNx4_X0GGJo9Z1O-6DlCipzx2yseW6BkoxZie39pqgwrwuNzEpRxA_jT-wQds9phkoe0z_jvtswBlt4araJnEWqtIWylu97w17qRbE3WlC6jn88FV4ATN1czW4w\u0026h=9RWtdB3w67CT-Ht1588k83YVF7r90v5B73WO5J-LgHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], + "CommandName": [ "New-AzAlb" ], + "FullCommandName": [ "New-AzAlb_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "92634e32-f23d-4a81-9310-7c63d3ebbfdd", "92634e32-f23d-4a81-9310-7c63d3ebbfdd" ], + "x-ms-correlation-request-id": [ "7b8b50f5-4401-4fd5-9856-9e5ab4fa74e3" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215758Z:7b8b50f5-4401-4fd5-9856-9e5ab4fa74e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:31 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D9C0FB6F1EA2417389990A690CFDD607 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:58Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "29" ], @@ -246,20 +381,20 @@ "isContentBase64": false } }, - "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-05-01-preview+7": { + "New-AzAlb+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-11-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "669f495e-488c-48be-abcd-c592578cb054" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "2984431f-7af8-4b96-8b5f-b0725f9dd376" ], "CommandName": [ "New-AzAlb" ], "FullCommandName": [ "New-AzAlb_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -269,22 +404,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"7a5aa9c9-ac20-48e3-984e-b89bc1a5f1b8\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], - "x-ms-request-id": [ "c9016fb4-464f-48cc-a2b3-d4a84b255087" ], - "x-ms-correlation-request-id": [ "c9016fb4-464f-48cc-a2b3-d4a84b255087" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044131Z:c9016fb4-464f-48cc-a2b3-d4a84b255087" ], + "ETag": [ "\"96a33ed6-bbce-4597-9ddc-df442d75e724\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-request-id": [ "67c65205-fefe-4fa1-83c1-95f02f3acaf5" ], + "x-ms-correlation-request-id": [ "67c65205-fefe-4fa1-83c1-95f02f3acaf5" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215759Z:67c65205-fefe-4fa1-83c1-95f02f3acaf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:31 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 93E0426E505548B083428875A99F0866 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:58Z" ], + "Date": [ "Tue, 05 Dec 2023 21:57:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "537" ], + "Content-Length": [ "826" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"a10c7a6a4a564758982d09d3c0485dae.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew\",\r\n \"name\": \"test-albnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"7a5aa9c9-ac20-48e3-984e-b89bc1a5f1b8\",\r\n \"location\": \"northcentralus\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"configurationEndpoints\": [\r\n \"1d9f3de942c0415b94c2b1af47bec5d6.alb.azure.com\"\r\n ],\r\n \"frontends\": [],\r\n \"associations\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-albnew\",\r\n \"name\": \"test-albnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers\",\r\n \"etag\": \"96a33ed6-bbce-4597-9ddc-df442d75e724\",\r\n \"location\": \"northcentralus\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:56:33.2065612Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:56:33.2065612Z\"\r\n }\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/New-AzAlbAssociation.Recording.json b/src/Alb/Alb.Autorest/test/New-AzAlbAssociation.Recording.json index 47155ce65416..b4f34061468c 100644 --- a/src/Alb/Alb.Autorest/test/New-AzAlbAssociation.Recording.json +++ b/src/Alb/Alb.Autorest/test/New-AzAlbAssociation.Recording.json @@ -1,15 +1,15 @@ { - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-05-01-preview+1": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-11-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-05-01-preview", - "Content": "{\n \"location\": \"northcentralus\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\n },\n \"associationType\": \"subnets\"\n }\n}", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-11-01", + "Content": "{\r\n \"location\": \"northcentralus\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\r\n },\r\n \"associationType\": \"subnets\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "281" ] + "Content-Length": [ "289" ] } }, "Response": { @@ -18,39 +18,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "2ed2ca80-8a37-4f32-8127-0a0ea685e1d0", "2ed2ca80-8a37-4f32-8127-0a0ea685e1d0" ], - "x-ms-correlation-request-id": [ "9e74d330-b08e-4917-b9a5-d61b6ae58166" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044139Z:9e74d330-b08e-4917-b9a5-d61b6ae58166" ], + "x-ms-request-id": [ "d5d00221-666a-4f15-bfb5-004569278b87", "d5d00221-666a-4f15-bfb5-004569278b87" ], + "x-ms-correlation-request-id": [ "bc90b576-1539-4c43-a7ea-8a9cd04b6ff2" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215802Z:bc90b576-1539-4c43-a7ea-8a9cd04b6ff2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:39 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5C74859272D74C01932CBBDA2C8DBACE Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:57:59Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "678" ], + "Content-Length": [ "967" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\r\n },\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"bb376f0b-655d-4c5f-bf9a-4c958e6ae371\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\r\n },\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"20d189cd-8ddf-42b4-97a8-3bc9fadf86f9\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:57:59.6863578Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:57:59.6863578Z\"\r\n }\r\n}", "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+2": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -61,14 +62,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "a94d9c3c-5cc5-46bf-8b27-1859fe94e93c", "a94d9c3c-5cc5-46bf-8b27-1859fe94e93c" ], - "x-ms-correlation-request-id": [ "a7a38ce8-ca96-45b0-aa53-ccd564fc591a" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044149Z:a7a38ce8-ca96-45b0-aa53-ccd564fc591a" ], + "x-ms-request-id": [ "a2f7d2a0-5fee-4f8c-8ab7-9f5d44f3f92f", "a2f7d2a0-5fee-4f8c-8ab7-9f5d44f3f92f" ], + "x-ms-correlation-request-id": [ "fef800ce-9574-47ab-a8b8-8112aee65ef1" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215812Z:fef800ce-9574-47ab-a8b8-8112aee65ef1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:48 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 09A876AE757C4817B588BDF63B405A56 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:58:12Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -79,20 +81,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+3": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -103,14 +105,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "3aa66178-1a5b-4569-8e08-72ff5d274e9c", "3aa66178-1a5b-4569-8e08-72ff5d274e9c" ], - "x-ms-correlation-request-id": [ "c8ed4134-260c-44cb-846d-218f72638dde" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044159Z:c8ed4134-260c-44cb-846d-218f72638dde" ], + "x-ms-request-id": [ "048a619c-1b80-4f3c-a21f-876cec2be6b6", "048a619c-1b80-4f3c-a21f-876cec2be6b6" ], + "x-ms-correlation-request-id": [ "15669c23-940d-4b7a-82a1-56b64277cf77" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215823Z:15669c23-940d-4b7a-82a1-56b64277cf77" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:41:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 87B2BB4787A04BAEB23C47AE7303CE80 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:58:22Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -121,20 +124,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+4": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -145,14 +148,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "4e1f56d2-95fb-498c-9453-df56bdfb4dbd", "4e1f56d2-95fb-498c-9453-df56bdfb4dbd" ], - "x-ms-correlation-request-id": [ "9575c326-045f-4cfc-9887-106bbaa0876f" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044209Z:9575c326-045f-4cfc-9887-106bbaa0876f" ], + "x-ms-request-id": [ "0c078a5d-4163-4528-8928-01fbffcaee47", "0c078a5d-4163-4528-8928-01fbffcaee47" ], + "x-ms-correlation-request-id": [ "cc52969d-159a-4b4a-9fa3-e1184bf35ec4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215833Z:cc52969d-159a-4b4a-9fa3-e1184bf35ec4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1FCBCB6BD62D4C1B93EFF010EEC8B475 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:58:33Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -163,20 +167,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+5": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -187,14 +191,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "e03a53e8-e1ea-4434-851f-5a3ca2276c2f", "e03a53e8-e1ea-4434-851f-5a3ca2276c2f" ], - "x-ms-correlation-request-id": [ "d98359f6-5f03-404a-aa6c-2e8472fca439" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044219Z:d98359f6-5f03-404a-aa6c-2e8472fca439" ], + "x-ms-request-id": [ "d1950aff-078b-47b7-8b13-a848e9fdcb7e", "d1950aff-078b-47b7-8b13-a848e9fdcb7e" ], + "x-ms-correlation-request-id": [ "4eda0d87-7411-406c-bce4-3a295aa2dcd2" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215844Z:4eda0d87-7411-406c-bce4-3a295aa2dcd2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:19 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 26D4AC07D57E46FE841A43AA635159B2 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:58:43Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -205,20 +210,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+6": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -229,14 +234,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "c641b07b-f65d-43b3-aa8c-28713f2e5d6b", "c641b07b-f65d-43b3-aa8c-28713f2e5d6b" ], - "x-ms-correlation-request-id": [ "f60df624-90ae-4339-8472-f28bcdc72548" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044229Z:f60df624-90ae-4339-8472-f28bcdc72548" ], + "x-ms-request-id": [ "eabb9541-6077-408f-9c95-60c41b815308", "eabb9541-6077-408f-9c95-60c41b815308" ], + "x-ms-correlation-request-id": [ "afa38e7b-0a20-48da-9104-4329f186a3f6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215854Z:afa38e7b-0a20-48da-9104-4329f186a3f6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:29 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7BD6D249870440119FF85BC53E26143B Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:58:54Z" ], + "Date": [ "Tue, 05 Dec 2023 21:58:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -247,20 +253,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+7": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -271,14 +277,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "4cf52700-4234-4bee-975a-22673bdec30a", "4cf52700-4234-4bee-975a-22673bdec30a" ], - "x-ms-correlation-request-id": [ "48e6709e-df7d-4fdd-bae2-6451a07801d9" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044240Z:48e6709e-df7d-4fdd-bae2-6451a07801d9" ], + "x-ms-request-id": [ "2e092042-3aaf-4b68-ae56-bcb9862277bb", "2e092042-3aaf-4b68-ae56-bcb9862277bb" ], + "x-ms-correlation-request-id": [ "283cde58-763c-480d-8c2b-67ddf7966a16" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215905Z:283cde58-763c-480d-8c2b-67ddf7966a16" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:39 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FC8EC48DA535449D99BEDF1897BADD43 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:04Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -289,20 +296,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+8": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -313,14 +320,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "b710d4ef-098b-4e72-9bd8-d574d1a59ab3", "b710d4ef-098b-4e72-9bd8-d574d1a59ab3" ], - "x-ms-correlation-request-id": [ "83221068-f9a1-4220-bd1b-1e5b68bdea31" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044250Z:83221068-f9a1-4220-bd1b-1e5b68bdea31" ], + "x-ms-request-id": [ "9f7378c6-dbcd-437c-a1a2-3f2304ec2ed5", "9f7378c6-dbcd-437c-a1a2-3f2304ec2ed5" ], + "x-ms-correlation-request-id": [ "1f811ea8-b2c6-4e5a-ad2c-3e3c4d2e7ed6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215915Z:1f811ea8-b2c6-4e5a-ad2c-3e3c4d2e7ed6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:49 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1039A50AC584449580E53BB7DEBB0EF6 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:15Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -331,20 +339,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+9": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -355,14 +363,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "2c6adfe6-1201-430c-af30-853e3b617f62", "2c6adfe6-1201-430c-af30-853e3b617f62" ], - "x-ms-correlation-request-id": [ "dcb78849-1742-4274-8d1e-a4ff54035706" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044300Z:dcb78849-1742-4274-8d1e-a4ff54035706" ], + "x-ms-request-id": [ "9b66c288-ca80-49f1-8ea0-9c035d84333a", "9b66c288-ca80-49f1-8ea0-9c035d84333a" ], + "x-ms-correlation-request-id": [ "a3576578-6cd3-437a-917b-d2b9d2bc080a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215926Z:a3576578-6cd3-437a-917b-d2b9d2bc080a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:42:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C7ACE1DA14A542B89AC5A09F283452C0 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:25Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -373,20 +382,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+10": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -397,14 +406,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "61128921-83cf-44fd-927e-a513b0307109", "61128921-83cf-44fd-927e-a513b0307109" ], - "x-ms-correlation-request-id": [ "164317dc-3825-4d1e-9e6d-3bc18526d315" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044310Z:164317dc-3825-4d1e-9e6d-3bc18526d315" ], + "x-ms-request-id": [ "a5d6aca5-f3f6-4d6c-b266-1b1ebe65c9e9", "a5d6aca5-f3f6-4d6c-b266-1b1ebe65c9e9" ], + "x-ms-correlation-request-id": [ "20882353-16ee-4f61-ae4e-3d54164e3bed" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215936Z:20882353-16ee-4f61-ae4e-3d54164e3bed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C64A151878BB4511BDD089897682D849 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:36Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -415,20 +425,63 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+11": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], + "CommandName": [ "New-AzAlbAssociation" ], + "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "1c6e03ca-b4b3-4da5-832f-64ca8a4cb615", "1c6e03ca-b4b3-4da5-832f-64ca8a4cb615" ], + "x-ms-correlation-request-id": [ "7e4fd737-56e1-4d89-b62d-2e661d9e2b98" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215947Z:7e4fd737-56e1-4d89-b62d-2e661d9e2b98" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E253867BA6D549C4816D7FC7BC579280 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:46Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -439,14 +492,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "ec53c504-aeaa-4347-aa67-f6e677b1ea02", "ec53c504-aeaa-4347-aa67-f6e677b1ea02" ], - "x-ms-correlation-request-id": [ "1ded412a-8f5e-48a7-99a0-bcecf7388468" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044320Z:1ded412a-8f5e-48a7-99a0-bcecf7388468" ], + "x-ms-request-id": [ "ae59b550-5716-4cb9-b1dd-c223e1fd006b", "ae59b550-5716-4cb9-b1dd-c223e1fd006b" ], + "x-ms-correlation-request-id": [ "aa74f0a8-3a5b-41b9-b69c-3f04cb21e62a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T215957Z:aa74f0a8-3a5b-41b9-b69c-3f04cb21e62a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6C18B58864EB44FFA20617D7A8CF8310 Ref B: CO6AA3150219011 Ref C: 2023-12-05T21:59:57Z" ], + "Date": [ "Tue, 05 Dec 2023 21:59:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -457,20 +511,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+12": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -481,14 +535,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "7071b87a-f5d6-43cf-9927-387f1b3db008", "7071b87a-f5d6-43cf-9927-387f1b3db008" ], - "x-ms-correlation-request-id": [ "46ef47bb-a934-4122-9ed7-9ba9d0942260" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044330Z:46ef47bb-a934-4122-9ed7-9ba9d0942260" ], + "x-ms-request-id": [ "75340e1d-a059-4cb7-80c3-b29669142d42", "75340e1d-a059-4cb7-80c3-b29669142d42" ], + "x-ms-correlation-request-id": [ "b67d0b44-b1cf-46b6-8611-031bd657bb54" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220008Z:b67d0b44-b1cf-46b6-8611-031bd657bb54" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:30 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D54DC4265D4F4890B6D960EC2386702F Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:00:07Z" ], + "Date": [ "Tue, 05 Dec 2023 22:00:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -499,20 +554,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+13": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -523,14 +578,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "da3d7064-b96a-43f4-aba0-54ffff338bbd", "da3d7064-b96a-43f4-aba0-54ffff338bbd" ], - "x-ms-correlation-request-id": [ "9623a22b-1900-48df-9e0b-dc1928b6042d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044340Z:9623a22b-1900-48df-9e0b-dc1928b6042d" ], + "x-ms-request-id": [ "3e055270-648a-4dbe-bd9e-fb886171e3c1", "3e055270-648a-4dbe-bd9e-fb886171e3c1" ], + "x-ms-correlation-request-id": [ "0713d7c4-3e89-491f-a97e-63f154bcd3af" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220018Z:0713d7c4-3e89-491f-a97e-63f154bcd3af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:40 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 14A75C0090AE46B686616D976B824741 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:00:18Z" ], + "Date": [ "Tue, 05 Dec 2023 22:00:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -541,20 +597,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+14": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -565,14 +621,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "de769b95-635b-4c8c-9750-d89579ddb89e", "de769b95-635b-4c8c-9750-d89579ddb89e" ], - "x-ms-correlation-request-id": [ "e1cc4cee-be19-470b-8f63-0864622726b5" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044350Z:e1cc4cee-be19-470b-8f63-0864622726b5" ], + "x-ms-request-id": [ "98db8c9d-0068-42ea-b9a2-d322dd364211", "98db8c9d-0068-42ea-b9a2-d322dd364211" ], + "x-ms-correlation-request-id": [ "ab04cbb8-1f58-4812-b796-14ff68e8e4e4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220029Z:ab04cbb8-1f58-4812-b796-14ff68e8e4e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:50 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B850D706C65C430797BFE6343FEE6F7B Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:00:28Z" ], + "Date": [ "Tue, 05 Dec 2023 22:00:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -583,20 +640,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+15": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -607,14 +664,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "e4251780-f615-4032-be93-536c86e1ef55", "e4251780-f615-4032-be93-536c86e1ef55" ], - "x-ms-correlation-request-id": [ "08002876-8033-445b-89f5-567b57bd72de" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044400Z:08002876-8033-445b-89f5-567b57bd72de" ], + "x-ms-request-id": [ "c10c4ba3-459f-49a2-9996-0cac302b8717", "c10c4ba3-459f-49a2-9996-0cac302b8717" ], + "x-ms-correlation-request-id": [ "d28b607f-e05d-487f-a410-140751cd59e7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220039Z:d28b607f-e05d-487f-a410-140751cd59e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:43:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C5F0C1290BAD430585F2BC0C8B14A690 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:00:39Z" ], + "Date": [ "Tue, 05 Dec 2023 22:00:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -625,20 +683,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+16": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -649,14 +707,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "54e19eb5-6cb9-4831-9012-0f0c3fdd807f", "54e19eb5-6cb9-4831-9012-0f0c3fdd807f" ], - "x-ms-correlation-request-id": [ "985d83c5-5ef5-476d-8110-9897dd329460" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044410Z:985d83c5-5ef5-476d-8110-9897dd329460" ], + "x-ms-request-id": [ "f457d3e5-3994-4239-9670-87607b17409b", "f457d3e5-3994-4239-9670-87607b17409b" ], + "x-ms-correlation-request-id": [ "3b653235-3407-4f2d-85ef-373033d5bf0c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220050Z:3b653235-3407-4f2d-85ef-373033d5bf0c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9C312533078749A0B59E1DE521175E24 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:00:49Z" ], + "Date": [ "Tue, 05 Dec 2023 22:00:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -667,20 +726,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview+17": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/2ed2ca80-8a37-4f32-8127-0a0ea685e1d0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -690,14 +749,58 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "a55606e6-d28c-496f-b13c-c99c5e61eb30", "a55606e6-d28c-496f-b13c-c99c5e61eb30" ], - "x-ms-correlation-request-id": [ "0d70d3fa-f03d-4e6a-919f-b472e1a61a51" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044420Z:0d70d3fa-f03d-4e6a-919f-b472e1a61a51" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "0f70b880-adeb-4f63-b209-8155762955d9", "0f70b880-adeb-4f63-b209-8155762955d9" ], + "x-ms-correlation-request-id": [ "91614535-c9e0-42db-9a0f-3b9aad6692c6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220100Z:91614535-c9e0-42db-9a0f-3b9aad6692c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3046035AC22941A796B7A72F34A9251F Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:00Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/d5d00221-666a-4f15-bfb5-004569278b87?api-version=2023-11-01\u0026t=638374102821707594\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=YzRPkJl56k-sNIw1KJKn5CogAk1jZg9vswO3LrduNFJ1oDsZBetIKiH_P2SZSXv03lRFw3QtEaO_yoFgtGs2Atzd1H1WLXE06iWlnCpTg2ujk-Po34KsI1I61zGbXq7Ytl5d3gvsLJJuXHZjg6EXMniMUPDsqgp5QS0I-kgIXfQTqhTdUIieDT2-mQB0HsLGyjf1DLmx41VnsIhc1QXT883Wkxn1FnMmVjdENFc6DEqRKptxMh-wwIotZBarK6nrQrqVL_24r6_kbKADr_JhNw6bYx2IIBcRUJSB88njqqrGbdyGjnSYV7WPNUNmJT8cYyim-qTm8f1gQB7Wd3LtdQ\u0026h=qrnuV2MT4Ga1BNZObA_xSbs2vH1Jwzl9zDPSDVuTfLA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], + "CommandName": [ "New-AzAlbAssociation" ], + "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "b4e1fbb1-f458-45e9-8bf4-264dad68ad9d", "b4e1fbb1-f458-45e9-8bf4-264dad68ad9d" ], + "x-ms-correlation-request-id": [ "ca79e6a7-3c19-4367-a8a0-44a327326ec9" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220111Z:ca79e6a7-3c19-4367-a8a0-44a327326ec9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A5917BD3EF1D4646A26C67F407AF8772 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:10Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:10 GMT" ] }, "ContentHeaders": { "Content-Length": [ "29" ], @@ -708,20 +811,20 @@ "isContentBase64": false } }, - "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-05-01-preview+18": { + "New-AzAlbAssociation+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-11-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "1be23a1f-66dc-4e18-a66a-d84b0a07fbad" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "d74702b7-000c-4421-8ad7-5349d32d0c87" ], "CommandName": [ "New-AzAlbAssociation" ], "FullCommandName": [ "New-AzAlbAssociation_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -731,22 +834,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"bb376f0b-655d-4c5f-bf9a-4c958e6ae371\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "x-ms-request-id": [ "f5bd60a0-5ea8-438a-a139-0a5585de4d62" ], - "x-ms-correlation-request-id": [ "f5bd60a0-5ea8-438a-a139-0a5585de4d62" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044421Z:f5bd60a0-5ea8-438a-a139-0a5585de4d62" ], + "ETag": [ "\"20d189cd-8ddf-42b4-97a8-3bc9fadf86f9\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "34323d13-c9b4-45d0-9f83-51a00021167a" ], + "x-ms-correlation-request-id": [ "34323d13-c9b4-45d0-9f83-51a00021167a" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220111Z:34323d13-c9b4-45d0-9f83-51a00021167a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:20 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4E821D7026524FD0AC6F3A10A7625922 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:11Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "679" ], + "Content-Length": [ "968" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"bb376f0b-655d-4c5f-bf9a-4c958e6ae371\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"associationType\": \"subnets\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/association-test-alb/associations/test-association\",\r\n \"name\": \"test-association\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Associations\",\r\n \"etag\": \"20d189cd-8ddf-42b4-97a8-3bc9fadf86f9\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T21:57:59.6863578Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T21:57:59.6863578Z\"\r\n }\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/New-AzAlbFrontend.Recording.json b/src/Alb/Alb.Autorest/test/New-AzAlbFrontend.Recording.json index a847f8719ca0..846882b09a63 100644 --- a/src/Alb/Alb.Autorest/test/New-AzAlbFrontend.Recording.json +++ b/src/Alb/Alb.Autorest/test/New-AzAlbFrontend.Recording.json @@ -1,15 +1,15 @@ { - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-05-01-preview+1": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-11-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-05-01-preview", - "Content": "{\n \"location\": \"northcentralus\"\n}", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-11-01", + "Content": "{\r\n \"location\": \"northcentralus\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "34" ] + "Content-Length": [ "36" ] } }, "Response": { @@ -18,39 +18,40 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "a4117c77-bf78-4cb4-957e-3f07fa099c92", "a4117c77-bf78-4cb4-957e-3f07fa099c92" ], - "x-ms-correlation-request-id": [ "6f1f3bf0-0377-430c-9b14-3a32cd003af7" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044429Z:6f1f3bf0-0377-430c-9b14-3a32cd003af7" ], + "x-ms-request-id": [ "de70a0a9-a86f-4171-b872-232d6fab8177", "de70a0a9-a86f-4171-b872-232d6fab8177" ], + "x-ms-correlation-request-id": [ "4be565f0-f60d-4652-a8d1-087f9899310c" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220113Z:4be565f0-f60d-4652-a8d1-087f9899310c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:29 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 94DEA3BEB9C3408F968443C75699A176 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:11Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "431" ], + "Content-Length": [ "720" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew\",\r\n \"name\": \"test-frontendnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"f91daf29-86d3-4c6e-bec5-145990213ed9\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew\",\r\n \"name\": \"test-frontendnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"e63c4867-560a-4f60-a9a9-aee6baadf815\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T22:01:12.3143338Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T22:01:12.3143338Z\"\r\n }\r\n}", "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+2": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -61,14 +62,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "ce8a21d4-a150-44ca-b732-2ffe5fe13c73", "ce8a21d4-a150-44ca-b732-2ffe5fe13c73" ], - "x-ms-correlation-request-id": [ "45004eff-045f-407c-a04b-8cabcdeb20b7" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044439Z:45004eff-045f-407c-a04b-8cabcdeb20b7" ], + "x-ms-request-id": [ "f83d6104-d0d4-46aa-84f8-101d508e06e5", "f83d6104-d0d4-46aa-84f8-101d508e06e5" ], + "x-ms-correlation-request-id": [ "93ef7483-fb5d-4784-bb74-3d9211cbd745" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220124Z:93ef7483-fb5d-4784-bb74-3d9211cbd745" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:38 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 63F9F369B7764FFB87D782256955E5A0 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:24Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -79,20 +81,20 @@ "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+3": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -103,14 +105,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "17e721bb-ca69-4b18-b437-682397faedda", "17e721bb-ca69-4b18-b437-682397faedda" ], - "x-ms-correlation-request-id": [ "a4b728d6-e928-4a61-a4bc-6f701b028c26" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044449Z:a4b728d6-e928-4a61-a4bc-6f701b028c26" ], + "x-ms-request-id": [ "40a8f128-e4d9-4ed3-9919-5c1eba7e9a99", "40a8f128-e4d9-4ed3-9919-5c1eba7e9a99" ], + "x-ms-correlation-request-id": [ "c88b7af9-612e-4c9c-811e-36f4405f3558" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220135Z:c88b7af9-612e-4c9c-811e-36f4405f3558" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:48 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EA8F5F0AA6CB48ED84547D73F644D599 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:34Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -121,20 +124,20 @@ "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+4": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -145,14 +148,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "8beb5fa8-d688-441e-8c69-145e7a97577a", "8beb5fa8-d688-441e-8c69-145e7a97577a" ], - "x-ms-correlation-request-id": [ "4e4ccd81-c9d0-44de-9244-ae47080625b7" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11967" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044459Z:4e4ccd81-c9d0-44de-9244-ae47080625b7" ], + "x-ms-request-id": [ "b251cd2b-9886-4deb-a1bb-756e274bbf6e", "b251cd2b-9886-4deb-a1bb-756e274bbf6e" ], + "x-ms-correlation-request-id": [ "c3483369-00af-4c07-86ba-fccd8120b776" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220145Z:c3483369-00af-4c07-86ba-fccd8120b776" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:44:59 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 02FE40593027403691A10108C826210C Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:45Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -163,20 +167,20 @@ "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+5": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -187,14 +191,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "fbe064e8-e93c-4977-a05c-38f45d2895f8", "fbe064e8-e93c-4977-a05c-38f45d2895f8" ], - "x-ms-correlation-request-id": [ "52f2f052-fe8d-4b3b-ad20-c96ec10e1a72" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044509Z:52f2f052-fe8d-4b3b-ad20-c96ec10e1a72" ], + "x-ms-request-id": [ "30ca0b9d-0b0c-4679-bebc-3407b1fa396e", "30ca0b9d-0b0c-4679-bebc-3407b1fa396e" ], + "x-ms-correlation-request-id": [ "ed2aaf3e-e437-437c-b756-ab68c1a3e6a0" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220155Z:ed2aaf3e-e437-437c-b756-ab68c1a3e6a0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:09 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 366E134C323940C5AD74D7A1B383129D Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:01:55Z" ], + "Date": [ "Tue, 05 Dec 2023 22:01:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -205,20 +210,20 @@ "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+6": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/de70a0a9-a86f-4171-b872-232d6fab8177?api-version=2023-11-01\u0026t=638374104738924646\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=iGf0nEMN9gxL0UF_pZ1O2gDsHHxLyCbcpg1h49uwZvsaQ6iranVDThVpV5VzEm1H-cexufq3jJiRP1kCD4saB3l9RIcA9uDCK0Rfnv6CnV5NliILyJrjbeRxuQJoLOuSuXXk0l0unK-HxySc89FgdubeGbGk93AubWk_IZyJ9C9exWafaNKmMsDNhxhY2_pH61fKUk5-TOS9oa_EcpodQdyRYoFaR-KjJGw9f17uFOrKMqKqVg7xiIUb2hXazvh328_mH-ct9ON-dAGk1J3xwCRcYBkVO5RpMLF1H4GaUUgXuSx455VXlSnKzsE-YMaXlbsULV3xINumbNo7Og_usA\u0026h=you06P0KkkwfscSownJN8oapZv1OxTq8KgMODxG7kN8", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -228,56 +233,15 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ "10" ], - "x-ms-request-id": [ "b1e4d34a-fc5a-4d49-8122-6742eba46089", "b1e4d34a-fc5a-4d49-8122-6742eba46089" ], - "x-ms-correlation-request-id": [ "b5626696-f82f-4a79-9fe1-4e3698d18f19" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044519Z:b5626696-f82f-4a79-9fe1-4e3698d18f19" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:19 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "30" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"status\": \"InProgress\"\r\n}", - "isContentBase64": false - } - }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/a4117c77-bf78-4cb4-957e-3f07fa099c92?api-version=2023-05-01-preview", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], - "CommandName": [ "New-AzAlbFrontend" ], - "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "7c5e5246-cc40-4e01-aca2-cc5cf7060193", "7c5e5246-cc40-4e01-aca2-cc5cf7060193" ], - "x-ms-correlation-request-id": [ "e2425b42-c2f3-4459-94c2-ed7f33072133" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044530Z:e2425b42-c2f3-4459-94c2-ed7f33072133" ], + "x-ms-request-id": [ "ffb4690a-7082-47f5-96b2-7b0d11288d73", "ffb4690a-7082-47f5-96b2-7b0d11288d73" ], + "x-ms-correlation-request-id": [ "71193639-d5e0-4310-bb85-1abbae89ec7e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220206Z:71193639-d5e0-4310-bb85-1abbae89ec7e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:29 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 482B07A1D4FF4D9CB5449C275DCFDF46 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:06Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "29" ], @@ -288,20 +252,20 @@ "isContentBase64": false } }, - "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-05-01-preview+8": { + "New-AzAlbFrontend+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-11-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "75f1731b-c021-4e81-943e-8ec5ce69d85a" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "fa5e17a3-3220-4e0b-8e1d-bfb7cf24f893" ], "CommandName": [ "New-AzAlbFrontend" ], "FullCommandName": [ "New-AzAlbFrontend_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -311,22 +275,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"f91daf29-86d3-4c6e-bec5-145990213ed9\"" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], - "x-ms-request-id": [ "81765582-2b71-44f0-8cd5-b41e2f2896da" ], - "x-ms-correlation-request-id": [ "81765582-2b71-44f0-8cd5-b41e2f2896da" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044530Z:81765582-2b71-44f0-8cd5-b41e2f2896da" ], + "ETag": [ "\"e63c4867-560a-4f60-a9a9-aee6baadf815\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-request-id": [ "a3f94ae3-1930-404b-b59e-5e9b2bf19689" ], + "x-ms-correlation-request-id": [ "a3f94ae3-1930-404b-b59e-5e9b2bf19689" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220206Z:a3f94ae3-1930-404b-b59e-5e9b2bf19689" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:29 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2FD9254E0F4E4533AFB4B7A4F4B96082 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:06Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "500" ], + "Content-Length": [ "773" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\r\n \"properties\": {\r\n \"fqdn\": \"4502954ba5a6d0246d8462f2ee893274.fz72.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew\",\r\n \"name\": \"test-frontendnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"f91daf29-86d3-4c6e-bec5-145990213ed9\",\r\n \"location\": \"NorthCentralUS\"\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"fqdn\": \"faarfkb5fxawdjcy.fz15.alb.azure.com\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/test-alb/frontends/test-frontendnew\",\r\n \"name\": \"test-frontendnew\",\r\n \"type\": \"Microsoft.ServiceNetworking/TrafficControllers/Frontends\",\r\n \"etag\": \"e63c4867-560a-4f60-a9a9-aee6baadf815\",\r\n \"location\": \"NorthCentralUS\",\r\n \"systemData\": {\r\n \"createdBy\": \"shmalpani@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": \"2023-12-05T22:01:12.3143338Z\",\r\n \"lastModifiedBy\": \"shmalpani@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2023-12-05T22:01:12.3143338Z\"\r\n }\r\n}", "isContentBase64": false } } diff --git a/src/Alb/Alb.Autorest/test/Remove-AzAlb.Recording.json b/src/Alb/Alb.Autorest/test/Remove-AzAlb.Recording.json index e49f159477a7..c6b0b3f862c0 100644 --- a/src/Alb/Alb.Autorest/test/Remove-AzAlb.Recording.json +++ b/src/Alb/Alb.Autorest/test/Remove-AzAlb.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzAlb+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb?api-version=2023-05-01-preview+1": { + "Remove-AzAlb+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb?api-version=2023-11-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/delete-test-alb?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,17 +22,18 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286470152\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=BU1Y0jObN2AqMzsvGPyYzkWKSTgvj9iM8VR64bZVVv2iG-LJl-t_lliGOwhfgqLv88m7AnX7feXf882kq1w8LOvBGKsHiNBCs-Biq8ZxvHuK5ObiFOnQmSWho1DRvGC32LgKRxyuSdFRWNRhN-zJLAsovfPG9R1JshHd4LsJd2D5T-9hq6yhV8V6g1je9aXcyA-gV7uOF1Q_dixcCR09ZDqiqC1E3kKSfN6LjfyvhCHLLEOBv8Zdp30u-0aTAFCk4Q56UFS7zdUSZgZHqd947sVGAcH5uIsvawOYM05mpHaFa7vxgGOQoGOTdhj162eviq2s5nmW8z7nDWvPpyLlpQ\u0026h=oSEo_2cvAZR_iv2wwITfpiMDM_vePAR_sK7zglOMZ88" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "3dfdf2b1-a319-4d94-ad67-c340407535b0", "3dfdf2b1-a319-4d94-ad67-c340407535b0" ], - "x-ms-correlation-request-id": [ "e172361d-12e0-41b9-a8e0-3360bf2f4f3e" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], + "x-ms-request-id": [ "105714fb-873d-40a0-ac14-55391d97bb44", "105714fb-873d-40a0-ac14-55391d97bb44" ], + "x-ms-correlation-request-id": [ "e84bf407-885f-4ec8-9b03-c60869ec817f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044538Z:e172361d-12e0-41b9-a8e0-3360bf2f4f3e" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220208Z:e84bf407-885f-4ec8-9b03-c60869ec817f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:37 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3651F11BF1D84BE9BBF207B0D547A404 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:07Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -43,20 +44,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+2": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -67,14 +68,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "b36118d3-a292-4a88-af4e-efe63f1254a8", "b36118d3-a292-4a88-af4e-efe63f1254a8" ], - "x-ms-correlation-request-id": [ "f887668b-38d5-48cb-b1fd-08dc60d41fa3" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044548Z:f887668b-38d5-48cb-b1fd-08dc60d41fa3" ], + "x-ms-request-id": [ "f011f1db-a9ad-4ec8-b021-d809e9921424", "f011f1db-a9ad-4ec8-b021-d809e9921424" ], + "x-ms-correlation-request-id": [ "bf5375b2-997b-474b-975a-d6bde28f7ccf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220219Z:bf5375b2-997b-474b-975a-d6bde28f7ccf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:47 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 46C0735F63E140338DB3B96FC6732FE0 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:18Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -85,20 +87,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+3": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -109,14 +111,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "7aada6da-7691-4808-a628-b2c9f6989753", "7aada6da-7691-4808-a628-b2c9f6989753" ], - "x-ms-correlation-request-id": [ "5ac7d269-7c26-4d5b-8353-bf1b8715166d" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044558Z:5ac7d269-7c26-4d5b-8353-bf1b8715166d" ], + "x-ms-request-id": [ "f13b1bc9-a4fb-42c0-9091-d3bd022efc36", "f13b1bc9-a4fb-42c0-9091-d3bd022efc36" ], + "x-ms-correlation-request-id": [ "858cada8-355d-4a66-a11c-d498f41c730e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220229Z:858cada8-355d-4a66-a11c-d498f41c730e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:45:58 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E4B4EFCBEB0C4F18B7E4D8ED218D24BE Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:29Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -127,20 +130,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+4": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -151,14 +154,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "dc37f1a6-56a8-4ec0-9314-88eeaed28326", "dc37f1a6-56a8-4ec0-9314-88eeaed28326" ], - "x-ms-correlation-request-id": [ "83679f32-5778-445a-922d-a5e7d75bf8e5" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044608Z:83679f32-5778-445a-922d-a5e7d75bf8e5" ], + "x-ms-request-id": [ "115237fb-58cd-4d41-978c-5298160eeda8", "115237fb-58cd-4d41-978c-5298160eeda8" ], + "x-ms-correlation-request-id": [ "45ec2139-2042-464b-96b8-8f23584d368d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220240Z:45ec2139-2042-464b-96b8-8f23584d368d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 09DDD42A810049D7AFC10CFFB60C9EC3 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:39Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:39 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -169,20 +173,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+5": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -193,14 +197,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "635701d5-a470-415e-b2e5-29d6db71c8ce", "635701d5-a470-415e-b2e5-29d6db71c8ce" ], - "x-ms-correlation-request-id": [ "64b1e165-879b-43b3-a47e-a0f3341692b8" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044618Z:64b1e165-879b-43b3-a47e-a0f3341692b8" ], + "x-ms-request-id": [ "e11f0616-55cb-4bd9-b8bd-59948bc8a8be", "e11f0616-55cb-4bd9-b8bd-59948bc8a8be" ], + "x-ms-correlation-request-id": [ "c5e5d0e3-c4b1-4794-8d94-d16a96478f55" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220250Z:c5e5d0e3-c4b1-4794-8d94-d16a96478f55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:18 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 03AC2BEF04B04E9697F7180FCA421174 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:02:50Z" ], + "Date": [ "Tue, 05 Dec 2023 22:02:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -211,20 +216,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+6": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -235,14 +240,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "67047f49-c7fd-45e3-bcea-74085a8d0abd", "67047f49-c7fd-45e3-bcea-74085a8d0abd" ], - "x-ms-correlation-request-id": [ "46288996-ac62-48d5-81eb-251c298bedb6" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044628Z:46288996-ac62-48d5-81eb-251c298bedb6" ], + "x-ms-request-id": [ "6da950ad-1743-4410-988f-2bb0c4d335ed", "6da950ad-1743-4410-988f-2bb0c4d335ed" ], + "x-ms-correlation-request-id": [ "78bb9db7-36d4-4643-b1f8-509118bb4b9c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220301Z:78bb9db7-36d4-4643-b1f8-509118bb4b9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:28 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 602EF72A1E2C45DA9BC7A517023D40B5 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:00Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -253,20 +259,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+7": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -277,14 +283,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "9679e46b-d6f1-4ef3-8e82-179da41f1ab7", "9679e46b-d6f1-4ef3-8e82-179da41f1ab7" ], - "x-ms-correlation-request-id": [ "ef1382f8-4897-46a2-8bd5-0b9bbcaaa6df" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11957" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044638Z:ef1382f8-4897-46a2-8bd5-0b9bbcaaa6df" ], + "x-ms-request-id": [ "a4d1be81-108e-44a1-989a-ea552eccd5eb", "a4d1be81-108e-44a1-989a-ea552eccd5eb" ], + "x-ms-correlation-request-id": [ "592787b1-b629-4b3f-a279-f94d69bd6e4f" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220311Z:592787b1-b629-4b3f-a279-f94d69bd6e4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:38 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 90ABED88B21E4044A0CF66982AB02FEE Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:11Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -295,20 +302,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+8": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -319,14 +326,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "d9e2cb7d-961c-4e3d-9692-fbcd4a3cd9f2", "d9e2cb7d-961c-4e3d-9692-fbcd4a3cd9f2" ], - "x-ms-correlation-request-id": [ "11ee9153-2293-4a2e-a73a-9d5e510292c4" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044649Z:11ee9153-2293-4a2e-a73a-9d5e510292c4" ], + "x-ms-request-id": [ "8713cc98-af55-4efb-97fa-2cf2e0f28e49", "8713cc98-af55-4efb-97fa-2cf2e0f28e49" ], + "x-ms-correlation-request-id": [ "8e5e3f34-c38a-4239-933d-6147477aec06" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220322Z:8e5e3f34-c38a-4239-933d-6147477aec06" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:49 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 169E8C526DCB4ED8992B686FA424DB31 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:21Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -337,62 +345,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+9": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286313812\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=GDwnuJDXAIAkIrLppF1H8zppuDIlbYydI71tKJ4zpvQc6fT89v7WBNcwzbRpIffMN3YfIjf7etZQmrJB1SUzm_2KORn7JUEVnExsCQM4hxnqBZG4QoNBgxgMWk9_K4m2rIrBPXcEEwHiF2xmYdjMER2UmjeR8R7U7qUUFzy6MkASx5kuZtCgUSfFnC5dTfR6H2MkoiMeC_WnkEuN08Cny7ilJ5Ac6h1q7hiTKloIjVQReNJgp81B8XTBqlyR_AaNgH0IMijzcvKAF9ECsh1j1HbxE4rukIFus01bE_-V_oEdAI-Jk29MH2dTc1XB_dKFDBI04jbTV4phZg0_N-dkVg\u0026h=-1hcZJd-64NjvH8wAkwkilQAm4FytOCXVjs8Acwi-tA", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "77" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], - "CommandName": [ "Remove-AzAlb" ], - "FullCommandName": [ "Remove-AzAlb_Delete" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Retry-After": [ "10" ], - "x-ms-request-id": [ "abe11751-e0a7-49da-8e73-2ad8437aa33e", "abe11751-e0a7-49da-8e73-2ad8437aa33e" ], - "x-ms-correlation-request-id": [ "c024268d-9946-479d-83e2-a5fe60dbad79" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11955" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044659Z:c024268d-9946-479d-83e2-a5fe60dbad79" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:46:58 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "30" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\r\n \"status\": \"InProgress\"\r\n}", - "isContentBase64": false - } - }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+10": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -402,14 +368,15 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "3d2c021c-72dc-436a-8aa2-3a5c3ac9414a", "3d2c021c-72dc-436a-8aa2-3a5c3ac9414a" ], - "x-ms-correlation-request-id": [ "a13338be-9b04-4c76-b48b-1ba3edbbf7e8" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11954" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044709Z:a13338be-9b04-4c76-b48b-1ba3edbbf7e8" ], + "x-ms-request-id": [ "db6119a6-3279-4e41-955c-77e2d4f1f1f0", "db6119a6-3279-4e41-955c-77e2d4f1f1f0" ], + "x-ms-correlation-request-id": [ "32807526-9fb5-4ded-940b-31d8001d60e7" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220332Z:32807526-9fb5-4ded-940b-31d8001d60e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 42DA8B4D0AAE49A9A0D763CAE61F0CD5 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:32Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "29" ], @@ -420,20 +387,20 @@ "isContentBase64": false } }, - "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview+11": { + "Remove-AzAlb+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286470152\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=BU1Y0jObN2AqMzsvGPyYzkWKSTgvj9iM8VR64bZVVv2iG-LJl-t_lliGOwhfgqLv88m7AnX7feXf882kq1w8LOvBGKsHiNBCs-Biq8ZxvHuK5ObiFOnQmSWho1DRvGC32LgKRxyuSdFRWNRhN-zJLAsovfPG9R1JshHd4LsJd2D5T-9hq6yhV8V6g1je9aXcyA-gV7uOF1Q_dixcCR09ZDqiqC1E3kKSfN6LjfyvhCHLLEOBv8Zdp30u-0aTAFCk4Q56UFS7zdUSZgZHqd947sVGAcH5uIsvawOYM05mpHaFa7vxgGOQoGOTdhj162eviq2s5nmW8z7nDWvPpyLlpQ\u0026h=oSEo_2cvAZR_iv2wwITfpiMDM_vePAR_sK7zglOMZ88+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3dfdf2b1-a319-4d94-ad67-c340407535b0?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/105714fb-873d-40a0-ac14-55391d97bb44?api-version=2023-11-01\u0026t=638374105286470152\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=BU1Y0jObN2AqMzsvGPyYzkWKSTgvj9iM8VR64bZVVv2iG-LJl-t_lliGOwhfgqLv88m7AnX7feXf882kq1w8LOvBGKsHiNBCs-Biq8ZxvHuK5ObiFOnQmSWho1DRvGC32LgKRxyuSdFRWNRhN-zJLAsovfPG9R1JshHd4LsJd2D5T-9hq6yhV8V6g1je9aXcyA-gV7uOF1Q_dixcCR09ZDqiqC1E3kKSfN6LjfyvhCHLLEOBv8Zdp30u-0aTAFCk4Q56UFS7zdUSZgZHqd947sVGAcH5uIsvawOYM05mpHaFa7vxgGOQoGOTdhj162eviq2s5nmW8z7nDWvPpyLlpQ\u0026h=oSEo_2cvAZR_iv2wwITfpiMDM_vePAR_sK7zglOMZ88", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "79" ], - "x-ms-client-request-id": [ "7bc75bc3-2d92-4968-9c1a-09f0f3161749" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "9f955238-91d1-4785-b434-02401e90866b" ], "CommandName": [ "Remove-AzAlb" ], "FullCommandName": [ "Remove-AzAlb_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -443,14 +410,15 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "f7b0df7f-d236-43b1-a3db-39a81115382f", "f7b0df7f-d236-43b1-a3db-39a81115382f" ], - "x-ms-correlation-request-id": [ "f575a040-a8cc-4cea-9e59-99463e24ec92" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11953" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044709Z:f575a040-a8cc-4cea-9e59-99463e24ec92" ], + "x-ms-request-id": [ "0c627d72-11a3-445e-af60-5a79ea363bcf", "0c627d72-11a3-445e-af60-5a79ea363bcf" ], + "x-ms-correlation-request-id": [ "08838f95-44f4-4528-9ec0-ae5843537e0a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220332Z:08838f95-44f4-4528-9ec0-ae5843537e0a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:08 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 27EF4E3BA87B4054BC096F00C83E8969 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:32Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], diff --git a/src/Alb/Alb.Autorest/test/Remove-AzAlbFrontend.Recording.json b/src/Alb/Alb.Autorest/test/Remove-AzAlbFrontend.Recording.json index 0d127ef45d6b..ae4307e08c81 100644 --- a/src/Alb/Alb.Autorest/test/Remove-AzAlbFrontend.Recording.json +++ b/src/Alb/Alb.Autorest/test/Remove-AzAlbFrontend.Recording.json @@ -1,17 +1,17 @@ { - "Remove-AzAlbFrontend+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend?api-version=2023-05-01-preview+1": { + "Remove-AzAlbFrontend+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend?api-version=2023-11-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.ServiceNetworking/trafficControllers/remove-test-alb/frontends/test-frontend?api-version=2023-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "2de09095-8a42-4ff0-8879-ce22f598ae45" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], "CommandName": [ "Remove-AzAlbFrontend" ], "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,17 +22,18 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview" ], + "Location": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150481701\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=T93BLvw3n-SsXP5ZXXHR1OxoqxxfoJ5pb1t7EYXEJi2OMtCg9Fa0lPJDsBdA5SOGjaHDZCf90IEsuMvoxXcSazKsIs1XIIX8fg3nWcG8GWaWpKC7NWpQjZoLN33J5dJNACENtRcOg6Gud5wByPhT_RDhPhu_LsW8Gy58TbUTZ-CgpZsPj8drz5r099G09RpEkZaajfUrv17DRyid1fmAAO-1JiEBm10TWLQWUCUS_o8HXNqDDnU2KWlP5KMpmpfioaaMfO2JSOteq6VXH6-8yqAa87sc5coYmbmkWzHZFqpHyNX5i93XnM5oE3ebJqDshI5PcjNBMJoK-DW-PWhwJA\u0026h=ffHAYen9AJkLYoavgl6pRIhubR6JwnYeZbTOW_PIbE4" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "3ef45562-b202-4c6c-bfac-6504bbaf0322", "3ef45562-b202-4c6c-bfac-6504bbaf0322" ], - "x-ms-correlation-request-id": [ "2dfeaf08-5c24-4f6c-9e7e-646efb06e555" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044723Z:2dfeaf08-5c24-4f6c-9e7e-646efb06e555" ], + "x-ms-request-id": [ "28f43570-69b5-4eb0-bb52-3f0c792376d7", "28f43570-69b5-4eb0-bb52-3f0c792376d7" ], + "x-ms-correlation-request-id": [ "016d04fd-8d9d-4929-a05f-65d66c38003d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220335Z:016d04fd-8d9d-4929-a05f-65d66c38003d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:23 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 90C38D1DE0934CE5A7B01C4FC70A996A Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:33Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -43,20 +44,20 @@ "isContentBase64": false } }, - "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview+2": { + "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "2de09095-8a42-4ff0-8879-ce22f598ae45" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], "CommandName": [ "Remove-AzAlbFrontend" ], "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -67,14 +68,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "44e0c72f-a9d4-4756-92a8-9625d99239df", "44e0c72f-a9d4-4756-92a8-9625d99239df" ], - "x-ms-correlation-request-id": [ "68eff7bb-d877-4d1b-968b-14e33ee40ace" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11952" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044733Z:68eff7bb-d877-4d1b-968b-14e33ee40ace" ], + "x-ms-request-id": [ "903d52a5-7a0b-4092-a8d7-1604015984cf", "903d52a5-7a0b-4092-a8d7-1604015984cf" ], + "x-ms-correlation-request-id": [ "2cbb591c-1fd3-453e-9c75-7296b203a0d4" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220345Z:2cbb591c-1fd3-453e-9c75-7296b203a0d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:33 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 10632F541A104171A63177165AE319E1 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:45Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -85,20 +87,20 @@ "isContentBase64": false } }, - "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview+3": { + "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "2de09095-8a42-4ff0-8879-ce22f598ae45" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], "CommandName": [ "Remove-AzAlbFrontend" ], "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -109,14 +111,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "x-ms-request-id": [ "9a381af1-e8b1-4ca2-bf18-c645099bd723", "9a381af1-e8b1-4ca2-bf18-c645099bd723" ], - "x-ms-correlation-request-id": [ "5a5b9e5b-aa9f-40ce-9e94-1f1aa039b57e" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11951" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044744Z:5a5b9e5b-aa9f-40ce-9e94-1f1aa039b57e" ], + "x-ms-request-id": [ "03246939-47c6-48f0-90c1-df0ed2817cc7", "03246939-47c6-48f0-90c1-df0ed2817cc7" ], + "x-ms-correlation-request-id": [ "dc77c1e1-0eaf-4ce4-a045-f685a07ffeca" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220356Z:dc77c1e1-0eaf-4ce4-a045-f685a07ffeca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:43 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4E0C9566ADA14F189BB7273C817F1F59 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:03:55Z" ], + "Date": [ "Tue, 05 Dec 2023 22:03:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "30" ], @@ -127,20 +130,20 @@ "isContentBase64": false } }, - "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview+4": { + "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "83" ], - "x-ms-client-request-id": [ "2de09095-8a42-4ff0-8879-ce22f598ae45" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], "CommandName": [ "Remove-AzAlbFrontend" ], "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -150,14 +153,58 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "b5473576-6b8d-4b01-82c4-82c583be5c69", "b5473576-6b8d-4b01-82c4-82c583be5c69" ], - "x-ms-correlation-request-id": [ "42c8032a-b65a-4e4d-9860-73de55f9d94f" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11950" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044754Z:42c8032a-b65a-4e4d-9860-73de55f9d94f" ], + "Retry-After": [ "10" ], + "x-ms-request-id": [ "1f4100eb-953d-4e98-8c5b-4a255a36691a", "1f4100eb-953d-4e98-8c5b-4a255a36691a" ], + "x-ms-correlation-request-id": [ "10a7bc63-a7cd-4b29-8763-97f822c16a03" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220406Z:10a7bc63-a7cd-4b29-8763-97f822c16a03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 11C30776FEF248F3A39B9DF8FF221372 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:04:06Z" ], + "Date": [ "Tue, 05 Dec 2023 22:04:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "30" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\r\n \"status\": \"InProgress\"\r\n}", + "isContentBase64": false + } + }, + "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operations/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150325384\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=mPkLN69Ir9AWmQGI4nPyQTWVa8hiQHRtOPSt1HKLXxYcqTS42m_NHNHWq7drNosYzY2AsqNrrh-sQ-TJq4PVnFI2zhny8NRMUdTOf6X-1MRLIp5kVV0WWF4xK25ohvzjMAv6UCXn6Ea5sUrLqwwgMXQaLF5_a3KKBFbXncZSDiokTTy76UuHMw4a5i3_qLrE_SMJtme3R8RwkoiSz-T6WbeLa4XmutY_s4rLXM99czd4U0ALv2XiFeMg3ViMUXDiT7BE_vVO2Kee5oiDhYOwa8hrJ6vcDjKQCygTneo_XrfQyaL3UNKR8gNDtNEUlaJneCNKlpggiVRXphRlTgGlCw\u0026h=RyaCCVPrEq1t4w7l2DJEURBm-9nhtrj1ivvoIib9pQo", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], + "CommandName": [ "Remove-AzAlbFrontend" ], + "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "6c09eef0-255d-413f-98dc-eaf9edc88cd7", "6c09eef0-255d-413f-98dc-eaf9edc88cd7" ], + "x-ms-correlation-request-id": [ "b3c94571-784d-48dd-a091-fc5881ca946a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220417Z:b3c94571-784d-48dd-a091-fc5881ca946a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:53 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 909B4CC24DB345238D77A8FA38B03C06 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:04:16Z" ], + "Date": [ "Tue, 05 Dec 2023 22:04:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "29" ], @@ -168,20 +215,20 @@ "isContentBase64": false } }, - "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview+5": { + "Remove-AzAlbFrontend+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150481701\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=T93BLvw3n-SsXP5ZXXHR1OxoqxxfoJ5pb1t7EYXEJi2OMtCg9Fa0lPJDsBdA5SOGjaHDZCf90IEsuMvoxXcSazKsIs1XIIX8fg3nWcG8GWaWpKC7NWpQjZoLN33J5dJNACENtRcOg6Gud5wByPhT_RDhPhu_LsW8Gy58TbUTZ-CgpZsPj8drz5r099G09RpEkZaajfUrv17DRyid1fmAAO-1JiEBm10TWLQWUCUS_o8HXNqDDnU2KWlP5KMpmpfioaaMfO2JSOteq6VXH6-8yqAa87sc5coYmbmkWzHZFqpHyNX5i93XnM5oE3ebJqDshI5PcjNBMJoK-DW-PWhwJA\u0026h=ffHAYen9AJkLYoavgl6pRIhubR6JwnYeZbTOW_PIbE4+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/3ef45562-b202-4c6c-bfac-6504bbaf0322?api-version=2023-05-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/providers/Microsoft.ServiceNetworking/locations/northcentralus/operationResults/28f43570-69b5-4eb0-bb52-3f0c792376d7?api-version=2023-11-01\u0026t=638374106150481701\u0026c=MIIHHjCCBgagAwIBAgITfwI8ooo2761TEgO3SgAEAjyiijANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTc1NTI2WhcNMjQxMDI2MTc1NTI2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ0WQLjgbZj70uXwL_AnKvEas1GVvOB7Og4giEY7H0L78RFiY2-CzzgMKyZV8H3ACZxqQoBMWsq9XAf4iUNAer7s23VPyWkoVdr2uTc8SCvur4qja77OTMKiRVU277ViRu_Mb-fJvQKeRO3Q8A4Sg1A63a2VQ_WlyOCHPBj-gUF0zU4SYnlqSYGcNmuhCjtHpVvF_N3CGz0JlGTo3ia0wmks2y95IHeD0lcr0AgP73_eafbKafZn4Z56GdC3lngKdhyEiQi_kPyxaydv1PfV2xX9OLKvB19e9jLB43QA9r5k5DsAhqtv6eqwHBdW07S9MCMu8kwoYUpX1TTGapizc6ECAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBTwk8yVBP3k-Qa8LdSw6mv--mLIvDAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKR8h2puMUi3SGdIfblcEylOBfcaCRtDDIvC64QKLae7vOAe1f8SpXEFfYeIl5xydb8lEUYApxL701SQSy-NPuBuuQ0CIMKjZ-xCj9VbjQIykosQBVJvxp5I0TplyumFiehQP3zZuc1PZ2hg05aq3CKSbJGKFlow_8P9RN66yeKWGE7SWV9NZThEL8VfEXjl_ITgWb-L1SmnFKTdOVNVDQoRjjX-JqVobqh0O4K0dsPapDoAdqjIECodvocGyWtCEwIk-j8yyBxqX_JzzumMzxUMrxCjaosaJVOvoJB7vh6WuiYfHondyzaGqjm9Bjpqj46bQXojx6xALlzNX5x_j_g\u0026s=T93BLvw3n-SsXP5ZXXHR1OxoqxxfoJ5pb1t7EYXEJi2OMtCg9Fa0lPJDsBdA5SOGjaHDZCf90IEsuMvoxXcSazKsIs1XIIX8fg3nWcG8GWaWpKC7NWpQjZoLN33J5dJNACENtRcOg6Gud5wByPhT_RDhPhu_LsW8Gy58TbUTZ-CgpZsPj8drz5r099G09RpEkZaajfUrv17DRyid1fmAAO-1JiEBm10TWLQWUCUS_o8HXNqDDnU2KWlP5KMpmpfioaaMfO2JSOteq6VXH6-8yqAa87sc5coYmbmkWzHZFqpHyNX5i93XnM5oE3ebJqDshI5PcjNBMJoK-DW-PWhwJA\u0026h=ffHAYen9AJkLYoavgl6pRIhubR6JwnYeZbTOW_PIbE4", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "2de09095-8a42-4ff0-8879-ce22f598ae45" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "06d9e295-9da9-450f-a602-37c87ee0c7f8" ], "CommandName": [ "Remove-AzAlbFrontend" ], "FullCommandName": [ "Remove-AzAlbFrontend_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.1.3", "Az.Alb/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.0", "Az.Alb/0.1.0" ] }, "ContentHeaders": { } @@ -191,14 +238,15 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-request-id": [ "57b97de7-6754-40ae-9684-ea368d55b656", "57b97de7-6754-40ae-9684-ea368d55b656" ], - "x-ms-correlation-request-id": [ "19a370db-d9af-4154-9005-e2b25cca25e4" ], - "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11949" ], - "x-ms-routing-request-id": [ "NORTHCENTRALUS:20230724T044754Z:19a370db-d9af-4154-9005-e2b25cca25e4" ], + "x-ms-request-id": [ "72971b89-9279-466b-90bb-9dc982f14a84", "72971b89-9279-466b-90bb-9dc982f14a84" ], + "x-ms-correlation-request-id": [ "fce1eec4-8eba-4c0e-8925-bf3d1a3ce489" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "x-ms-routing-request-id": [ "WESTUS2:20231205T220417Z:fce1eec4-8eba-4c0e-8925-bf3d1a3ce489" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Mon, 24 Jul 2023 04:47:53 GMT" ] + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4EF61AA5FC674C4799352628D4450F91 Ref B: CO6AA3150219011 Ref C: 2023-12-05T22:04:17Z" ], + "Date": [ "Tue, 05 Dec 2023 22:04:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], diff --git a/src/Alb/Alb.Autorest/test/env.json b/src/Alb/Alb.Autorest/test/env.json index 9f367ebf643c..e316f784b9d0 100644 --- a/src/Alb/Alb.Autorest/test/env.json +++ b/src/Alb/Alb.Autorest/test/env.json @@ -1,17 +1,17 @@ { - "SubscriptionId": "711d99a7-fd79-4ce7-9831-ea1afa18442e", - "vnetName": "test-vnet", - "subnetId": "/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet", - "albFrontendName": "test-frontend", - "removeAlbName": "remove-test-alb", "albAssociationName": "test-association", - "extraSubnetId": "/subscriptions/711d99a7-fd79-4ce7-9831-ea1afa18442e/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet", + "deleteAlbName": "delete-test-alb", + "vnetName": "test-vnet", + "extraSubnetId": "/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/extra-alb-subnet", "subnetName": "alb-subnet", - "associationAlbName": "association-test-alb", + "extraSubnetName": "extra-alb-subnet", + "albFrontendName": "test-frontend", + "albName": "test-alb", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "region": "northcentralus", - "deleteAlbName": "delete-test-alb", + "associationAlbName": "association-test-alb", "resourceGroup": "test-rg", - "extraSubnetName": "extra-alb-subnet", - "albName": "test-alb" + "SubscriptionId": "b44225bf-10d9-4f0e-bac4-b9ab720d442b", + "subnetId": "/subscriptions/b44225bf-10d9-4f0e-bac4-b9ab720d442b/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/alb-subnet", + "removeAlbName": "remove-test-alb", + "region": "northcentralus" } diff --git a/src/Alb/Alb.Autorest/test/prereqs.json b/src/Alb/Alb.Autorest/test/prereqs.json index b5d9c1d6f694..a59f481e307d 100644 --- a/src/Alb/Alb.Autorest/test/prereqs.json +++ b/src/Alb/Alb.Autorest/test/prereqs.json @@ -15,7 +15,7 @@ }, "serviceNetworkingApiVersion": { "type": "string", - "defaultValue": "2023-05-01-preview" + "defaultValue": "2023-11-01" } }, "variables": { diff --git a/src/Alb/Alb.Autorest/test/utils.ps1 b/src/Alb/Alb.Autorest/test/utils.ps1 index 4ee94edcbad9..5c3fd12436db 100644 --- a/src/Alb/Alb.Autorest/test/utils.ps1 +++ b/src/Alb/Alb.Autorest/test/utils.ps1 @@ -66,8 +66,8 @@ function setupEnv() { # Build dependent resources New-AzResourceGroup -Name $env.resourceGroup -Location $env.region - New-AzDeployment -TemplateFile "/src/Alb/test/prereqs.json" -Mode Complete -ResourceGroupName $env.resourceGroup -TemplateParameterObject @{} + New-AzDeployment -TemplateFile (Join-Path $PSScriptRoot 'prereqs.json') -Mode Complete -ResourceGroupName $env.resourceGroup -TemplateParameterObject @{} } function cleanupEnv() { # Clean resources you create for testing diff --git a/src/Alb/Alb/Az.Alb.psd1 b/src/Alb/Alb/Az.Alb.psd1 index f6366857c476..012fcb0ffe22 100644 --- a/src/Alb/Alb/Az.Alb.psd1 +++ b/src/Alb/Alb/Az.Alb.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 12/8/2023 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Alb.Autorest/bin/Az.Alb.private.dll' diff --git a/src/Alb/Alb/ChangeLog.md b/src/Alb/Alb/ChangeLog.md index 879f61826843..de9093e985f7 100644 --- a/src/Alb/Alb/ChangeLog.md +++ b/src/Alb/Alb/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Upgraded API version to 2023-11-01 ## Version 0.1.0 * First preview release for module Az.Alb diff --git a/src/Alb/Alb/help/Get-AzAlb.md b/src/Alb/Alb/help/Get-AzAlb.md index 0a87f1e174d3..238e18adf69a 100644 --- a/src/Alb/Alb/help/Get-AzAlb.md +++ b/src/Alb/Alb/help/Get-AzAlb.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalb schema: 2.0.0 @@ -23,17 +23,17 @@ Get-AzAlb -Name -ResourceGroupName [-SubscriptionId [] ``` -### GetViaIdentity -``` -Get-AzAlb -InputObject [-DefaultProfile ] [] -``` - ### List1 ``` Get-AzAlb -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` +### GetViaIdentity +``` +Get-AzAlb -InputObject [-DefaultProfile ] [] +``` + ## DESCRIPTION Get a TrafficController @@ -149,7 +149,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List, List1 +Parameter Sets: List, Get, List1 Aliases: Required: False @@ -188,4 +188,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Get-AzAlbAssociation.md b/src/Alb/Alb/help/Get-AzAlbAssociation.md index c843c9897907..ef089e30b1f0 100644 --- a/src/Alb/Alb/help/Get-AzAlbAssociation.md +++ b/src/Alb/Alb/help/Get-AzAlbAssociation.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation schema: 2.0.0 @@ -24,6 +24,12 @@ Get-AzAlbAssociation -AlbName -Name -ResourceGroupName ] [] ``` +### GetViaIdentityTrafficController +``` +Get-AzAlbAssociation -Name -TrafficControllerInputObject [-DefaultProfile ] + [] +``` + ### GetViaIdentity ``` Get-AzAlbAssociation -InputObject [-DefaultProfile ] [] @@ -69,7 +75,7 @@ traffic controller name for path ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -116,7 +122,7 @@ Name of Association ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityTrafficController Aliases: Required: True @@ -132,7 +138,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -147,7 +153,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -157,6 +163,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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). @@ -186,4 +208,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Get-AzAlbFrontend.md b/src/Alb/Alb/help/Get-AzAlbFrontend.md index 71f31f15c3e2..62516c52493c 100644 --- a/src/Alb/Alb/help/Get-AzAlbFrontend.md +++ b/src/Alb/Alb/help/Get-AzAlbFrontend.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/get-azalbfrontend schema: 2.0.0 @@ -24,6 +24,12 @@ Get-AzAlbFrontend -AlbName -Name -ResourceGroupName [ [-DefaultProfile ] [] ``` +### GetViaIdentityTrafficController +``` +Get-AzAlbFrontend -Name -TrafficControllerInputObject [-DefaultProfile ] + [] +``` + ### GetViaIdentity ``` Get-AzAlbFrontend -InputObject [-DefaultProfile ] [] @@ -68,7 +74,7 @@ traffic controller name for path ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -115,7 +121,7 @@ Frontends ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityTrafficController Aliases: Required: True @@ -131,7 +137,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -146,7 +152,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -156,6 +162,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: GetViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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). @@ -185,4 +207,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/New-AzAlb.md b/src/Alb/Alb/help/New-AzAlb.md index 35d5c630a0a0..ca1f17486924 100644 --- a/src/Alb/Alb/help/New-AzAlb.md +++ b/src/Alb/Alb/help/New-AzAlb.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalb schema: 2.0.0 @@ -13,8 +13,8 @@ Create a TrafficController ## SYNTAX ``` -New-AzAlb -Name -ResourceGroupName -Location [-SubscriptionId ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzAlb -Name -ResourceGroupName [-SubscriptionId ] -Location + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -204,4 +204,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Alb/Alb/help/New-AzAlbAssociation.md b/src/Alb/Alb/help/New-AzAlbAssociation.md index d9f221de34c9..e7045e0df8ee 100644 --- a/src/Alb/Alb/help/New-AzAlbAssociation.md +++ b/src/Alb/Alb/help/New-AzAlbAssociation.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalbassociation schema: 2.0.0 @@ -13,9 +13,9 @@ Create a Association ## SYNTAX ``` -New-AzAlbAssociation -AlbName -Name -ResourceGroupName -Location - [-SubscriptionId ] [-SubnetId ] [-Tag ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] +New-AzAlbAssociation -AlbName -Name -ResourceGroupName [-SubscriptionId ] + -Location [-SubnetId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -235,4 +235,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Alb/Alb/help/New-AzAlbFrontend.md b/src/Alb/Alb/help/New-AzAlbFrontend.md index 0fec98327287..31d5a7c50a11 100644 --- a/src/Alb/Alb/help/New-AzAlbFrontend.md +++ b/src/Alb/Alb/help/New-AzAlbFrontend.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/new-azalbfrontend schema: 2.0.0 @@ -13,9 +13,9 @@ Create a Frontend ## SYNTAX ``` -New-AzAlbFrontend -AlbName -Name -ResourceGroupName -Location - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] +New-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] + -Location [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -220,4 +220,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Remove-AzAlb.md b/src/Alb/Alb/help/Remove-AzAlb.md index dc087eee86b0..cf164639b212 100644 --- a/src/Alb/Alb/help/Remove-AzAlb.md +++ b/src/Alb/Alb/help/Remove-AzAlb.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalb schema: 2.0.0 @@ -14,14 +14,14 @@ Delete a TrafficController ### Delete (Default) ``` -Remove-AzAlb -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzAlb -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` -Remove-AzAlb -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] +Remove-AzAlb -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -221,4 +221,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Remove-AzAlbAssociation.md b/src/Alb/Alb/help/Remove-AzAlbAssociation.md index b2f6edb4660f..03a6e0678e23 100644 --- a/src/Alb/Alb/help/Remove-AzAlbAssociation.md +++ b/src/Alb/Alb/help/Remove-AzAlbAssociation.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation schema: 2.0.0 @@ -14,15 +14,20 @@ Delete a Association ### Delete (Default) ``` -Remove-AzAlbAssociation -AlbName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] +Remove-AzAlbAssociation -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentityTrafficController +``` +Remove-AzAlbAssociation -Name -TrafficControllerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` -Remove-AzAlbAssociation -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzAlbAssociation -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -106,7 +111,7 @@ Name of Association ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityTrafficController Aliases: Required: True @@ -177,6 +182,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -237,4 +258,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Remove-AzAlbFrontend.md b/src/Alb/Alb/help/Remove-AzAlbFrontend.md index 03bb4c0b3d0a..aa56467fe260 100644 --- a/src/Alb/Alb/help/Remove-AzAlbFrontend.md +++ b/src/Alb/Alb/help/Remove-AzAlbFrontend.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/remove-azalbfrontend schema: 2.0.0 @@ -15,13 +15,19 @@ Delete a Frontend ### Delete (Default) ``` Remove-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentityTrafficController +``` +Remove-AzAlbFrontend -Name -TrafficControllerInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzAlbFrontend -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -105,7 +111,7 @@ Frontends ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityTrafficController Aliases: Required: True @@ -176,6 +182,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: DeleteViaIdentityTrafficController +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -236,4 +258,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Update-AzAlb.md b/src/Alb/Alb/help/Update-AzAlb.md index e0c25844b14a..215549e0161d 100644 --- a/src/Alb/Alb/help/Update-AzAlb.md +++ b/src/Alb/Alb/help/Update-AzAlb.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalb schema: 2.0.0 @@ -15,12 +15,12 @@ Update a TrafficController ### UpdateExpanded (Default) ``` Update-AzAlb -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzAlb -InputObject [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] +Update-AzAlb -InputObject [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -191,4 +191,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Update-AzAlbAssociation.md b/src/Alb/Alb/help/Update-AzAlbAssociation.md index 3f6b64ec68be..936f78f876e5 100644 --- a/src/Alb/Alb/help/Update-AzAlbAssociation.md +++ b/src/Alb/Alb/help/Update-AzAlbAssociation.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalbassociation schema: 2.0.0 @@ -14,15 +14,21 @@ Update a Association ### UpdateExpanded (Default) ``` -Update-AzAlbAssociation -AlbName -Name -ResourceGroupName - [-SubscriptionId ] [-AssociationType ] [-SubnetId ] [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Update-AzAlbAssociation -AlbName -Name -ResourceGroupName [-SubscriptionId ] + [-AssociationType ] [-SubnetId ] [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### UpdateViaIdentityTrafficControllerExpanded +``` +Update-AzAlbAssociation -Name -TrafficControllerInputObject [-AssociationType ] + [-SubnetId ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzAlbAssociation -InputObject [-AssociationType ] [-SubnetId ] - [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Update-AzAlbAssociation -InputObject [-AssociationType ] [-SubnetId ] + [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -58,7 +64,7 @@ Accept wildcard characters: False Association Type ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Support.AssociationType +Type: System.String Parameter Sets: (All) Aliases: @@ -106,7 +112,7 @@ Name of Association ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityTrafficControllerExpanded Aliases: Required: True @@ -177,6 +183,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityTrafficControllerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -237,4 +259,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/Alb/Alb/help/Update-AzAlbFrontend.md b/src/Alb/Alb/help/Update-AzAlbFrontend.md index c8a98f3156a1..a12bd3d2685d 100644 --- a/src/Alb/Alb/help/Update-AzAlbFrontend.md +++ b/src/Alb/Alb/help/Update-AzAlbFrontend.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.Alb-help.xml Module Name: Az.Alb online version: https://learn.microsoft.com/powershell/module/az.alb/update-azalbfrontend schema: 2.0.0 @@ -15,13 +15,19 @@ Update a Frontend ### UpdateExpanded (Default) ``` Update-AzAlbFrontend -AlbName -Name -ResourceGroupName [-SubscriptionId ] - [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityTrafficControllerExpanded +``` +Update-AzAlbFrontend -Name -TrafficControllerInputObject [-Tag ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzAlbFrontend -InputObject [-Tag ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] +Update-AzAlbFrontend -InputObject [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -90,7 +96,7 @@ Frontends ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityTrafficControllerExpanded Aliases: Required: True @@ -146,6 +152,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -TrafficControllerInputObject +Identity Parameter +To construct, see NOTES section for TRAFFICCONTROLLERINPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.IAlbIdentity +Parameter Sets: UpdateViaIdentityTrafficControllerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -206,4 +228,3 @@ To create the parameters described below, construct a hash table containing the - `[TrafficControllerName ]`: traffic controller name for path ## RELATED LINKS - diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Az.PrometheusRuleGroups.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Az.PrometheusRuleGroups.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Az.PrometheusRuleGroups.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Get-AzPrometheusRuleGroup.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Get-AzPrometheusRuleGroup.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Get-AzPrometheusRuleGroup.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleGroup.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroup.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleGroup.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleGroupActionObject.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleGroupActionObject.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleGroupActionObject.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleObject.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/New-AzPrometheusRuleObject.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/New-AzPrometheusRuleObject.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/README.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/README.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/README.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/README.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Remove-AzPrometheusRuleGroup.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Remove-AzPrometheusRuleGroup.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Remove-AzPrometheusRuleGroup.md diff --git a/src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md b/src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Update-AzPrometheusRuleGroup.md similarity index 100% rename from src/AlertsManagement/PrometheusRuleGroups.Autorest/docs/Update-AzPrometheusRuleGroup.md rename to src/AlertsManagement/PrometheusRuleGroups.Autorest/help/Update-AzPrometheusRuleGroup.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Az.AppConfiguration.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Az.AppConfiguration.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Az.AppConfiguration.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Az.AppConfiguration.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Clear-AzAppConfigurationDeletedStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Clear-AzAppConfigurationDeletedStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Clear-AzAppConfigurationDeletedStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Clear-AzAppConfigurationDeletedStore.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationDeletedStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationDeletedStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationDeletedStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationDeletedStore.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationStore.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationStoreKey.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationStoreKey.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Get-AzAppConfigurationStoreKey.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Get-AzAppConfigurationStoreKey.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/New-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/New-AzAppConfigurationStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/New-AzAppConfigurationStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/New-AzAppConfigurationStore.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/New-AzAppConfigurationStoreKey.md b/src/AppConfiguration/AppConfiguration.Autorest/help/New-AzAppConfigurationStoreKey.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/New-AzAppConfigurationStoreKey.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/New-AzAppConfigurationStoreKey.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/README.md b/src/AppConfiguration/AppConfiguration.Autorest/help/README.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/README.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/README.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Remove-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Remove-AzAppConfigurationStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Remove-AzAppConfigurationStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Remove-AzAppConfigurationStore.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Test-AzAppConfigurationStoreNameAvailability.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Test-AzAppConfigurationStoreNameAvailability.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Test-AzAppConfigurationStoreNameAvailability.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Test-AzAppConfigurationStoreNameAvailability.md diff --git a/src/AppConfiguration/AppConfiguration.Autorest/docs/Update-AzAppConfigurationStore.md b/src/AppConfiguration/AppConfiguration.Autorest/help/Update-AzAppConfigurationStore.md similarity index 100% rename from src/AppConfiguration/AppConfiguration.Autorest/docs/Update-AzAppConfigurationStore.md rename to src/AppConfiguration/AppConfiguration.Autorest/help/Update-AzAppConfigurationStore.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Az.AppConfigurationdata.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Az.AppConfigurationdata.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Az.AppConfigurationdata.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Az.AppConfigurationdata.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationKey.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationKey.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationKey.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationKey.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationKeyValue.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationKeyValue.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationKeyValue.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationLabel.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationLabel.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationLabel.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationLabel.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationRevision.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationRevision.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Get-AzAppConfigurationRevision.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Get-AzAppConfigurationRevision.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/README.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/README.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/README.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/README.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Remove-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Remove-AzAppConfigurationKeyValue.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Remove-AzAppConfigurationKeyValue.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Remove-AzAppConfigurationKeyValue.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Remove-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Remove-AzAppConfigurationLock.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Remove-AzAppConfigurationLock.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Remove-AzAppConfigurationLock.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Set-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Set-AzAppConfigurationKeyValue.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Set-AzAppConfigurationKeyValue.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Set-AzAppConfigurationKeyValue.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Set-AzAppConfigurationLock.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Set-AzAppConfigurationLock.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Set-AzAppConfigurationLock.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Set-AzAppConfigurationLock.md diff --git a/src/AppConfiguration/AppConfigurationData.Autorest/docs/Test-AzAppConfigurationKeyValue.md b/src/AppConfiguration/AppConfigurationData.Autorest/help/Test-AzAppConfigurationKeyValue.md similarity index 100% rename from src/AppConfiguration/AppConfigurationData.Autorest/docs/Test-AzAppConfigurationKeyValue.md rename to src/AppConfiguration/AppConfigurationData.Autorest/help/Test-AzAppConfigurationKeyValue.md diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.psd1 index da86c57524d9..a12f44d4080c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/Az.ApplicationInsights.psd1 @@ -1,166 +1,24 @@ -# -# Module manifest for module 'Az.ApplicationInsights' -# -# Generated by: Microsoft Corporation -# -# Generated on: 2023/2/3 -# - @{ - -# Script module or binary module file associated with this manifest. -RootModule = './Az.ApplicationInsights.psm1' - -# Version number of this module. -ModuleVersion = '2.2.2' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = '031a685e-5904-433f-b2f8-4fcef3cd15d8' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: ApplicationInsights cmdlets' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.11.2'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = './bin/Az.ApplicationInsights.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.ApplicationInsights.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions 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 functions to export. -FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey', - 'Get-AzApplicationInsightsContinuousExport', - 'Get-AzApplicationInsightsLinkedStorageAccount', - 'Get-AzApplicationInsightsMyWorkbook', - 'Get-AzApplicationInsightsWebTest', - 'Get-AzApplicationInsightsWorkbook', - 'Get-AzApplicationInsightsWorkbookRevision', - 'Get-AzApplicationInsightsWorkbookTemplate', - 'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey', - 'New-AzApplicationInsightsContinuousExport', - 'New-AzApplicationInsightsLinkedStorageAccount', - 'New-AzApplicationInsightsMyWorkbook', - 'New-AzApplicationInsightsWebTest', - 'New-AzApplicationInsightsWebTestGeolocationObject', - 'New-AzApplicationInsightsWebTestHeaderFieldObject', - 'New-AzApplicationInsightsWorkbook', - 'New-AzApplicationInsightsWorkbookTemplate', - 'New-AzApplicationInsightsWorkbookTemplateGalleryObject', - 'Remove-AzApplicationInsights', - 'Remove-AzApplicationInsightsApiKey', - 'Remove-AzApplicationInsightsContinuousExport', - 'Remove-AzApplicationInsightsLinkedStorageAccount', - 'Remove-AzApplicationInsightsMyWorkbook', - 'Remove-AzApplicationInsightsWebTest', - 'Remove-AzApplicationInsightsWorkbook', - 'Remove-AzApplicationInsightsWorkbookTemplate', - 'Set-AzApplicationInsightsContinuousExport', - 'Set-AzApplicationInsightsDailyCap', - 'Set-AzApplicationInsightsPricingPlan', - 'Update-AzApplicationInsights', - 'Update-AzApplicationInsightsLinkedStorageAccount', - 'Update-AzApplicationInsightsMyWorkbook', - 'Update-AzApplicationInsightsWebTestTag', - 'Update-AzApplicationInsightsWorkbook', - 'Update-AzApplicationInsightsWorkbookTemplate' - -# 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 = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases 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 aliases to export. -AliasesToExport = '*' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - + GUID = '031a685e-5904-433f-b2f8-4fcef3cd15d8' + RootModule = './Az.ApplicationInsights.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: ApplicationInsights cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.ApplicationInsights.private.dll' + FormatsToProcess = './Az.ApplicationInsights.format.ps1xml' + FunctionsToExport = 'Get-AzApplicationInsights', 'Get-AzApplicationInsightsApiKey', 'Get-AzApplicationInsightsContinuousExport', 'Get-AzApplicationInsightsLinkedStorageAccount', 'Get-AzApplicationInsightsMyWorkbook', 'Get-AzApplicationInsightsWebTest', 'Get-AzApplicationInsightsWorkbook', 'Get-AzApplicationInsightsWorkbookRevision', 'Get-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsights', 'New-AzApplicationInsightsApiKey', 'New-AzApplicationInsightsContinuousExport', 'New-AzApplicationInsightsLinkedStorageAccount', 'New-AzApplicationInsightsMyWorkbook', 'New-AzApplicationInsightsWebTest', 'New-AzApplicationInsightsWebTestGeolocationObject', 'New-AzApplicationInsightsWebTestHeaderFieldObject', 'New-AzApplicationInsightsWorkbook', 'New-AzApplicationInsightsWorkbookTemplate', 'New-AzApplicationInsightsWorkbookTemplateGalleryObject', 'Remove-AzApplicationInsights', 'Remove-AzApplicationInsightsApiKey', 'Remove-AzApplicationInsightsContinuousExport', 'Remove-AzApplicationInsightsLinkedStorageAccount', 'Remove-AzApplicationInsightsMyWorkbook', 'Remove-AzApplicationInsightsWebTest', 'Remove-AzApplicationInsightsWorkbook', 'Remove-AzApplicationInsightsWorkbookTemplate', 'Set-AzApplicationInsightsContinuousExport', 'Set-AzApplicationInsightsDailyCap', 'Set-AzApplicationInsightsPricingPlan', 'Update-AzApplicationInsights', 'Update-AzApplicationInsightsLinkedStorageAccount', 'Update-AzApplicationInsightsMyWorkbook', 'Update-AzApplicationInsightsWebTestTag', 'Update-AzApplicationInsightsWorkbook', 'Update-AzApplicationInsightsWorkbookTemplate', '*' + AliasesToExport = '*' + PrivateData = @{ PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ApplicationInsights' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Added parameter validation for ''Get-AzApplicationInsights'' [#20697]' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ApplicationInsights' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } } - diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md index 41ca52cc7b4a..9e05517482f8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/README.md +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/README.md @@ -31,9 +31,9 @@ For information on how to develop for `Az.ApplicationInsights`, see [how-to.md]( ``` yaml # lock the commit -branch: 60be34ab72f1483aef8feede852bc9f2f1921897 +commit: 60be34ab72f1483aef8feede852bc9f2f1921897 require: - - $(this-folder)/../readme.azure.noprofile.md + - $(this-folder)/../../readme.azure.noprofile.md input-file: - $(repo)/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/webTests_API.json - $(repo)/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/components_API.json @@ -53,6 +53,10 @@ identity-correction-for-post: true resourcegroup-append: true nested-object-to-string: true +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: - from: swagger-document where: $.info.title diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-APIKeys.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-APIKeys.json new file mode 100644 index 000000000000..64608669d0ea --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-APIKeys.json @@ -0,0 +1,95 @@ +{ + "resourceType": "components/APIKeys", + "apiVersion": "2015-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsApiKey", + "description": "Get the API Key for this key id.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsapikey" + }, + "parameterSets": [ + { + "parameters": [ + "-ApiKeyId ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get the API Key for this key id.", + "parameters": [ + { + "name": "-ApiKeyId", + "value": "[Path.keyId]" + }, + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsApiKey", + "description": "Delete an API Key of an Application Insights component.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsapikey" + }, + "parameterSets": [ + { + "parameters": [ + "-ApiKeyId ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete an API Key of an Application Insights component.", + "parameters": [ + { + "name": "-ApiKeyId", + "value": "[Path.keyId]" + }, + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-exportconfiguration.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-exportconfiguration.json new file mode 100644 index 000000000000..b7a37c1ca8c7 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-exportconfiguration.json @@ -0,0 +1,95 @@ +{ + "resourceType": "components/exportconfiguration", + "apiVersion": "2015-05-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsContinuousExport", + "description": "Get the Continuous Export configuration for this export id.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightscontinuousexport" + }, + "parameterSets": [ + { + "parameters": [ + "-ExportId ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get the Continuous Export configuration for this export id.", + "parameters": [ + { + "name": "-ExportId", + "value": "[Path.exportId]" + }, + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsContinuousExport", + "description": "Delete a Continuous Export configuration of an Application Insights component.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightscontinuousexport" + }, + "parameterSets": [ + { + "parameters": [ + "-ExportId ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a Continuous Export configuration of an Application Insights component.", + "parameters": [ + { + "name": "-ExportId", + "value": "[Path.exportId]" + }, + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-linkedStorageAccounts.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-linkedStorageAccounts.json new file mode 100644 index 000000000000..007f04c7b50e --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components-linkedStorageAccounts.json @@ -0,0 +1,85 @@ +{ + "resourceType": "components/linkedStorageAccounts", + "apiVersion": "2020-03-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsLinkedStorageAccount", + "description": "Returns the current linked storage settings for an Application Insights component.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightslinkedstorageaccount" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Returns the current linked storage settings for an Application Insights component.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsLinkedStorageAccount", + "description": "Delete linked storage accounts for an Application Insights component.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightslinkedstorageaccount" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete linked storage accounts for an Application Insights component.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components.json new file mode 100644 index 000000000000..9b640a5c8638 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/components.json @@ -0,0 +1,47 @@ +{ + "resourceType": "components", + "apiVersion": "2020-02-02", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Remove-AzApplicationInsights", + "description": "Deletes an Application Insights component.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsights" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes an Application Insights component.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/myWorkbooks.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/myWorkbooks.json new file mode 100644 index 000000000000..7759cf8db348 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/myWorkbooks.json @@ -0,0 +1,85 @@ +{ + "resourceType": "myWorkbooks", + "apiVersion": "2021-03-08", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsMyWorkbook", + "description": "Get a single private workbook by its resourceName.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsmyworkbook" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a single private workbook by its resourceName.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsMyWorkbook", + "description": "Delete a private workbook.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsmyworkbook" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a private workbook.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/webtests.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/webtests.json new file mode 100644 index 000000000000..4d1d3dd1bd4d --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/webtests.json @@ -0,0 +1,85 @@ +{ + "resourceType": "webtests", + "apiVersion": "2022-06-15", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsWebTest", + "description": "Get a specific Application Insights web test definition.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightswebtest" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a specific Application Insights web test definition.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.webTestName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsWebTest", + "description": "Deletes an Application Insights web test.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightswebtest" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes an Application Insights web test.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.webTestName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks-revisions.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks-revisions.json new file mode 100644 index 000000000000..fc2e15101d4a --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks-revisions.json @@ -0,0 +1,52 @@ +{ + "resourceType": "workbooks/revisions", + "apiVersion": "2022-04-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsWorkbookRevision", + "description": "Get a single workbook revision defined by its revisionId.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}/revisions/{revisionId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbookrevision" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "-RevisionId ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a single workbook revision defined by its revisionId.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-RevisionId", + "value": "[Path.revisionId]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks.json new file mode 100644 index 000000000000..9f15329dcc18 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooks.json @@ -0,0 +1,47 @@ +{ + "resourceType": "workbooks", + "apiVersion": "2022-04-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Remove-AzApplicationInsightsWorkbook", + "description": "Delete a workbook.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbook" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a workbook.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooktemplates.json b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooktemplates.json new file mode 100644 index 000000000000..c5ec58a72f64 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/UX/microsoft.insights/workbooktemplates.json @@ -0,0 +1,85 @@ +{ + "resourceType": "workbooktemplates", + "apiVersion": "2020-11-20", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights" + }, + "commands": [ + { + "name": "Get-AzApplicationInsightsWorkbookTemplate", + "description": "Get a single workbook template by its resourceName.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbooktemplate" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a single workbook template by its resourceName.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzApplicationInsightsWorkbookTemplate", + "description": "Delete a workbook template.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbooktemplate" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a workbook template.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.resourceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/build-module.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/build-module.ps1 index ac77d71de30d..a3a862df80b9 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/build-module.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/build-module.ps1 @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' $modelCmdlets = @('WebTestGeolocation', 'WorkbookTemplateGallery') +$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' +if (Test-Path $modelCmdletFolder) { + $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder +} if ($modelCmdlets.Count -gt 0) { . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') CreateModelCmdlet($modelCmdlets) @@ -139,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...' @@ -158,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/ApplicationInsights/ApplicationInsights.Autorest/create-model-cmdlets.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/create-model-cmdlets.ps1 index 896bd62a760a..bc1f43902f70 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/create-model-cmdlets.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/create-model-cmdlets.ps1 @@ -23,9 +23,13 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'ApplicationInsights' $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir + if (''.length -gt 0) { + $ModuleName = '' + } else { + $ModuleName = 'Az.ApplicationInsights' + } $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' @@ -64,10 +68,10 @@ function CreateModelCmdlet { $ObjectType = $Model $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name - if ($ObjectType.StartsWith($ModuleName)) { + if ($ObjectType.StartsWith('ApplicationInsights')) { $ModulePrefix = '' } else { - $ModulePrefix = $ModuleName + $ModulePrefix = 'ApplicationInsights' } $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir @@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object #> function New-Az${ModulePrefix}${ObjectType}Object { [OutputType('${ObjectTypeWithNamespace}')] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 index 43a3b2636174..bb2abcf8fc65 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Get-AzApplicationInsights.ps1 @@ -126,10 +126,10 @@ function Get-AzApplicationInsights { 'GetByResourceId' { $resourceId = $PSBoundParameters['ResourceId'] $null = $PSBoundParameters.Remove('ResourceId') - $component = ($resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsights) + $component = (. Az.ApplicationInsights.internal\Get-AzApplicationInsights -InputObject $resourceId @PSBoundParameters) if ($full) { - $pricingPlan = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentCurrentBillingFeature - $dailyCapStatus = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentQuotaStatus + $pricingPlan = . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentCurrentBillingFeature -InputObject $resourceId @PSBoundParameters + $dailyCapStatus = . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentQuotaStatus -InputObject $resourceId @PSBoundParameters } break } diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsContinuousExport.ps1 index a525f3f4eda2..1cea47e33bb9 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Set-AzApplicationInsightsContinuousExport.ps1 @@ -19,7 +19,7 @@ Create a Continuous Export configuration of an Application Insights component. .Description Create a Continuous Export configuration of an Application Insights component. .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport +https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightscontinuousexport #> function Set-AzApplicationInsightsContinuousExport { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration])] @@ -169,4 +169,4 @@ function Set-AzApplicationInsightsContinuousExport { . Az.ApplicationInsights.internal\Set-AzApplicationInsightsContinuousExport @PSBoundParameters } } - \ No newline at end of file + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 index 8803bc1fc783..11d037f66cad 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/Update-AzApplicationInsights.ps1 @@ -22,7 +22,7 @@ Note: You cannot specify a different value for InstrumentationKey nor AppId in t Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights +https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsights #> function Update-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] @@ -267,4 +267,4 @@ function Update-AzApplicationInsights { . New-AzApplicationInsights @PSBoundParameters } } - \ No newline at end of file + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWebTestGeolocationObject.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWebTestGeolocationObject.ps1 index a40352f34e1d..1f9d9454bec3 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWebTestGeolocationObject.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWebTestGeolocationObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for WebTestGeolocation. .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject #> function New-AzApplicationInsightsWebTestGeolocationObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation')] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 index 01ef3cfbceaf..c7c03a5e521a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/custom/autogen-model-cmdlets/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for WorkbookTemplateGallery. .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject #> function New-AzApplicationInsightsWorkbookTemplateGalleryObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery')] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsights.ps1 index d1a96fbac737..9cb0f62e24d6 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsights.ps1 @@ -156,7 +156,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -184,6 +184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsApiKey.ps1 index 09b13b1b0c6f..a9cf7f4f2c8a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsApiKey.ps1 @@ -96,7 +96,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -174,6 +175,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsContinuousExport.ps1 index 46cc3c8716d7..f53bd3805c42 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsContinuousExport.ps1 @@ -96,7 +96,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -174,6 +175,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsLinkedStorageAccount.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsLinkedStorageAccount.ps1 index fa74f60f138b..0b1704bec4fa 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsLinkedStorageAccount.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsLinkedStorageAccount.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -136,7 +137,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -161,6 +162,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsMyWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsMyWorkbook.ps1 index cc5a01997639..1fcd70e056ce 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsMyWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsMyWorkbook.ps1 @@ -91,7 +91,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -169,6 +170,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWebTest.ps1 index 8f8795bd039c..449baa2645de 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWebTest.ps1 @@ -110,7 +110,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -162,7 +163,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -190,6 +191,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbook.ps1 index fc009ee887be..8b3fa3336bf0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbook.ps1 @@ -122,7 +122,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -174,7 +175,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -201,6 +202,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookRevision.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookRevision.ps1 index 9949acc995c6..851586f56249 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookRevision.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookRevision.ps1 @@ -96,7 +96,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -174,6 +175,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookTemplate.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookTemplate.ps1 index cf79ad222443..63cbbb52d0e1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookTemplate.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Get-AzApplicationInsightsWorkbookTemplate.ps1 @@ -114,7 +114,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -166,7 +167,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -191,6 +192,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsights.ps1 index cb475a502b5e..ef345f559fe1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsights.ps1 @@ -233,7 +233,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -257,6 +257,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsApiKey.ps1 index ff779d125dc7..87ad45af8c82 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsApiKey.ps1 @@ -125,7 +125,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -149,6 +149,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsContinuousExport.ps1 index ba595bbaca63..4df088f915ea 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsContinuousExport.ps1 @@ -158,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -182,6 +182,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsLinkedStorageAccount.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsLinkedStorageAccount.ps1 index af85478442c2..a2b298fd66dc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsLinkedStorageAccount.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsLinkedStorageAccount.ps1 @@ -64,7 +64,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -116,7 +117,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -140,6 +141,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsMyWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsMyWorkbook.ps1 index ea938cf60e6c..a74ad3ea2d9a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsMyWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsMyWorkbook.ps1 @@ -147,7 +147,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -199,7 +200,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -226,6 +227,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTest.ps1 index 741fa208e3d4..11327de8d30b 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTest.ps1 @@ -313,7 +313,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -338,6 +338,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestGeolocationObject.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestGeolocationObject.ps1 index b4d51659d77b..7c608ded2528 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestGeolocationObject.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestGeolocationObject.ps1 @@ -25,7 +25,7 @@ New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject #> function New-AzApplicationInsightsWebTestGeolocationObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation])] @@ -47,7 +47,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -68,6 +68,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestHeaderFieldObject.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestHeaderFieldObject.ps1 index f7ff5ff9c31b..d60c4c88b3c8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestHeaderFieldObject.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWebTestHeaderFieldObject.ps1 @@ -53,7 +53,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -74,6 +74,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbook.ps1 index 0ae6d73a527b..82097e43dedf 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbook.ps1 @@ -148,7 +148,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -200,7 +201,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -227,6 +228,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplate.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplate.ps1 index bbb90b8894a8..820119bbe860 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplate.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplate.ps1 @@ -144,7 +144,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -196,7 +197,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -220,6 +221,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 index edde4649780b..2f177799ae7d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/New-AzApplicationInsightsWorkbookTemplateGalleryObject.ps1 @@ -25,7 +25,7 @@ New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Nam .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject #> function New-AzApplicationInsightsWorkbookTemplateGalleryObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery])] @@ -71,7 +71,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -92,6 +92,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/ProxyCmdletDefinitions.ps1 index 4a84294ba8fb..7c8deca0060e 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -96,7 +96,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -174,6 +175,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -300,7 +305,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -352,7 +358,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -378,6 +384,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -492,7 +502,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -544,7 +555,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -569,6 +580,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -690,7 +705,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -742,7 +758,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -768,6 +784,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -908,7 +928,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -960,7 +981,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -988,6 +1009,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -1114,7 +1139,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1166,7 +1192,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1192,6 +1218,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -1336,7 +1366,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1388,7 +1419,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1413,6 +1444,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -1565,7 +1600,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1617,7 +1653,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1644,6 +1680,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -1738,7 +1778,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1790,7 +1831,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1814,6 +1855,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -1991,7 +2036,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2043,7 +2089,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2070,6 +2116,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -2244,7 +2294,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2296,7 +2347,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2320,6 +2371,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -2498,7 +2553,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2550,7 +2606,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2577,6 +2633,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -2698,7 +2758,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2750,7 +2811,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2775,6 +2836,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -2896,7 +2961,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2948,7 +3014,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2973,6 +3039,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -3087,7 +3157,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3145,7 +3216,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3170,6 +3241,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -3256,7 +3331,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3314,7 +3390,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3338,6 +3414,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -3454,7 +3534,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3512,7 +3593,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3537,6 +3618,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -3652,7 +3737,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3710,7 +3796,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3735,6 +3821,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -3850,7 +3940,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3908,7 +3999,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3933,6 +4024,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -4047,7 +4142,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -4105,7 +4201,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4130,6 +4226,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -4251,7 +4351,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -4303,7 +4404,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4328,6 +4429,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -4460,7 +4565,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -4512,7 +4618,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4536,6 +4642,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -4658,7 +4768,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -4710,7 +4821,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4735,6 +4846,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -4900,7 +5015,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -4952,7 +5068,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4977,6 +5093,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -5143,7 +5263,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -5195,7 +5316,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5223,6 +5344,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -5409,7 +5534,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5437,6 +5562,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -5700,7 +5829,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5724,6 +5853,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -5879,7 +6012,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5903,6 +6036,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6091,7 +6228,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6115,6 +6252,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6458,7 +6599,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6483,6 +6624,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6538,7 +6683,7 @@ New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject #> function New-AzApplicationInsightsWebTestGeolocationObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation])] @@ -6560,7 +6705,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6581,6 +6726,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6664,7 +6813,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6685,6 +6834,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6740,7 +6893,7 @@ New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Nam .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery .Link -https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject +https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject #> function New-AzApplicationInsightsWorkbookTemplateGalleryObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery])] @@ -6786,7 +6939,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6807,6 +6960,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -6866,7 +7023,7 @@ Set-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name " .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport +https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightscontinuousexport #> function Set-AzApplicationInsightsContinuousExport { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration])] @@ -7007,7 +7164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7031,6 +7188,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -7182,7 +7343,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7206,6 +7367,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -7365,7 +7530,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7389,6 +7554,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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) @@ -7446,7 +7615,7 @@ Update-AzApplicationInsights -ResourceGroupName "rgName" -Name "aiName" -PublicN .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights +https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsights #> function Update-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] @@ -7638,7 +7807,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7662,6 +7831,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsights.ps1 index 7bb0e70a4481..8675af66ed18 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsights.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -142,7 +143,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -167,6 +168,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsApiKey.ps1 index d87d38aae953..b9263da06f1f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsApiKey.ps1 @@ -91,7 +91,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsContinuousExport.ps1 index fba0f3e4bdaa..e8094b34cd52 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsContinuousExport.ps1 @@ -91,7 +91,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsLinkedStorageAccount.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsLinkedStorageAccount.ps1 index 2a90d51be020..4cb606291ad8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsLinkedStorageAccount.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsLinkedStorageAccount.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -142,7 +143,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -167,6 +168,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsMyWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsMyWorkbook.ps1 index eb8401a11658..ca180865188f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsMyWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsMyWorkbook.ps1 @@ -56,7 +56,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -114,7 +115,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -138,6 +139,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWebTest.ps1 index a01b99f10e58..8538f92d12bd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWebTest.ps1 @@ -86,7 +86,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -144,7 +145,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -169,6 +170,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbook.ps1 index d24a43d6438c..83d4cc36f401 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbook.ps1 @@ -85,7 +85,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbookTemplate.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbookTemplate.ps1 index 157c8b7a476c..11bc3dd8574c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbookTemplate.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Remove-AzApplicationInsightsWorkbookTemplate.ps1 @@ -85,7 +85,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsContinuousExport.ps1 index ddcf82a7adf6..ce543d8828b7 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsContinuousExport.ps1 @@ -29,7 +29,7 @@ Set-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name " .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport +https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightscontinuousexport #> function Set-AzApplicationInsightsContinuousExport { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration])] @@ -170,7 +170,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -194,6 +194,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsDailyCap.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsDailyCap.ps1 index 105276e1aeba..58c19dd48c10 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsDailyCap.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsDailyCap.ps1 @@ -121,7 +121,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -145,6 +145,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsPricingPlan.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsPricingPlan.ps1 index a89d3489bf8c..feef636ad1ae 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsPricingPlan.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Set-AzApplicationInsightsPricingPlan.ps1 @@ -129,7 +129,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -153,6 +153,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsights.ps1 index dce7f3537aac..340b81e74997 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsights.ps1 @@ -27,7 +27,7 @@ Update-AzApplicationInsights -ResourceGroupName "rgName" -Name "aiName" -PublicN .Outputs Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent .Link -https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights +https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsights #> function Update-AzApplicationInsights { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])] @@ -219,7 +219,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -243,6 +243,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsLinkedStorageAccount.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsLinkedStorageAccount.ps1 index f0fab9f40141..d1dc06c07262 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsLinkedStorageAccount.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsLinkedStorageAccount.ps1 @@ -91,7 +91,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -143,7 +144,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,6 +169,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsMyWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsMyWorkbook.ps1 index b7971c2b6232..c20a248120b0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsMyWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsMyWorkbook.ps1 @@ -102,7 +102,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -154,7 +155,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -178,6 +179,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWebTestTag.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWebTestTag.ps1 index cb78aa33ac32..c616e38930ee 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWebTestTag.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWebTestTag.ps1 @@ -92,7 +92,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -144,7 +145,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -169,6 +170,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbook.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbook.ps1 index 920c3def852a..7c411430b626 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbook.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbook.ps1 @@ -136,7 +136,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -188,7 +189,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -216,6 +217,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbookTemplate.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbookTemplate.ps1 index 5267b765e827..7bf2f3274204 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbookTemplate.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/exports/Update-AzApplicationInsightsWorkbookTemplate.ps1 @@ -135,7 +135,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -187,7 +188,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -212,6 +213,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/generate-help.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-help.ps1 index c9f287bf62be..ccb448353373 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generate-help.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generate-portal-ux.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..5cf4e6ebbf2d --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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.ApplicationInsights' +$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.ApplicationInsights.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/ApplicationInsights/ApplicationInsights.Autorest/generated/api/ApplicationInsightsManagementClient.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/api/ApplicationInsightsManagementClient.cs index fd6e767de82a..b86b4677d4ad 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/api/ApplicationInsightsManagementClient.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/api/ApplicationInsightsManagementClient.cs @@ -4028,7 +4028,7 @@ public partial class ApplicationInsightsManagementClient /// in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that /// the results are expected. /// Note: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge - /// operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , + /// operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , /// scoped to specific resource id. /// /// The name of the resource group. The name is case insensitive. @@ -4086,7 +4086,7 @@ public partial class ApplicationInsightsManagementClient /// in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that /// the results are expected. /// Note: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge - /// operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , + /// operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , /// scoped to specific resource id. /// /// diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_Purge.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_Purge.cs index 46e7bfeb5e22..d7c0318125b9 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_Purge.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_Purge.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets /// command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. /// You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation /// is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly - /// on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource + /// on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource /// id. /// /// @@ -23,8 +23,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Clear, @"AzApplicationInsights_Purge", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(string))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/purge", ApiVersion = "2020-02-02")] public partial class ClearAzApplicationInsights_Purge : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -64,9 +65,10 @@ public partial class ClearAzApplicationInsights_Purge : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeExpanded.cs index 010201ff7ab2..edc193cfa1ba 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets /// command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. /// You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation /// is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly - /// on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource + /// on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource /// id. /// /// @@ -23,8 +23,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Clear, @"AzApplicationInsights_PurgeExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(string))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/purge", ApiVersion = "2020-02-02")] public partial class ClearAzApplicationInsights_PurgeExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -54,9 +55,10 @@ public partial class ClearAzApplicationInsights_PurgeExpanded : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentity.cs index 8c13f516320f..a7243d3f657a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentity.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets /// command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. /// You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation /// is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly - /// on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource + /// on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource /// id. /// /// @@ -23,8 +23,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Clear, @"AzApplicationInsights_PurgeViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(string))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/purge", ApiVersion = "2020-02-02")] public partial class ClearAzApplicationInsights_PurgeViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -64,9 +65,10 @@ public partial class ClearAzApplicationInsights_PurgeViaIdentity : global::Syste public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentityExpanded.cs index 778f0c7d581e..29e271abf240 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/ClearAzApplicationInsights_PurgeViaIdentityExpanded.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets /// command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. /// You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation /// is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly - /// on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource + /// on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource /// id. /// /// @@ -23,8 +23,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Clear, @"AzApplicationInsights_PurgeViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(string))] - [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/purge", ApiVersion = "2020-02-02")] public partial class ClearAzApplicationInsights_PurgeViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -54,9 +55,10 @@ public partial class ClearAzApplicationInsights_PurgeViaIdentityExpanded : globa public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_Get.cs index f05003372e86..d30ef2c5fd63 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the annotation for given id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations/{annotationId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsAnnotation_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsAnnotation_Get : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_GetViaIdentity.cs index 08ebc2d319ab..20f9e4dec5c8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the annotation for given id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations/{annotationId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsAnnotation_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsAnnotation_GetViaIdentity : global: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_List.cs index bfdd9912b0fb..4ac0e7417cf5 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsAnnotation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Gets the list of annotations for a component for given time range")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsAnnotation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsAnnotation_List : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_Get.cs index c87909df866f..76992168c491 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the API Key for this key id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsApiKey_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class GetAzApplicationInsightsApiKey_Get : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_GetViaIdentity.cs index 6b998da20f38..e3ff2a0a90ea 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the API Key for this key id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsApiKey_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsApiKey_GetViaIdentity : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_List.cs index d5130114122b..6c616cec2210 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsApiKey_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Gets a list of API keys of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/ApiKeys", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsApiKey_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsApiKey_List : global::System.Manage public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_Get.cs index fdb154fbb66d..1358b95ed61f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentFeature))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns all available features of the application insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/getavailablebillingfeatures", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentAvailableFeature_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentAvailableFeature_Get : glo public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_GetViaIdentity.cs index e52ece149aa2..8701eeb6e1dd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentAvailableFeature_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentFeature))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns all available features of the application insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/getavailablebillingfeatures", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentAvailableFeature_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentAvailableFeature_GetViaIde public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_Get.cs index b6b8402b4917..1e527144aba0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns current billing features for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/currentbillingfeatures", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentCurrentBillingFeature_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentCurrentBillingFeature_Get public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_GetViaIdentity.cs index d9e4507c39ba..cba1a828f506 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentCurrentBillingFeature_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns current billing features for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/currentbillingfeatures", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentCurrentBillingFeature_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentCurrentBillingFeature_GetV public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_Get.cs index dc83663638cf..5fa209f1b45a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentFeatureCapabilities))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns feature capabilities of the application insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/featurecapabilities", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentFeatureCapability_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentFeatureCapability_Get : gl public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_GetViaIdentity.cs index 7b5bc124668e..a5dc2b97c1d8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentFeatureCapability_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentFeatureCapabilities))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns feature capabilities of the application insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/featurecapabilities", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentFeatureCapability_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentFeatureCapability_GetViaId public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_Get.cs index 6b5df5bb334f..563373f0e80c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PurgeState))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get status for an ongoing purge operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/operations/{purgeId}", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsightsComponentPurgeStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentPurgeStatus_Get : global:: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity.cs index fab7f660fdbe..11767deb537d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PurgeState))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get status for an ongoing purge operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/operations/{purgeId}", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsightsComponentPurgeStatus_GetViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_Get.cs index 7b2727230307..55ab71eb4971 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_Get.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentQuotaStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns daily data volume cap (quota) status for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/quotastatus", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentQuotaStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -45,9 +46,10 @@ public partial class GetAzApplicationInsightsComponentQuotaStatus_Get : global:: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity.cs index 49cf7c110659..a6e8383c3411 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentQuotaStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns daily data volume cap (quota) status for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/quotastatus", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -45,9 +46,10 @@ public partial class GetAzApplicationInsightsComponentQuotaStatus_GetViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_Get.cs index 491d34088e32..62553668cb92 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the Continuous Export configuration for this export id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsContinuousExport_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsContinuousExport_Get : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_GetViaIdentity.cs index 9a475e205a7f..30d248acd743 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the Continuous Export configuration for this export id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsContinuousExport_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsContinuousExport_GetViaIdentity : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_List.cs index 6920abe10074..0ccd5650719f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsContinuousExport_List.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Gets a list of Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration", ApiVersion = "2015-05-01")] public partial class GetAzApplicationInsightsContinuousExport_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -44,9 +45,10 @@ public partial class GetAzApplicationInsightsContinuousExport_List : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_Get.cs index d4e625c2149e..9a652afedfa8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_Get.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns the current linked storage settings for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class GetAzApplicationInsightsLinkedStorageAccount_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -44,9 +45,10 @@ public partial class GetAzApplicationInsightsLinkedStorageAccount_Get : global:: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity.cs index 4cc909fd310e..c788c8fe4a8d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns the current linked storage settings for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -44,9 +45,10 @@ public partial class GetAzApplicationInsightsLinkedStorageAccount_GetViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_Get.cs index 7cead745bb0e..8f8c746d7763 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single private workbook by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", ApiVersion = "2021-03-08")] public partial class GetAzApplicationInsightsMyWorkbook_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsMyWorkbook_Get : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List.cs index 48233f1e6c70..7bd5629c4fc3 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all private workbooks defined within a specified resource group and category.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks", ApiVersion = "2021-03-08")] public partial class GetAzApplicationInsightsMyWorkbook_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -82,9 +83,10 @@ public partial class GetAzApplicationInsightsMyWorkbook_List : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List1.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List1.cs index bcf4aef25980..07e259586992 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List1.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsMyWorkbook_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all private workbooks defined within a specified subscription and category.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/microsoft.insights/myWorkbooks", ApiVersion = "2021-03-08")] public partial class GetAzApplicationInsightsMyWorkbook_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -80,9 +81,10 @@ public partial class GetAzApplicationInsightsMyWorkbook_List1 : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsOperation_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsOperation_List.cs index 339abde1b547..a2cb9b7c7cd1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsOperation_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsOperation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Lists all of the available insights REST API operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/providers/microsoft.insights/operations", ApiVersion = "2021-03-08")] public partial class GetAzApplicationInsightsOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -49,9 +50,10 @@ public partial class GetAzApplicationInsightsOperation_List : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_Get.cs index 8fbde53c1f5e..94a07a7863cf 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a specific Application Insights web test definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class GetAzApplicationInsightsWebTest_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWebTest_Get : global::System.Manage public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_GetViaIdentity.cs index f9bf21abca9e..a7a4d2f68f84 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a specific Application Insights web test definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class GetAzApplicationInsightsWebTest_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWebTest_GetViaIdentity : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List.cs index ac805f3b4b7b..b7ee2f7fe7dd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all Application Insights web tests defined for the specified resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests", ApiVersion = "2022-06-15")] public partial class GetAzApplicationInsightsWebTest_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -50,9 +51,10 @@ public partial class GetAzApplicationInsightsWebTest_List : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List1.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List1.cs index 32ee88a15780..27115d718a0a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List1.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List1.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all Application Insights web test definitions for the specified subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/microsoft.insights/webtests", ApiVersion = "2022-06-15")] public partial class GetAzApplicationInsightsWebTest_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -50,9 +51,10 @@ public partial class GetAzApplicationInsightsWebTest_List1 : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List2.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List2.cs index c675e53b93c4..76d96c0ceeb7 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List2.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWebTest_List2.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all Application Insights web tests defined for the specified component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{componentName}/webtests", ApiVersion = "2022-06-15")] public partial class GetAzApplicationInsightsWebTest_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -62,9 +63,10 @@ public partial class GetAzApplicationInsightsWebTest_List2 : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_Get.cs index 02171d0a40a5..49399d35a4e8 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook revision defined by its revisionId.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}/revisions/{revisionId}", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbookRevision_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWorkbookRevision_Get : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_GetViaIdentity.cs index 852e838fd40b..f7d5c7191c47 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook revision defined by its revisionId.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}/revisions/{revisionId}", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbookRevision_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWorkbookRevision_GetViaIdentity : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_List.cs index dd6ec64adcb1..54ead0fe31cb 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookRevision_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get the revisions for the workbook defined by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}/revisions", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbookRevision_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzApplicationInsightsWorkbookRevision_List : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_Get.cs index e7ccae418e96..33f2e56c7f55 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook template by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class GetAzApplicationInsightsWorkbookTemplate_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWorkbookTemplate_Get : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity.cs index 6d32a75e1953..f5ca6b3d17dd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook template by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzApplicationInsightsWorkbookTemplate_GetViaIdentity : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_Get.cs index 69689c70f1e2..bee8208a1619 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbook_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -59,9 +60,10 @@ public partial class GetAzApplicationInsightsWorkbook_Get : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_GetViaIdentity.cs index 1cd4bf341b1b..9098a4741718 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_GetViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get a single workbook by its resourceName.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbook_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -59,9 +60,10 @@ public partial class GetAzApplicationInsightsWorkbook_GetViaIdentity : global::S public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List.cs index 1bccb9528b1b..58b0b52a8e61 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all Workbooks defined within a specified subscription and category.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbook_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -80,9 +81,10 @@ public partial class GetAzApplicationInsightsWorkbook_List : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List1.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List1.cs index 033080c2e210..df2fec766bb9 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List1.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsightsWorkbook_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Get all Workbooks defined within a specified resource group and category.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks", ApiVersion = "2022-04-01")] public partial class GetAzApplicationInsightsWorkbook_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -80,9 +81,10 @@ public partial class GetAzApplicationInsightsWorkbook_List1 : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_Get.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_Get.cs index f34d2e47f031..f4884816e85d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_Get.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_Get.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsights_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsights_Get : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_GetViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_GetViaIdentity.cs index 73499f92e62e..b48e15d20743 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_GetViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_GetViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Returns an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsights_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class GetAzApplicationInsights_GetViaIdentity : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List.cs index 1d049a902eb4..a36586a34973 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Gets a list of all Application Insights components within a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/microsoft.insights/components", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsights_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -49,9 +50,10 @@ public partial class GetAzApplicationInsights_List : global::System.Management.A public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List1.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List1.cs index 0dee57224020..4696f7240f3d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List1.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/GetAzApplicationInsights_List1.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Gets a list of Application Insights components within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components", ApiVersion = "2020-02-02")] public partial class GetAzApplicationInsights_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -49,9 +50,10 @@ public partial class GetAzApplicationInsights_List1 : global::System.Management. public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_Create.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_Create.cs index 89b2c104f5d6..7e84c34975fd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_Create.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_Create.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsAnnotation_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class NewAzApplicationInsightsAnnotation_Create : global::System. public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateExpanded.cs index 5f864589934b..ed1794ff7fe1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsAnnotation_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -68,9 +69,10 @@ public partial class NewAzApplicationInsightsAnnotation_CreateExpanded : global: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentity.cs index 04b1780fd2a5..a451e5a68fd6 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsAnnotation_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class NewAzApplicationInsightsAnnotation_CreateViaIdentity : glob public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentityExpanded.cs index 6d4906cf145b..e247a7899263 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsAnnotation_CreateViaIdentityExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAnnotation))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsAnnotation_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -68,9 +69,10 @@ public partial class NewAzApplicationInsightsAnnotation_CreateViaIdentityExpande public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsApiKey_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsApiKey_CreateExpanded.cs index 1e9f242cc06d..0640dfc02124 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsApiKey_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsApiKey_CreateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create an API Key of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/ApiKeys", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsApiKey_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -46,9 +47,10 @@ public partial class NewAzApplicationInsightsApiKey_CreateExpanded : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_Create.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_Create.cs index 070add5fb1d2..0d242dfcf8a7 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_Create.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_Create.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsContinuousExport_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class NewAzApplicationInsightsContinuousExport_Create : global::S public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateExpanded.cs index c2ebdfe705cc..278b9662f2ed 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsContinuousExport_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class NewAzApplicationInsightsContinuousExport_CreateExpanded : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentity.cs index 944f8f92bebf..9a8a397530fb 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsContinuousExport_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class NewAzApplicationInsightsContinuousExport_CreateViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentityExpanded.cs index c9e21f9b16d9..45ab59cbd0df 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsContinuousExport_CreateViaIdentityExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration", ApiVersion = "2015-05-01")] public partial class NewAzApplicationInsightsContinuousExport_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class NewAzApplicationInsightsContinuousExport_CreateViaIdentityE public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded.cs index 0b1656442344..ebde43228d91 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Replace current linked storage account for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -45,9 +46,10 @@ public partial class NewAzApplicationInsightsLinkedStorageAccount_CreateExpanded public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsMyWorkbook_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsMyWorkbook_CreateExpanded.cs index 43728b9bd4c0..ab109b1369bc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsMyWorkbook_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsMyWorkbook_CreateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a new private workbook.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", ApiVersion = "2021-03-08")] public partial class NewAzApplicationInsightsMyWorkbook_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class NewAzApplicationInsightsMyWorkbook_CreateExpanded : global: public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWebTest_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWebTest_CreateExpanded.cs index d4e0b2e55a11..fd40d1334b3a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWebTest_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWebTest_CreateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates or updates an Application Insights web test definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class NewAzApplicationInsightsWebTest_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -93,9 +94,10 @@ public partial class NewAzApplicationInsightsWebTest_CreateExpanded : global::Sy public global::System.Management.Automation.SwitchParameter ContentPassIfTextFound { get => _webTestDefinitionBody.ContentValidationPassIfTextFound ?? default(global::System.Management.Automation.SwitchParameter); set => _webTestDefinitionBody.ContentValidationPassIfTextFound = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbookTemplate_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbookTemplate_CreateExpanded.cs index 514075badf90..bf1f89d63673 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbookTemplate_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbookTemplate_CreateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a new workbook template.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class NewAzApplicationInsightsWorkbookTemplate_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class NewAzApplicationInsightsWorkbookTemplate_CreateExpanded : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbook_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbook_CreateExpanded.cs index 791afb0a7b48..6357efef8625 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbook_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsightsWorkbook_CreateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Create a new workbook.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class NewAzApplicationInsightsWorkbook_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class NewAzApplicationInsightsWorkbook_CreateExpanded : global::S public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_Create.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_Create.cs index 1503c76ff5dd..4478c2fb908c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_Create.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_Create.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class NewAzApplicationInsights_Create : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -46,9 +47,10 @@ public partial class NewAzApplicationInsights_Create : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateExpanded.cs index efcd8489b0cd..336d348a1cc4 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateExpanded.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class NewAzApplicationInsights_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -61,9 +62,10 @@ public partial class NewAzApplicationInsights_CreateExpanded : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentity.cs index 4b616d87377a..b9487123e38d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentity.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class NewAzApplicationInsights_CreateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -46,9 +47,10 @@ public partial class NewAzApplicationInsights_CreateViaIdentity : global::System public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentityExpanded.cs index eb506485753d..fab1afd844bc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/NewAzApplicationInsights_CreateViaIdentityExpanded.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class NewAzApplicationInsights_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -61,9 +62,10 @@ public partial class NewAzApplicationInsights_CreateViaIdentityExpanded : global public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_Delete.cs index fbfc801afdd9..ffc8e0617181 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_Delete.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations/{annotationId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsAnnotation_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class RemoveAzApplicationInsightsAnnotation_Delete : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity.cs index e67c95d4df3b..1cfc76240420 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete an Annotation of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/Annotations/{annotationId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class RemoveAzApplicationInsightsAnnotation_DeleteViaIdentity : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_Delete.cs index 24565195e9e0..3da31c34b560 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete an API Key of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsApiKey_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class RemoveAzApplicationInsightsApiKey_Delete : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_DeleteViaIdentity.cs index aa74bb77ae32..3161128653a5 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsApiKey_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete an API Key of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/APIKeys/{keyId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsApiKey_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsApiKey_DeleteViaIdentity : globa public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_Delete.cs index c135139b34ea..f0eb35d9ba54 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsContinuousExport_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsContinuousExport_Delete : global public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_DeleteViaIdentity.cs index e72a353e6a6d..f69b436e3665 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsContinuousExport_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a Continuous Export configuration of an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class RemoveAzApplicationInsightsContinuousExport_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsContinuousExport_DeleteViaIdenti public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_Delete.cs index cd8c2b33a783..c97fef7ff58b 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete linked storage accounts for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class RemoveAzApplicationInsightsLinkedStorageAccount_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsLinkedStorageAccount_Delete : gl public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaIdentity.cs index a992ef440680..987d56dcee5d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete linked storage accounts for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsLinkedStorageAccount_DeleteViaId public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsMyWorkbook_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsMyWorkbook_Delete.cs index c64b180e794c..6b28b19f3766 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsMyWorkbook_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsMyWorkbook_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a private workbook.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", ApiVersion = "2021-03-08")] public partial class RemoveAzApplicationInsightsMyWorkbook_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsMyWorkbook_Delete : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_Delete.cs index 810630d72bd0..689e2de2b3e3 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Deletes an Application Insights web test.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class RemoveAzApplicationInsightsWebTest_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWebTest_Delete : global::System. public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_DeleteViaIdentity.cs index d4b81f12b568..10a68ce9b6ad 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWebTest_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Deletes an Application Insights web test.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class RemoveAzApplicationInsightsWebTest_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWebTest_DeleteViaIdentity : glob public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_Delete.cs index 5ca686172e08..9db0ae3c361a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a workbook template.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class RemoveAzApplicationInsightsWorkbookTemplate_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWorkbookTemplate_Delete : global public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdentity.cs index e2e5e78a93c8..f0513af3c642 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a workbook template.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWorkbookTemplate_DeleteViaIdenti public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_Delete.cs index 044e33c6c6a6..b6f6f7755066 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a workbook.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class RemoveAzApplicationInsightsWorkbook_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWorkbook_Delete : global::System public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity.cs index 250e4f82673b..e93dd7339140 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Delete a workbook.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsightsWorkbook_DeleteViaIdentity : glo public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_Delete.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_Delete.cs index dae00f6e9a3c..273cdf1f343b 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_Delete.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Deletes an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class RemoveAzApplicationInsights_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsights_Delete : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_DeleteViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_DeleteViaIdentity.cs index 2e824a9b670b..0a1b7b12a302 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_DeleteViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/RemoveAzApplicationInsights_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Deletes an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class RemoveAzApplicationInsights_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class RemoveAzApplicationInsights_DeleteViaIdentity : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_Update.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_Update.cs index 9874a8238671..584bfb2d5365 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_Update.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_Update.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update current billing features for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/currentbillingfeatures", ApiVersion = "2015-05-01")] public partial class SetAzApplicationInsightsComponentCurrentBillingFeature_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class SetAzApplicationInsightsComponentCurrentBillingFeature_Upda public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_UpdateExpanded.cs index 271760cfb8a3..1461527b3db7 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsComponentCurrentBillingFeature_UpdateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update current billing features for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/currentbillingfeatures", ApiVersion = "2015-05-01")] public partial class SetAzApplicationInsightsComponentCurrentBillingFeature_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -105,9 +106,10 @@ public partial class SetAzApplicationInsightsComponentCurrentBillingFeature_Upda public int DataVolumeCapWarningThreshold { get => _billingFeaturesPropertiesBody.DataVolumeCapWarningThreshold ?? default(int); set => _billingFeaturesPropertiesBody.DataVolumeCapWarningThreshold = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_Update.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_Update.cs index 057922e55ddf..ef07e6c6005e 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_Update.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_Update.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update the Continuous Export configuration for this export id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class SetAzApplicationInsightsContinuousExport_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -43,9 +44,10 @@ public partial class SetAzApplicationInsightsContinuousExport_Update : global::S public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_UpdateExpanded.cs index 0f6a558caa24..3b06babc4cea 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsightsContinuousExport_UpdateExpanded.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update the Continuous Export configuration for this export id.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/exportconfiguration/{exportId}", ApiVersion = "2015-05-01")] public partial class SetAzApplicationInsightsContinuousExport_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class SetAzApplicationInsightsContinuousExport_UpdateExpanded : g public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_Update.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_Update.cs index 84b3f8a20d36..439fc2260699 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_Update.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_Update.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class SetAzApplicationInsights_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -46,9 +47,10 @@ public partial class SetAzApplicationInsights_Update : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_UpdateExpanded.cs index 30fadcd0cb9c..0a8bfb5e86ca 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/SetAzApplicationInsights_UpdateExpanded.cs @@ -20,6 +20,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class SetAzApplicationInsights_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -61,9 +62,10 @@ public partial class SetAzApplicationInsights_UpdateExpanded : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_Update.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_Update.cs index bdd721b4011f..e05ba9b28af7 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_Update.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_Update.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates an existing component's tags. To update other fields use the CreateOrUpdate method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class UpdateAzApplicationInsightsComponentTag_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -60,9 +61,10 @@ public partial class UpdateAzApplicationInsightsComponentTag_Update : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.ITagsResource ComponentTag { get => this._componentTag; set => this._componentTag = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateExpanded.cs index cbf32aa96e14..4d57c161c5eb 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates an existing component's tags. To update other fields use the CreateOrUpdate method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class UpdateAzApplicationInsightsComponentTag_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -50,9 +51,10 @@ public partial class UpdateAzApplicationInsightsComponentTag_UpdateExpanded : gl public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity.cs index b7ecdb19736e..82625fcb3e09 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates an existing component's tags. To update other fields use the CreateOrUpdate method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -60,9 +61,10 @@ public partial class UpdateAzApplicationInsightsComponentTag_UpdateViaIdentity : public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.ITagsResource ComponentTag { get => this._componentTag; set => this._componentTag = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityExpanded.cs index 2c0273e52ee7..2f217b78e444 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates an existing component's tags. To update other fields use the CreateOrUpdate method.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}", ApiVersion = "2020-02-02")] public partial class UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -50,9 +51,10 @@ public partial class UpdateAzApplicationInsightsComponentTag_UpdateViaIdentityEx public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpanded.cs index 2694e79f70a6..b8b8e280f43a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update linked storage accounts for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -45,9 +46,10 @@ public partial class UpdateAzApplicationInsightsLinkedStorageAccount_UpdateExpan public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaIdentityExpanded.cs index 4ce89d3875e9..12157d630861 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Update linked storage accounts for an Application Insights component.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", ApiVersion = "2020-03-01-preview")] public partial class UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -45,9 +46,10 @@ public partial class UpdateAzApplicationInsightsLinkedStorageAccount_UpdateViaId public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsMyWorkbook_Update.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsMyWorkbook_Update.cs index d884efb7acf2..1c1d96e0030f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsMyWorkbook_Update.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsMyWorkbook_Update.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates a private workbook that has already been added.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/myWorkbooks/{resourceName}", ApiVersion = "2021-03-08")] public partial class UpdateAzApplicationInsightsMyWorkbook_Update : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class UpdateAzApplicationInsightsMyWorkbook_Update : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateExpanded.cs index 8e564c3e0125..c423ff5c5bb5 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates the tags associated with an Application Insights web test.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class UpdateAzApplicationInsightsWebTestTag_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class UpdateAzApplicationInsightsWebTestTag_UpdateExpanded : glob public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpanded.cs index 83e3e9f82f58..366c58cfb126 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates the tags associated with an Application Insights web test.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}", ApiVersion = "2022-06-15")] public partial class UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class UpdateAzApplicationInsightsWebTestTag_UpdateViaIdentityExpa public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded.cs index 0a3e91fca241..58d9665b0b97 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates a workbook template that has already been added.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class UpdateAzApplicationInsightsWorkbookTemplate_UpdateExpanded public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdentityExpanded.cs index 68828dadc91f..ad0e49d45c1d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates a workbook template that has already been added.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}", ApiVersion = "2020-11-20")] public partial class UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -56,9 +57,10 @@ public partial class UpdateAzApplicationInsightsWorkbookTemplate_UpdateViaIdenti public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateExpanded.cs index 81ac71d1f71d..6273a4eeab34 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates a workbook that has already been added.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class UpdateAzApplicationInsightsWorkbook_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -58,9 +59,10 @@ public partial class UpdateAzApplicationInsightsWorkbook_UpdateExpanded : global public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpanded.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpanded.cs index c2422c525b7a..9d1ab19dcb17 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpanded.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/cmdlets/UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook))] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Description(@"Updates a workbook that has already been added.")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", ApiVersion = "2022-04-01")] public partial class UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.IEventListener { @@ -58,9 +59,10 @@ public partial class UpdateAzApplicationInsightsWorkbook_UpdateViaIdentityExpand public Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ApplicationInsightsManagementClient Client => Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.ParameterCategory.Azure)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 11554ccaa395..c8795aa009d6 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 5d7c6316be68..bdb9ce14a09c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index 6ca250213305..be1f083bd03f 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.PowerSh { 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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index ca0e9520aa0b..d08052909fcc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -191,15 +191,22 @@ 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.ApplicationInsights.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.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.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.ApplicationInsights.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) { return $@" {Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() {Indent}{Indent}}} {Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId {Indent}{Indent}if ($preTelemetryId -eq '') {{ diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 11fdf6fb6313..4763e83fa1a0 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttribute.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttribute.cs index a768252ce022..8eb38e0eef6d 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttribute.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttributeHelper.cs index 48d8044f821c..5066532fa2e9 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttributeHelper.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/MessageAttributeHelper.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime using System.Threading.Tasks; public class MessageAttributeHelper { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; @@ -34,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; @@ -52,37 +53,53 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv //Do not process the attributes at runtime... The env variable to override the warning messages is set return; } + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + 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 @@ -124,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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.Designer.cs index c925d64a549c..39a0cd004f2e 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.resx b/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.resx index 598cd53e958a..a08a2e50172b 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/generated/runtime/Properties/Resources.resx +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/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/ApplicationInsights/ApplicationInsights.Autorest/help/Az.ApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Az.ApplicationInsights.md new file mode 100644 index 000000000000..19fb9bc80338 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Az.ApplicationInsights.md @@ -0,0 +1,126 @@ +--- +Module Name: Az.ApplicationInsights +Module Guid: 031a685e-5904-433f-b2f8-4fcef3cd15d8 +Download Help Link: https://learn.microsoft.com/powershell/module/az.applicationinsights +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.ApplicationInsights Module +## Description +Microsoft Azure PowerShell: ApplicationInsights cmdlets + +## Az.ApplicationInsights Cmdlets +### [Get-AzApplicationInsights](Get-AzApplicationInsights.md) +Returns an Application Insights component. + +### [Get-AzApplicationInsightsApiKey](Get-AzApplicationInsightsApiKey.md) +Get the API Key for this key id. + +### [Get-AzApplicationInsightsContinuousExport](Get-AzApplicationInsightsContinuousExport.md) +Get the Continuous Export configuration for this export id. + +### [Get-AzApplicationInsightsLinkedStorageAccount](Get-AzApplicationInsightsLinkedStorageAccount.md) +Returns the current linked storage settings for an Application Insights component. + +### [Get-AzApplicationInsightsMyWorkbook](Get-AzApplicationInsightsMyWorkbook.md) +Get a single private workbook by its resourceName. + +### [Get-AzApplicationInsightsWebTest](Get-AzApplicationInsightsWebTest.md) +Get a specific Application Insights web test definition. + +### [Get-AzApplicationInsightsWorkbook](Get-AzApplicationInsightsWorkbook.md) +Get a single workbook by its resourceName. + +### [Get-AzApplicationInsightsWorkbookRevision](Get-AzApplicationInsightsWorkbookRevision.md) +Get a single workbook revision defined by its revisionId. + +### [Get-AzApplicationInsightsWorkbookTemplate](Get-AzApplicationInsightsWorkbookTemplate.md) +Get a single workbook template by its resourceName. + +### [New-AzApplicationInsights](New-AzApplicationInsights.md) +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +### [New-AzApplicationInsightsApiKey](New-AzApplicationInsightsApiKey.md) +Create an API Key of an Application Insights component. + +### [New-AzApplicationInsightsContinuousExport](New-AzApplicationInsightsContinuousExport.md) +Create a Continuous Export configuration of an Application Insights component. + +### [New-AzApplicationInsightsLinkedStorageAccount](New-AzApplicationInsightsLinkedStorageAccount.md) +Replace current linked storage account for an Application Insights component. + +### [New-AzApplicationInsightsMyWorkbook](New-AzApplicationInsightsMyWorkbook.md) +Create a new private workbook. + +### [New-AzApplicationInsightsWebTest](New-AzApplicationInsightsWebTest.md) +Creates or updates an Application Insights web test definition. + +### [New-AzApplicationInsightsWebTestGeolocationObject](New-AzApplicationInsightsWebTestGeolocationObject.md) +Create an in-memory object for WebTestGeolocation. + +### [New-AzApplicationInsightsWebTestHeaderFieldObject](New-AzApplicationInsightsWebTestHeaderFieldObject.md) +Create a in-memory object for HeaderField + +### [New-AzApplicationInsightsWorkbook](New-AzApplicationInsightsWorkbook.md) +Create a new workbook. + +### [New-AzApplicationInsightsWorkbookTemplate](New-AzApplicationInsightsWorkbookTemplate.md) +Create a new workbook template. + +### [New-AzApplicationInsightsWorkbookTemplateGalleryObject](New-AzApplicationInsightsWorkbookTemplateGalleryObject.md) +Create an in-memory object for WorkbookTemplateGallery. + +### [Remove-AzApplicationInsights](Remove-AzApplicationInsights.md) +Deletes an Application Insights component. + +### [Remove-AzApplicationInsightsApiKey](Remove-AzApplicationInsightsApiKey.md) +Delete an API Key of an Application Insights component. + +### [Remove-AzApplicationInsightsContinuousExport](Remove-AzApplicationInsightsContinuousExport.md) +Delete a Continuous Export configuration of an Application Insights component. + +### [Remove-AzApplicationInsightsLinkedStorageAccount](Remove-AzApplicationInsightsLinkedStorageAccount.md) +Delete linked storage accounts for an Application Insights component. + +### [Remove-AzApplicationInsightsMyWorkbook](Remove-AzApplicationInsightsMyWorkbook.md) +Delete a private workbook. + +### [Remove-AzApplicationInsightsWebTest](Remove-AzApplicationInsightsWebTest.md) +Deletes an Application Insights web test. + +### [Remove-AzApplicationInsightsWorkbook](Remove-AzApplicationInsightsWorkbook.md) +Delete a workbook. + +### [Remove-AzApplicationInsightsWorkbookTemplate](Remove-AzApplicationInsightsWorkbookTemplate.md) +Delete a workbook template. + +### [Set-AzApplicationInsightsContinuousExport](Set-AzApplicationInsightsContinuousExport.md) +Create a Continuous Export configuration of an Application Insights component. + +### [Set-AzApplicationInsightsDailyCap](Set-AzApplicationInsightsDailyCap.md) +Update current billing features for an Application Insights component. + +### [Set-AzApplicationInsightsPricingPlan](Set-AzApplicationInsightsPricingPlan.md) +Update current billing features for an Application Insights component. + +### [Update-AzApplicationInsights](Update-AzApplicationInsights.md) +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +### [Update-AzApplicationInsightsLinkedStorageAccount](Update-AzApplicationInsightsLinkedStorageAccount.md) +Update linked storage accounts for an Application Insights component. + +### [Update-AzApplicationInsightsMyWorkbook](Update-AzApplicationInsightsMyWorkbook.md) +Updates a private workbook that has already been added. + +### [Update-AzApplicationInsightsWebTestTag](Update-AzApplicationInsightsWebTestTag.md) +Updates the tags associated with an Application Insights web test. + +### [Update-AzApplicationInsightsWorkbook](Update-AzApplicationInsightsWorkbook.md) +Updates a workbook that has already been added. + +### [Update-AzApplicationInsightsWorkbookTemplate](Update-AzApplicationInsightsWorkbookTemplate.md) +Updates a workbook template that has already been added. + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsights.md new file mode 100644 index 000000000000..81b5ebe532b7 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsights.md @@ -0,0 +1,187 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights +schema: 2.0.0 +--- + +# Get-AzApplicationInsights + +## SYNOPSIS +Returns an Application Insights component. + +## SYNTAX + +### ListBySubscription (Default) +``` +Get-AzApplicationInsights [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsights -Name -ResourceGroupName [-SubscriptionId ] [-Full] + [-DefaultProfile ] [] +``` + +### GetByInputObject +``` +Get-AzApplicationInsights -InputObject [-DefaultProfile ] + [] +``` + +### GetByResourceId +``` +Get-AzApplicationInsights -ResourceId [-Full] [-DefaultProfile ] [] +``` + +### ListByResourceGroupName +``` +Get-AzApplicationInsights -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns an Application Insights component. + +## EXAMPLES + +### Example 1: Get application insights resource +```powershell +Get-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test" +``` + +Get application insights resource + +### Example 2: Get application insights resource with pricing plan information +```powershell +Get-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test" -IncludePricingPlan +``` + +Get application insights resource with pricing plan information + +## 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 +``` + +### -Full + + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: Get, GetByResourceId +Aliases: IncludeDailyCap, IncludeDailyCapStatus, IncludePricingPlan + +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.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetByInputObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Get, ListByResourceGroupName +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +The resource ID of applicationinsights component. + +```yaml +Type: System.String +Parameter Sets: GetByResourceId +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: Get, ListByResourceGroupName, ListBySubscription +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsApiKey.md new file mode 100644 index 000000000000..0feff47c1f02 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsApiKey.md @@ -0,0 +1,162 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsapikey +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsApiKey + +## SYNOPSIS +Get the API Key for this key id. + +## SYNTAX + +### List (Default) +``` +Get-AzApplicationInsightsApiKey -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsightsApiKey -ApiKeyId -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsApiKey -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get the API Key for this key id. + +## EXAMPLES + +### Example 1: Get Api Keys for an application insights resource +```powershell +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" +``` + +Get Api Keys for an application insights resource + +### Example 2: Get specific API key for an application insights resource +```powershell +Get-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId 7c4c61dc-b392-4aa4-992f-ee92b84e5dee +``` + +Get specific API key for an application insights resource + +## PARAMETERS + +### -ApiKeyId +The API Key ID. +This is unique within a Application Insights component. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsContinuousExport.md new file mode 100644 index 000000000000..b6701be464d8 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsContinuousExport.md @@ -0,0 +1,162 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightscontinuousexport +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsContinuousExport + +## SYNOPSIS +Get the Continuous Export configuration for this export id. + +## SYNTAX + +### List (Default) +``` +Get-AzApplicationInsightsContinuousExport -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsightsContinuousExport -ExportId -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsContinuousExport -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get the Continuous Export configuration for this export id. + +## EXAMPLES + +### Example 1: Get continuous export for an application insights resource +```powershell +Get-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test" +``` + +Get continuous export for an application insights resource + +### Example 2: Get continuous export for an application insights resource +```powershell +Get-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test" -ExportId "ZJrfffySPdtG3ESn3iRxVIEFuNY=" +``` + +Get continuous export for an application insights resource + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -ExportId +The Continuous Export configuration ID. +This is unique within a Application Insights component. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +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.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsLinkedStorageAccount.md new file mode 100644 index 000000000000..40912141c9a5 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsLinkedStorageAccount.md @@ -0,0 +1,133 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightslinkedstorageaccount +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsLinkedStorageAccount + +## SYNOPSIS +Returns the current linked storage settings for an Application Insights component. + +## SYNTAX + +### Get (Default) +``` +Get-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsLinkedStorageAccount -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Returns the current linked storage settings for an Application Insights component. + +## EXAMPLES + +### Example 1: Get linked storage account associated with component "componentName" +```powershell +Get-AzApplicationInsightsLinkedStorageAccount -ResourceGroupName "rgName" -ComponentName "componentName" +``` + +Get linked storage account associated with component "componentName" + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Get +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: Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsMyWorkbook.md new file mode 100644 index 000000000000..e803047533c9 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsMyWorkbook.md @@ -0,0 +1,227 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsmyworkbook +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsMyWorkbook + +## SYNOPSIS +Get a single private workbook by its resourceName. + +## SYNTAX + +### List1 (Default) +``` +Get-AzApplicationInsightsMyWorkbook -Category [-SubscriptionId ] [-CanFetchContent] + [-Tag ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List +``` +Get-AzApplicationInsightsMyWorkbook -ResourceGroupName -Category + [-SubscriptionId ] [-CanFetchContent] [-LinkedSourceId ] [-Tag ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a single private workbook by its resourceName. + +## EXAMPLES + +### Example 1: List private workbook by category +```powershell +Get-AzApplicationInsightsMyWorkbook -Category 'workbook' +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 7d195dcc-7d02-459f-a181-5b46662e4060 Workbook01 westus2 shared workbook +appinsights-hkrs2v-test c65b3461-9270-45b7-b6ad-ddd644458b0e westus2 user workbook +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 Workbook02-display westus2 user workbook +appinsights-hkrs2v-test 842437e8-8ef1-4ce7-b1a7-4cebf6c10188 Workbook03-display westus2 user workbook +appinsights-hkrs2v-test aac4bf14-0f25-4ac3-a4d4-76c63bf7312e Workbook03-display westus2 user workbook +appinsights-hkrs2v-test 74446cb1-d125-4c1f-ab84-e57fd93101d2 Workbook03-display westus2 shared workbook +appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38-9f43-62a40a2e99d1-display westus2 user workbook +``` + +This command lists my workbook by category. + +### Example 2: Get a single private workbook by its resourceName +```powershell +Get-AzApplicationInsightsMyWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name 5df8625f-fae4-4a38-9f43-62a40a2e99d1 +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38-9f43-62a40a2e99d1-display westus2 user workbook +``` + +This command gets a single private workbook by its resourceName. + +### Example 3: List private workbook by resource group +```powershell +Get-AzApplicationInsightsMyWorkbook -ResourceGroupName appinsights-hkrs2v-test -Category 'workbook' +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 7d195dcc-7d02-459f-a181-5b46662e4060 Workbook01 westus2 shared workbook +appinsights-hkrs2v-test c65b3461-9270-45b7-b6ad-ddd644458b0e westus2 user workbook +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 Workbook02-display westus2 user workbook +appinsights-hkrs2v-test 842437e8-8ef1-4ce7-b1a7-4cebf6c10188 Workbook03-display westus2 user workbook +appinsights-hkrs2v-test aac4bf14-0f25-4ac3-a4d4-76c63bf7312e Workbook03-display westus2 user workbook +appinsights-hkrs2v-test 74446cb1-d125-4c1f-ab84-e57fd93101d2 Workbook03-display westus2 shared workbook +appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38-9f43-62a40a2e99d1-display westus2 user workbook +``` + +This command lists private workbook by resource group. + +## PARAMETERS + +### -CanFetchContent +Flag indicating whether or not to return the full content for each applicable workbook. +If false, only return summary content for workbooks. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Category +Category of workbook to return. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.CategoryType +Parameter Sets: List, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +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: Get, List +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 +``` + +### -Tag +Tags presents on each workbook returned. + +```yaml +Type: System.String[] +Parameter Sets: List, List1 +Aliases: + +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWebTest.md new file mode 100644 index 000000000000..1644ccc97a86 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWebTest.md @@ -0,0 +1,243 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightswebtest +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsWebTest + +## SYNOPSIS +Get a specific Application Insights web test definition. + +## SYNTAX + +### List1 (Default) +``` +Get-AzApplicationInsightsWebTest [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzApplicationInsightsWebTest -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsWebTest -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzApplicationInsightsWebTest -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List2 +``` +Get-AzApplicationInsightsWebTest -AppInsightsName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a specific Application Insights web test definition. + +## EXAMPLES + +### Example 1: List all Application Insights web tests under a subscription +```powershell +Get-AzApplicationInsightsWebTest +``` + +```output +Name Location WebTestKind ResourceGroupName +---- -------- ----------- ----------------- +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test +standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test +standard-pwsh01 westus2 standard azpwsh-rg-test +``` + +This command lists all Application Insights web tests under a subscription. + +### Example 2: List all Application Insights web tests under a resource group +```powershell +Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test +``` + +```output +Name Location WebTestKind ResourceGroupName +---- -------- ----------- ----------------- +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test +basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test +standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test +standard-pwsh01 westus2 standard azpwsh-rg-test +``` + +This command lists all Application Insights web tests under a resource group. + +### Example 3: List all Application Insights web tests under a specific Application Insights +```powershell +Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -AppInsightsName appinsights-portal01 +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +bsaic-portal-appinsights-portal01 westus2 ping azpwsh-rg-test True +basic-portal02-appinsights-portal01 westus2 ping azpwsh-rg-test True +basic-portal03-appinsights-portal01 westus2 ping azpwsh-rg-test True +standard-portal-appinsights-portal01 westus2 standard azpwsh-rg-test True +standard-pwsh01 westus2 standard azpwsh-rg-test True +``` + +This command lists all Application Insights web tests under a specific Application Insights. + +### Example 4: Get a specific Application Insights web test definition +```powershell +Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01 +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +standard-pwsh01 westus2 standard azpwsh-rg-test True +``` + +This command gets a specific Application Insights web test definition. + +### Example 5: Get a specific Application Insights web test definition by pipeline +```powershell +$location01 = New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" +$location02 = New-AzApplicationInsightsWebTestGeolocationObject -Location "us-ca-sjc-azr" +New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standardwebtestpwsh03 -Location 'westus2' ` +-Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxx-xxxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsightsportal01" = "Resource"} ` +-RequestUrl "https://learn.microsoft.com/" -RequestHttpVerb "GET" ` +-TestName 'standardwebtestpwsh03' ` +-RuleSslCheck -RuleSslCertRemainingLifetimeCheck 7 -RuleExpectedHttpStatusCode 200 ` +-Enabled -Frequency 300 -Timeout 120 -Kind "standard" -RetryEnabled -GeoLocation $location01, $location02 ` |Get-AzApplicationInsightsWebTest +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +standardwebtestpwsh03 westus2 standard azpwsh-rg-test True +``` + +This command gets a specific Application Insights web test definition by pipeline. + +## PARAMETERS + +### -AppInsightsName +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights WebTest resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: WebTestName + +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: Get, List, List2 +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: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbook.md new file mode 100644 index 000000000000..1e824a42be7b --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbook.md @@ -0,0 +1,269 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbook +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsWorkbook + +## SYNOPSIS +Get a single workbook by its resourceName. + +## SYNTAX + +### List (Default) +``` +Get-AzApplicationInsightsWorkbook -Category [-SubscriptionId ] [-CanFetchContent] + [-Tag ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-CanFetchContent] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsWorkbook -InputObject [-CanFetchContent] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzApplicationInsightsWorkbook -ResourceGroupName -Category + [-SubscriptionId ] [-CanFetchContent] [-LinkedSourceId ] [-Tag ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a single workbook by its resourceName. + +## EXAMPLES + +### Example 1: List workbooks by category +```powershell +Get-AzApplicationInsightsWorkbook -Category 'workbook' +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 7d195dcc-7d02-459f-a181-5b46662e4060 Workbook01 westus2 shared workbook +appinsights-hkrs2v-test c65b3461-9270-45b7-b6ad-ddd644458b0e westus2 user workbook +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 Workbook02-display westus2 user workbook +appinsights-hkrs2v-test 842437e8-8ef1-4ce7-b1a7-4cebf6c10188 Workbook03-display westus2 user workbook +appinsights-hkrs2v-test aac4bf14-0f25-4ac3-a4d4-76c63bf7312e Workbook03-display westus2 user workbook +appinsights-hkrs2v-test 74446cb1-d125-4c1f-ab84-e57fd93101d2 Workbook03-display westus2 shared workbook +appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38-9f43-62a40a2e99d1-display westus2 user workbook +appinsights-hkrs2v-test b41466f0-a464-4531-ab31-df6ba613d8fe b41466f0-a464-4531-ab31-df6ba613d8fe-display westus2 user workbook +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workbook +``` + +This command lists workbooks by category. + +### Example 2: Get a single workbook by its resourceName +```powershell +Get-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name f7d7151e-7907-4f46-8a5e-6bf4a4cfedec +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workboo +``` + +This command get a single workbook by its resourceName. + +### Example 3: Get a single workbook by pipeline +```powershell +$name = (New-Guid).ToString() +New-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name $name -Location westus2 -DisplayName "$name-display" -SourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/appinsights-hkrs2v-test/providers/microsoft.insights/components/appinsights-48mah3-pwsh" -Category 'workbook' -SerializedData $null | Get-AzApplicationInsightsWorkbook +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workboo +``` + +This command gets a single workbook by pipeline. + +### Example 4: List all workbooks by resource group +```powershell +Get-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Category 'workbook' +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 7d195dcc-7d02-459f-a181-5b46662e4060 Workbook01 westus2 shared workbook +appinsights-hkrs2v-test c65b3461-9270-45b7-b6ad-ddd644458b0e westus2 user workbook +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 Workbook02-display westus2 user workbook +appinsights-hkrs2v-test 842437e8-8ef1-4ce7-b1a7-4cebf6c10188 Workbook03-display westus2 user workbook +appinsights-hkrs2v-test aac4bf14-0f25-4ac3-a4d4-76c63bf7312e Workbook03-display westus2 user workbook +appinsights-hkrs2v-test 74446cb1-d125-4c1f-ab84-e57fd93101d2 Workbook03-display westus2 shared workbook +appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38-9f43-62a40a2e99d1-display westus2 user workbook +appinsights-hkrs2v-test b41466f0-a464-4531-ab31-df6ba613d8fe b41466f0-a464-4531-ab31-df6ba613d8fe-display westus2 user workbook +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workbook +``` + +This command lists all workbooks by resource group. + +## PARAMETERS + +### -CanFetchContent +Flag indicating whether or not to return the full content for each applicable workbook. +If false, only return summary content for workbooks. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Category +Category of workbook to return. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.CategoryType +Parameter Sets: List, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +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: Get, List1 +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: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags presents on each workbook returned. + +```yaml +Type: System.String[] +Parameter Sets: List, List1 +Aliases: + +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookRevision.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookRevision.md new file mode 100644 index 000000000000..d73eb51f00d2 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookRevision.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbookrevision +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsWorkbookRevision + +## SYNOPSIS +Get a single workbook revision defined by its revisionId. + +## SYNTAX + +### List (Default) +``` +Get-AzApplicationInsightsWorkbookRevision -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzApplicationInsightsWorkbookRevision -Name -ResourceGroupName -RevisionId + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsWorkbookRevision -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a single workbook revision defined by its revisionId. + +## EXAMPLES + +### Example 1: List all workbook revisions +```powershell +Get-AzApplicationInsightsWorkbookRevision -ResourceGroupName appinsights-hkrs2v-test -Name f7d7151e-7907-4f46-8a5e-6bf4a4cfedec | fl +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workbook +``` + +This command lists all workbook revisions. + +### Example 2: Get a single workbook revision defined by its revisionId +```powershell +Get-AzApplicationInsightsWorkbookRevision -ResourceGroupName appinsights-hkrs2v-test -Name f7d7151e-7907-4f46-8a5e-6bf4a4cfedec -RevisionId "91788fbfb8384ea5998ac73b9fa3e6eb" +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workbook +``` + +This command gets a single workbook revision defined by its revisionId. + +### Example 3: Get a single workbook revision defined by resource id +```powershell +Get-AzApplicationInsightsWorkbookRevision -InputObject "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/appinsights-hkrs2v-test/providers/microsoft.insights/workbooks/f7d7151e-7907-4f46-8a5e-6bf4a4cfedec/revisions/91788fbfb8384ea5998ac73b9fa3e6eb" +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test f7d7151e-7907-4f46-8a5e-6bf4a4cfedec f7d7151e-7907-4f46-8a5e-6bf4a4cfedec-display westus2 shared workbook +``` + +This commmand gets a single workbook revision defined by resource id. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the resource. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +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: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RevisionId +The id of the workbook's revision. + +```yaml +Type: System.String +Parameter Sets: Get +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookTemplate.md new file mode 100644 index 000000000000..0e5a97ae97e5 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Get-AzApplicationInsightsWorkbookTemplate.md @@ -0,0 +1,181 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbooktemplate +schema: 2.0.0 +--- + +# Get-AzApplicationInsightsWorkbookTemplate + +## SYNOPSIS +Get a single workbook template by its resourceName. + +## SYNTAX + +### Get (Default) +``` +Get-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzApplicationInsightsWorkbookTemplate -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a single workbook template by its resourceName. + +## EXAMPLES + +### Example 1: Get a single workbook template by its resourceName +```powershell +Get-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name workbooktemplate-pwsh01 +``` + +```output +ResourceGroupName Name Location +----------------- ---- -------- +appinsights-hkrs2v-test workbooktemplate-pwsh01 westu +``` + +This command gets a single workbook template by its resourceName. + +### Example 2: Get a single workbook template by pipeline +```powershell +$gallery = New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Name "Simple Template" -Type 'tsg' -ResourceType "microsoft.insights/components" -Order 100 + +$data = @{ + "version"= "Notebook/1.0"; + "items"= @( + @{ + "type"= 1; + "content"= @{ + "json"= "## New workbook\n---\n\nWelcome to your new workbook. This area will display text formatted as markdown.\n\n\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections." + }; + "name"= "text - 2" + }, + @{ + "type"= 3; + "content"= @{ + "version"= "KqlItem/1.0"; + "query"= "union withsource=TableName *\n| summarize Count=count() by TableName\n| render barchart"; + "size"= 1; + "exportToExcelOptions"= "visible"; + "queryType"= 0; + "resourceType"= "microsoft.operationalinsights/workspaces" + }; + "name"= "query - 2" + } + ); + "styleSettings"= @{}; + "$schema"= "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json" +} + +New-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name 'workbooktemplate-pwsh01' -Location 'westus2' -Gallery $gallery -TemplateData $data -Priority 1 | Get-AzApplicationInsightsWorkbookTemplate +``` + +```output +ResourceGroupName Name Location +----------------- ---- -------- +appinsights-hkrs2v-test workbooktemplate-pwsh01 westus2 +``` + +This command gets a single workbook template by pipeline. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +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: Get +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: Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsights.md new file mode 100644 index 000000000000..5f81ac510750 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsights.md @@ -0,0 +1,421 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights +schema: 2.0.0 +--- + +# New-AzApplicationInsights + +## SYNOPSIS +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +## SYNTAX + +``` +New-AzApplicationInsights -Name -ResourceGroupName -Location + [-SubscriptionId ] [-ApplicationType ] [-DisableIPMasking] [-DisableLocalAuth] + [-Etag ] [-FlowType ] [-ForceCustomerStorageForProfiler] [-HockeyAppId ] + [-ImmediatePurgeDataOn30Day] [-IngestionMode ] [-Kind ] + [-PublicNetworkAccessForIngestion ] + [-PublicNetworkAccessForQuery ] [-RequestSource ] + [-RetentionInDays ] [-SamplingPercentage ] [-Tag ] [-WorkspaceResourceId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +## EXAMPLES + +### Example 1: Create a new application insights resource +```powershell +New-AzApplicationInsights -Kind java -ResourceGroupName testgroup -Name test1027 -location eastus +``` + +Add a new application insights resource named as "test" in resource group "testgroup" with kind "java" + +## PARAMETERS + +### -ApplicationType +Type of application being monitored. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType +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 +``` + +### -DisableIPMasking +Disable IP masking. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisableLocalAuth +Disable Non-AAD based Auth. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FlowType +Used by the Application Insights system to determine what kind of flow this component was created by. +This is to be set to 'Bluefield' when creating/updating a component via the REST API. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForceCustomerStorageForProfiler +Force users to create their own storage account for profiler and debugger. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HockeyAppId +The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ImmediatePurgeDataOn30Day +Purge data immediately after 30 days. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IngestionMode +Indicates the flow of the ingestion. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Kind +The kind of application that this component refers to, used to customize UI. +This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationKind + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location + +```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 Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccessForIngestion +The network access type for accessing Application Insights ingestion. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccessForQuery +The network access type for accessing Application Insights query. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestSource +Describes what tool created this Application Insights component. +Customers using this API should set this to the default 'rest'. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -RetentionInDays +Retention period in days. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SamplingPercentage +Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: Tags + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WorkspaceResourceId +Resource Id of the log analytics workspace which the data will be ingested to. +This property is required to create an application with this API version. +Applications from older versions will not have this property. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsApiKey.md new file mode 100644 index 000000000000..1a79c36471a6 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsApiKey.md @@ -0,0 +1,172 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsapikey +schema: 2.0.0 +--- + +# New-AzApplicationInsightsApiKey + +## SYNOPSIS +Create an API Key of an Application Insights component. + +## SYNTAX + +``` +New-AzApplicationInsightsApiKey -Name -ResourceGroupName -Description + -Permissions [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create an API Key of an Application Insights component. + +## EXAMPLES + +### Example 1: Create a new Api Key for an application insights resource +```powershell +$apiKeyDescription = "testapiKey" +$permissions = @("ReadTelemetry", "WriteAnnotations") +New-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -Description $apiKeyDescription -Permissions $permissions + +``` + +Create a new Api Key for an application insights resource + +## 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 +The name of the API Key. + +```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 Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Permissions +The read access rights of this API Key. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +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 +``` + +### -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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsContinuousExport.md new file mode 100644 index 000000000000..a06aea3b7e5c --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsContinuousExport.md @@ -0,0 +1,254 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport +schema: 2.0.0 +--- + +# New-AzApplicationInsightsContinuousExport + +## SYNOPSIS +Create a Continuous Export configuration of an Application Insights component. + +## SYNTAX + +``` +New-AzApplicationInsightsContinuousExport -Name -ResourceGroupName + [-SubscriptionId ] [-DestinationType ] [-DocumentType ] + [-NotificationQueueEnabled ] [-NotificationQueueUri ] [-StorageAccountId ] + [-StorageLocation ] [-StorageSASUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a Continuous Export configuration of an Application Insights component. + +## EXAMPLES + +### Example 1: Create a new continuous export configuration for an application insights resource +```powershell +$sastoken = New-AzStorageContainerSASToken -Name testcontainer -Context $context -ExpiryTime (Get-Date).AddYears(50) -Permission w +$sasuri = "https://teststorageaccount.blob.core.windows.net/testcontainer" + $sastoken +New-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test" ` +-DocumentType "Request","Trace", "Custom Event" -StorageAccountId "/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount" -StorageLocation sourcecentralus ` +-StorageSASUri $sasuri -DestinationType Blob +``` + +Create a new application insights continuous export configuration to export "Request" and "Trace" document types to storage contain "testcontainer" in storage account "teststorageaccount" in resource group "testgroup". +The SAS token have to be valid and have write permission to the container, otherwise continuous export feature won't work.If SAS token expired, the continuous export feature will stop working. + +## 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 +``` + +### -DestinationType +The Continuous Export destination type. +This has to be 'Blob'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DocumentType +The document types to be exported, as comma separated values. +Allowed values include 'Requests', 'Custom Event', 'Exception', 'Metric', 'Page View', 'Page Load', 'Dependency', 'Performance Counter', 'Availability', 'Trace'. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationQueueEnabled +Deprecated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationQueueUri +Deprecated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -StorageAccountId +The name of destination storage account. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageLocation +The location ID of the destination storage container. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageSASUri +The SAS URL for the destination storage container. +It must grant write permission. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsLinkedStorageAccount.md new file mode 100644 index 000000000000..1316510b1b90 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsLinkedStorageAccount.md @@ -0,0 +1,156 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightslinkedstorageaccount +schema: 2.0.0 +--- + +# New-AzApplicationInsightsLinkedStorageAccount + +## SYNOPSIS +Replace current linked storage account for an Application Insights component. + +## SYNTAX + +``` +New-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName + [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Replace current linked storage account for an Application Insights component. + +## EXAMPLES + +### Example 1: Create an application insights linked storage account +```powershell +$account = Get-AzStorageAccount -ResourceGroupName "rgName" -Name "accountName" +Get-AzApplicationInsights -ResourceGroupName "rgName" -Name "componentName" | New-AzApplicationInsightsLinkedStorageAccount -LinkedStorageAccountResourceId $account.Id +``` + +Create linked storage account $account under component "componentName" + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -LinkedStorageAccountResourceId +Linked storage account resource ID + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +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 +``` + +### -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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsMyWorkbook.md new file mode 100644 index 000000000000..89478ae94ab3 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsMyWorkbook.md @@ -0,0 +1,362 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsmyworkbook +schema: 2.0.0 +--- + +# New-AzApplicationInsightsMyWorkbook + +## SYNOPSIS +Create a new private workbook. + +## SYNTAX + +``` +New-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-LinkedSourceId ] [-Category ] [-DisplayName ] [-Etag ] [-Id ] + [-IdentityType ] [-Location ] [-SerializedData ] [-SourceId ] + [-SourceTag ] [-StorageUri ] [-Tag ] [-Type ] [-Version ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a new private workbook. + +## EXAMPLES + +### Example 1: Create a new private workbook +```powershell +# The value of the parameter name is the Guid type. +$name = (New-Guid).ToString() +New-AzApplicationInsightsMyWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name $name -Location westus2 -DisplayName "$name-display" -SourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/appinsights-hkrs2v-test/providers/microsoft.insights/components/appinsights-48mah3-pwsh" -Category 'workbook' -SerializedData $null +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 pwsh01 westus2 user workbook +``` + +This command create a new private workbook + +## PARAMETERS + +### -Category +Workbook category, as defined by the user at creation time. + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DisplayName +The user-defined name of the private workbook. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Id +Azure resource Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +The identity type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 +``` + +### -SerializedData +Configuration of this particular private workbook. +Configuration data is a string containing valid JSON + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceId +Optional resourceId for a source resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceTag +A list of 0 or more tags that are associated with this private workbook definition + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageUri +BYOS Storage Account URI + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Azure resource type + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +This instance's version of the data model. +This can change as new features are added that can be marked private workbook. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTest.md new file mode 100644 index 000000000000..7d262727c6e5 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTest.md @@ -0,0 +1,590 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightswebtest +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWebTest + +## SYNOPSIS +Creates or updates an Application Insights web test definition. + +## SYNTAX + +### CreateStandard (Default) +``` +New-AzApplicationInsightsWebTest -Name -ResourceGroupName -Location + [-SubscriptionId ] [-ContentIgnoreCase] [-ContentMatch ] [-ContentPassIfTextFound] + [-Description ] [-Enabled] [-Frequency ] [-GeoLocation ] + [-Kind ] [-RequestBody ] [-RequestFollowRedirect] [-RequestHeader ] + [-RequestHttpVerb ] [-RequestParseDependent] [-RequestUrl ] [-RetryEnabled] + [-RuleExpectedHttpStatusCode ] [-RuleIgnoreHttpsStatusCode] + [-RuleSslCertRemainingLifetimeCheck ] [-RuleSslCheck] [-Tag ] [-TestName ] + [-Timeout ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateClassic +``` +New-AzApplicationInsightsWebTest -Name -ResourceGroupName -Location + [-SubscriptionId ] [-Configuration ] [-ContentMatch ] [-Description ] + [-Enabled] [-Frequency ] [-GeoLocation ] [-Kind ] + [-RequestParseDependent] [-RequestUrl ] [-RetryEnabled] [-RuleExpectedHttpStatusCode ] + [-Tag ] [-TestName ] [-Timeout ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Creates or updates an Application Insights web test definition. + +## EXAMPLES + +### Example 1: Creates or updates an standard kind of the Application Insights web test +```powershell +$geoLocation = @() +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "us-ca-sjc-azr" +New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standard-pwsh01 -Location 'westus2' ` +-Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxx-xxxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsights-portal01" = "Resource"} ` +-RequestUrl "https://www.bing.com" -RequestHttpVerb "GET" -TestName 'standard-pwsh01' ` +-RuleExpectedHttpStatusCode 200 -Frequency 300 -Enabled -Timeout 120 -Kind 'standard' -RetryEnabled -GeoLocation $geoLocation +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +standard-pwsh01 westus2 standard azpwsh-rg-test True +``` + +This command creates or updates an standard kind of the Application Insights web test. + +We enter hidden-link in the `Tag` parameter to associate WebTest and Application Insights. + +### Example 2: Creates or updates an ping kind of the Application Insights web test +```powershell +$geoLocation = @() +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "us-ca-sjc-azr" +New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name 'pingwebtest-pwsh01' -TestName 'pingwentest-pwsh01testname' -Location 'westus2' ` +-Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxx-xxxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsights-portal01" = "Resource"} ` +-GeoLocation $geoLocation -RetryEnabled -Enabled -Frequency 300 -Timeout 90 ` +-Kind 'ping' -RequestUrl 'https://cn.bing.com' -RequestParseDependent -RuleExpectedHttpStatusCode 200 ` +-ContentMatch "status" +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True +``` + +This command creates or updates an ping kind of the Application Insights web test. + +### Example 3: Creates or updates an ping kind of the Application Insights web test with custom configuration +```powershell +$geoLocation = @() +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" +$geoLocation += New-AzApplicationInsightsWebTestGeolocationObject -Location "us-ca-sjc-azr" +New-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name 'pingwebtest-pwsh01' -TestName 'pingwentest-pwsh01testname' -Location 'westus2' ` +-Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxx-xxxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsights-portal01" = "Resource"} ` +-GeoLocation $geoLocation -RetryEnabled -Enabled -Frequency 300 -Timeout 90 ` +-Kind 'ping' ` +-Configuration " + + + + + + + + + + + + + +" +``` + +```output +Name Location WebTestKind ResourceGroupName Enabled +---- -------- ----------- ----------------- ------- +pingwebtest-pwsh01 westus2 ping azpwsh-rg-test True +``` + +This command creates or updates an ping kind of the Application Insights web test with custom configuration. + +## PARAMETERS + +### -Configuration +The XML specification of a WebTest to run against an application. + +```yaml +Type: System.String +Parameter Sets: CreateClassic +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentIgnoreCase +When set, this value makes the ContentMatch validation case insensitive. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentMatch +Content to look for in the return of the WebTest. +Must not be null or empty. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContentPassIfTextFound +When true, validation will pass if there is a match for the ContentMatch string. +If false, validation will fail if there is a match + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateStandard +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 +User defined description for this WebTest. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Enabled +Is the test actively being monitored. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Frequency +Interval in seconds between test runs for this WebTest. +Default value is 300. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -GeoLocation +A list of where to physically run the tests from to give global coverage for accessibility of your application. +To construct, see NOTES section for GEOLOCATION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTestGeolocation[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Kind +The kind of web test this is, valid choices are ping, multistep, and standard. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.WebTestKindEnum +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location + +```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 Application Insights WebTest resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: WebTestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestBody +Base64 encoded string body to send with this web test. + +```yaml +Type: System.String +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestFollowRedirect +Follow redirects for this web test. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestHeader +List of headers and their values to add to the WebTest call. +To construct, see NOTES section for REQUESTHEADER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IHeaderField[] +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestHttpVerb +Http verb to use for this web test. + +```yaml +Type: System.String +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestParseDependent +Parse Dependent request for this WebTest. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestUrl +Url location to test. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -RetryEnabled +Allow for retries should this WebTest fail. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleExpectedHttpStatusCode +Validate that the WebTest returns the http status code provided. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleIgnoreHttpsStatusCode +When set, validation will ignore the status code. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleSslCertRemainingLifetimeCheck +A number of days to check still remain before the the existing SSL cert expires. +Value must be positive and the SSLCheck must be set to true. + +```yaml +Type: System.Int32 +Parameter Sets: CreateStandard +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RuleSslCheck +Checks to see if the SSL cert is still valid. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: CreateStandard +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TestName +User defined name if this WebTest. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Timeout +Seconds until this WebTest will timeout and fail. +Default value is 30. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestGeolocationObject.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestGeolocationObject.md new file mode 100644 index 000000000000..f16e40b7c175 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestGeolocationObject.md @@ -0,0 +1,67 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWebTestGeolocationObject + +## SYNOPSIS +Create an in-memory object for WebTestGeolocation. + +## SYNTAX + +``` +New-AzApplicationInsightsWebTestGeolocationObject [-Location ] [] +``` + +## DESCRIPTION +Create an in-memory object for WebTestGeolocation. + +## EXAMPLES + +### Example 1: Create a in-memory object for WebTestGeolocation +```powershell +New-AzApplicationInsightsWebTestGeolocationObject -Location "emea-nl-ams-azr" +``` + +```output +Location +-------- +emea-nl-ams-azr +``` + +This command creates a memory object for WebTestGeolocation. +As value of the `GeoLocation` parameter in `New-AzApplicationInsightsWebTest`. + +## PARAMETERS + +### -Location +Location ID for the WebTest to run from. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.WebTestGeolocation + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md new file mode 100644 index 000000000000..5eaa996629e0 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md @@ -0,0 +1,81 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestHeaderFieldObject +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWebTestHeaderFieldObject + +## SYNOPSIS +Create a in-memory object for HeaderField + +## SYNTAX + +``` +New-AzApplicationInsightsWebTestHeaderFieldObject [-Name ] [-Value ] [] +``` + +## DESCRIPTION +Create a in-memory object for HeaderField + +## EXAMPLES + +### Example 1: Create a in-memory object for HeaderField +```powershell +New-AzApplicationInsightsWebTestHeaderFieldObject -Name 'version' -Value '2.0.1' +``` + +```output +Name Value +---- ----- +version 2.0.1 +``` + +This command creates a in-memory object for HeaderField, As value of the `RequestHeader` parameter in `New-AzApplicationInsightsWebTest`. + +## PARAMETERS + +### -Name +The name of the header. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Value +The value of the header. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.HeaderField + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbook.md new file mode 100644 index 000000000000..9df8ed189060 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbook.md @@ -0,0 +1,363 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsworkbook +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWorkbook + +## SYNOPSIS +Create a new workbook. + +## SYNTAX + +``` +New-AzApplicationInsightsWorkbook -Name -ResourceGroupName -Location + [-SubscriptionId ] [-LinkedSourceId ] [-Category ] [-Description ] + [-DisplayName ] [-Etag ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-SerializedData ] [-SourceId ] + [-SourceTag ] [-StorageUri ] [-Tag ] [-Version ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a new workbook. + +## EXAMPLES + +### Example 1: Create a new workbook +```powershell +$name = (New-Guid).ToString() +New-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name $name -Location westus2 -DisplayName "$name-display" -SourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/appinsights-hkrs2v-test/providers/microsoft.insights/components/appinsights-48mah3-pwsh" -Category 'workbook' -SerializedData $null +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 pwsh01 westus2 user workbook +``` + +This command create a new workbook. + +## PARAMETERS + +### -Category +Workbook category, as defined by the user at creation time. + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +The description of the workbook. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The user-defined name (display name) of the workbook. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ManagedServiceIdentityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityUserAssignedIdentity +The set of user assigned identities associated with the resource. +The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. +The dictionary values can be empty objects ({}) in requests. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```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 resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 +``` + +### -SerializedData +Configuration of this particular workbook. +Configuration data is a string containing valid JSON + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceId +ResourceId for a source resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceTag +Being deprecated, please use the other tags field + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageUri +The resourceId to the storage account when bring your own storage is used + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplate.md new file mode 100644 index 000000000000..848fd92eaa76 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplate.md @@ -0,0 +1,283 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsworkbooktemplate +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWorkbookTemplate + +## SYNOPSIS +Create a new workbook template. + +## SYNTAX + +``` +New-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName -Location + [-SubscriptionId ] [-Author ] [-Gallery ] + [-Localized ] [-Priority ] [-Tag ] [-TemplateData ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a new workbook template. + +## EXAMPLES + +### Example 1: Create a new workbook template +```powershell +$gallery = New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Name "Simple Template" -Type 'tsg' -ResourceType "microsoft.insights/components" -Order 100 +$data = @{ + "version"= "Notebook/1.0"; + "items"= @( + @{ + "type"= 1; + "content"= @{ + "json"= "## New workbook\n---\n\nWelcome to your new workbook. This area will display text formatted as markdown.\n\n\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections." + }; + "name"= "text - 2" + }, + @{ + "type"= 3; + "content"= @{ + "version"= "KqlItem/1.0"; + "query"= "union withsource=TableName *\n| summarize Count=count() by TableName\n| render barchart"; + "size"= 1; + "exportToExcelOptions"= "visible"; + "queryType"= 0; + "resourceType"= "microsoft.operationalinsights/workspaces" + }; + "name"= "query - 2" + } + ); + "styleSettings"= @{}; + "$schema"= "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json" +} + +New-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name 'workbooktemplate-pwsh01' -Location 'westus2' -Gallery $gallery -TemplateData $data -Priority 1 +``` + +```output +ResourceGroupName Name Location +----------------- ---- -------- +appinsights-hkrs2v-test workbooktemplate-pwsh01 westus2 +``` + +Create a new workbook template. + +## PARAMETERS + +### -Author +Information about the author of the workbook template. + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Gallery +Workbook galleries supported by the template. +To construct, see NOTES section for GALLERY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplateGallery[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Localized +Key value pair of localized gallery. +Each key is the locale code of languages supported by the Azure portal. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Resource location + +```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 Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +Priority of the template. +Determines which template to open when a workbook gallery is opened in viewer mode. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TemplateData +Valid JSON object containing workbook template payload. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md new file mode 100644 index 000000000000..b696c9ebdbc6 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md @@ -0,0 +1,127 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/Az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject +schema: 2.0.0 +--- + +# New-AzApplicationInsightsWorkbookTemplateGalleryObject + +## SYNOPSIS +Create an in-memory object for WorkbookTemplateGallery. + +## SYNTAX + +``` +New-AzApplicationInsightsWorkbookTemplateGalleryObject [-Category ] [-Name ] [-Order ] + [-ResourceType ] [-Type ] [] +``` + +## DESCRIPTION +Create an in-memory object for WorkbookTemplateGallery. + +## EXAMPLES + +### Example 1: Create an in-memory object for WorkbookTemplateGallery +```powershell +New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Name "Simple Template" -Type 'tsg' -ResourceType "microsoft.insights/components" -Order 100 +``` + +```output +Name Category +---- -------- +Simple Template Failures +``` + +Create an in-memory object for WorkbookTemplateGallery. + +## PARAMETERS + +### -Category +Category for the gallery. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the workbook template in the gallery. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Order +Order of the template within the gallery. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceType +Azure resource type supported by the gallery. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Type of workbook supported by the workbook template. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.WorkbookTemplateGallery + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/README.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/README.md new file mode 100644 index 000000000000..1119eec40a7c --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.ApplicationInsights` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.ApplicationInsights` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsights.md new file mode 100644 index 000000000000..7723522fbb8c --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsights.md @@ -0,0 +1,179 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsights +schema: 2.0.0 +--- + +# Remove-AzApplicationInsights + +## SYNOPSIS +Deletes an Application Insights component. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsights -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsights -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an Application Insights component. + +## EXAMPLES + +### Example 1: Remove an application insights resource +```powershell +Remove-AzApplicationInsights -ResourceGroupName "testgroup" -Name "test" -PassThru +``` + +Remove an application insights resource named "test" in resource group "testgroup" + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsApiKey.md new file mode 100644 index 000000000000..6a773ffd235e --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsApiKey.md @@ -0,0 +1,180 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsapikey +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsApiKey + +## SYNOPSIS +Delete an API Key of an Application Insights component. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsApiKey -ApiKeyId -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsApiKey -InputObject [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete an API Key of an Application Insights component. + +## EXAMPLES + +### Example 1: Remove an application insights api key for an application insights resource +```powershell +Remove-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -ApiKeyId dd173f38-4fd1-4c75-8af5-99c29aa0f867 +``` + +Remove an application insights api key for an application insights resource + +## PARAMETERS + +### -ApiKeyId +The API Key ID. +This is unique within a Application Insights component. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsContinuousExport.md new file mode 100644 index 000000000000..3aeec64f2ee1 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsContinuousExport.md @@ -0,0 +1,180 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightscontinuousexport +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsContinuousExport + +## SYNOPSIS +Delete a Continuous Export configuration of an Application Insights component. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsContinuousExport -ExportId -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsContinuousExport -InputObject + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Continuous Export configuration of an Application Insights component. + +## EXAMPLES + +### Example 1: Remove a continuous export configuration in an application insights resource +```powershell +Remove-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test" -ExportId "uGOoki0jQsyEs3IdQ83Q4QsNr4=" +``` + +Remove a continuous export configuration in an application insights resource + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -ExportId +The Continuous Export configuration ID. +This is unique within a Application Insights component. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +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.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ApplicationInsightsComponentName, ComponentName + +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsLinkedStorageAccount.md new file mode 100644 index 000000000000..850413cca954 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsLinkedStorageAccount.md @@ -0,0 +1,179 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightslinkedstorageaccount +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsLinkedStorageAccount + +## SYNOPSIS +Delete linked storage accounts for an Application Insights component. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsLinkedStorageAccount -InputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete linked storage accounts for an Application Insights component. + +## EXAMPLES + +### Example 1: Delete linked storage account associated with application insights component "componentName" +```powershell +Get-AzApplicationInsights -ResourceGroupName "rgName" -Name "componentName" | Remove-AzApplicationInsightsLinkedStorageAccount +``` + +Delete linked storage account associated with application insights component "componentName" + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsMyWorkbook.md new file mode 100644 index 000000000000..10f5d7bbb427 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsMyWorkbook.md @@ -0,0 +1,154 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsmyworkbook +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsMyWorkbook + +## SYNOPSIS +Delete a private workbook. + +## SYNTAX + +``` +Remove-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a private workbook. + +## EXAMPLES + +### Example 1: Delete a private workbook +```powershell +Remove-AzApplicationInsightsMyWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name c65b3461-9270-45b7-b6ad-ddd644458b0eR +``` + +Delete a private workbook. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWebTest.md new file mode 100644 index 000000000000..a8dd28858974 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWebTest.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightswebtest +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsWebTest + +## SYNOPSIS +Deletes an Application Insights web test. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsWebTest -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsWebTest -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an Application Insights web test. + +## EXAMPLES + +### Example 1: Deletes an Application Insights web test +```powershell +Remove-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name standardwebtest01-lucasappinsights +``` + +This command deletes an Application Insights web test. + +### Example 2: Deletes an Application Insights web test by pipeline +```powershell +Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -Name webtest01-lucasappinsights | Remove-AzApplicationInsightsWebTest +``` + +This command deletes an Application Insights web test by pipeline. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights WebTest resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: WebTestName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbook.md new file mode 100644 index 000000000000..0e1905b2ab2d --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbook.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbook +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsWorkbook + +## SYNOPSIS +Delete a workbook. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsWorkbook -InputObject [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a workbook. + +## EXAMPLES + +### Example 1: Delete a workbook +```powershell +Remove-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name 7d195dcc-7d02-459f-a181-5b46662e4060 +``` + +Delete a workbook. + +### Example 2: Delete a workbook by pipeline +```powershell +Get-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name 7d195dcc-7d02-459f-a181-5b46662e4060 | Remove-AzApplicationInsightsWorkbook +``` + +Delete a workbook by pipeline + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbookTemplate.md new file mode 100644 index 000000000000..78c96db961f3 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Remove-AzApplicationInsightsWorkbookTemplate.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbooktemplate +schema: 2.0.0 +--- + +# Remove-AzApplicationInsightsWorkbookTemplate + +## SYNOPSIS +Delete a workbook template. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzApplicationInsightsWorkbookTemplate -InputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a workbook template. + +## EXAMPLES + +### Example 1: Delete a workbook template +```powershell +Remove-AzApplicationInsightsWorkbookTemplate -ResourceGroupName appinsights-hkrs2v-test -Name workbooktemplate-pwsh01 +``` + +Delete a workbook template. + +### Example 2: Delete a workbook template by pipeline +```powershell +Get-AzApplicationInsightsWorkbookTemplate -ResourceGroupName appinsights-hkrs2v-test -Name workbooktemplate-pwsh01 | Remove-AzApplicationInsightsWorkbookTemplate +``` + +Delete a workbook template by pipeline + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +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: Delete +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: Delete +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsContinuousExport.md new file mode 100644 index 000000000000..0bd3e744992c --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsContinuousExport.md @@ -0,0 +1,285 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightscontinuousexport +schema: 2.0.0 +--- + +# Set-AzApplicationInsightsContinuousExport + +## SYNOPSIS +Create a Continuous Export configuration of an Application Insights component. + +## SYNTAX + +``` +Set-AzApplicationInsightsContinuousExport -ExportId -Name -ResourceGroupName + [-SubscriptionId ] [-DestinationType ] [-DisableConfiguration] [-DocumentType ] + [-NotificationQueueEnabled ] [-NotificationQueueUri ] [-StorageAccountId ] + [-StorageLocation ] [-StorageSASUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a Continuous Export configuration of an Application Insights component. + +## EXAMPLES + +### Example 1: Update continuous export configuration +```powershell +$sastoken = New-AzStorageContainerSASToken -Name testcontainer -Context $context -ExpiryTime (Get-Date).AddYears(50) -Permission w +$sasuri = "https://teststorageaccount.blob.core.windows.net/testcontainer" + $sastoken +Set-AzApplicationInsightsContinuousExport -ResourceGroupName "testgroup" -Name "test" ` +-DocumentType "Request","Trace" -ExportId "jlTFEiBg1rkDXOCIeJQ2mB2TxZg=" -StorageAccountId "/subscriptions/50359d91-7b9d-4823-85af-eb298a61ba96/resourceGroups/testgroup/providers/Microsoft.Storage/storageAccounts/teststorageaccount" -StorageLocation sourcecentralus ` +-StorageSASUri $sasuri -DestinationType Blob +``` + +Update continuous export configuration "jlTFEiBg1rkDXOCIeJQ2mB2TxZg=" of resource "test" in resource group "testgroup" to export "Request" and "Trace" documents to storage container "testcontainer" in "teststorageaccount".The SAS token have to be valid and have write permission to the container, otherwise continuous export feature won't work. +If SAS token expired, the continuous export feature will stop working. + +## 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 +``` + +### -DestinationType +The Continuous Export destination type. +This has to be 'Blob'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisableConfiguration + + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DocumentType +The document types to be exported, as comma separated values. +Allowed values include 'Requests', 'Custom Event', 'Exception', 'Metric', 'Page View', 'Page Load', 'Dependency', 'Performance Counter', 'Availability', 'Trace'. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExportId +The Continuous Export configuration ID. +This is unique within a Application Insights component. + +```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 Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationQueueEnabled +Deprecated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationQueueUri +Deprecated + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -StorageAccountId +The name of destination storage account. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageLocation +The location ID of the destination storage container. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageSASUri +The SAS URL for the destination storage container. +It must grant write permission. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsDailyCap.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsDailyCap.md new file mode 100644 index 000000000000..84ba9ae7387b --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsDailyCap.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightsdailycap +schema: 2.0.0 +--- + +# Set-AzApplicationInsightsDailyCap + +## SYNOPSIS +Update current billing features for an Application Insights component. + +## SYNTAX + +``` +Set-AzApplicationInsightsDailyCap -Name -ResourceGroupName [-SubscriptionId ] + [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update current billing features for an Application Insights component. + +## EXAMPLES + +### Example 1: Set daily data volume cap for an application insights resource +```powershell +Set-AzApplicationInsightsDailyCap -ResourceGroupName "testgroup" -Name "test" -DailyCapGB 400 -DisableNotificationWhenHitCap +``` + +Set the daily data volume cap to 400GB per day and stop send notification when hit cap for resource "test" in resource group "testgroup" + +## PARAMETERS + +### -DailyCapGB +Daily data volume cap in GB. + +```yaml +Type: System.Double +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 +``` + +### -DisableNotificationWhenHitCap +Stop send notification when hit cap. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +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 +``` + +### -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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsPricingPlan.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsPricingPlan.md new file mode 100644 index 000000000000..7b7c40ec35fe --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Set-AzApplicationInsightsPricingPlan.md @@ -0,0 +1,185 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightspricingplan +schema: 2.0.0 +--- + +# Set-AzApplicationInsightsPricingPlan + +## SYNOPSIS +Update current billing features for an Application Insights component. + +## SYNTAX + +``` +Set-AzApplicationInsightsPricingPlan -Name -ResourceGroupName [-SubscriptionId ] + [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-PricingPlan ] [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update current billing features for an Application Insights component. + +## EXAMPLES + +### Example 1: Set pricing plan and daily data volume information for an application insights resource +```powershell +Set-AzApplicationInsightsPricingPlan -ResourceGroupName "testgroup" -Name "test" -PricingPlan "Basic" -DailyCapGB 400 +``` + +Set the pricing plan to "Basic", set the daily data volume cap to 400GB per day and stop send notification when hit cap for resource "test" in resource group "testgroup" + +## PARAMETERS + +### -DailyCapGB +Daily data volume cap in GB. + +```yaml +Type: System.Double +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 +``` + +### -DisableNotificationWhenHitCap +Stop send notification when hit cap. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PricingPlan +Current enabled pricing plan. +When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentBillingFeatures + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsights.md new file mode 100644 index 000000000000..a681a9bb769f --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsights.md @@ -0,0 +1,390 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsights +schema: 2.0.0 +--- + +# Update-AzApplicationInsights + +## SYNOPSIS +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +## SYNTAX + +``` +Update-AzApplicationInsights -Name -ResourceGroupName [-SubscriptionId ] + [-ApplicationType ] [-DisableIPMasking] [-DisableLocalAuth] [-Etag ] + [-FlowType ] [-ForceCustomerStorageForProfiler] [-HockeyAppId ] + [-ImmediatePurgeDataOn30Day] [-IngestionMode ] + [-PublicNetworkAccessForIngestion ] + [-PublicNetworkAccessForQuery ] [-RequestSource ] + [-RetentionInDays ] [-SamplingPercentage ] [-Tag ] [-WorkspaceResourceId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates (or updates) an Application Insights component. +Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. + +## EXAMPLES + +### Example 1: Update application insights component +```powershell +Update-AzApplicationInsights -ResourceGroupName "rgName" -Name "aiName" -PublicNetworkAccessForIngestion "Disabled" -PublicNetworkAccessForQuery "Disabled" +``` + +update application insights component "aiName" PublicNetworkAccessForIngestion/PublicNetworkAccessForQuery both to "Disabled" + +## PARAMETERS + +### -ApplicationType +Type of application being monitored. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType +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 +``` + +### -DisableIPMasking +Disable IP masking. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisableLocalAuth +Disable Non-AAD based Auth. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FlowType +Used by the Application Insights system to determine what kind of flow this component was created by. +This is to be set to 'Bluefield' when creating/updating a component via the REST API. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForceCustomerStorageForProfiler +Force users to create their own storage account for profiler and debugger. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -HockeyAppId +The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ImmediatePurgeDataOn30Day +Purge data immediately after 30 days. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IngestionMode +Indicates the flow of the ingestion. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ApplicationInsightsComponentName, ComponentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccessForIngestion +The network access type for accessing Application Insights ingestion. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccessForQuery +The network access type for accessing Application Insights query. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RequestSource +Describes what tool created this Application Insights component. +Customers using this API should set this to the default 'rest'. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -RetentionInDays +Retention period in days. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SamplingPercentage +Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: Tags + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WorkspaceResourceId +Resource Id of the log analytics workspace which the data will be ingested to. +This property is required to create an application with this API version. +Applications from older versions will not have this property. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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 + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsLinkedStorageAccount.md new file mode 100644 index 000000000000..59fa40800305 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsLinkedStorageAccount.md @@ -0,0 +1,182 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightslinkedstorageaccount +schema: 2.0.0 +--- + +# Update-AzApplicationInsightsLinkedStorageAccount + +## SYNOPSIS +Update linked storage accounts for an Application Insights component. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName + [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzApplicationInsightsLinkedStorageAccount -InputObject + [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Update linked storage accounts for an Application Insights component. + +## EXAMPLES + +### Example 1: Update linked storage account +```powershell +$account = Get-AzStorageAccount -ResourceGroupName "rgName" -Name "accountName" +Get-AzApplicationInsights -ResourceGroupName "rgName" -Name "componentName" | Update-AzApplicationInsightsLinkedStorageAccount -LinkedStorageAccountResourceId $account.Id +``` + +Update linked storage account under component "componentName" to associate with $account + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LinkedStorageAccountResourceId +Linked storage account resource ID + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ApplicationInsightsComponentName, ComponentName + +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 +``` + +### -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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20200301Preview.IComponentLinkedStorageAccounts + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsMyWorkbook.md new file mode 100644 index 000000000000..89333de8f298 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsMyWorkbook.md @@ -0,0 +1,181 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsmyworkbook +schema: 2.0.0 +--- + +# Update-AzApplicationInsightsMyWorkbook + +## SYNOPSIS +Updates a private workbook that has already been added. + +## SYNTAX + +``` +Update-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName + -WorkbookProperty [-SubscriptionId ] [-LinkedSourceId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a private workbook that has already been added. + +## EXAMPLES + +### Example 1: Updates a private workbook that has already been added +```powershell +$myWorkbook = Get-AzApplicationInsightsMyWorkbook -ResourceGroupName "appinsights-hkrs2v-test" -Name "2e47417f-c136-44c0-b78f-7a4ca35fd9d1" +$myWorkbook.DisplayName = "pwsh01" +Update-AzApplicationInsightsMyWorkbook -ResourceGroupName "appinsights-hkrs2v-test" -Name "2e47417f-c136-44c0-b78f-7a4ca35fd9d1" -WorkbookProperty $myWorkbook +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test 2e47417f-c136-44c0-b78f-7a4ca35fd9d1 pwsh01 westus2 user workbook +``` + +Updates a private workbook that has already been added. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +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 +``` + +### -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 +``` + +### -WorkbookProperty +An Application Insights private workbook definition. +To construct, see NOTES section for WORKBOOKPROPERTY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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.ApplicationInsights.Models.Api20210308.IMyWorkbook + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20210308.IMyWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWebTestTag.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWebTestTag.md new file mode 100644 index 000000000000..b71859d91616 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWebTestTag.md @@ -0,0 +1,198 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightswebtesttag +schema: 2.0.0 +--- + +# Update-AzApplicationInsightsWebTestTag + +## SYNOPSIS +Updates the tags associated with an Application Insights web test. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzApplicationInsightsWebTestTag -Name -ResourceGroupName [-SubscriptionId ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzApplicationInsightsWebTestTag -InputObject [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates the tags associated with an Application Insights web test. + +## EXAMPLES + +### Example 1: Updates Application Insights link of the Web test +```powershell +Update-AzApplicationInsightsWebTestTag -ResourceGroupName azpwsh-rg-test -Name webtest01-lucasappinsights -Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/lucasappinsights" = "Resource"} +``` + +```output +Location Name WebTestKind ResourceGroupName Enabled +-------- ---- ----------- ----------------- ------- +westus2 webtest01-lucasappinsights standard azpwsh-rg-test True +``` + +This command updates Application Insights link of the Web test. + +### Example 2: Updates Application Insights link of the Web test by pipeline +```powershell +Get-AzApplicationInsightsWebTest -ResourceGroupName azpwsh-rg-test -WebTestName webtest01-lucasappinsights | Update-AzApplicationInsightsWebTestTag -Tag @{"hidden-link:/subscriptions/xxxxxxxxxx-xxxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azpwsh-rg-test/providers/microsoft.insights/components/appinsightsportal01" = "Resource"} +``` + +```output +Location Name WebTestKind ResourceGroupName Enabled +-------- ---- ----------- ----------------- ------- +westus2 webtest01-lucasappinsights standard azpwsh-rg-test True +``` + +This command updates Application Insights link of the Web test by pipeline. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity +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 Application Insights WebTest resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +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 +``` + +### -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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220615.IWebTest + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbook.md new file mode 100644 index 000000000000..8bfde6f4722d --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbook.md @@ -0,0 +1,308 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsworkbook +schema: 2.0.0 +--- + +# Update-AzApplicationInsightsWorkbook + +## SYNOPSIS +Updates a workbook that has already been added. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-LinkedSourceId ] [-Category ] [-Description ] [-DisplayName ] + [-Revision ] [-SerializedData ] [-SourceTag ] [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzApplicationInsightsWorkbook -InputObject [-LinkedSourceId ] + [-Category ] [-Description ] [-DisplayName ] [-Revision ] + [-SerializedData ] [-SourceTag ] [-Tag ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Updates a workbook that has already been added. + +## EXAMPLES + +### Example 1: Updates a workbook that has already been added +```powershell +Update-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name cc18e5e4-9558-4be1-b333-20b28aaca021 -DisplayName "workbook-portal" +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test cc18e5e4-9558-4be1-b333-20b28aaca021 workbook-portal eastus shared workbook +``` + +Updates a workbook that has already been added + +### Example 2: Updates a workbook that has already been added by pipeline +```powershell +Get-AzApplicationInsightsWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name cc18e5e4-9558-4be1-b333-20b28aaca021 | Update-AzApplicationInsightsWorkbook -Tag @{'k1'='v1'} +``` + +```output +ResourceGroupName Name DisplayName Location Kind Category +----------------- ---- ----------- -------- ---- -------- +appinsights-hkrs2v-test cc18e5e4-9558-4be1-b333-20b28aaca021 workbook-portal eastus shared workbook +``` + +Updates a workbook that has already been added by pipeline. + +## PARAMETERS + +### -Category +Workbook category, as defined by the user at creation time. + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +The description of the workbook. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The user-defined name (display name) of the workbook. + +```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.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LinkedSourceId +Azure Resource Id that will fetch all linked workbooks. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +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 +``` + +### -Revision +The unique revision id for this workbook definition + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SerializedData +Configuration of this particular workbook. +Configuration data is a string containing valid JSON + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourceTag +A list of 0 or more tags that are associated with this workbook definition + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20220401.IWorkbook + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbookTemplate.md new file mode 100644 index 000000000000..2b5083405c07 --- /dev/null +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/help/Update-AzApplicationInsightsWorkbookTemplate.md @@ -0,0 +1,279 @@ +--- +external help file: +Module Name: Az.ApplicationInsights +online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsworkbooktemplate +schema: 2.0.0 +--- + +# Update-AzApplicationInsightsWorkbookTemplate + +## SYNOPSIS +Updates a workbook template that has already been added. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName + [-SubscriptionId ] [-Author ] [-Gallery ] + [-Localized ] [-Priority ] [-Tag ] [-TemplateData ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzApplicationInsightsWorkbookTemplate -InputObject [-Author ] + [-Gallery ] [-Localized ] [-Priority ] [-Tag ] + [-TemplateData ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a workbook template that has already been added. + +## EXAMPLES + +### Example 1: Updates a workbook template that has already been added +```powershell +Update-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name workbooktemplate-pwsh01 -Tag @{'k1'='v1'} +``` + +```output +ResourceGroupName Name Location +----------------- ---- -------- +appinsights-hkrs2v-test workbooktemplate-pwsh01 westus2 +``` + +Updates a workbook template that has already been added. + +### Example 2: Updates a workbook template that has already been added by pipeline +```powershell +Get-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name workbooktemplate-pwsh01 | Update-AzApplicationInsightsWorkbookTemplate -Tag @{'k1'='v1'} +``` + +```output +ResourceGroupName Name Location +----------------- ---- -------- +appinsights-hkrs2v-test workbooktemplate-pwsh01 westus2 +``` + +Updates a workbook template that has already been added by pipeline. + +## PARAMETERS + +### -Author +Information about the author of the workbook template. + +```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 DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -Gallery +Workbook galleries supported by the template. +To construct, see NOTES section for GALLERY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplateGallery[] +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.ApplicationInsights.Models.IApplicationInsightsIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Localized +Key value pair of localized gallery. +Each key is the locale code of languages supported by the Azure portal. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the Application Insights component resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +Priority of the template. +Determines which template to open when a workbook gallery is opened in viewer mode. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -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 +``` + +### -Tag +Resource tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TemplateData +Valid JSON object containing workbook template payload. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.ApplicationInsights.Models.IApplicationInsightsIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20201120.IWorkbookTemplate + +## NOTES + +## RELATED LINKS + diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Clear-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Clear-AzApplicationInsights.ps1 index bb2c0afc0d14..1bc74f8452fa 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Clear-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Clear-AzApplicationInsights.ps1 @@ -19,12 +19,12 @@ Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. -You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. +You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. .Description Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. -You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. +You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. .Example {{ Add code here }} .Example @@ -136,7 +136,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsights.ps1 index cfd40db99c24..0b821e859b71 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsights.ps1 @@ -89,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsAnnotation.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsAnnotation.ps1 index acacdbeda128..68413cab53b4 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsAnnotation.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsAnnotation.ps1 @@ -108,7 +108,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentAvailableFeature.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentAvailableFeature.ps1 index cce2baa3abf4..a44551900cbd 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentAvailableFeature.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentAvailableFeature.ps1 @@ -86,7 +86,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentCurrentBillingFeature.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentCurrentBillingFeature.ps1 index 0588dee4e2ee..1ed42f2444ec 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentCurrentBillingFeature.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentCurrentBillingFeature.ps1 @@ -86,7 +86,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentFeatureCapability.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentFeatureCapability.ps1 index 7d8e4e4e19b6..56c3415f9a87 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentFeatureCapability.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentFeatureCapability.ps1 @@ -86,7 +86,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentPurgeStatus.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentPurgeStatus.ps1 index 7abb9e31fb65..fd01f39fb6dc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentPurgeStatus.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentPurgeStatus.ps1 @@ -92,7 +92,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentQuotaStatus.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentQuotaStatus.ps1 index af9b120b2b5c..97671f35642c 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentQuotaStatus.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsComponentQuotaStatus.ps1 @@ -86,7 +86,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsOperation.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsOperation.ps1 index 0a5125ab00b3..1efaf46ec141 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsOperation.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Get-AzApplicationInsightsOperation.ps1 @@ -38,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsights.ps1 index 4af6cb916fde..d12814bc4672 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsights.ps1 @@ -259,7 +259,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsAnnotation.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsAnnotation.ps1 index 4ccea15b4364..5242f9b3d92a 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsAnnotation.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsAnnotation.ps1 @@ -149,7 +149,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsApiKey.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsApiKey.ps1 index 994c63aa75ac..567498c1b9d1 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsApiKey.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsApiKey.ps1 @@ -80,7 +80,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsContinuousExport.ps1 index d4e60fed4fa5..6c109f0d57df 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsContinuousExport.ps1 @@ -179,7 +179,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsWebTest.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsWebTest.ps1 index d7d48a5869da..92d46600a7cc 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsWebTest.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/New-AzApplicationInsightsWebTest.ps1 @@ -261,7 +261,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/ProxyCmdletDefinitions.ps1 index fb5790ee44cc..68e034aedf36 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -19,12 +19,12 @@ Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. -You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. +You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. .Description Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. -You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://learn.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. +You should run the query prior to using for a purge request to verify that the results are expected.\nNote: this operation is intended for Classic resources, for workspace-based Application Insights resource please run purge operation (directly on the workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific resource id. .Example {{ Add code here }} .Example @@ -136,7 +136,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -321,7 +322,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -483,7 +485,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -644,7 +647,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -805,7 +809,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -972,7 +977,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1133,7 +1139,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1246,7 +1253,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1406,7 +1414,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1632,7 +1641,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1789,7 +1799,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2042,7 +2053,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2380,7 +2392,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2713,7 +2726,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2883,7 +2897,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3075,7 +3090,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3299,7 +3315,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3589,7 +3606,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -3778,7 +3796,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Remove-AzApplicationInsightsAnnotation.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Remove-AzApplicationInsightsAnnotation.ps1 index 274e46e049e5..7d3bf224c817 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Remove-AzApplicationInsightsAnnotation.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Remove-AzApplicationInsightsAnnotation.ps1 @@ -93,7 +93,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsights.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsights.ps1 index 6b9899821c29..45fd210a04c2 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsights.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsights.ps1 @@ -215,7 +215,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsComponentCurrentBillingFeature.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsComponentCurrentBillingFeature.ps1 index dac23b977453..8e3f14369b5e 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsComponentCurrentBillingFeature.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsComponentCurrentBillingFeature.ps1 @@ -111,7 +111,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsContinuousExport.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsContinuousExport.ps1 index b69f2d3c5375..7ae01e1ed987 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsContinuousExport.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Set-AzApplicationInsightsContinuousExport.ps1 @@ -149,7 +149,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Update-AzApplicationInsightsComponentTag.ps1 b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Update-AzApplicationInsightsComponentTag.ps1 index 7d5219409c62..61c42f5e720e 100644 --- a/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Update-AzApplicationInsightsComponentTag.ps1 +++ b/src/ApplicationInsights/ApplicationInsights.Autorest/internal/Update-AzApplicationInsightsComponentTag.ps1 @@ -114,7 +114,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 index 4d011a9b4184..27600d8e6214 100644 --- a/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 +++ b/src/ApplicationInsights/ApplicationInsights/Az.ApplicationInsights.psd1 @@ -1,9 +1,9 @@ # -# Module manifest for module 'Az.ApplicationInsights' +# Module manifest for module 'Az.Applicationinsights' # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 12/8/2023 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.11.2'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = diff --git a/src/ApplicationInsights/ApplicationInsights/ChangeLog.md b/src/ApplicationInsights/ApplicationInsights/ChangeLog.md index 7f470971d066..e0cf31083291 100644 --- a/src/ApplicationInsights/ApplicationInsights/ChangeLog.md +++ b/src/ApplicationInsights/ApplicationInsights/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Enabled common parameter in get-azapplicationinsights ## Version 2.2.2 * Added parameter validation for `Get-AzApplicationInsights` [#20697] diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsights.md index 4a3878dd1e9a..7b11b17050de 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsights.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsights.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights schema: 2.0.0 --- @@ -19,13 +19,13 @@ Get-AzApplicationInsights [-SubscriptionId ] [-DefaultProfile -ResourceGroupName [-SubscriptionId ] [-Full] +Get-AzApplicationInsights [-SubscriptionId ] -ResourceGroupName -Name [-Full] [-DefaultProfile ] [] ``` -### GetByInputObject +### ListByResourceGroupName ``` -Get-AzApplicationInsights -InputObject [-DefaultProfile ] +Get-AzApplicationInsights [-SubscriptionId ] -ResourceGroupName [-DefaultProfile ] [] ``` @@ -34,10 +34,10 @@ Get-AzApplicationInsights -InputObject [-DefaultP Get-AzApplicationInsights -ResourceId [-Full] [-DefaultProfile ] [] ``` -### ListByResourceGroupName +### GetByInputObject ``` -Get-AzApplicationInsights -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] +Get-AzApplicationInsights -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -Full - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: Get, GetByResourceId @@ -158,7 +157,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, ListByResourceGroupName, ListBySubscription +Parameter Sets: ListBySubscription, Get, ListByResourceGroupName Aliases: Required: False @@ -205,4 +204,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md index 693cbaa31c94..c68763401c6e 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsApiKey.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsapikey schema: 2.0.0 --- @@ -103,7 +103,7 @@ The name of the Application Insights component resource. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: ApplicationInsightsComponentName, ComponentName Required: True @@ -119,7 +119,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -134,7 +134,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -179,4 +179,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsContinuousExport.md index 47b2fa38a1ab..ea76391fd9bc 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsContinuousExport.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsContinuousExport.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightscontinuousexport schema: 2.0.0 --- @@ -103,7 +103,7 @@ The name of the Application Insights component resource. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: ApplicationInsightsComponentName, ComponentName Required: True @@ -119,7 +119,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -134,7 +134,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -179,4 +179,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsLinkedStorageAccount.md index 0730bec38121..d1d20640b466 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsLinkedStorageAccount.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsLinkedStorageAccount.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightslinkedstorageaccount schema: 2.0.0 --- @@ -150,4 +150,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsMyWorkbook.md index 00c510d9a353..896423e1a151 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsMyWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsMyWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsmyworkbook schema: 2.0.0 --- @@ -14,7 +14,7 @@ Get a single private workbook by its resourceName. ### List1 (Default) ``` -Get-AzApplicationInsightsMyWorkbook -Category [-SubscriptionId ] [-CanFetchContent] +Get-AzApplicationInsightsMyWorkbook [-SubscriptionId ] -Category [-CanFetchContent] [-Tag ] [-DefaultProfile ] [] ``` @@ -26,8 +26,8 @@ Get-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [ ### List ``` -Get-AzApplicationInsightsMyWorkbook -ResourceGroupName -Category - [-SubscriptionId ] [-CanFetchContent] [-LinkedSourceId ] [-Tag ] +Get-AzApplicationInsightsMyWorkbook -ResourceGroupName [-SubscriptionId ] + -Category [-CanFetchContent] [-LinkedSourceId ] [-Tag ] [-DefaultProfile ] [] ``` @@ -55,7 +55,7 @@ appinsights-hkrs2v-test 5df8625f-fae4-4a38-9f43-62a40a2e99d1 5df8625f-fae4-4a38- This command lists my workbook by category. -### Example 2: Get a single private workbook by its resourceName +### Example 2: Get a single private workbook by its resourceName ```powershell Get-AzApplicationInsightsMyWorkbook -ResourceGroupName appinsights-hkrs2v-test -Name 5df8625f-fae4-4a38-9f43-62a40a2e99d1 ``` @@ -95,7 +95,7 @@ If false, only return summary content for workbooks. ```yaml Type: System.Management.Automation.SwitchParameter -Parameter Sets: List, List1 +Parameter Sets: List1, List Aliases: Required: False @@ -110,7 +110,7 @@ Category of workbook to return. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.CategoryType -Parameter Sets: List, List1 +Parameter Sets: List1, List Aliases: Required: True @@ -201,7 +201,7 @@ Tags presents on each workbook returned. ```yaml Type: System.String[] -Parameter Sets: List, List1 +Parameter Sets: List1, List Aliases: Required: False @@ -225,4 +225,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md index d7359e43aa6c..9e953972924a 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWebTest.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightswebtest schema: 2.0.0 --- @@ -14,8 +14,7 @@ Get a specific Application Insights web test definition. ### List1 (Default) ``` -Get-AzApplicationInsightsWebTest [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzApplicationInsightsWebTest [-SubscriptionId ] [-DefaultProfile ] [] ``` ### Get @@ -24,10 +23,10 @@ Get-AzApplicationInsightsWebTest -Name -ResourceGroupName [-Su [-DefaultProfile ] [] ``` -### GetViaIdentity +### List2 ``` -Get-AzApplicationInsightsWebTest -InputObject [-DefaultProfile ] - [] +Get-AzApplicationInsightsWebTest -ResourceGroupName [-SubscriptionId ] + -AppInsightsName [-DefaultProfile ] [] ``` ### List @@ -36,10 +35,10 @@ Get-AzApplicationInsightsWebTest -ResourceGroupName [-SubscriptionId ] [] ``` -### List2 +### GetViaIdentity ``` -Get-AzApplicationInsightsWebTest -AppInsightsName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzApplicationInsightsWebTest -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION @@ -200,7 +199,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List, List2 +Parameter Sets: Get, List2, List Aliases: Required: True @@ -215,7 +214,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List, List1, List2 +Parameter Sets: List1, Get, List2, List Aliases: Required: False @@ -260,4 +259,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbook.md index 154a4e0163ad..dcc5bf3c8c0c 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbook schema: 2.0.0 --- @@ -14,7 +14,7 @@ Get a single workbook by its resourceName. ### List (Default) ``` -Get-AzApplicationInsightsWorkbook -Category [-SubscriptionId ] [-CanFetchContent] +Get-AzApplicationInsightsWorkbook [-SubscriptionId ] [-CanFetchContent] -Category [-Tag ] [-DefaultProfile ] [] ``` @@ -24,16 +24,16 @@ Get-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-S [-CanFetchContent] [-DefaultProfile ] [] ``` -### GetViaIdentity +### List1 ``` -Get-AzApplicationInsightsWorkbook -InputObject [-CanFetchContent] - [-DefaultProfile ] [] +Get-AzApplicationInsightsWorkbook -ResourceGroupName [-SubscriptionId ] [-CanFetchContent] + -Category [-Tag ] [-LinkedSourceId ] [-DefaultProfile ] + [] ``` -### List1 +### GetViaIdentity ``` -Get-AzApplicationInsightsWorkbook -ResourceGroupName -Category - [-SubscriptionId ] [-CanFetchContent] [-LinkedSourceId ] [-Tag ] +Get-AzApplicationInsightsWorkbook -InputObject [-CanFetchContent] [-DefaultProfile ] [] ``` @@ -226,7 +226,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List, List1 +Parameter Sets: List, Get, List1 Aliases: Required: False @@ -286,4 +286,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookRevision.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookRevision.md index d72ceb7826d3..ccb8e0eb9688 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookRevision.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookRevision.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbookrevision schema: 2.0.0 --- @@ -112,7 +112,7 @@ The name of the resource. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -128,7 +128,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -158,7 +158,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -203,4 +203,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookTemplate.md index 2a8647b4f503..eca0e8448cc8 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookTemplate.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Get-AzApplicationInsightsWorkbookTemplate.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightsworkbooktemplate schema: 2.0.0 --- @@ -198,4 +198,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsights.md index de2564fc9ad0..cdb7eb1a6bdf 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsights.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsights.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights schema: 2.0.0 --- @@ -14,14 +14,14 @@ Note: You cannot specify a different value for InstrumentationKey nor AppId in t ## SYNTAX ``` -New-AzApplicationInsights -Name -ResourceGroupName -Location - [-SubscriptionId ] [-ApplicationType ] [-DisableIPMasking] [-DisableLocalAuth] - [-Etag ] [-FlowType ] [-ForceCustomerStorageForProfiler] [-HockeyAppId ] - [-ImmediatePurgeDataOn30Day] [-IngestionMode ] [-Kind ] +New-AzApplicationInsights -ResourceGroupName -Name [-SubscriptionId ] + -Location [-Kind ] [-ApplicationType ] [-DisableIPMasking] + [-DisableLocalAuth] [-Etag ] [-FlowType ] [-ForceCustomerStorageForProfiler] + [-HockeyAppId ] [-ImmediatePurgeDataOn30Day] [-IngestionMode ] [-PublicNetworkAccessForIngestion ] [-PublicNetworkAccessForQuery ] [-RequestSource ] [-RetentionInDays ] [-SamplingPercentage ] [-Tag ] [-WorkspaceResourceId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -420,4 +420,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsApiKey.md index 28bbc09480fe..a02c662b48cc 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsApiKey.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsapikey schema: 2.0.0 --- @@ -13,8 +13,8 @@ Create an API Key of an Application Insights component. ## SYNTAX ``` -New-AzApplicationInsightsApiKey -Name -ResourceGroupName -Description - -Permissions [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] +New-AzApplicationInsightsApiKey -ResourceGroupName -Name [-SubscriptionId ] + -Description -Permissions [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -28,7 +28,6 @@ Create an API Key of an Application Insights component. $apiKeyDescription = "testapiKey" $permissions = @("ReadTelemetry", "WriteAnnotations") New-AzApplicationInsightsApiKey -ResourceGroupName "testGroup" -Name "test" -Description $apiKeyDescription -Permissions $permissions - ``` Create a new Api Key for an application insights resource @@ -171,4 +170,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsContinuousExport.md index bbea18c6c610..99ad52ef5460 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsContinuousExport.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsContinuousExport.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport schema: 2.0.0 --- @@ -13,11 +13,10 @@ Create a Continuous Export configuration of an Application Insights component. ## SYNTAX ``` -New-AzApplicationInsightsContinuousExport -Name -ResourceGroupName - [-SubscriptionId ] [-DestinationType ] [-DocumentType ] - [-NotificationQueueEnabled ] [-NotificationQueueUri ] [-StorageAccountId ] - [-StorageLocation ] [-StorageSASUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +New-AzApplicationInsightsContinuousExport -ResourceGroupName -Name [-SubscriptionId ] + [-DestinationType ] [-NotificationQueueEnabled ] [-NotificationQueueUri ] + [-DocumentType ] [-StorageAccountId ] [-StorageLocation ] [-StorageSASUri ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -253,4 +252,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsLinkedStorageAccount.md index 31f39b57102a..2df76ef6a999 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsLinkedStorageAccount.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsLinkedStorageAccount.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightslinkedstorageaccount schema: 2.0.0 --- @@ -14,8 +14,8 @@ Replace current linked storage account for an Application Insights component. ``` New-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName - [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -154,4 +154,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsMyWorkbook.md index 0f08c654f5a8..8b8d134be3fe 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsMyWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsMyWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsmyworkbook schema: 2.0.0 --- @@ -17,7 +17,7 @@ New-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [ [-LinkedSourceId ] [-Category ] [-DisplayName ] [-Etag ] [-Id ] [-IdentityType ] [-Location ] [-SerializedData ] [-SourceId ] [-SourceTag ] [-StorageUri ] [-Tag ] [-Type ] [-Version ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -360,4 +360,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md index 36f075c62ea0..ea996ecbd235 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTest.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightswebtest schema: 2.0.0 --- @@ -14,24 +14,24 @@ Creates or updates an Application Insights web test definition. ### CreateStandard (Default) ``` -New-AzApplicationInsightsWebTest -Name -ResourceGroupName -Location - [-SubscriptionId ] [-ContentIgnoreCase] [-ContentMatch ] [-ContentPassIfTextFound] +New-AzApplicationInsightsWebTest -Name -ResourceGroupName [-SubscriptionId ] + -Location [-ContentIgnoreCase] [-ContentMatch ] [-ContentPassIfTextFound] [-Description ] [-Enabled] [-Frequency ] [-GeoLocation ] [-Kind ] [-RequestBody ] [-RequestFollowRedirect] [-RequestHeader ] [-RequestHttpVerb ] [-RequestParseDependent] [-RequestUrl ] [-RetryEnabled] [-RuleExpectedHttpStatusCode ] [-RuleIgnoreHttpsStatusCode] [-RuleSslCertRemainingLifetimeCheck ] [-RuleSslCheck] [-Tag ] [-TestName ] - [-Timeout ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-Timeout ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### CreateClassic ``` -New-AzApplicationInsightsWebTest -Name -ResourceGroupName -Location - [-SubscriptionId ] [-Configuration ] [-ContentMatch ] [-Description ] - [-Enabled] [-Frequency ] [-GeoLocation ] [-Kind ] - [-RequestParseDependent] [-RequestUrl ] [-RetryEnabled] [-RuleExpectedHttpStatusCode ] - [-Tag ] [-TestName ] [-Timeout ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +New-AzApplicationInsightsWebTest -Name -ResourceGroupName [-SubscriptionId ] + -Location [-ContentMatch ] [-Description ] [-Enabled] [-Frequency ] + [-GeoLocation ] [-Kind ] [-RequestParseDependent] + [-RequestUrl ] [-RetryEnabled] [-RuleExpectedHttpStatusCode ] [-Tag ] + [-TestName ] [-Timeout ] [-Configuration ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -601,4 +601,3 @@ To create the parameters described below, construct a hash table containing the - `[Value ]`: The value of the header. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestGeolocationObject.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestGeolocationObject.md index b9f8f1796f47..8185d686733d 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestGeolocationObject.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestGeolocationObject.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestGeolocationObject schema: 2.0.0 --- @@ -66,4 +66,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md index 3a2cd1b60146..08b341222339 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWebTestHeaderFieldObject.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWebTestHeaderFieldObject schema: 2.0.0 --- @@ -80,4 +80,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbook.md index 44ed91a1bef3..ff94439de173 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsworkbook schema: 2.0.0 --- @@ -13,12 +13,12 @@ Create a new workbook. ## SYNTAX ``` -New-AzApplicationInsightsWorkbook -Name -ResourceGroupName -Location - [-SubscriptionId ] [-LinkedSourceId ] [-Category ] [-Description ] +New-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-LinkedSourceId ] -Location [-Category ] [-Description ] [-DisplayName ] [-Etag ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-SerializedData ] [-SourceId ] [-SourceTag ] [-StorageUri ] [-Tag ] [-Version ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -361,4 +361,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplate.md index 5343bf436846..482b14ae483a 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplate.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplate.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsworkbooktemplate schema: 2.0.0 --- @@ -13,10 +13,10 @@ Create a new workbook template. ## SYNTAX ``` -New-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName -Location - [-SubscriptionId ] [-Author ] [-Gallery ] - [-Localized ] [-Priority ] [-Tag ] [-TemplateData ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +New-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName [-SubscriptionId ] + -Location [-Author ] [-Gallery ] [-Localized ] + [-Priority ] [-Tag ] [-TemplateData ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -293,4 +293,3 @@ To create the parameters described below, construct a hash table containing the - `[Type ]`: Type of workbook supported by the workbook template. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md index 496e3bb3d14c..3c2f78616386 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md +++ b/src/ApplicationInsights/ApplicationInsights/help/New-AzApplicationInsightsWorkbookTemplateGalleryObject.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.ApplicationInsights/new-AzApplicationInsightsWorkbookTemplateGalleryObject schema: 2.0.0 --- @@ -126,4 +126,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsights.md index f7dd25470060..b3eb6f596a2b 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsights.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsights.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsights schema: 2.0.0 --- @@ -15,13 +15,13 @@ Deletes an Application Insights component. ### Delete (Default) ``` Remove-AzApplicationInsights -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsights -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -196,4 +196,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md index 9b4cbe8482b6..84f80cb7633c 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsApiKey.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsapikey schema: 2.0.0 --- @@ -15,13 +15,13 @@ Delete an API Key of an Application Insights component. ### Delete (Default) ``` Remove-AzApplicationInsightsApiKey -ApiKeyId -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsApiKey -InputObject [-DefaultProfile ] - [-Confirm] [-WhatIf] [] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -197,4 +197,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsContinuousExport.md index 3443168b935a..51e0333187b1 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsContinuousExport.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsContinuousExport.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightscontinuousexport schema: 2.0.0 --- @@ -15,13 +15,13 @@ Delete a Continuous Export configuration of an Application Insights component. ### Delete (Default) ``` Remove-AzApplicationInsightsContinuousExport -ExportId -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsContinuousExport -InputObject - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -197,4 +197,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsLinkedStorageAccount.md index 1dfd93dd3a16..d24c9c86c648 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsLinkedStorageAccount.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsLinkedStorageAccount.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightslinkedstorageaccount schema: 2.0.0 --- @@ -15,13 +15,13 @@ Delete linked storage accounts for an Application Insights component. ### Delete (Default) ``` Remove-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsLinkedStorageAccount -InputObject - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -196,4 +196,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsMyWorkbook.md index 50baf3da104c..245a6bf00b41 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsMyWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsMyWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsmyworkbook schema: 2.0.0 --- @@ -14,7 +14,7 @@ Delete a private workbook. ``` Remove-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,4 +152,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWebTest.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWebTest.md index 92d9e2d23fcf..62889d6dcfde 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWebTest.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWebTest.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightswebtest schema: 2.0.0 --- @@ -15,13 +15,13 @@ Deletes an Application Insights web test. ### Delete (Default) ``` Remove-AzApplicationInsightsWebTest -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsWebTest -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -203,4 +203,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbook.md index 1cf48753fac2..b20de799e920 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbook schema: 2.0.0 --- @@ -15,13 +15,13 @@ Delete a workbook. ### Delete (Default) ``` Remove-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsWorkbook -InputObject [-DefaultProfile ] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -203,4 +203,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbookTemplate.md index 6a74ab38fc18..e47a4333140e 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbookTemplate.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Remove-AzApplicationInsightsWorkbookTemplate.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/remove-azapplicationinsightsworkbooktemplate schema: 2.0.0 --- @@ -15,13 +15,13 @@ Delete a workbook template. ### Delete (Default) ``` Remove-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzApplicationInsightsWorkbookTemplate -InputObject - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -203,4 +203,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsContinuousExport.md b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsContinuousExport.md index 10150bf7e7cc..56b7c572fe19 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsContinuousExport.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsContinuousExport.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightscontinuousexport schema: 2.0.0 --- @@ -13,11 +13,11 @@ Create a Continuous Export configuration of an Application Insights component. ## SYNTAX ``` -Set-AzApplicationInsightsContinuousExport -ExportId -Name -ResourceGroupName - [-SubscriptionId ] [-DestinationType ] [-DisableConfiguration] [-DocumentType ] - [-NotificationQueueEnabled ] [-NotificationQueueUri ] [-StorageAccountId ] - [-StorageLocation ] [-StorageSASUri ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] +Set-AzApplicationInsightsContinuousExport -ResourceGroupName -Name -ExportId + [-SubscriptionId ] [-DestinationType ] [-NotificationQueueEnabled ] + [-NotificationQueueUri ] [-DocumentType ] [-StorageAccountId ] + [-StorageLocation ] [-DisableConfiguration] [-StorageSASUri ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -72,7 +72,6 @@ Accept wildcard characters: False ### -DisableConfiguration - ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) @@ -284,4 +283,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsDailyCap.md b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsDailyCap.md index 1cc81ae96987..d194690ef407 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsDailyCap.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsDailyCap.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightsdailycap schema: 2.0.0 --- @@ -13,8 +13,8 @@ Update current billing features for an Application Insights component. ## SYNTAX ``` -Set-AzApplicationInsightsDailyCap -Name -ResourceGroupName [-SubscriptionId ] - [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-DefaultProfile ] [-Confirm] [-WhatIf] +Set-AzApplicationInsightsDailyCap -ResourceGroupName -Name [-SubscriptionId ] + [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -168,4 +168,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsPricingPlan.md b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsPricingPlan.md index 52cd101abc7e..499535510489 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsPricingPlan.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Set-AzApplicationInsightsPricingPlan.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/set-azapplicationinsightspricingplan schema: 2.0.0 --- @@ -13,9 +13,9 @@ Update current billing features for an Application Insights component. ## SYNTAX ``` -Set-AzApplicationInsightsPricingPlan -Name -ResourceGroupName [-SubscriptionId ] - [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-PricingPlan ] [-DefaultProfile ] - [-Confirm] [-WhatIf] [] +Set-AzApplicationInsightsPricingPlan -ResourceGroupName -Name [-SubscriptionId ] + [-PricingPlan ] [-DailyCapGB ] [-DisableNotificationWhenHitCap] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -184,4 +184,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsights.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsights.md index 90e6812697c5..51e728be666a 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsights.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsights.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsights schema: 2.0.0 --- @@ -14,14 +14,13 @@ Note: You cannot specify a different value for InstrumentationKey nor AppId in t ## SYNTAX ``` -Update-AzApplicationInsights -Name -ResourceGroupName [-SubscriptionId ] +Update-AzApplicationInsights -ResourceGroupName -Name [-SubscriptionId ] [-ApplicationType ] [-DisableIPMasking] [-DisableLocalAuth] [-Etag ] - [-FlowType ] [-ForceCustomerStorageForProfiler] [-HockeyAppId ] - [-ImmediatePurgeDataOn30Day] [-IngestionMode ] - [-PublicNetworkAccessForIngestion ] + [-FlowType ] [-ForceCustomerStorageForProfiler] [-HockeyAppId ] [-ImmediatePurgeDataOn30Day] + [-IngestionMode ] [-PublicNetworkAccessForIngestion ] [-PublicNetworkAccessForQuery ] [-RequestSource ] [-RetentionInDays ] [-SamplingPercentage ] [-Tag ] [-WorkspaceResourceId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -389,4 +388,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsLinkedStorageAccount.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsLinkedStorageAccount.md index bea839313d51..22329ef463ae 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsLinkedStorageAccount.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsLinkedStorageAccount.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightslinkedstorageaccount schema: 2.0.0 --- @@ -15,14 +15,14 @@ Update linked storage accounts for an Application Insights component. ### UpdateExpanded (Default) ``` Update-AzApplicationInsightsLinkedStorageAccount -Name -ResourceGroupName - [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-SubscriptionId ] [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzApplicationInsightsLinkedStorageAccount -InputObject - [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [-LinkedStorageAccountResourceId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -199,4 +199,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsMyWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsMyWorkbook.md index c91a6b86d47c..7b5525676a10 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsMyWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsMyWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsmyworkbook schema: 2.0.0 --- @@ -13,9 +13,9 @@ Updates a private workbook that has already been added. ## SYNTAX ``` -Update-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName - -WorkbookProperty [-SubscriptionId ] [-LinkedSourceId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Update-AzApplicationInsightsMyWorkbook -Name -ResourceGroupName [-SubscriptionId ] + [-LinkedSourceId ] -WorkbookProperty [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -209,4 +209,3 @@ To create the parameters described below, construct a hash table containing the - `[Version ]`: This instance's version of the data model. This can change as new features are added that can be marked private workbook. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWebTestTag.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWebTestTag.md index 4904f105e95f..239643081d9f 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWebTestTag.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWebTestTag.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightswebtesttag schema: 2.0.0 --- @@ -15,13 +15,13 @@ Updates the tags associated with an Application Insights web test. ### UpdateExpanded (Default) ``` Update-AzApplicationInsightsWebTestTag -Name -ResourceGroupName [-SubscriptionId ] - [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzApplicationInsightsWebTestTag -InputObject [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -215,4 +215,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbook.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbook.md index 4f05d79fcb8c..05e770ca5f71 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbook.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbook.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsworkbook schema: 2.0.0 --- @@ -17,15 +17,15 @@ Updates a workbook that has already been added. Update-AzApplicationInsightsWorkbook -Name -ResourceGroupName [-SubscriptionId ] [-LinkedSourceId ] [-Category ] [-Description ] [-DisplayName ] [-Revision ] [-SerializedData ] [-SourceTag ] [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzApplicationInsightsWorkbook -InputObject [-LinkedSourceId ] [-Category ] [-Description ] [-DisplayName ] [-Revision ] - [-SerializedData ] [-SourceTag ] [-Tag ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] + [-SerializedData ] [-SourceTag ] [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -325,4 +325,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbookTemplate.md b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbookTemplate.md index 1871d2ad89fb..be35707b18e2 100644 --- a/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbookTemplate.md +++ b/src/ApplicationInsights/ApplicationInsights/help/Update-AzApplicationInsightsWorkbookTemplate.md @@ -1,6 +1,6 @@ --- -external help file: -Module Name: Az.ApplicationInsights +external help file: Az.ApplicationInsights-help.xml +Module Name: Az.Applicationinsights online version: https://learn.microsoft.com/powershell/module/az.applicationinsights/update-azapplicationinsightsworkbooktemplate schema: 2.0.0 --- @@ -15,16 +15,16 @@ Updates a workbook template that has already been added. ### UpdateExpanded (Default) ``` Update-AzApplicationInsightsWorkbookTemplate -Name -ResourceGroupName - [-SubscriptionId ] [-Author ] [-Gallery ] - [-Localized ] [-Priority ] [-Tag ] [-TemplateData ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-Author ] [-Gallery ] [-Localized ] + [-Priority ] [-Tag ] [-TemplateData ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzApplicationInsightsWorkbookTemplate -InputObject [-Author ] [-Gallery ] [-Localized ] [-Priority ] [-Tag ] - [-TemplateData ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-TemplateData ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -303,4 +303,3 @@ To create the parameters described below, construct a hash table containing the - `[WebTestName ]`: The name of the Application Insights WebTest resource. ## RELATED LINKS - diff --git a/src/Attestation/Attestation.Autorest/docs/Az.Attestation.md b/src/Attestation/Attestation.Autorest/help/Az.Attestation.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/Az.Attestation.md rename to src/Attestation/Attestation.Autorest/help/Az.Attestation.md diff --git a/src/Attestation/Attestation.Autorest/docs/Get-AzAttestationDefaultProvider.md b/src/Attestation/Attestation.Autorest/help/Get-AzAttestationDefaultProvider.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/Get-AzAttestationDefaultProvider.md rename to src/Attestation/Attestation.Autorest/help/Get-AzAttestationDefaultProvider.md diff --git a/src/Attestation/Attestation.Autorest/docs/Get-AzAttestationProvider.md b/src/Attestation/Attestation.Autorest/help/Get-AzAttestationProvider.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/Get-AzAttestationProvider.md rename to src/Attestation/Attestation.Autorest/help/Get-AzAttestationProvider.md diff --git a/src/Attestation/Attestation.Autorest/docs/New-AzAttestationProvider.md b/src/Attestation/Attestation.Autorest/help/New-AzAttestationProvider.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/New-AzAttestationProvider.md rename to src/Attestation/Attestation.Autorest/help/New-AzAttestationProvider.md diff --git a/src/Attestation/Attestation.Autorest/docs/README.md b/src/Attestation/Attestation.Autorest/help/README.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/README.md rename to src/Attestation/Attestation.Autorest/help/README.md diff --git a/src/Attestation/Attestation.Autorest/docs/Remove-AzAttestationProvider.md b/src/Attestation/Attestation.Autorest/help/Remove-AzAttestationProvider.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/Remove-AzAttestationProvider.md rename to src/Attestation/Attestation.Autorest/help/Remove-AzAttestationProvider.md diff --git a/src/Attestation/Attestation.Autorest/docs/Update-AzAttestationProvider.md b/src/Attestation/Attestation.Autorest/help/Update-AzAttestationProvider.md similarity index 100% rename from src/Attestation/Attestation.Autorest/docs/Update-AzAttestationProvider.md rename to src/Attestation/Attestation.Autorest/help/Update-AzAttestationProvider.md diff --git a/src/BareMetal/BareMetal.Autorest/examples/Get-AzBareMetal.md b/src/BareMetal/BareMetal.Autorest/examples/Get-AzBareMetal.md index 17465187b111..bf6169089bd9 100644 --- a/src/BareMetal/BareMetal.Autorest/examples/Get-AzBareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/examples/Get-AzBareMetal.md @@ -1,6 +1,6 @@ ### Example 1: List ```powershell -PS C:\> Get-AzBareMetal +Get-AzBareMetal Location Name ResourceGroupName -------- ---- ----------------- @@ -14,7 +14,7 @@ Gets Azure BareMetal instance. ### Example 2: Get ```powershell -PS C:\> Get-AzBareMetal -Name oelnvmetest -ResourceGroupName SAT09A-T230 +Get-AzBareMetal -Name oelnvmetest -ResourceGroupName SAT09A-T230 Location Name ResourceGroupName -------- ---- ----------------- @@ -25,7 +25,7 @@ Gets an Azure BareMetal instance for the specified subscription, resource group, ### Example 3: List1 ```powershell -PS C:\> Get-AzBareMetal -ResourceGroupName MWH03A-T210 +Get-AzBareMetal -ResourceGroupName MWH03A-T210 Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/BareMetal/BareMetal.Autorest/examples/Update-AzBareMetal.md b/src/BareMetal/BareMetal.Autorest/examples/Update-AzBareMetal.md index 431cdc3e146f..500b6d233544 100644 --- a/src/BareMetal/BareMetal.Autorest/examples/Update-AzBareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/examples/Update-AzBareMetal.md @@ -1,6 +1,6 @@ ### Example 1: UpdateExpanded ```powershell -PS C:\> Update-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 -Tag @{"env"="test"} +Update-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 -Tag @{"env"="test"} Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ Patches the Tags field of a Azure BareMetal instance for the specified subscript ### Example 2: UpdateViaIdentityExpanded ```powershell -PS C:\> Get-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 | Update-AzBareMetal -Tag @{"env"="test"} +Get-AzBareMetal -Name oraclerac53 -ResourceGroupName SAT09A-T530 | Update-AzBareMetal -Tag @{"env"="test"} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/ChangeAnalysis/ChangeAnalysis.Autorest/examples/Get-AzChangeAnalysis.md b/src/ChangeAnalysis/ChangeAnalysis.Autorest/examples/Get-AzChangeAnalysis.md index dc6d853e63f1..7a7f89c231da 100644 --- a/src/ChangeAnalysis/ChangeAnalysis.Autorest/examples/Get-AzChangeAnalysis.md +++ b/src/ChangeAnalysis/ChangeAnalysis.Autorest/examples/Get-AzChangeAnalysis.md @@ -1,8 +1,8 @@ ### Example 1: List the changes of a subscription within the specified time range ```powershell -PS C:\> $start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC -PS C:\> $end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC -PS C:\> Get-AzChangeAnalysis -StartTime $start -EndTime $end +$start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC +$end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC +Get-AzChangeAnalysis -StartTime $start -EndTime $end Name Type ---- ---- @@ -43,9 +43,9 @@ This command lists the changes of a subscription within the specified time range ### Example 2: List the changes of a resource group within the specified time range ```powershell -PS C:\> $start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC -PS C:\> $end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC -PS C:\> Get-AzChangeAnalysis -StartTime $start -EndTime $end -ResourceGroupName azpssmokerg1268133cx4 +$start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC +$end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC +Get-AzChangeAnalysis -StartTime $start -EndTime $end -ResourceGroupName azpssmokerg1268133cx4 Name Type ---- ---- @@ -57,9 +57,9 @@ This command lists the changes of a resource group within the specified time ran ### Example 3: List the changes of a resource within the specified time range ```powershell -PS C:\> $start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC -PS C:\> $end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC -PS C:\> Get-AzChangeAnalysis -StartTime $start -EndTime $end -ResourceId '/subscriptions/xxxxxx-xxxxx-xxxx-xxxx-xxxxxxf/resourceGroups/azpssmokerg1268133cx4/providers/Microsoft.Storage/storageAccounts/azpssmokesa1268133cx4' +$start = Get-Date -Date "2021-07-16T12:09:03.141Z" -AsUTC +$end = Get-Date -Date "2021-07-18T12:09:03.141Z" -AsUTC +Get-AzChangeAnalysis -StartTime $start -EndTime $end -ResourceId '/subscriptions/xxxxxx-xxxxx-xxxx-xxxx-xxxxxxf/resourceGroups/azpssmokerg1268133cx4/providers/Microsoft.Storage/storageAccounts/azpssmokesa1268133cx4' Name Type ---- ---- diff --git a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md index 15f18a7fddd1..b48f3cfc1729 100644 --- a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md +++ b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationService.md @@ -1,7 +1,7 @@ ### Example 1: List existing CommunicationServices for a Subscription ```powershell -PS C:\> Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8 +Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8 Location Name Type AzureAsyncOperation -------- ---- ---- ------------------- @@ -16,7 +16,7 @@ Returns a list of all ACS resources under that subscription. ### Example 2: Get infomation on specified Azure Communication resource ```powershell -PS C:\> Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 +Get-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 Location Name Type AzureAsyncOperation -------- ---- ---- ------------------- diff --git a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md index b6756024d278..331aaffc1091 100644 --- a/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md +++ b/src/Communication/Communication.Autorest/examples/Get-AzCommunicationServiceKey.md @@ -1,7 +1,7 @@ ### Example 1: Fetch the Key for the specified Communcation service ```powershell -PS C:\> Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 +Get-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 PrimaryConnectionString PrimaryKey SecondaryConnectionString SecondaryKey ----------------------- ---------- ----------------------- ---------- diff --git a/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md index ed47cdffee0b..a45db225b500 100644 --- a/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md +++ b/src/Communication/Communication.Autorest/examples/New-AzCommunicationService.md @@ -1,7 +1,7 @@ ### Example 1: Create a ACS resource ```powershell -PS C:\> New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global +New-AzCommunicationService -ResourceGroupName ContosoResourceProvider1 -Name ContosoAcsResource1 -DataLocation UnitedStates -Location Global Location Name Type AzureAsyncOperation -------- ---- ---- ------------------- diff --git a/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md b/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md index 9d1bc07d9f53..a188c1bc953f 100644 --- a/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md +++ b/src/Communication/Communication.Autorest/examples/New-AzCommunicationServiceKey.md @@ -13,7 +13,7 @@ Invalidates the previous Primary key, regenerate a new one and return it. ### Example 2: Regenerates the Secondary key using a KeyType ```powershell -PS C:\> New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary +New-AzCommunicationServiceKey -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -KeyType Secondary SecondaryConnectionString SecondaryKey ----------------------- ---------- diff --git a/src/Communication/Communication.Autorest/examples/Remove-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/Remove-AzCommunicationService.md index 2218de5579fd..8bc6d95f65ad 100644 --- a/src/Communication/Communication.Autorest/examples/Remove-AzCommunicationService.md +++ b/src/Communication/Communication.Autorest/examples/Remove-AzCommunicationService.md @@ -1,7 +1,7 @@ ### Example 1: Remove the specified Azure Communication resource ```powershell -PS C:\> Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 +Remove-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 ``` Remove / Delete the Azure Communication resource. diff --git a/src/Communication/Communication.Autorest/examples/Set-AzCommunicationServiceNotificationHub.md b/src/Communication/Communication.Autorest/examples/Set-AzCommunicationServiceNotificationHub.md index 83f15de599ca..58b5e816a1a6 100644 --- a/src/Communication/Communication.Autorest/examples/Set-AzCommunicationServiceNotificationHub.md +++ b/src/Communication/Communication.Autorest/examples/Set-AzCommunicationServiceNotificationHub.md @@ -3,7 +3,7 @@ ### Example 1: Provide Notification Hub details interactively ```powershell -PS C:\> Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId "" +Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "" -NotificationHubResourceId "" ``` A linked notification hub allows a ACS resource to send notifications for certain events. diff --git a/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md b/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md index 61321bdaa1c5..454156ebdda4 100644 --- a/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md +++ b/src/Communication/Communication.Autorest/examples/Test-AzCommunicationServiceNameAvailability.md @@ -1,6 +1,6 @@ ### Example 1: Checks if already in use resource name ContosoAcsResource1 is available ```powershell -PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1 +Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource1 Message NameAvailable Reason ------- ------------- ------ @@ -11,7 +11,7 @@ Verified that the CommunicationService name is valid and is not already in use. ### Example 2: Checks if new resource name ContosoAcsResource2 is available ```powershell -PS C:\> Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2 +Test-AzCommunicationServiceNameAvailability -Name ContosoAcsResource2 Message NameAvailable Reason ------- ------------- ------ diff --git a/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md b/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md index d66dd917e502..8914cf0392cf 100644 --- a/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md +++ b/src/Communication/Communication.Autorest/examples/Update-AzCommunicationService.md @@ -1,7 +1,7 @@ ### Example 1: Update an existing ACS resource to have tags ```powershell -PS C:\> Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"} +Update-AzCommunicationService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -Tag @{ExampleKey1="ExampleValue1"} Location Name Type AzureAsyncOperation -------- ---- ---- ------------------- diff --git a/src/Compute/Compute.Autorest/docs/Az.Compute.md b/src/Compute/Compute.Autorest/help/Az.Compute.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Az.Compute.md rename to src/Compute/Compute.Autorest/help/Az.Compute.md diff --git a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md b/src/Compute/Compute.Autorest/help/Get-AzGalleryApplication.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Get-AzGalleryApplication.md rename to src/Compute/Compute.Autorest/help/Get-AzGalleryApplication.md diff --git a/src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/help/Get-AzGalleryApplicationVersion.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Get-AzGalleryApplicationVersion.md rename to src/Compute/Compute.Autorest/help/Get-AzGalleryApplicationVersion.md diff --git a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md b/src/Compute/Compute.Autorest/help/New-AzGalleryApplication.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/New-AzGalleryApplication.md rename to src/Compute/Compute.Autorest/help/New-AzGalleryApplication.md diff --git a/src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/help/New-AzGalleryApplicationVersion.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/New-AzGalleryApplicationVersion.md rename to src/Compute/Compute.Autorest/help/New-AzGalleryApplicationVersion.md diff --git a/src/Compute/Compute.Autorest/docs/README.md b/src/Compute/Compute.Autorest/help/README.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/README.md rename to src/Compute/Compute.Autorest/help/README.md diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md b/src/Compute/Compute.Autorest/help/Remove-AzGalleryApplication.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplication.md rename to src/Compute/Compute.Autorest/help/Remove-AzGalleryApplication.md diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/help/Remove-AzGalleryApplicationVersion.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Remove-AzGalleryApplicationVersion.md rename to src/Compute/Compute.Autorest/help/Remove-AzGalleryApplicationVersion.md diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md b/src/Compute/Compute.Autorest/help/Remove-AzVMRunCommand.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Remove-AzVMRunCommand.md rename to src/Compute/Compute.Autorest/help/Remove-AzVMRunCommand.md diff --git a/src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/help/Remove-AzVmssVMRunCommand.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Remove-AzVmssVMRunCommand.md rename to src/Compute/Compute.Autorest/help/Remove-AzVmssVMRunCommand.md diff --git a/src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md b/src/Compute/Compute.Autorest/help/Set-AzVMRunCommand.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Set-AzVMRunCommand.md rename to src/Compute/Compute.Autorest/help/Set-AzVMRunCommand.md diff --git a/src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md b/src/Compute/Compute.Autorest/help/Set-AzVmssVMRunCommand.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Set-AzVmssVMRunCommand.md rename to src/Compute/Compute.Autorest/help/Set-AzVmssVMRunCommand.md diff --git a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md b/src/Compute/Compute.Autorest/help/Update-AzGalleryApplication.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Update-AzGalleryApplication.md rename to src/Compute/Compute.Autorest/help/Update-AzGalleryApplication.md diff --git a/src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md b/src/Compute/Compute.Autorest/help/Update-AzGalleryApplicationVersion.md similarity index 100% rename from src/Compute/Compute.Autorest/docs/Update-AzGalleryApplicationVersion.md rename to src/Compute/Compute.Autorest/help/Update-AzGalleryApplicationVersion.md diff --git a/src/Compute/Compute/help/New-AzVM.md b/src/Compute/Compute/help/New-AzVM.md index bc9253c2cd1e..2fcbadd60f62 100644 --- a/src/Compute/Compute/help/New-AzVM.md +++ b/src/Compute/Compute/help/New-AzVM.md @@ -773,6 +773,7 @@ Specifies a license type, which indicates that the image or disk for the virtual Possible values for Windows Server are: - Windows_Client - Windows_Server + Possible values for Linux Server operating system are: - RHEL_BYOS (for RHEL) - SLES_BYOS (for SUSE) diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Get-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Get-AzConfidentialLedger.md index 158f083ae323..fc3cf3b86aa4 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Get-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Get-AzConfidentialLedger.md @@ -1,6 +1,6 @@ ### Example 1: List Confidential Ledgers ```powershell -PS C:\> Get-AzConfidentialLedger ` +Get-AzConfidentialLedger ` -SubscriptionId 00000000-0000-0000-0000-000000000000 Location Name @@ -13,7 +13,7 @@ Lists all the Confidential Ledgers under a subscription. ### Example 2: Get a Confidential Ledger ```powershell -PS C:\> Get-AzConfidentialLedger ` +Get-AzConfidentialLedger ` -Name test-ledger ` -ResourceGroupName test-rg diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedger.md index 2e699d5a46e3..703e48544a71 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedger.md @@ -1,6 +1,6 @@ ### Example 1: Create a new Confidential Ledger ```powershell -PS C:\> New-AzConfidentialLedger ` +New-AzConfidentialLedger ` -Name test-ledger ` -ResourceGroupName rg-000 ` -SubscriptionId 00000000-0000-0000-0000-000000000000 ` @@ -27,16 +27,16 @@ Creates a new Confidential Ledger. ### Example 2: Create Using Security Principal Objects ```powershell -PS C:\> $aadSecurityPrincipal = New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` +$aadSecurityPrincipal = New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` -LedgerRoleName "Administrator" ` -PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" ` -TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08" -PS C:\> $certSecurityPrincipal = New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ` +$certSecurityPrincipal = New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ` -Cert "-----BEGIN CERTIFICATE-----********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************-----END CERTIFICATE-----" ` -LedgerRoleName "Reader" -PS C:\> New-AzConfidentialLedger ` +New-AzConfidentialLedger ` -Name test-ledger ` -ResourceGroupName rg-000 ` -SubscriptionId 00000000-0000-0000-0000-000000000000 ` diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md index f1aca9f401a8..b40404262a62 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerAADBasedSecurityPrincipalObject.md @@ -1,6 +1,6 @@ ### Example 1: Object creation ```powershell -PS C:\> New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` +New-AzConfidentialLedgerAADBasedSecurityPrincipalObject ` -LedgerRoleName "Administrator" ` -PrincipalId "34621747-6fc8-4771-a2eb-72f31c461f2e" ` -TenantId "bce123b9-2b7b-4975-8360-5ca0b9b1cd08" diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md index 495e9377e413..c4d452cd6c90 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/New-AzConfidentialLedgerCertBasedSecurityPrincipalObject.md @@ -1,6 +1,6 @@ ### Example 1: Object creation ```powershell -PS C:\> New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ` +New-AzConfidentialLedgerCertBasedSecurityPrincipalObject ` -Cert "-----BEGIN CERTIFICATE-----********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************-----END CERTIFICATE-----" ` -LedgerRoleName "Reader" diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Remove-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Remove-AzConfidentialLedger.md index cfd4f6604670..f59aa0aabdfa 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Remove-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Remove-AzConfidentialLedger.md @@ -1,6 +1,6 @@ ### Example 1: Delete a Confidential Ledger ```powershell -PS C:\> Remove-AzConfidentialLedger ` +Remove-AzConfidentialLedger ` -Name test-ledger ` -ResourceGroupName rg-000 diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Test-AzConfidentialLedgerNameAvailability.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Test-AzConfidentialLedgerNameAvailability.md index e0443298a816..cfc5bebacd20 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Test-AzConfidentialLedgerNameAvailability.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Test-AzConfidentialLedgerNameAvailability.md @@ -1,6 +1,6 @@ ### Example 1: Name is available ```powershell -PS C:\> Test-AzConfidentialLedgerNameAvailability ` +Test-AzConfidentialLedgerNameAvailability ` -NameAvailabilityRequest ` @{ Name="available-name"; @@ -16,7 +16,7 @@ Checks to see if the specified Confidential Ledger name is available. In this ca ### Example 2: Name is not available ```powershell -PS C:\> Test-AzConfidentialLedgerNameAvailability ` +Test-AzConfidentialLedgerNameAvailability ` -NameAvailabilityRequest ` @{ Name="not-available-name"; diff --git a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Update-AzConfidentialLedger.md b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Update-AzConfidentialLedger.md index d7265e81d102..846efc3f54d4 100644 --- a/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Update-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/ConfidentialLedger.Autorest/examples/Update-AzConfidentialLedger.md @@ -1,6 +1,6 @@ ### Example 1: Update tags for a Confidential Ledger ```powershell -PS C:\> Update-AzConfidentialLedger ` +Update-AzConfidentialLedger ` -Name test-ledger ` -ResourceGroupName rg-000 ` -SubscriptionId 00000000-0000-0000-0000-000000000000 ` diff --git a/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentMarketplaceAgreement.md b/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentMarketplaceAgreement.md index 9362668d9dc7..0b14f34044ff 100644 --- a/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentMarketplaceAgreement.md +++ b/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentMarketplaceAgreement.md @@ -1,6 +1,6 @@ ### Example 1: List all confluent marketplace agreement under a subscription ```powershell -PS C:\> Get-AzConfluentMarketplaceAgreement +Get-AzConfluentMarketplaceAgreement Name Type ---- ---- diff --git a/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentOrganization.md b/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentOrganization.md index cd70a74c796d..16fb8e134a5d 100644 --- a/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentOrganization.md +++ b/src/Confluent/Confluent.Autorest/examples/Get-AzConfluentOrganization.md @@ -1,6 +1,6 @@ ### Example 1: List all confluent organizations under a subscription ```powershell -PS C:\> Get-AzConfluentOrganization +Get-AzConfluentOrganization Location Name Type -------- ---- ---- @@ -21,7 +21,7 @@ This command lists all confluent organizations under a subscription. ### Example 2: List all confluent organizations under a resource group ```powershell -PS C:\> Get-AzConfluentOrganization -ResourceGroupName azure-rg-test +Get-AzConfluentOrganization -ResourceGroupName azure-rg-test Location Name Type -------- ---- ---- @@ -32,7 +32,7 @@ This command lists all confluent organizations under a resource group. ### Example 3: Get a confluent organization by name ```powershell -PS C:\> Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-01-portal +Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-01-portal Location Name Type -------- ---- ---- @@ -43,7 +43,7 @@ This command gets a confluent organization by name. ### Example 4: Get a confluent organization by pipeline ```powershell -PS C:\> New-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Location eastus -OfferDetailId "confluent-cloud-azure-prod" -OfferDetailPlanId "confluent-cloud-azure-payg-prod" -OfferDetailPlanName "Confluent Cloud - Pay as you Go" -OfferDetailPublisherId "confluentinc" -OfferDetailTermUnit "P1M" | Get-AzConfluentOrganization +New-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Location eastus -OfferDetailId "confluent-cloud-azure-prod" -OfferDetailPlanId "confluent-cloud-azure-payg-prod" -OfferDetailPlanName "Confluent Cloud - Pay as you Go" -OfferDetailPublisherId "confluentinc" -OfferDetailTermUnit "P1M" | Get-AzConfluentOrganization Location Name Type -------- ---- ---- diff --git a/src/Confluent/Confluent.Autorest/examples/New-AzConfluentOrganization.md b/src/Confluent/Confluent.Autorest/examples/New-AzConfluentOrganization.md index 4d484cb78969..8fee733d009d 100644 --- a/src/Confluent/Confluent.Autorest/examples/New-AzConfluentOrganization.md +++ b/src/Confluent/Confluent.Autorest/examples/New-AzConfluentOrganization.md @@ -1,6 +1,6 @@ ### Example 1: Create a confluent organization ```powershell -PS C:\> New-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Location eastus -OfferDetailId "confluent-cloud-azure-prod" -OfferDetailPlanId "confluent-cloud-azure-payg-prod" -OfferDetailPlanName "Confluent Cloud - Pay as you Go" -OfferDetailPublisherId "confluentinc" -OfferDetailTermUnit "P1M" -UserDetailEmailAddress "xxxx@microsoft.com" +New-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Location eastus -OfferDetailId "confluent-cloud-azure-prod" -OfferDetailPlanId "confluent-cloud-azure-payg-prod" -OfferDetailPlanName "Confluent Cloud - Pay as you Go" -OfferDetailPublisherId "confluentinc" -OfferDetailTermUnit "P1M" -UserDetailEmailAddress "xxxx@microsoft.com" Location Name Type -------- ---- ---- diff --git a/src/Confluent/Confluent.Autorest/examples/Remove-AzConfluentOrganization.md b/src/Confluent/Confluent.Autorest/examples/Remove-AzConfluentOrganization.md index 24400b8527f9..dc7798d0f134 100644 --- a/src/Confluent/Confluent.Autorest/examples/Remove-AzConfluentOrganization.md +++ b/src/Confluent/Confluent.Autorest/examples/Remove-AzConfluentOrganization.md @@ -1,6 +1,6 @@ ### Example 1: Remove a confluent organization by name ```powershell -PS C:\> Remove-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-01-portal +Remove-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-01-portal - This action cannot be undone. - This will permanently delete ‘’ and its Azure subscription - Stop billing for the selected Confluent organization through Azure Marketplace @@ -11,7 +11,7 @@ This command removes a confluent organization by name ### Example 2: Remove a confluent organization by pipeline ```powershell -PS C:\> Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh | Remove-AzConfluentOrganization + Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh | Remove-AzConfluentOrganization - This action cannot be undone. - This will permanently delete ‘’ and its Azure subscription - Stop billing for the selected Confluent organization through Azure Marketplace diff --git a/src/Confluent/Confluent.Autorest/examples/Update-AzConfluentOrganization.md b/src/Confluent/Confluent.Autorest/examples/Update-AzConfluentOrganization.md index 4c32a28d9b34..57f623c0a75d 100644 --- a/src/Confluent/Confluent.Autorest/examples/Update-AzConfluentOrganization.md +++ b/src/Confluent/Confluent.Autorest/examples/Update-AzConfluentOrganization.md @@ -1,6 +1,6 @@ ### Example 1: Update a confluent organization by name ```powershell -PS C:\> pdate-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Tag @{"key01" = "value01"} +pdate-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh -Tag @{"key01" = "value01"} Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ This command updates a confluent organization by name. ### Example 2: Update a confluent organization by pipeline ```powershell -PS C:\> Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh | Update-AzConfluentOrganization -Tag @{"key01" = "value01"; "key02"="value02"} +Get-AzConfluentOrganization -ResourceGroupName azure-rg-test -Name confluentorg-02-pwsh | Update-AzConfluentOrganization -Tag @{"key01" = "value01"; "key02"="value02"} Location Name Type -------- ---- ---- diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDevice.md index a6d2bededec7..8e643fbcb34e 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDevice.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDevice.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkDevice via Resource Group and Resource name ```powershell -PS C:\> Get-AzConnectedNetworkDevice -ResourceGroupName myResources -Name myMecDevice +Get-AzConnectedNetworkDevice -ResourceGroupName myResources -Name myMecDevice DeviceType : AzureStackEdge @@ -26,8 +26,8 @@ Getting information about the NFM device in resource group myResources with name ### Example 2: Get-AzConnectedNetworkDevice via Identity ```powershell -PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} -PS C:\> Get-AzConnectedNetworkDevice -InputObject $mecDevice +$mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} +Get-AzConnectedNetworkDevice -InputObject $mecDevice DeviceType : AzureStackEdge diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md index 3b61494eba04..063f72c60974 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name ```powershell -PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources +Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9 ``` @@ -9,7 +9,7 @@ Getting the registration key for NFM device in resource group myResources with r ### Example 2: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name and Subscription Id ```powershell -PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 +Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9 ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunction.md index 280e706bd01a..11aa04186caa 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunction.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunction.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkFunction via Resource group and Resource name ```powershell -PS C:\> Get-AzConnectedNetworkFunction -Name myVnf -ResourceGroupName myResources +Get-AzConnectedNetworkFunction -Name myVnf -ResourceGroupName myResources ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations @@ -34,8 +34,8 @@ Getting information about the network function in resource group myResources wit ### Example 2: Get-AzConnectedNetworkFunction via Identity ```powershell -PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} -PS C:\> Get-AzConnectedNetworkFunction -InputObject $vnf +$vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} +Get-AzConnectedNetworkFunction -InputObject $vnf ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunctionVendor.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunctionVendor.md index e15056d43b4b..56ad541f5e50 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunctionVendor.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkFunctionVendor.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkFunctionVendor ```powershell -PS C:\> Get-AzConnectedNetworkFunctionVendor +Get-AzConnectedNetworkFunctionVendor SkuList VendorName ------- ---------- @@ -13,7 +13,7 @@ Getting information about the vendors and their skus ### Example 2: Get-AzConnectedNetworkFunctionVendor via Subscription Id ```powershell -PS C:\> Get-AzConnectedNetworkFunctionVendor -SubscriptionId "xxxxx-00000-xxxxx-00000" +Get-AzConnectedNetworkFunctionVendor -SubscriptionId "xxxxx-00000-xxxxx-00000" SkuList VendorName ------- ---------- diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendor.md index c909de371c04..2e6a2772178f 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendor.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendor.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkVendor using vendor name ```powershell -PS C:\> Get-AzConnectedNetworkVendor -Name myVendor +Get-AzConnectedNetworkVendor -Name myVendor Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor @@ -22,8 +22,8 @@ Getting information about the vendor with vendor name myVendor. ### Example 2: Get-AzConnectedNetworkVendor using Identity ```powershell -PS C:\> $vendor = @{ VendorName = "myVendor1"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} -PS C:\> Get-AzConnectedNetworkVendor -InputObject $vendor +$vendor = @{ VendorName = "myVendor1"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} +Get-AzConnectedNetworkVendor -InputObject $vendor Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor1 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunction.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunction.md index bfb8f7818d95..97136f772f95 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunction.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunction.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkVendorFunction via Location Name, Service Key and Subscription ```powershell -PS C:\> Get-AzConnectedNetworkVendorFunction -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor +Get-AzConnectedNetworkVendorFunction -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d 0 @@ -25,8 +25,8 @@ Getting the information of a vendor network function with service key 1234-abcd- ### Example 2: Get-AzConnectedNetworkVendorFunction via Identity ```powershell -PS C:\> $vendorNF = @{ ServiceKey = "1234-abcd-4321-dcba"; VendorName = "myVendor"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"} -PS C:\> Get-AzConnectedNetworkVendorFunction -InputObject $vendorNF +$vendorNF = @{ ServiceKey = "1234-abcd-4321-dcba"; VendorName = "myVendor"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"} +Get-AzConnectedNetworkVendorFunction -InputObject $vendorNF Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d 0 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md index b1719acff08a..8f1d0390b4a8 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkVendorFunctionRoleInstance via Location, Service key, vendor name and role name ```powershell -PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name hpehss + Get-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name hpehss Id : Name : hpehss @@ -21,8 +21,8 @@ Getting the role instance information of role hpehss with Location centraluseuap ### Example 2: Get-AzConnectedNetworkVendorFunctionRoleInstance via Identity ```powershell -PS C:\> $role = @{ RoleInstanceName = "hpehss"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} -PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role +$role = @{ RoleInstanceName = "hpehss"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} +Get-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role Id : Name : hpehss diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSku.md index 50c499e8b466..2afd01453fc2 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSku.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSku.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkVendorSku using Vendor name and Subscription Id ```powershell -PS C:\> Get-AzConnectedNetworkVendorSku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 +Get-AzConnectedNetworkVendorSku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 DeploymentMode : PrivateEdgeZone Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/VendorSkus/mySku diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSkuPreview.md index 523739b675b7..4171cb06e2a5 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSkuPreview.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Get-AzConnectedNetworkVendorSkuPreview.md @@ -1,6 +1,6 @@ ### Example 1: Get-AzConnectedNetworkVendorSkuPreview using sku name, vendor name and preview subscription ```powershell -PS C:\> Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 +Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222 Name : xxxxx-22222-xxxxx-22222 @@ -20,8 +20,8 @@ Getting the preview information of a vendor sku mySku with vendor myVendor for t ### Example 2: Get-AzConnectedNetworkVendorSkuPreview via Identity ```powershell -PS C:\> $skuPreview = @{ SkuName = "mySku"; VendorName = "myVendor"; PreviewSubscription = "xxxxx-22222-xxxxx-22222"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} -PS C:\> Get-AzConnectedNetworkVendorSkuPreview -InputObject $skuPreview +$skuPreview = @{ SkuName = "mySku"; VendorName = "myVendor"; PreviewSubscription = "xxxxx-22222-xxxxx-22222"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} +Get-AzConnectedNetworkVendorSkuPreview -InputObject $skuPreview Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222 Name : xxxxx-22222-xxxxx-22222 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkAzureStackEdgeObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkAzureStackEdgeObject.md index 889cdc425206..881f902cd109 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkAzureStackEdgeObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkAzureStackEdgeObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a in-memory stored AzureStackEdgeFormat object for creating the device ```powershell -PS C:\> New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1" +New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1" eviceType ProvisioningState Status ---------- ----------------- ------ diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkDevice.md index c4df5568bbb8..f26ef9507918 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkDevice.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkDevice.md @@ -1,7 +1,7 @@ ### Example 1: New-AzConnectedNetworkDevice ```powershell -PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse" -PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice" -ResourceGroupName "myResources" -Location "eastus" -Property $ase +$ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse" +New-AzConnectedNetworkDevice -Name "myMecDevice" -ResourceGroupName "myResources" -Location "eastus" -Property $ase DeviceType : AzureStackEdge Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice @@ -26,8 +26,8 @@ Create a device with Device Name with resource myMecDevice name in Resource Grou ### Example 2: New-AzConnectedNetworkDevice ```powershell -PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1" -PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice1" -ResourceGroupName "myResources" -Location "eastus2euap" -Property $ase -SubscriptionId xxxxx-00000-xxxxx-00000 +$ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1" +New-AzConnectedNetworkDevice -Name "myMecDevice1" -ResourceGroupName "myResources" -Location "eastus2euap" -Property $ase -SubscriptionId xxxxx-00000-xxxxx-00000 DeviceType : AzureStackEdge Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunction.md index 31c31898d1ab..58b6477fc05b 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunction.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunction.md @@ -1,12 +1,12 @@ ### Example 1: 1-step VNF deployment ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" -PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg==" -PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss" -PS C:\> New-AzConnectedNetworkFunction -Name vnf_Test1 -ResourceGroupName myResources -Location "eastus" -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_020 -SkuName Affirmed-HSS-0527 -UserConfiguration $userconf -VendorName "AffirmedVendor" +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" +$customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg==" +$userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss" +New-AzConnectedNetworkFunction -Name vnf_Test1 -ResourceGroupName myResources -Location "eastus" -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_020 -SkuName Affirmed-HSS-0527 -UserConfiguration $userconf -VendorName "AffirmedVendor" Location Name Etag ResourceGroupName -------- ---- ---- ----------------- @@ -17,13 +17,13 @@ Creating network interfaces with dynamic method allocation and ip version to IPv ### Example 2: 2-step VNF deployment ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" -PS C:\> $userconfig2 = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName "hpehss" -PS C:\> $vnf1 = New-AzConnectedNetworkFunction -Name vnftest11 -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_autotest_01 -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 -Location eastus2euap -SkuName staticSku -VendorName hssvendor01 -UserConfiguration $userconfig2 -verbose -PS C:\> $v2.ServiceKey +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" +$userconfig2 = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName "hpehss" +$vnf1 = New-AzConnectedNetworkFunction -Name vnftest11 -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_autotest_01 -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 -Location eastus2euap -SkuName staticSku -VendorName hssvendor01 -UserConfiguration $userconfig2 -verbose +$v2.ServiceKey abcd-sample-service-key-val-1234 ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md index d715351a9e78..6bb5bf8ddf62 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md @@ -1,12 +1,12 @@ ### Example 1: New-AzConnectedNetworkFunctionUserConfigurationObject ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" -PS C:\> $keyData = @{keyData = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb"; path = $Null} -PS C:\> $key = @( $keyData) -PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName Disk1 -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd" +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" +$keyData = @{keyData = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb"; path = $Null} +$key = @( $keyData) +$role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName Disk1 -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd" RoleName RoleType VirtualMachineSize -------- -------- ------------------ diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md index b19390152078..602c5f5a1b16 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md @@ -1,11 +1,11 @@ ### Example 1: New-AzConnectedNetworkFunction ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "LAN" -PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg==" -PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss" +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "LAN" +$customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg==" +$userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss" ``` Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Then using that to create user configuration object with role name hpehss, custom data and network interface array. \ No newline at end of file diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md index 60d7cbd66bba..a0ea8cc5bf14 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md @@ -1,13 +1,13 @@ ### Example 1: New-AzConnectedNetworkFunctionVendorConfigurationObject ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" -PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\userk@n1-azuredev1"; path = $Null} -PS C:\> $keys = @{ } -PS C:\> $key += $keyData -PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" +$keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\userk@n1-azuredev1"; path = $Null} +$keys = @{ } +$key += $keyData +$vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key ``` Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Creating a ssh key identity, Then using those to create vendor configuration object with role name hpehss, custom data, keyData and network interface array, which will be used in vendor NF creation. \ No newline at end of file diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md index 091f321d204f..4d1d398bedb3 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a in-memory object for NetworkInterfaceIPConfiguration ```powershell -PS C:\> New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" DnsServer Gateway IPAddress IPAllocationMethod IPVersion Subnet --------- ------- --------- ------------------ --------- ------ diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceObject.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceObject.md index a1282471dad8..8452251e651b 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceObject.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkInterfaceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a in-memory object for NetworkInterface ```powershell -PS C:\> New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" MacAddress Name VMSwitchType ---------- ---- ------------ diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendor.md index 1649b17d3036..312a57fc97d0 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendor.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendor.md @@ -1,6 +1,6 @@ ### Example 1: New-AzConnectedNetworkVendor ```powershell -PS C:\> New-AzConnectedNetworkVendor -Name myVendor +New-AzConnectedNetworkVendor -Name myVendor Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor @@ -21,7 +21,7 @@ Creating a vendor with name myVendor. ### Example 2: New-AzConnectedNetworkVendor with SubscriptionId ```powershell -PS C:\> New-AzConnectedNetworkVendor -Name myVendor2 -SubscriptionId xxxxx-22222-xxxxx-22222 +New-AzConnectedNetworkVendor -Name myVendor2 -SubscriptionId xxxxx-22222-xxxxx-22222 Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor2 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorFunction.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorFunction.md index cc0cdcfb2c68..44b4124ebf5f 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorFunction.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorFunction.md @@ -1,14 +1,14 @@ ### Example 1: New-AzConnectedNetworkVendorFunction ```powershell -PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" -PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" -PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" -PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\user@n1-azuredev1"; path = $Null} -PS C:\> $keys = @{ } -PS C:\> $key += $keyData -PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key -PS C:\> $vendorvnf1 = New-AzConnectedNetworkVendorFunction -LocationName eastus2euap -ServiceKey b78d39-xxxx-xxxx-00946c5 -SubscriptionId xxxx-4444-xxxx-4444 -VendorName myVendor -VendorConfiguration $vendorconf -SkuType EvolvedPacketCore -VendorProvisioningState Provisioning +$ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4" +$ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management" +$ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan" +$keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\user@n1-azuredev1"; path = $Null} +$keys = @{ } +$key += $keyData +$vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key +$vendorvnf1 = New-AzConnectedNetworkVendorFunction -LocationName eastus2euap -ServiceKey b78d39-xxxx-xxxx-00946c5 -SubscriptionId xxxx-4444-xxxx-4444 -VendorName myVendor -VendorConfiguration $vendorconf -SkuType EvolvedPacketCore -VendorProvisioningState Provisioning ``` Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Creating a ssh key identity, Then using those to create vendor configuration object with role name hpehss, custom data, keyData and network interface array. Using this to create vendor NF with the specified service key, vendor subscription, location eastus2euap, vendor name myVendor, sku type EvolvedPacketCore, vendor provisioning state Provisioning. \ No newline at end of file diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSku.md index 4d915a821a47..bbc621ba4e9d 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSku.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSku.md @@ -1,7 +1,7 @@ ### Example 1: New-AzConnectedNetworkVendorSku ```powershell -PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName NetFoundry -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd" -PS C:\> New-AzConnectedNetworkVendorSku -SkuName sku1 -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 -SkuType VirtualMachine -DeploymentMode PrivateEdgeZone -NetworkFunctionRoleConfigurationType @($role) +$role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName NetFoundry -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd" +New-AzConnectedNetworkVendorSku -SkuName sku1 -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 -SkuType VirtualMachine -DeploymentMode PrivateEdgeZone -NetworkFunctionRoleConfigurationType @($role) ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSkuPreview.md index a9c2f17a8b9f..cecb9c6db08d 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSkuPreview.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/New-AzConnectedNetworkVendorSkuPreview.md @@ -1,6 +1,6 @@ ### Example 1: New-AzConnectedNetworkVendorSkuPreview using preview subscription, sku name, vendor name and subscription ```powershell -PS C:\> New-AzConnectedNetworkVendorSkuPreview -PreviewSubscription xxxxx-00000-xxxxx-00000 -SkuName mySku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 +New-AzConnectedNetworkVendorSkuPreview -PreviewSubscription xxxxx-00000-xxxxx-00000 -SkuName mySku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-00000-xxxxx-00000 Name : xxxxx-00000-xxxxx-00000 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkDevice.md index c6b610a9bc35..7ef8400e8c34 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkDevice.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkDevice.md @@ -1,6 +1,6 @@ ### Example 1: Remove-AzConnectedNetworkDevice via resource name and resource group ```powershell -PS C:\> Remove-AzConnectedNetworkDevice -Name myMecDevice -ResourceGroupName myResources +Remove-AzConnectedNetworkDevice -Name myMecDevice -ResourceGroupName myResources ``` @@ -8,8 +8,8 @@ Deleting the NFM device with device name myMecDevice in resource group myResourc ### Example 2: Remove-AzConnectedNetworkDevice via Identity ```powershell -PS C:\> $mecDevice = Get-AzConnectedNetworkDevice -Name myMecDevice2 -ResourceGroupName myResources -PS C:\> Remove-AzConnectedNetworkDevice -InputObject $mecDevice +$mecDevice = Get-AzConnectedNetworkDevice -Name myMecDevice2 -ResourceGroupName myResources +Remove-AzConnectedNetworkDevice -InputObject $mecDevice ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkFunction.md index 2378957f6601..5b5312b86431 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkFunction.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkFunction.md @@ -1,6 +1,6 @@ ### Example 1: Remove-AzConnectedNetworkFunction via Resource Group and Resource name ```powershell -PS C:\> Remove-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf +Remove-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf ``` @@ -8,8 +8,8 @@ Deleting the Network Function in Resource Group myResources with name myVnf. ### Example 2: Remove-AzConnectedNetworkFunction via Identity ```powershell -PS C:\> $vnf = Get-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf1 -PS C:\> Remove-AzConnectedNetworkFunction -InputObject $vnf +$vnf = Get-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf1 +Remove-AzConnectedNetworkFunction -InputObject $vnf ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendor.md index 4be7bdb56bfa..079ce547c7ce 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendor.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendor.md @@ -1,6 +1,6 @@ ### Example 1: Remove-AzConnectedNetworkVendor via vendor name ```powershell -PS C:\> Remove-AzConnectedNetworkVendor -Name MyVendor +Remove-AzConnectedNetworkVendor -Name MyVendor ``` @@ -8,8 +8,8 @@ Deleting the vendor with name MyVendor ### Example 2: Remove-AzConnectedNetworkVendor via InputObject ```powershell -PS C:\> $vendor = Get-AzConnectedNetworkVendor -Name MyVendor1 -PS C:\> Remove-AzConnectedNetworkVendor -InputObject $vendor +$vendor = Get-AzConnectedNetworkVendor -Name MyVendor1 +Remove-AzConnectedNetworkVendor -InputObject $vendor ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSku.md index b7168fc307e6..395f10376582 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSku.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSku.md @@ -1,6 +1,6 @@ ### Example 1: Remove-AzConnectedNetworkVendorSku via Sku name and Vendor name ```powershell -PS C:\> Remove-AzConnectedNetworkVendorSku -SkuName MySku -VendorName MyVendor +Remove-AzConnectedNetworkVendorSku -SkuName MySku -VendorName MyVendor ``` @@ -9,7 +9,7 @@ Deleting the sku MySku with Vendor name MyVendor. ### Example 2: Remove-AzConnectedNetworkVendorSku via Identity ```powershell $sku = Get-AzConnectedNetworkVendorSku -SkuName MySku1 -VendorName MyVendor -PS C:\> Remove-AzConnectedNetworkVendorSku -InputObject $sku +Remove-AzConnectedNetworkVendorSku -InputObject $sku ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSkuPreview.md index 13ed4a333d25..7374d75b7b87 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSkuPreview.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Remove-AzConnectedNetworkVendorSkuPreview.md @@ -1,6 +1,6 @@ ### Example 1: Remove-AzConnectedNetworkVendorSkuPreview via sku name, vendor name and preview subscription ```powershell -PS C:\> Remove-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 +Remove-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 ``` @@ -8,8 +8,8 @@ Deleting the preview information of sku mySku with vendor name myVendor for the ### Example 2: Remove-AzConnectedNetworkVendorSkuPreview via Identity ```powershell -PS C:\> $sku = Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku1 -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 -PS C:\> Remove-AzConnectedNetworkVendorSkuPreview -InputObject $sku +$sku = Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku1 -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222 +Remove-AzConnectedNetworkVendorSkuPreview -InputObject $sku ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md index a73d2248a69f..944c781d3747 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md @@ -1,6 +1,6 @@ ### Example 1: Restart-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name ```powershell -PS C:\> Restart-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 +Restart-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 ``` @@ -8,8 +8,8 @@ Restarting a role instance of a vendor network function with the specified servi ### Example 2: Restart-AzConnectedNetworkVendorFunctionRoleInstance via Identity ```powershell -PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} -PS C:\> Restart-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role +$role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} +Restart-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md index b4cdea3f3e72..fa33bfc293c3 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md @@ -1,6 +1,6 @@ ### Example 1: Start-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name ```powershell -PS C:\> Start-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 +Start-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 ``` @@ -8,8 +8,8 @@ Starting a role instance of a vendor network function with the specified service ### Example 2: Start-AzConnectedNetworkVendorFunctionRoleInstance via Identity ```powershell -PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} -PS C:\> Start-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role +$role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} +Start-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md index 9a683eedc0e1..4e6ae8a9aff1 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md @@ -1,6 +1,6 @@ ### Example 1: Stop-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name ```powershell -PS C:\> Stop-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 +Stop-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1 ``` @@ -8,8 +8,8 @@ Stoping a role instance of a vendor network function with the specified serviceK ### Example 2: Stop-AzConnectedNetworkVendorFunctionRoleInstance via Identity ```powershell -PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} -PS C:\> Stop-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role +$role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"} +Stop-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role ``` diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkDeviceTag.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkDeviceTag.md index 7fad592da298..d43397e63148 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkDeviceTag.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkDeviceTag.md @@ -1,7 +1,7 @@ ### Example 1: Update-AzConnectedNetworkDeviceTag via Resource name and Device name ```powershell -PS C:\> $tags = @{ NewTag = "NewTagValue"} -PS C:\> Update-AzConnectedNetworkDeviceTag -DeviceName "myMecDevice" -ResourceGroupName "myResources" -Tag $tags +$tags = @{ NewTag = "NewTagValue"} +Update-AzConnectedNetworkDeviceTag -DeviceName "myMecDevice" -ResourceGroupName "myResources" -Tag $tags DeviceType : AzureStackEdge @@ -26,9 +26,9 @@ Creating an identity with field NewTag and value NewTagValue. Updating the tag o ### Example 2: Update-AzConnectedNetworkDeviceTag via Identity ```powershell -PS C:\> $tags = @{ NewTag1 = "NewTagValue1"} -PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} -PS C:\> Update-AzConnectedNetworkDeviceTag -InputObject $mecDevice -Tag $tags +$tags = @{ NewTag1 = "NewTagValue1"} +$mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"} +Update-AzConnectedNetworkDeviceTag -InputObject $mecDevice -Tag $tags DeviceType : AzureStackEdge Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_09 diff --git a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkFunctionTag.md b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkFunctionTag.md index 76e474d158d6..6abc4746c5db 100644 --- a/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkFunctionTag.md +++ b/src/ConnectedNetwork/ConnectedNetwork.Autorest/examples/Update-AzConnectedNetworkFunctionTag.md @@ -1,7 +1,7 @@ ### Example 1: Update-AzConnectedNetworkFunctionTag ```powershell -PS C:\> $tags = @{ NewTag = "NewTagValue"} -PS C:\> Update-AzConnectedNetworkFunctionTag -NetworkFunctionName myNewVnf1 -ResourceGroupName myResources -Tag $tags +$tags = @{ NewTag = "NewTagValue"} +Update-AzConnectedNetworkFunctionTag -NetworkFunctionName myNewVnf1 -ResourceGroupName myResources -Tag $tags Location Name Etag ResourceGroupName -------- ---- ---- ----------------- @@ -12,9 +12,9 @@ Creating an identity with field NewTag and value NewTagValue. Updating the tag o ### Example 2: Update-AzConnectedNetworkFunctionTag ```powershell -PS C:\> $tags = @{ NewTag = "NewTagValue"} -PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "00000000-0000-0000-0000-000000000000"} -PS C:\> Update-AzConnectedNetworkFunctionTag -InputObject $vnf -Tag $tags +$tags = @{ NewTag = "NewTagValue"} +$vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "00000000-0000-0000-0000-000000000000"} +Update-AzConnectedNetworkFunctionTag -InputObject $vnf -Tag $tags Location Name Etag ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Az.ContainerRegistry.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Az.ContainerRegistry.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Az.ContainerRegistry.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Az.ContainerRegistry.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistry.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistry.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistry.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistry.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryAgentPool.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryAgentPool.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryAgentPool.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryAgentPool.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryAgentPoolQueueStatus.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryAgentPoolQueueStatus.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryAgentPoolQueueStatus.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryAgentPoolQueueStatus.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryCredential.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryCredential.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryCredential.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryCredential.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryExportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryExportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryExportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryExportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryImportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryImportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryImportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryImportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryReplication.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryReplication.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryReplication.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryReplication.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryScopeMap.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryScopeMap.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryScopeMap.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryScopeMap.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryToken.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryToken.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryToken.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryToken.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryUsage.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryUsage.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryUsage.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryUsage.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhook.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhook.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhook.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhook.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhookCallbackConfig.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhookCallbackConfig.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhookCallbackConfig.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhookCallbackConfig.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhookEvent.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhookEvent.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Get-AzContainerRegistryWebhookEvent.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Get-AzContainerRegistryWebhookEvent.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Import-AzContainerRegistryImage.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Import-AzContainerRegistryImage.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Import-AzContainerRegistryImage.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Import-AzContainerRegistryImage.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistry.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistry.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistry.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistry.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryAgentPool.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryAgentPool.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryAgentPool.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryAgentPool.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryCredentials.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryCredentials.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryCredentials.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryCredentials.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryExportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryExportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryExportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryExportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryIPRuleObject.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryIPRuleObject.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryIPRuleObject.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryIPRuleObject.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryImportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryImportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryImportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryImportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryReplication.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryReplication.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryReplication.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryReplication.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryScopeMap.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryScopeMap.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryScopeMap.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryScopeMap.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryToken.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryToken.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryToken.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryToken.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryWebhook.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryWebhook.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/New-AzContainerRegistryWebhook.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/New-AzContainerRegistryWebhook.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/README.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/README.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/README.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/README.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistry.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistry.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistry.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistry.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryAgentPool.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryAgentPool.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryAgentPool.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryAgentPool.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryExportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryExportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryExportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryExportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryImportPipeline.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryImportPipeline.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryImportPipeline.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryImportPipeline.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryReplication.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryReplication.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryReplication.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryReplication.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryScopeMap.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryScopeMap.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryScopeMap.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryScopeMap.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryToken.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryToken.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryToken.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryToken.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryWebhook.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryWebhook.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Remove-AzContainerRegistryWebhook.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Remove-AzContainerRegistryWebhook.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Test-AzContainerRegistryNameAvailability.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Test-AzContainerRegistryNameAvailability.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Test-AzContainerRegistryNameAvailability.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Test-AzContainerRegistryNameAvailability.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Test-AzContainerRegistryWebhook.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Test-AzContainerRegistryWebhook.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Test-AzContainerRegistryWebhook.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Test-AzContainerRegistryWebhook.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistry.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistry.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistry.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistry.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryAgentPool.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryAgentPool.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryAgentPool.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryAgentPool.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryCredential.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryCredential.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryCredential.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryCredential.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryScopeMap.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryScopeMap.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryScopeMap.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryScopeMap.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryToken.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryToken.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryToken.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryToken.md diff --git a/src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryWebhook.md b/src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryWebhook.md similarity index 100% rename from src/ContainerRegistry/ContainerRegistry.Autorest/docs/Update-AzContainerRegistryWebhook.md rename to src/ContainerRegistry/ContainerRegistry.Autorest/help/Update-AzContainerRegistryWebhook.md diff --git a/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocation.md b/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocation.md index a056c908474f..74285aeb4d6c 100644 --- a/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocation.md +++ b/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocation.md @@ -1,6 +1,6 @@ ### Example 1: List the details of the customLocation. ```powershell -PS C:\> Get-AzCustomLocation +Get-AzCustomLocation Location Name Namespace -------- ---- ---- @@ -11,7 +11,7 @@ List the details of the customLocation. ### Example 2: List the details of the customLocation with a specified resource group. ```powershell -PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group +Get-AzCustomLocation -ResourceGroupName azps_test_group Location Name Namespace -------- ---- ---- @@ -22,7 +22,7 @@ List the details of the customLocation with a specified resource group. ### Example 3: Gets the details of the customLocation with a specified resource group and name. ```powershell -PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster +Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster Location Name Namespace -------- ---- ---- @@ -33,7 +33,7 @@ Gets the details of the customLocation with a specified resource group and name. ### Example 4: Gets the details of the customLocation. ```powershell -PS C:\> New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc | Get-AzCustomLocation +New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc | Get-AzCustomLocation Location Name Namespace -------- ---- ---- diff --git a/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocationEnabledResourceType.md b/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocationEnabledResourceType.md index 5f35b375f5da..df195c79f17c 100644 --- a/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocationEnabledResourceType.md +++ b/src/CustomLocation/CustomLocation.Autorest/examples/Get-AzCustomLocationEnabledResourceType.md @@ -1,6 +1,6 @@ ### Example 1: Gets the list of the Enabled Resource Types. ```powershell -PS C:\> Get-AzCustomLocationEnabledResourceType -ResourceGroupName azps_test_group -Name azps_test_cluster + Get-AzCustomLocationEnabledResourceType -ResourceGroupName azps_test_group -Name azps_test_cluster Name Type ---- ---- diff --git a/src/CustomLocation/CustomLocation.Autorest/examples/New-AzCustomLocation.md b/src/CustomLocation/CustomLocation.Autorest/examples/New-AzCustomLocation.md index 29c285a479bb..b34ecfd5f432 100644 --- a/src/CustomLocation/CustomLocation.Autorest/examples/New-AzCustomLocation.md +++ b/src/CustomLocation/CustomLocation.Autorest/examples/New-AzCustomLocation.md @@ -1,6 +1,6 @@ ### Example 1: Creates or updates a Custom Location in the specified Subscription and Resource Group ```powershell -PS C:\> New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc +New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc Location Name Namespace -------- ---- ---- diff --git a/src/CustomLocation/CustomLocation.Autorest/examples/Remove-AzCustomLocation.md b/src/CustomLocation/CustomLocation.Autorest/examples/Remove-AzCustomLocation.md index ae5a5eca3aad..38ad8f5b581e 100644 --- a/src/CustomLocation/CustomLocation.Autorest/examples/Remove-AzCustomLocation.md +++ b/src/CustomLocation/CustomLocation.Autorest/examples/Remove-AzCustomLocation.md @@ -1,6 +1,6 @@ ### Example 1: Deletes the Custom Location. ```powershell -PS C:\> Remove-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster +Remove-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster ``` @@ -8,7 +8,7 @@ Deletes the Custom Location. ### Example 2: Deletes the Custom Location. ```powershell -PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Remove-AzCustomLocation +Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Remove-AzCustomLocation ``` diff --git a/src/CustomLocation/CustomLocation.Autorest/examples/Update-AzCustomLocation.md b/src/CustomLocation/CustomLocation.Autorest/examples/Update-AzCustomLocation.md index 79518710b73b..d6df28897f93 100644 --- a/src/CustomLocation/CustomLocation.Autorest/examples/Update-AzCustomLocation.md +++ b/src/CustomLocation/CustomLocation.Autorest/examples/Update-AzCustomLocation.md @@ -1,6 +1,6 @@ ### Example 1: Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription. ```powershell -PS C:\> Update-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster_1 -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc +Update-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster_1 -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc Location Name Namespace -------- ---- ---- @@ -11,7 +11,7 @@ Updates a Custom Location with the specified Resource Name in the specified Reso ### Example 2: Updates a Custom Location. ```powershell -PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Update-AzCustomLocation +Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Update-AzCustomLocation Location Name Namespace -------- ---- ---- diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProvider.md b/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProvider.md index 30cf6d0b5711..d5efe4be81da 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProvider.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProvider.md @@ -1,6 +1,6 @@ ### Example 1: List all Custom Providers in a subscription ```powershell -PS C:\> Get-AzCustomProvider +Get-AzCustomProvider Location Name Type -------- ---- ---- @@ -12,7 +12,7 @@ Lists all the custom providers in a subscription ### Example 2: Get a single custom provider ```powershell -PS C:\> Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type | Format-List +Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type | Format-List Action : Id : /subscriptions/xxxxx-yyyyy-xxxx-yyyy/resourceGroups/mc-cp01/providers/Microsoft.CustomProviders/resourceproviders/Namespace.Type diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProviderAssociation.md b/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProviderAssociation.md index ef2195718c6a..44da38c4e1cf 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProviderAssociation.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/Get-AzCustomProviderAssociation.md @@ -1,6 +1,6 @@ ### Example 1: List custom provider associations ```powershell -PS C:\> Get-AzCustomProviderAssociation +Get-AzCustomProviderAssociation Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ List all custom provider associations for a given scope. ### Example 2: Get an association ```powershell -PS C:\> Get-AzCustomProviderAssociation -Scope $resourceId -Name MyAssoc +Get-AzCustomProviderAssociation -Scope $resourceId -Name MyAssoc Location Name Type -------- ---- ---- diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProvider.md b/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProvider.md index 5649102b1b22..159efabc4829 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProvider.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProvider.md @@ -1,6 +1,6 @@ ### Example 1: Create a custom provider ```powershell -PS C:\> New-AzCustomProvider -ResourceGroupName myRG -Name Namespace.Type -Location "West US 2" -ResourceType @{Name="CustomRoute1"; Endpoint="https://www.contoso.com/"} +New-AzCustomProvider -ResourceGroupName myRG -Name Namespace.Type -Location "West US 2" -ResourceType @{Name="CustomRoute1"; Endpoint="https://www.contoso.com/"} Location Name Type @@ -12,7 +12,7 @@ Create a custom resource provider ### Example 2: Create a custom provider with associations ```powershell -PS C:\> New-AzCustomProvider -ResourceGroupName myRG -Name Namespace2.Type -Location "West US 2" -ResourceType @{Name="CustomRoute1"; Endpoint="https://www.contoso.com/"}, @{Name="Associations"; Endpoint="https://contoso.com/myService", RoutingType="Proxy,Cache,Extension"} +New-AzCustomProvider -ResourceGroupName myRG -Name Namespace2.Type -Location "West US 2" -ResourceType @{Name="CustomRoute1"; Endpoint="https://www.contoso.com/"}, @{Name="Associations"; Endpoint="https://contoso.com/myService", RoutingType="Proxy,Cache,Extension"} Location Name Type -------- ---- ---- diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProviderAssociation.md b/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProviderAssociation.md index a3a0eebac888..ee3c1964d0e6 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProviderAssociation.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/New-AzCustomProviderAssociation.md @@ -1,7 +1,7 @@ ### Example 1: Create a custom provider association ```powershell -PS C:\> $provider = Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type -PS C:\> New-AzCustomProviderAssociation -Scope $resourceId -Name MyAssoc -TargetResourceId $provider.Id +$provider = Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type +New-AzCustomProviderAssociation -Scope $resourceId -Name MyAssoc -TargetResourceId $provider.Id Location Name Type -------- ---- ---- diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProvider.md b/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProvider.md index e80cabf22050..fbf1b99a66d4 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProvider.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProvider.md @@ -1,13 +1,13 @@ ### Example 1: Remove a custom provider. ```powershell -PS C:\> PS C:\> Remove-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type +Remove-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type ``` Remove a custom provider ### Example 2: Remove a custom provider with PassThru ```powershell -PS C:\> PS C:\> Remove-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type -PassThru +Remove-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type -PassThru True ``` diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProviderAssociation.md b/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProviderAssociation.md index 5d9c8e1e0b0a..789776eaec64 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProviderAssociation.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/Remove-AzCustomProviderAssociation.md @@ -1,13 +1,13 @@ ### Example 1: Remove a custom provider association. ```powershell -PS C:\> PS C:\> Remove-AzCustomProviderAssociation -Scope $id -Name Namespace.Type +Remove-AzCustomProviderAssociation -Scope $id -Name Namespace.Type ``` Remove a custom provider association. ### Example 2: Remove a custom provider association with Piping ```powershell -PS C:\> PS C:\> Get-AzCustomProviderAssociation | Remove-AzCustomProviderAssociation -PassThru +Get-AzCustomProviderAssociation | Remove-AzCustomProviderAssociation -PassThru True ``` diff --git a/src/CustomProviders/CustomProviders.Autorest/examples/Update-AzCustomProvider.md b/src/CustomProviders/CustomProviders.Autorest/examples/Update-AzCustomProvider.md index f9d841d341b2..c15dcd2fa712 100644 --- a/src/CustomProviders/CustomProviders.Autorest/examples/Update-AzCustomProvider.md +++ b/src/CustomProviders/CustomProviders.Autorest/examples/Update-AzCustomProvider.md @@ -1,6 +1,6 @@ ### Example 1: Add Tags to a custom Provider ```powershell -PS C:\> Update-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type -Tag @{MyTag="MyValue"} | Format-List +Update-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type -Tag @{MyTag="MyValue"} | Format-List Action : Id : /subscriptions/xxxxx-yyyyy-xxxx-yyyy/resourceGroups/mc-cp01/providers/Microsoft.CustomProviders/resourceproviders/Namespace.Type @@ -17,7 +17,7 @@ Update the tags of a custom provider. ### Example 2: Update custom provider with piping ```powershell -PS C:\> PS C:\> Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type | Update-AzCustomProvider -Tag @{MyTag="MyValue"} +Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type | Update-AzCustomProvider -Tag @{MyTag="MyValue"} Location Name Type -------- ---- ---- diff --git a/src/DataFactory/DataFactories.Test/DataFactories.Test.csproj b/src/DataFactory/DataFactories.Test/DataFactories.Test.csproj deleted file mode 100644 index e37864f865bf..000000000000 --- a/src/DataFactory/DataFactories.Test/DataFactories.Test.csproj +++ /dev/null @@ -1,22 +0,0 @@ - - - - DataFactories - - - - - - $(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix) - - - - - - - - - - - - \ No newline at end of file diff --git a/src/DataFactory/DataFactories/DataFactories.csproj b/src/DataFactory/DataFactories/DataFactories.csproj deleted file mode 100644 index 7bc0ed99614c..000000000000 --- a/src/DataFactory/DataFactories/DataFactories.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - DataFactory - - - - - - $(AzAssemblyPrefix)DataFactories - $(LegacyAssemblyPrefix)DataFactories - - - - - - - - - - - - - - - diff --git a/src/DataFactory/DataFactory.sln b/src/DataFactory/DataFactory.sln index e6d9339992c9..b95e87b1d1eb 100644 --- a/src/DataFactory/DataFactory.sln +++ b/src/DataFactory/DataFactory.sln @@ -17,17 +17,19 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadC EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{AB4B3697-55AC-411C-8EFA-A41229BD600F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactory", "DataFactory\DataFactory.csproj", "{AEEC66C5-9F79-4D6E-AB0F-DDE81DCC2B86}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{6C954E12-1CCA-4448-BBEC-C9781C0766CA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactories.Test", "DataFactories.Test\DataFactories.Test.csproj", "{E605E459-E307-43BC-8787-36B90E037CD4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV1.Test", "DataFactoryV1.Test\DataFactoryV1.Test.csproj", "{747E1386-AB01-4D81-B2A6-7FB5DA837EFC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactories", "DataFactories\DataFactories.csproj", "{75A68A74-E394-4931-9953-65F4F178EB92}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV1", "DataFactoryV1\DataFactoryV1.csproj", "{483CA50D-8B49-44D9-9FF4-BEFD7F867AA2}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactory.Management.Sdk", "DataFactory.Management.Sdk\DataFactory.Management.Sdk.csproj", "{451FBF9A-2667-453B-AD7D-63001D0C7509}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV2.Test", "DataFactoryV2.Test\DataFactoryV2.Test.csproj", "{FB7A88FF-93A8-423B-85A1-7901F6162BCC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV2.Test", "DataFactoryV2.Test\DataFactoryV2.Test.csproj", "{43318957-1D72-43B6-95B2-422B0EAEC537}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV2", "DataFactoryV2\DataFactoryV2.csproj", "{F12394B9-2BEB-45F1-8DE2-8BE4690CEFF2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataFactoryV2", "DataFactoryV2\DataFactoryV2.csproj", "{A7181E1C-66E2-461A-8DC2-F04E78131287}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{606D032A-FA9D-4AD1-9926-AF86BE5FB044}" EndProject @@ -64,30 +66,34 @@ Global {AB4B3697-55AC-411C-8EFA-A41229BD600F}.Debug|Any CPU.Build.0 = Debug|Any CPU {AB4B3697-55AC-411C-8EFA-A41229BD600F}.Release|Any CPU.ActiveCfg = Release|Any CPU {AB4B3697-55AC-411C-8EFA-A41229BD600F}.Release|Any CPU.Build.0 = Release|Any CPU - {E605E459-E307-43BC-8787-36B90E037CD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E605E459-E307-43BC-8787-36B90E037CD4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E605E459-E307-43BC-8787-36B90E037CD4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E605E459-E307-43BC-8787-36B90E037CD4}.Release|Any CPU.Build.0 = Release|Any CPU - {75A68A74-E394-4931-9953-65F4F178EB92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {75A68A74-E394-4931-9953-65F4F178EB92}.Debug|Any CPU.Build.0 = Debug|Any CPU - {75A68A74-E394-4931-9953-65F4F178EB92}.Release|Any CPU.ActiveCfg = Release|Any CPU - {75A68A74-E394-4931-9953-65F4F178EB92}.Release|Any CPU.Build.0 = Release|Any CPU {451FBF9A-2667-453B-AD7D-63001D0C7509}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {451FBF9A-2667-453B-AD7D-63001D0C7509}.Debug|Any CPU.Build.0 = Debug|Any CPU {451FBF9A-2667-453B-AD7D-63001D0C7509}.Release|Any CPU.ActiveCfg = Release|Any CPU {451FBF9A-2667-453B-AD7D-63001D0C7509}.Release|Any CPU.Build.0 = Release|Any CPU - {FB7A88FF-93A8-423B-85A1-7901F6162BCC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FB7A88FF-93A8-423B-85A1-7901F6162BCC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FB7A88FF-93A8-423B-85A1-7901F6162BCC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FB7A88FF-93A8-423B-85A1-7901F6162BCC}.Release|Any CPU.Build.0 = Release|Any CPU - {F12394B9-2BEB-45F1-8DE2-8BE4690CEFF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F12394B9-2BEB-45F1-8DE2-8BE4690CEFF2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F12394B9-2BEB-45F1-8DE2-8BE4690CEFF2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F12394B9-2BEB-45F1-8DE2-8BE4690CEFF2}.Release|Any CPU.Build.0 = Release|Any CPU {606D032A-FA9D-4AD1-9926-AF86BE5FB044}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {606D032A-FA9D-4AD1-9926-AF86BE5FB044}.Debug|Any CPU.Build.0 = Debug|Any CPU {606D032A-FA9D-4AD1-9926-AF86BE5FB044}.Release|Any CPU.ActiveCfg = Release|Any CPU {606D032A-FA9D-4AD1-9926-AF86BE5FB044}.Release|Any CPU.Build.0 = Release|Any CPU + {AEEC66C5-9F79-4D6E-AB0F-DDE81DCC2B86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AEEC66C5-9F79-4D6E-AB0F-DDE81DCC2B86}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AEEC66C5-9F79-4D6E-AB0F-DDE81DCC2B86}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AEEC66C5-9F79-4D6E-AB0F-DDE81DCC2B86}.Release|Any CPU.Build.0 = Release|Any CPU + {43318957-1D72-43B6-95B2-422B0EAEC537}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {43318957-1D72-43B6-95B2-422B0EAEC537}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43318957-1D72-43B6-95B2-422B0EAEC537}.Release|Any CPU.ActiveCfg = Release|Any CPU + {43318957-1D72-43B6-95B2-422B0EAEC537}.Release|Any CPU.Build.0 = Release|Any CPU + {A7181E1C-66E2-461A-8DC2-F04E78131287}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A7181E1C-66E2-461A-8DC2-F04E78131287}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A7181E1C-66E2-461A-8DC2-F04E78131287}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A7181E1C-66E2-461A-8DC2-F04E78131287}.Release|Any CPU.Build.0 = Release|Any CPU + {747E1386-AB01-4D81-B2A6-7FB5DA837EFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {747E1386-AB01-4D81-B2A6-7FB5DA837EFC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {747E1386-AB01-4D81-B2A6-7FB5DA837EFC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {747E1386-AB01-4D81-B2A6-7FB5DA837EFC}.Release|Any CPU.Build.0 = Release|Any CPU + {483CA50D-8B49-44D9-9FF4-BEFD7F867AA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {483CA50D-8B49-44D9-9FF4-BEFD7F867AA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {483CA50D-8B49-44D9-9FF4-BEFD7F867AA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {483CA50D-8B49-44D9-9FF4-BEFD7F867AA2}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {E87810E9-281C-4257-8FA4-8D9ADA88F3B8} = {0F44400B-640A-4139-8742-DA34FF27FB3B} @@ -96,8 +102,8 @@ Global {70271003-5CE9-4BB3-BEA6-FE69E3AAB64C} = {0F44400B-640A-4139-8742-DA34FF27FB3B} {D5C88C51-A12E-456A-966A-4E6458837A16} = {0F44400B-640A-4139-8742-DA34FF27FB3B} {AB4B3697-55AC-411C-8EFA-A41229BD600F} = {0F44400B-640A-4139-8742-DA34FF27FB3B} - {E605E459-E307-43BC-8787-36B90E037CD4} = {6C954E12-1CCA-4448-BBEC-C9781C0766CA} - {FB7A88FF-93A8-423B-85A1-7901F6162BCC} = {6C954E12-1CCA-4448-BBEC-C9781C0766CA} {606D032A-FA9D-4AD1-9926-AF86BE5FB044} = {6C954E12-1CCA-4448-BBEC-C9781C0766CA} + {43318957-1D72-43B6-95B2-422B0EAEC537} = {6C954E12-1CCA-4448-BBEC-C9781C0766CA} + {747E1386-AB01-4D81-B2A6-7FB5DA837EFC} = {6C954E12-1CCA-4448-BBEC-C9781C0766CA} EndGlobalSection EndGlobal diff --git a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 b/src/DataFactory/DataFactory/Az.DataFactory.psd1 similarity index 98% rename from src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 rename to src/DataFactory/DataFactory/Az.DataFactory.psd1 index 11310c118a00..740937cb75ef 100644 --- a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 +++ b/src/DataFactory/DataFactory/Az.DataFactory.psd1 @@ -69,11 +69,11 @@ ScriptsToProcess = @() TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'DataFactories.format.ps1xml', 'DataFactoryV2.format.ps1xml' +FormatsToProcess = 'DataFactoryV1.format.ps1xml', 'DataFactoryV2.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.DataFactories.dll', - 'Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll') +NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV1.dll', + 'Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll') # Functions 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 functions to export. FunctionsToExport = @() diff --git a/src/DataFactory/DataFactoryV2/ChangeLog.md b/src/DataFactory/DataFactory/ChangeLog.md similarity index 100% rename from src/DataFactory/DataFactoryV2/ChangeLog.md rename to src/DataFactory/DataFactory/ChangeLog.md diff --git a/src/DataFactory/DataFactory/DataFactory.csproj b/src/DataFactory/DataFactory/DataFactory.csproj new file mode 100644 index 000000000000..0d953ab6a644 --- /dev/null +++ b/src/DataFactory/DataFactory/DataFactory.csproj @@ -0,0 +1,28 @@ + + + + + + + DataFactory + + + + netstandard2.0 + $(AzAssemblyPrefix)$(PsModuleName) + $(AzAssemblyPrefix)$(PsModuleName) + true + false + $(RepoArtifacts)$(Configuration)\Az.$(PsModuleName)\ + $(OutputPath) + + + + + + + + + + + diff --git a/src/DataFactory/DataFactory/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactory/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..610933e78f5e --- /dev/null +++ b/src/DataFactory/DataFactory/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - DataFactory Manager")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] +[assembly: Guid("5d024af0-81c9-44f0-b3b0-7080f103fb4d")] +[assembly: AssemblyVersion("1.18.0")] +[assembly: AssemblyFileVersion("1.18.0")] diff --git a/src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json b/src/DataFactory/DataFactory/UX/Microsoft.Datafactory/factories.json similarity index 100% rename from src/DataFactory/DataFactories/UX/Microsoft.Datafactory/factories.json rename to src/DataFactory/DataFactory/UX/Microsoft.Datafactory/factories.json diff --git a/src/DataFactory/DataFactoryV2/help/Add-AzDataFactoryV2DataFlowDebugSessionPackage.md b/src/DataFactory/DataFactory/help/Add-AzDataFactoryV2DataFlowDebugSessionPackage.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Add-AzDataFactoryV2DataFlowDebugSessionPackage.md rename to src/DataFactory/DataFactory/help/Add-AzDataFactoryV2DataFlowDebugSessionPackage.md diff --git a/src/DataFactory/DataFactoryV2/help/Add-AzDataFactoryV2TriggerSubscription.md b/src/DataFactory/DataFactory/help/Add-AzDataFactoryV2TriggerSubscription.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Add-AzDataFactoryV2TriggerSubscription.md rename to src/DataFactory/DataFactory/help/Add-AzDataFactoryV2TriggerSubscription.md diff --git a/src/DataFactory/DataFactoryV2/help/Az.DataFactory.md b/src/DataFactory/DataFactory/help/Az.DataFactory.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Az.DataFactory.md rename to src/DataFactory/DataFactory/help/Az.DataFactory.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactory.md b/src/DataFactory/DataFactory/help/Get-AzDataFactory.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactory.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactory.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryActivityWindow.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryActivityWindow.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryActivityWindow.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryActivityWindow.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryDataset.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryDataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryDataset.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryDataset.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryGateway.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryGateway.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryGateway.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryGateway.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryGatewayAuthKey.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryGatewayAuthKey.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryGatewayAuthKey.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryGatewayAuthKey.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryHub.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryHub.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryHub.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryHub.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryLinkedService.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryLinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryLinkedService.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryLinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryPipeline.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryPipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryPipeline.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryPipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryRun.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryRun.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactorySlice.md b/src/DataFactory/DataFactory/help/Get-AzDataFactorySlice.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactorySlice.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactorySlice.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2ActivityRun.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2ActivityRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2ActivityRun.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2ActivityRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2DataFlow.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2DataFlow.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2DataFlow.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2DataFlow.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2DataFlowDebugSession.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2DataFlowDebugSession.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2DataFlowDebugSession.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2DataFlowDebugSession.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Dataset.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Dataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Dataset.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Dataset.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeKey.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeKey.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeKey.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeKey.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeMetric.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeMetric.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeMetric.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeMetric.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeNode.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeNode.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeNode.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeNode.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeOutboundNetworkDependenciesEndpoint.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeOutboundNetworkDependenciesEndpoint.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2IntegrationRuntimeOutboundNetworkDependenciesEndpoint.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2IntegrationRuntimeOutboundNetworkDependenciesEndpoint.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2LinkedService.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2LinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2LinkedService.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2LinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Pipeline.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Pipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Pipeline.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Pipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2PipelineRun.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2PipelineRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2PipelineRun.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2PipelineRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Trigger.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Trigger.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2Trigger.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2Trigger.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2TriggerRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2TriggerRun.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2TriggerRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2TriggerSubscriptionStatus.md b/src/DataFactory/DataFactory/help/Get-AzDataFactoryV2TriggerSubscriptionStatus.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Get-AzDataFactoryV2TriggerSubscriptionStatus.md rename to src/DataFactory/DataFactory/help/Get-AzDataFactoryV2TriggerSubscriptionStatus.md diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2DataFlowDebugSessionCommand.md b/src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2DataFlowDebugSessionCommand.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2DataFlowDebugSessionCommand.md rename to src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2DataFlowDebugSessionCommand.md diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2IntegrationRuntimeUpgrade.md b/src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2IntegrationRuntimeUpgrade.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2IntegrationRuntimeUpgrade.md rename to src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2IntegrationRuntimeUpgrade.md diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2Pipeline.md b/src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2Pipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2Pipeline.md rename to src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2Pipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2TriggerRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md rename to src/DataFactory/DataFactory/help/Invoke-AzDataFactoryV2TriggerRun.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactory.md b/src/DataFactory/DataFactory/help/New-AzDataFactory.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactory.md rename to src/DataFactory/DataFactory/help/New-AzDataFactory.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryDataset.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryDataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryDataset.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryDataset.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryEncryptValue.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryEncryptValue.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryEncryptValue.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryEncryptValue.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryGateway.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryGateway.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryGateway.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryGateway.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryGatewayAuthKey.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryGatewayAuthKey.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryGatewayAuthKey.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryGatewayAuthKey.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryHub.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryHub.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryHub.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryHub.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryLinkedService.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryLinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryLinkedService.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryLinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryPipeline.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryPipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryPipeline.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryPipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryV2IntegrationRuntimeKey.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryV2IntegrationRuntimeKey.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryV2IntegrationRuntimeKey.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryV2IntegrationRuntimeKey.md diff --git a/src/DataFactory/DataFactoryV2/help/New-AzDataFactoryV2LinkedServiceEncryptedCredential.md b/src/DataFactory/DataFactory/help/New-AzDataFactoryV2LinkedServiceEncryptedCredential.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/New-AzDataFactoryV2LinkedServiceEncryptedCredential.md rename to src/DataFactory/DataFactory/help/New-AzDataFactoryV2LinkedServiceEncryptedCredential.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactory.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactory.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactory.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactory.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryDataset.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryDataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryDataset.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryDataset.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryGateway.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryGateway.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryGateway.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryGateway.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryHub.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryHub.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryHub.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryHub.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryLinkedService.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryLinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryLinkedService.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryLinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryPipeline.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryPipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryPipeline.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryPipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2DataFlow.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2DataFlow.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2DataFlow.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2DataFlow.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Dataset.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Dataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Dataset.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Dataset.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2IntegrationRuntimeNode.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2IntegrationRuntimeNode.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2IntegrationRuntimeNode.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2IntegrationRuntimeNode.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2LinkedService.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2LinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2LinkedService.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2LinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Pipeline.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Pipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Pipeline.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Pipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Trigger.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Trigger.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Trigger.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2Trigger.md diff --git a/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2TriggerSubscription.md b/src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2TriggerSubscription.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2TriggerSubscription.md rename to src/DataFactory/DataFactory/help/Remove-AzDataFactoryV2TriggerSubscription.md diff --git a/src/DataFactory/DataFactoryV2/help/Resume-AzDataFactoryPipeline.md b/src/DataFactory/DataFactory/help/Resume-AzDataFactoryPipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Resume-AzDataFactoryPipeline.md rename to src/DataFactory/DataFactory/help/Resume-AzDataFactoryPipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Save-AzDataFactoryLog.md b/src/DataFactory/DataFactory/help/Save-AzDataFactoryLog.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Save-AzDataFactoryLog.md rename to src/DataFactory/DataFactory/help/Save-AzDataFactoryLog.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryGateway.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryGateway.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryGateway.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryGateway.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryPipelineActivePeriod.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryPipelineActivePeriod.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryPipelineActivePeriod.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryPipelineActivePeriod.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactorySliceStatus.md b/src/DataFactory/DataFactory/help/Set-AzDataFactorySliceStatus.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactorySliceStatus.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactorySliceStatus.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2DataFlow.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2DataFlow.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2DataFlow.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2DataFlow.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Dataset.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Dataset.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Dataset.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Dataset.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2LinkedService.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2LinkedService.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2LinkedService.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2LinkedService.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Pipeline.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Pipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Pipeline.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Pipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Trigger.md b/src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Trigger.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Set-AzDataFactoryV2Trigger.md rename to src/DataFactory/DataFactory/help/Set-AzDataFactoryV2Trigger.md diff --git a/src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2DataFlowDebugSession.md b/src/DataFactory/DataFactory/help/Start-AzDataFactoryV2DataFlowDebugSession.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2DataFlowDebugSession.md rename to src/DataFactory/DataFactory/help/Start-AzDataFactoryV2DataFlowDebugSession.md diff --git a/src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Start-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Start-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2Trigger.md b/src/DataFactory/DataFactory/help/Start-AzDataFactoryV2Trigger.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Start-AzDataFactoryV2Trigger.md rename to src/DataFactory/DataFactory/help/Start-AzDataFactoryV2Trigger.md diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2DataFlowDebugSession.md b/src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2DataFlowDebugSession.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2DataFlowDebugSession.md rename to src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2DataFlowDebugSession.md diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2PipelineRun.md b/src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2PipelineRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2PipelineRun.md rename to src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2PipelineRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2Trigger.md b/src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2Trigger.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2Trigger.md rename to src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2Trigger.md diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2TriggerRun.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md rename to src/DataFactory/DataFactory/help/Stop-AzDataFactoryV2TriggerRun.md diff --git a/src/DataFactory/DataFactoryV2/help/Suspend-AzDataFactoryPipeline.md b/src/DataFactory/DataFactory/help/Suspend-AzDataFactoryPipeline.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Suspend-AzDataFactoryPipeline.md rename to src/DataFactory/DataFactory/help/Suspend-AzDataFactoryPipeline.md diff --git a/src/DataFactory/DataFactoryV2/help/Sync-AzDataFactoryV2IntegrationRuntimeCredential.md b/src/DataFactory/DataFactory/help/Sync-AzDataFactoryV2IntegrationRuntimeCredential.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Sync-AzDataFactoryV2IntegrationRuntimeCredential.md rename to src/DataFactory/DataFactory/help/Sync-AzDataFactoryV2IntegrationRuntimeCredential.md diff --git a/src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2.md b/src/DataFactory/DataFactory/help/Update-AzDataFactoryV2.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2.md rename to src/DataFactory/DataFactory/help/Update-AzDataFactoryV2.md diff --git a/src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2IntegrationRuntime.md b/src/DataFactory/DataFactory/help/Update-AzDataFactoryV2IntegrationRuntime.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2IntegrationRuntime.md rename to src/DataFactory/DataFactory/help/Update-AzDataFactoryV2IntegrationRuntime.md diff --git a/src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2IntegrationRuntimeNode.md b/src/DataFactory/DataFactory/help/Update-AzDataFactoryV2IntegrationRuntimeNode.md similarity index 100% rename from src/DataFactory/DataFactoryV2/help/Update-AzDataFactoryV2IntegrationRuntimeNode.md rename to src/DataFactory/DataFactory/help/Update-AzDataFactoryV2IntegrationRuntimeNode.md diff --git a/src/DataFactory/DataFactoryV1.Test/DataFactoryV1.Test.csproj b/src/DataFactory/DataFactoryV1.Test/DataFactoryV1.Test.csproj new file mode 100644 index 000000000000..4da721d73328 --- /dev/null +++ b/src/DataFactory/DataFactoryV1.Test/DataFactoryV1.Test.csproj @@ -0,0 +1,22 @@ + + + + DataFactories + + + + + + $(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix) + + + + + + + + + + + + \ No newline at end of file diff --git a/src/DataFactory/DataFactories.Test/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactoryV1.Test/Properties/AssemblyInfo.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/Properties/AssemblyInfo.cs rename to src/DataFactory/DataFactoryV1.Test/Properties/AssemblyInfo.cs diff --git a/src/DataFactory/DataFactories.Test/Resources/dataset.json b/src/DataFactory/DataFactoryV1.Test/Resources/dataset.json similarity index 100% rename from src/DataFactory/DataFactories.Test/Resources/dataset.json rename to src/DataFactory/DataFactoryV1.Test/Resources/dataset.json diff --git a/src/DataFactory/DataFactories.Test/Resources/hub.json b/src/DataFactory/DataFactoryV1.Test/Resources/hub.json similarity index 100% rename from src/DataFactory/DataFactories.Test/Resources/hub.json rename to src/DataFactory/DataFactoryV1.Test/Resources/hub.json diff --git a/src/DataFactory/DataFactories.Test/Resources/linkedService.json b/src/DataFactory/DataFactoryV1.Test/Resources/linkedService.json similarity index 100% rename from src/DataFactory/DataFactories.Test/Resources/linkedService.json rename to src/DataFactory/DataFactoryV1.Test/Resources/linkedService.json diff --git a/src/DataFactory/DataFactories.Test/Resources/pipeline.json b/src/DataFactory/DataFactoryV1.Test/Resources/pipeline.json similarity index 100% rename from src/DataFactory/DataFactories.Test/Resources/pipeline.json rename to src/DataFactory/DataFactoryV1.Test/Resources/pipeline.json diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/Common.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/Common.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/Common.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/Common.ps1 diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoriesTestRunner.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoriesTestRunner.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoriesTestRunner.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoriesTestRunner.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryGatewayTests.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryGatewayTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryGatewayTests.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryGatewayTests.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryGatewayTests.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryGatewayTests.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryGatewayTests.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryGatewayTests.ps1 diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryTests.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryTests.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryTests.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryTests.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryTests.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/DataFactoryTests.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/DataFactoryTests.ps1 diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/HubTests.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/HubTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/HubTests.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/HubTests.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/HubTests.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/HubTests.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/HubTests.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/HubTests.ps1 diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/LinkedServiceTests.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/LinkedServiceTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/LinkedServiceTests.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/LinkedServiceTests.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/LinkedServiceTests.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/LinkedServiceTests.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/LinkedServiceTests.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/LinkedServiceTests.ps1 diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/TableTests.cs b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/TableTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/TableTests.cs rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/TableTests.cs diff --git a/src/DataFactory/DataFactories.Test/ScenarioTests/TableTests.ps1 b/src/DataFactory/DataFactoryV1.Test/ScenarioTests/TableTests.ps1 similarity index 100% rename from src/DataFactory/DataFactories.Test/ScenarioTests/TableTests.ps1 rename to src/DataFactory/DataFactoryV1.Test/ScenarioTests/TableTests.ps1 diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGateway.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGateway.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGateway.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGateway.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGatewayWithDataFactoryParameter.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGatewayWithDataFactoryParameter.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGatewayWithDataFactoryParameter.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestCreateDataFactoryGatewayWithDataFactoryParameter.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestDataFactoryGatewayAuthKey.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestDataFactoryGatewayAuthKey.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestDataFactoryGatewayAuthKey.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestDataFactoryGatewayAuthKey.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestGetNonExistingDataFactoryGateway.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestGetNonExistingDataFactoryGateway.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestGetNonExistingDataFactoryGateway.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryGatewayTests/TestGetNonExistingDataFactoryGateway.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestCreateDataFactory.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestCreateDataFactory.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestCreateDataFactory.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestCreateDataFactory.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDataFactoryPiping.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDataFactoryPiping.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDataFactoryPiping.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDataFactoryPiping.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDeleteDataFactoryWithDataFactoryParameter.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDeleteDataFactoryWithDataFactoryParameter.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDeleteDataFactoryWithDataFactoryParameter.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestDeleteDataFactoryWithDataFactoryParameter.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestGetNonExistingDataFactory.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestGetNonExistingDataFactory.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestGetNonExistingDataFactory.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.DataFactoryTests/TestGetNonExistingDataFactory.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHub.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHub.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHub.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHub.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubPiping.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubPiping.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubPiping.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubPiping.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubWithDataFactoryParameter.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubWithDataFactoryParameter.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubWithDataFactoryParameter.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.HubTests/TestHubWithDataFactoryParameter.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedService.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedService.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedService.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedService.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServicePiping.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServicePiping.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServicePiping.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServicePiping.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServiceWithDataFactoryParameter.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServiceWithDataFactoryParameter.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServiceWithDataFactoryParameter.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.LinkedServiceTests/TestLinkedServiceWithDataFactoryParameter.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTable.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTable.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTable.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTable.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTablePiping.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTablePiping.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTablePiping.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTablePiping.json diff --git a/src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTableWithDataFactoryParameter.json b/src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTableWithDataFactoryParameter.json similarity index 100% rename from src/DataFactory/DataFactories.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTableWithDataFactoryParameter.json rename to src/DataFactory/DataFactoryV1.Test/SessionRecords/Microsoft.Azure.Commands.DataFactories.Test.TableTests/TestTableWithDataFactoryParameter.json diff --git a/src/DataFactory/DataFactories.Test/UnitTests/DataFactoryUnitTestBase.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/DataFactoryUnitTestBase.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/DataFactoryUnitTestBase.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/DataFactoryUnitTestBase.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetActivityWindowTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetActivityWindowTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetActivityWindowTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetActivityWindowTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetDataFactoryGatewayTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetDataFactoryGatewayTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetDataFactoryGatewayTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetDataFactoryGatewayTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetDataFactoryTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetDataFactoryTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetDataFactoryTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetDataFactoryTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetDatasetTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetDatasetTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetDatasetTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetDatasetTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetHubTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetHubTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetHubTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetHubTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetLinkedServiceTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetLinkedServiceTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetLinkedServiceTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetLinkedServiceTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/GetPipelineTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/GetPipelineTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/GetPipelineTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/GetPipelineTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryEncryptValueTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryEncryptValueTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryEncryptValueTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryEncryptValueTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryGatewayTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryGatewayTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryGatewayTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryGatewayTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewDataFactoryTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewDataFactoryTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewDatasetTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewDatasetTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewDatasetTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewDatasetTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewLinkedServiceTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewLinkedServiceTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewLinkedServiceTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewLinkedServiceTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/NewPipelineTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/NewPipelineTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/NewPipelineTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/NewPipelineTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemoveAzureDataFactoryGatewayTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveAzureDataFactoryGatewayTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemoveAzureDataFactoryGatewayTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveAzureDataFactoryGatewayTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemoveDataFactoryTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveDataFactoryTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemoveDataFactoryTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveDataFactoryTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemoveDatasetTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveDatasetTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemoveDatasetTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveDatasetTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemoveHubTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveHubTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemoveHubTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveHubTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemoveLinkedServiceTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveLinkedServiceTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemoveLinkedServiceTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemoveLinkedServiceTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/RemovePipelineTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/RemovePipelineTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/RemovePipelineTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/RemovePipelineTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/SaveAzureDataFactoryTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/SaveAzureDataFactoryTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/SaveAzureDataFactoryTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/SaveAzureDataFactoryTests.cs diff --git a/src/DataFactory/DataFactories.Test/UnitTests/SetDataFactoryGatewayTests.cs b/src/DataFactory/DataFactoryV1.Test/UnitTests/SetDataFactoryGatewayTests.cs similarity index 100% rename from src/DataFactory/DataFactories.Test/UnitTests/SetDataFactoryGatewayTests.cs rename to src/DataFactory/DataFactoryV1.Test/UnitTests/SetDataFactoryGatewayTests.cs diff --git a/src/DataFactory/DataFactories/ActivityWindows/GetAzureDataFactoryActivityWindowsCommand.cs b/src/DataFactory/DataFactoryV1/ActivityWindows/GetAzureDataFactoryActivityWindowsCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/ActivityWindows/GetAzureDataFactoryActivityWindowsCommand.cs rename to src/DataFactory/DataFactoryV1/ActivityWindows/GetAzureDataFactoryActivityWindowsCommand.cs diff --git a/src/DataFactory/DataFactories/Constants.cs b/src/DataFactory/DataFactoryV1/Constants.cs similarity index 100% rename from src/DataFactory/DataFactories/Constants.cs rename to src/DataFactory/DataFactoryV1/Constants.cs diff --git a/src/DataFactory/DataFactories/DataFactories/GetAzureDataFactoryCommand.cs b/src/DataFactory/DataFactoryV1/DataFactories/GetAzureDataFactoryCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataFactories/GetAzureDataFactoryCommand.cs rename to src/DataFactory/DataFactoryV1/DataFactories/GetAzureDataFactoryCommand.cs diff --git a/src/DataFactory/DataFactories/DataFactories/NewAzureDataFactoryCommand.cs b/src/DataFactory/DataFactoryV1/DataFactories/NewAzureDataFactoryCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataFactories/NewAzureDataFactoryCommand.cs rename to src/DataFactory/DataFactoryV1/DataFactories/NewAzureDataFactoryCommand.cs diff --git a/src/DataFactory/DataFactories/DataFactories/RemoveAzureDataFactoryCommand.cs b/src/DataFactory/DataFactoryV1/DataFactories/RemoveAzureDataFactoryCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataFactories/RemoveAzureDataFactoryCommand.cs rename to src/DataFactory/DataFactoryV1/DataFactories/RemoveAzureDataFactoryCommand.cs diff --git a/src/DataFactory/DataFactories/DataFactoryBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/DataFactoryBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/DataFactoryBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/DataFactoryBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/DataFactoryCommonUtilities.cs b/src/DataFactory/DataFactoryV1/DataFactoryCommonUtilities.cs similarity index 100% rename from src/DataFactory/DataFactories/DataFactoryCommonUtilities.cs rename to src/DataFactory/DataFactoryV1/DataFactoryCommonUtilities.cs diff --git a/src/DataFactory/DataFactoryV1/DataFactoryV1.csproj b/src/DataFactory/DataFactoryV1/DataFactoryV1.csproj new file mode 100644 index 000000000000..69e4118eea37 --- /dev/null +++ b/src/DataFactory/DataFactoryV1/DataFactoryV1.csproj @@ -0,0 +1,26 @@ + + + + DataFactory + + + + + + $(AzAssemblyPrefix)DataFactoryV1 + $(LegacyAssemblyPrefix)DataFactories + + + + + + + + + + + + + + + diff --git a/src/DataFactory/DataFactories/DataFactories.format.ps1xml b/src/DataFactory/DataFactoryV1/DataFactoryV1.format.ps1xml similarity index 100% rename from src/DataFactory/DataFactories/DataFactories.format.ps1xml rename to src/DataFactory/DataFactoryV1/DataFactoryV1.format.ps1xml diff --git a/src/DataFactory/DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/DataSlices/DataSliceContextBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/DataSlices/DataSliceContextBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/DataSlices/DataSliceContextBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs b/src/DataFactory/DataFactoryV1/DataSlices/GetAzureDataFactoryRunCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataSlices/GetAzureDataFactoryRunCommand.cs rename to src/DataFactory/DataFactoryV1/DataSlices/GetAzureDataFactoryRunCommand.cs diff --git a/src/DataFactory/DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs b/src/DataFactory/DataFactoryV1/DataSlices/GetAzureDataFactorySliceCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataSlices/GetAzureDataFactorySliceCommand.cs rename to src/DataFactory/DataFactoryV1/DataSlices/GetAzureDataFactorySliceCommand.cs diff --git a/src/DataFactory/DataFactories/DataSlices/SaveAzureDataFactoryLog.cs b/src/DataFactory/DataFactoryV1/DataSlices/SaveAzureDataFactoryLog.cs similarity index 100% rename from src/DataFactory/DataFactories/DataSlices/SaveAzureDataFactoryLog.cs rename to src/DataFactory/DataFactoryV1/DataSlices/SaveAzureDataFactoryLog.cs diff --git a/src/DataFactory/DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs b/src/DataFactory/DataFactoryV1/DataSlices/SetAzureDataFactorySliceStatusCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/DataSlices/SetAzureDataFactorySliceStatusCommand.cs rename to src/DataFactory/DataFactoryV1/DataSlices/SetAzureDataFactorySliceStatusCommand.cs diff --git a/src/DataFactory/DataFactories/Datasets/DatasetContextBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/Datasets/DatasetContextBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/Datasets/DatasetContextBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/Datasets/DatasetContextBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/Datasets/GetAzureDataFactoryDatasetCommand.cs b/src/DataFactory/DataFactoryV1/Datasets/GetAzureDataFactoryDatasetCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Datasets/GetAzureDataFactoryDatasetCommand.cs rename to src/DataFactory/DataFactoryV1/Datasets/GetAzureDataFactoryDatasetCommand.cs diff --git a/src/DataFactory/DataFactories/Datasets/NewAzureDataFactoryDatasetCommand.cs b/src/DataFactory/DataFactoryV1/Datasets/NewAzureDataFactoryDatasetCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Datasets/NewAzureDataFactoryDatasetCommand.cs rename to src/DataFactory/DataFactoryV1/Datasets/NewAzureDataFactoryDatasetCommand.cs diff --git a/src/DataFactory/DataFactories/Datasets/RemoveAzureDataFactoryDatasetCommand.cs b/src/DataFactory/DataFactoryV1/Datasets/RemoveAzureDataFactoryDatasetCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Datasets/RemoveAzureDataFactoryDatasetCommand.cs rename to src/DataFactory/DataFactoryV1/Datasets/RemoveAzureDataFactoryDatasetCommand.cs diff --git a/src/DataFactory/DataFactories/Encrypt/NewAzureDataFactoryEncryptValueCommand.cs b/src/DataFactory/DataFactoryV1/Encrypt/NewAzureDataFactoryEncryptValueCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Encrypt/NewAzureDataFactoryEncryptValueCommand.cs rename to src/DataFactory/DataFactoryV1/Encrypt/NewAzureDataFactoryEncryptValueCommand.cs diff --git a/src/DataFactory/DataFactories/ExceptionExtensions.cs b/src/DataFactory/DataFactoryV1/ExceptionExtensions.cs similarity index 100% rename from src/DataFactory/DataFactories/ExceptionExtensions.cs rename to src/DataFactory/DataFactoryV1/ExceptionExtensions.cs diff --git a/src/DataFactory/DataFactories/Gateway/GetAzureDataFactoryGatewayAuthKeyCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/GetAzureDataFactoryGatewayAuthKeyCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/GetAzureDataFactoryGatewayAuthKeyCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/GetAzureDataFactoryGatewayAuthKeyCommand.cs diff --git a/src/DataFactory/DataFactories/Gateway/GetAzureDataFactoryGatewayCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/GetAzureDataFactoryGatewayCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/GetAzureDataFactoryGatewayCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/GetAzureDataFactoryGatewayCommand.cs diff --git a/src/DataFactory/DataFactories/Gateway/NewAzureDataFactoryGatewayAuthKeyCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/NewAzureDataFactoryGatewayAuthKeyCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/NewAzureDataFactoryGatewayAuthKeyCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/NewAzureDataFactoryGatewayAuthKeyCommand.cs diff --git a/src/DataFactory/DataFactories/Gateway/NewAzureDataFactoryGatewayCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/NewAzureDataFactoryGatewayCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/NewAzureDataFactoryGatewayCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/NewAzureDataFactoryGatewayCommand.cs diff --git a/src/DataFactory/DataFactories/Gateway/RemoveAzureDataFactoryGatewayCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/RemoveAzureDataFactoryGatewayCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/RemoveAzureDataFactoryGatewayCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/RemoveAzureDataFactoryGatewayCommand.cs diff --git a/src/DataFactory/DataFactories/Gateway/SetAzureDataFactoryGatewayCommand.cs b/src/DataFactory/DataFactoryV1/Gateway/SetAzureDataFactoryGatewayCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Gateway/SetAzureDataFactoryGatewayCommand.cs rename to src/DataFactory/DataFactoryV1/Gateway/SetAzureDataFactoryGatewayCommand.cs diff --git a/src/DataFactory/DataFactories/Hubs/GetAzureDataFactoryHubCommand.cs b/src/DataFactory/DataFactoryV1/Hubs/GetAzureDataFactoryHubCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Hubs/GetAzureDataFactoryHubCommand.cs rename to src/DataFactory/DataFactoryV1/Hubs/GetAzureDataFactoryHubCommand.cs diff --git a/src/DataFactory/DataFactories/Hubs/HubContextBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/Hubs/HubContextBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/Hubs/HubContextBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/Hubs/HubContextBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/Hubs/NewAzureDataFactoryHubCommand.cs b/src/DataFactory/DataFactoryV1/Hubs/NewAzureDataFactoryHubCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Hubs/NewAzureDataFactoryHubCommand.cs rename to src/DataFactory/DataFactoryV1/Hubs/NewAzureDataFactoryHubCommand.cs diff --git a/src/DataFactory/DataFactories/Hubs/RemoveAzureDataFactoryHubCommand.cs b/src/DataFactory/DataFactoryV1/Hubs/RemoveAzureDataFactoryHubCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Hubs/RemoveAzureDataFactoryHubCommand.cs rename to src/DataFactory/DataFactoryV1/Hubs/RemoveAzureDataFactoryHubCommand.cs diff --git a/src/DataFactory/DataFactories/LinkedServices/GetAzureDataFactoryLinkedServiceCommand.cs b/src/DataFactory/DataFactoryV1/LinkedServices/GetAzureDataFactoryLinkedServiceCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/LinkedServices/GetAzureDataFactoryLinkedServiceCommand.cs rename to src/DataFactory/DataFactoryV1/LinkedServices/GetAzureDataFactoryLinkedServiceCommand.cs diff --git a/src/DataFactory/DataFactories/LinkedServices/LinkedServiceContextBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/LinkedServices/LinkedServiceContextBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/LinkedServices/LinkedServiceContextBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/LinkedServices/LinkedServiceContextBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/LinkedServices/NewAzureDataFactoryLinkedServiceCommand.cs b/src/DataFactory/DataFactoryV1/LinkedServices/NewAzureDataFactoryLinkedServiceCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/LinkedServices/NewAzureDataFactoryLinkedServiceCommand.cs rename to src/DataFactory/DataFactoryV1/LinkedServices/NewAzureDataFactoryLinkedServiceCommand.cs diff --git a/src/DataFactory/DataFactories/LinkedServices/RemoveAzureDataFactoryLinkedServiceCommand.cs b/src/DataFactory/DataFactoryV1/LinkedServices/RemoveAzureDataFactoryLinkedServiceCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/LinkedServices/RemoveAzureDataFactoryLinkedServiceCommand.cs rename to src/DataFactory/DataFactoryV1/LinkedServices/RemoveAzureDataFactoryLinkedServiceCommand.cs diff --git a/src/DataFactory/DataFactories/Models/ActivityWindowFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/ActivityWindowFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/ActivityWindowFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/ActivityWindowFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/BlobDownloadParameters.cs b/src/DataFactory/DataFactoryV1/Models/BlobDownloadParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/BlobDownloadParameters.cs rename to src/DataFactory/DataFactoryV1/Models/BlobDownloadParameters.cs diff --git a/src/DataFactory/DataFactories/Models/CreatePSDataFactoryParameters.cs b/src/DataFactory/DataFactoryV1/Models/CreatePSDataFactoryParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/CreatePSDataFactoryParameters.cs rename to src/DataFactory/DataFactoryV1/Models/CreatePSDataFactoryParameters.cs diff --git a/src/DataFactory/DataFactories/Models/CreatePSHubParameters.cs b/src/DataFactory/DataFactoryV1/Models/CreatePSHubParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/CreatePSHubParameters.cs rename to src/DataFactory/DataFactoryV1/Models/CreatePSHubParameters.cs diff --git a/src/DataFactory/DataFactories/Models/CreatePSLinkedServiceParameters.cs b/src/DataFactory/DataFactoryV1/Models/CreatePSLinkedServiceParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/CreatePSLinkedServiceParameters.cs rename to src/DataFactory/DataFactoryV1/Models/CreatePSLinkedServiceParameters.cs diff --git a/src/DataFactory/DataFactories/Models/CreatePSPipelineParameters.cs b/src/DataFactory/DataFactoryV1/Models/CreatePSPipelineParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/CreatePSPipelineParameters.cs rename to src/DataFactory/DataFactoryV1/Models/CreatePSPipelineParameters.cs diff --git a/src/DataFactory/DataFactories/Models/CreatePSTableParameters.cs b/src/DataFactory/DataFactoryV1/Models/CreatePSTableParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/CreatePSTableParameters.cs rename to src/DataFactory/DataFactoryV1/Models/CreatePSTableParameters.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.ActivityWindows.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.ActivityWindows.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.ActivityWindows.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.ActivityWindows.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.DataFactories.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.DataFactories.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.DataFactories.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.DataFactories.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.DataSlices.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.DataSlices.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.DataSlices.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.DataSlices.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.Datasets.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Datasets.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.Datasets.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Datasets.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.Encrypt.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Encrypt.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.Encrypt.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Encrypt.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.Gateway.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Gateway.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.Gateway.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Gateway.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.Hubs.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Hubs.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.Hubs.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Hubs.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.LinkedServices.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.LinkedServices.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.LinkedServices.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.LinkedServices.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.Pipelines.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Pipelines.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.Pipelines.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.Pipelines.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClient.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClient.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClient.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClient.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryClientExtensions.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryClientExtensions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryClientExtensions.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryClientExtensions.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/DataFactoryParametersBase.cs b/src/DataFactory/DataFactoryV1/Models/DataFactoryParametersBase.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataFactoryParametersBase.cs rename to src/DataFactory/DataFactoryV1/Models/DataFactoryParametersBase.cs diff --git a/src/DataFactory/DataFactories/Models/DataSliceFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/DataSliceFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataSliceFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/DataSliceFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/DataSliceRunFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/DataSliceRunFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/DataSliceRunFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/DataSliceRunFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/HubFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/HubFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/HubFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/HubFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/LinkedServiceFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/LinkedServiceFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/LinkedServiceFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/LinkedServiceFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/NewDataFactoryGatewayAuthKeyParameters.cs b/src/DataFactory/DataFactoryV1/Models/NewDataFactoryGatewayAuthKeyParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/NewDataFactoryGatewayAuthKeyParameters.cs rename to src/DataFactory/DataFactoryV1/Models/NewDataFactoryGatewayAuthKeyParameters.cs diff --git a/src/DataFactory/DataFactories/Models/PSActivityWindow.cs b/src/DataFactory/DataFactoryV1/Models/PSActivityWindow.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSActivityWindow.cs rename to src/DataFactory/DataFactoryV1/Models/PSActivityWindow.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataFactory.cs b/src/DataFactory/DataFactoryV1/Models/PSDataFactory.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataFactory.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataFactory.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataFactoryGateway.cs b/src/DataFactory/DataFactoryV1/Models/PSDataFactoryGateway.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataFactoryGateway.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataFactoryGateway.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataFactoryGatewayAuthKey.cs b/src/DataFactory/DataFactoryV1/Models/PSDataFactoryGatewayAuthKey.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataFactoryGatewayAuthKey.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataFactoryGatewayAuthKey.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataFactoryGatewayKey.cs b/src/DataFactory/DataFactoryV1/Models/PSDataFactoryGatewayKey.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataFactoryGatewayKey.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataFactoryGatewayKey.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataSlice.cs b/src/DataFactory/DataFactoryV1/Models/PSDataSlice.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataSlice.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataSlice.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataSliceRun.cs b/src/DataFactory/DataFactoryV1/Models/PSDataSliceRun.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataSliceRun.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataSliceRun.cs diff --git a/src/DataFactory/DataFactories/Models/PSDataset.cs b/src/DataFactory/DataFactoryV1/Models/PSDataset.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSDataset.cs rename to src/DataFactory/DataFactoryV1/Models/PSDataset.cs diff --git a/src/DataFactory/DataFactories/Models/PSHub.cs b/src/DataFactory/DataFactoryV1/Models/PSHub.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSHub.cs rename to src/DataFactory/DataFactoryV1/Models/PSHub.cs diff --git a/src/DataFactory/DataFactories/Models/PSLinkedService.cs b/src/DataFactory/DataFactoryV1/Models/PSLinkedService.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSLinkedService.cs rename to src/DataFactory/DataFactoryV1/Models/PSLinkedService.cs diff --git a/src/DataFactory/DataFactories/Models/PSPipeline.cs b/src/DataFactory/DataFactoryV1/Models/PSPipeline.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSPipeline.cs rename to src/DataFactory/DataFactoryV1/Models/PSPipeline.cs diff --git a/src/DataFactory/DataFactories/Models/PSRunLogInfo.cs b/src/DataFactory/DataFactoryV1/Models/PSRunLogInfo.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PSRunLogInfo.cs rename to src/DataFactory/DataFactoryV1/Models/PSRunLogInfo.cs diff --git a/src/DataFactory/DataFactories/Models/PatchPSDataFactoryParameters.cs b/src/DataFactory/DataFactoryV1/Models/PatchPSDataFactoryParameters.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PatchPSDataFactoryParameters.cs rename to src/DataFactory/DataFactoryV1/Models/PatchPSDataFactoryParameters.cs diff --git a/src/DataFactory/DataFactories/Models/PipelineFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/PipelineFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/PipelineFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/PipelineFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Models/TableFilterOptions.cs b/src/DataFactory/DataFactoryV1/Models/TableFilterOptions.cs similarity index 100% rename from src/DataFactory/DataFactories/Models/TableFilterOptions.cs rename to src/DataFactory/DataFactoryV1/Models/TableFilterOptions.cs diff --git a/src/DataFactory/DataFactories/Pipelines/GetAzureDataFactoryPipelineCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/GetAzureDataFactoryPipelineCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/GetAzureDataFactoryPipelineCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/GetAzureDataFactoryPipelineCommand.cs diff --git a/src/DataFactory/DataFactories/Pipelines/NewAzureDataFactoryPipelineCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/NewAzureDataFactoryPipelineCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/NewAzureDataFactoryPipelineCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/NewAzureDataFactoryPipelineCommand.cs diff --git a/src/DataFactory/DataFactories/Pipelines/PipelineContextBaseCmdlet.cs b/src/DataFactory/DataFactoryV1/Pipelines/PipelineContextBaseCmdlet.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/PipelineContextBaseCmdlet.cs rename to src/DataFactory/DataFactoryV1/Pipelines/PipelineContextBaseCmdlet.cs diff --git a/src/DataFactory/DataFactories/Pipelines/RemoveAzureDataFactoryPipelineCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/RemoveAzureDataFactoryPipelineCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/RemoveAzureDataFactoryPipelineCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/RemoveAzureDataFactoryPipelineCommand.cs diff --git a/src/DataFactory/DataFactories/Pipelines/ResumeAzureDataFactoryPipelineCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/ResumeAzureDataFactoryPipelineCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/ResumeAzureDataFactoryPipelineCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/ResumeAzureDataFactoryPipelineCommand.cs diff --git a/src/DataFactory/DataFactories/Pipelines/SetAzureDataFactoryPipelineActivePeriodCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/SetAzureDataFactoryPipelineActivePeriodCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/SetAzureDataFactoryPipelineActivePeriodCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/SetAzureDataFactoryPipelineActivePeriodCommand.cs diff --git a/src/DataFactory/DataFactories/Pipelines/SuspendAzureDataFactoryPipelineCommand.cs b/src/DataFactory/DataFactoryV1/Pipelines/SuspendAzureDataFactoryPipelineCommand.cs similarity index 100% rename from src/DataFactory/DataFactories/Pipelines/SuspendAzureDataFactoryPipelineCommand.cs rename to src/DataFactory/DataFactoryV1/Pipelines/SuspendAzureDataFactoryPipelineCommand.cs diff --git a/src/DataFactory/DataFactories/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactoryV1/Properties/AssemblyInfo.cs similarity index 100% rename from src/DataFactory/DataFactories/Properties/AssemblyInfo.cs rename to src/DataFactory/DataFactoryV1/Properties/AssemblyInfo.cs diff --git a/src/DataFactory/DataFactories/Properties/Resources.Designer.cs b/src/DataFactory/DataFactoryV1/Properties/Resources.Designer.cs similarity index 98% rename from src/DataFactory/DataFactories/Properties/Resources.Designer.cs rename to src/DataFactory/DataFactoryV1/Properties/Resources.Designer.cs index 058ab3eb7c73..4b55d8277f20 100644 --- a/src/DataFactory/DataFactories/Properties/Resources.Designer.cs +++ b/src/DataFactory/DataFactoryV1/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.DataFactories.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -89,7 +89,7 @@ internal static string DataFactoryCreating { /// /// Looks up a localized string similar to A data factory with the name {0} in the resource group {1} exists. - ///Continuing execution may overwrite the exisiting one. + ///Continuing execution may overwrite the existing one. ///Are you sure you want to continue?. /// internal static string DataFactoryExists { @@ -163,7 +163,7 @@ internal static string DatasetCreating { /// /// Looks up a localized string similar to A dataset with the name {0} in the data factory {1} already exists. - ///Continuing execution will overwrite the exisiting one. + ///Continuing execution will overwrite the existing one. ///Are you sure you want to continue?. /// internal static string DatasetExists { @@ -296,7 +296,7 @@ internal static string HubCreating { /// /// Looks up a localized string similar to A hub with the name {0} in the data factory {1} exists. - ///Continuing execution may overwrite the exisiting one. + ///Continuing execution may overwrite the existing one. ///Are you sure you want to continue?. /// internal static string HubExists { @@ -361,7 +361,7 @@ internal static string LinkedServiceCreating { /// /// Looks up a localized string similar to A linked service with the name {0} in the data factory {1} exists. - ///Continuing execution may overwrite the exisiting one. + ///Continuing execution may overwrite the existing one. ///Are you sure you want to continue?. /// internal static string LinkedServiceExists { @@ -426,7 +426,7 @@ internal static string PipelineCreating { /// /// Looks up a localized string similar to A pipeline with the name {0} in the data factory {1} exists. - ///Continuing execution may overwrite the exisiting one. + ///Continuing execution may overwrite the existing one. ///Are you sure you want to continue?. /// internal static string PipelineExists { diff --git a/src/DataFactory/DataFactories/Properties/Resources.resx b/src/DataFactory/DataFactoryV1/Properties/Resources.resx similarity index 100% rename from src/DataFactory/DataFactories/Properties/Resources.resx rename to src/DataFactory/DataFactoryV1/Properties/Resources.resx diff --git a/src/DataFactory/DataFactories/ProvisioningFailedException.cs b/src/DataFactory/DataFactoryV1/ProvisioningFailedException.cs similarity index 100% rename from src/DataFactory/DataFactories/ProvisioningFailedException.cs rename to src/DataFactory/DataFactoryV1/ProvisioningFailedException.cs diff --git a/src/DataFactory/DataFactories/StartupScripts/sample.ps1 b/src/DataFactory/DataFactoryV1/StartupScripts/sample.ps1 similarity index 100% rename from src/DataFactory/DataFactories/StartupScripts/sample.ps1 rename to src/DataFactory/DataFactoryV1/StartupScripts/sample.ps1 diff --git a/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs b/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs index e17d1692ed08..915d38edb1e6 100644 --- a/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs +++ b/src/DataFactory/DataFactoryV2/Properties/AssemblyInfo.cs @@ -27,6 +27,7 @@ [assembly: Guid("5d024af0-81c9-44f0-b3b0-7080f103fb4d")] [assembly: AssemblyVersion("1.18.0")] [assembly: AssemblyFileVersion("1.18.0")] + #if !SIGN [assembly: InternalsVisibleTo("Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.Test")] -#endif +#endif \ No newline at end of file diff --git a/src/DataMigration/DataMigration.Autorest/docs/Az.DataMigration.md b/src/DataMigration/DataMigration.Autorest/help/Az.DataMigration.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Az.DataMigration.md rename to src/DataMigration/DataMigration.Autorest/help/Az.DataMigration.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationAssessment.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationAssessment.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationAssessment.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationAssessment.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationPerformanceDataCollection.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationPerformanceDataCollection.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSkuRecommendation.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSkuRecommendation.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlService.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlService.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlService.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlService.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceAuthKey.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceAuthKey.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceAuthKey.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceAuthKey.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceMigration.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceMigration.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceMigration.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationSqlServiceMigration.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlDb.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlDb.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlDb.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlManagedInstance.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlManagedInstance.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlManagedInstance.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlManagedInstance.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlVM.md b/src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlVM.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlVM.md rename to src/DataMigration/DataMigration.Autorest/help/Get-AzDataMigrationToSqlVM.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md b/src/DataMigration/DataMigration.Autorest/help/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md rename to src/DataMigration/DataMigration.Autorest/help/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlVM.md b/src/DataMigration/DataMigration.Autorest/help/Invoke-AzDataMigrationCutoverToSqlVM.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlVM.md rename to src/DataMigration/DataMigration.Autorest/help/Invoke-AzDataMigrationCutoverToSqlVM.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationLoginsMigration.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationLoginsMigration.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationLoginsMigration.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationLoginsMigration.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlServerSchema.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlServerSchema.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlServerSchema.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlServerSchema.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlService.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlService.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlService.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlService.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlServiceAuthKey.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlServiceAuthKey.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlServiceAuthKey.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationSqlServiceAuthKey.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationTdeCertificateMigration.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationTdeCertificateMigration.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationTdeCertificateMigration.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationTdeCertificateMigration.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlDb.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlDb.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlManagedInstance.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlManagedInstance.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlManagedInstance.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlManagedInstance.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlVM.md b/src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlVM.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlVM.md rename to src/DataMigration/DataMigration.Autorest/help/New-AzDataMigrationToSqlVM.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Register-AzDataMigrationIntegrationRuntime.md b/src/DataMigration/DataMigration.Autorest/help/Register-AzDataMigrationIntegrationRuntime.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Register-AzDataMigrationIntegrationRuntime.md rename to src/DataMigration/DataMigration.Autorest/help/Register-AzDataMigrationIntegrationRuntime.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlService.md b/src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationSqlService.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlService.md rename to src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationSqlService.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlServiceNode.md b/src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationSqlServiceNode.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlServiceNode.md rename to src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationSqlServiceNode.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationToSqlDb.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md rename to src/DataMigration/DataMigration.Autorest/help/Remove-AzDataMigrationToSqlDb.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlDb.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlDb.md rename to src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlDb.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlManagedInstance.md b/src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlManagedInstance.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlManagedInstance.md rename to src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlManagedInstance.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlVM.md b/src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlVM.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlVM.md rename to src/DataMigration/DataMigration.Autorest/help/Stop-AzDataMigrationToSqlVM.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/Update-AzDataMigrationSqlService.md b/src/DataMigration/DataMigration.Autorest/help/Update-AzDataMigrationSqlService.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/Update-AzDataMigrationSqlService.md rename to src/DataMigration/DataMigration.Autorest/help/Update-AzDataMigrationSqlService.md diff --git a/src/DataMigration/DataMigration.Autorest/docs/readme.md b/src/DataMigration/DataMigration.Autorest/help/readme.md similarity index 100% rename from src/DataMigration/DataMigration.Autorest/docs/readme.md rename to src/DataMigration/DataMigration.Autorest/help/readme.md diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMarketplaceAgreement.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMarketplaceAgreement.md index 01aa8485b52d..c8a05ff7c1e7 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMarketplaceAgreement.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMarketplaceAgreement.md @@ -1,6 +1,6 @@ ### Example 1: List Datadog marketplace agreements in the subscription ```powershell -PS C:\> Get-AzDatadogMarketplaceAgreement +Get-AzDatadogMarketplaceAgreement Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitor.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitor.md index 299e23179479..662727c4447a 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitor.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitor.md @@ -1,6 +1,6 @@ ### Example 1: List all monitor resources under a subscription ```powershell -PS C:\> Get-AzDatadogMonitor +Get-AzDatadogMonitor Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ This command lists all monitor resources under a subscription. ### Example 2: List monitor resources under a resource group ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog Location Name Type -------- ---- ---- @@ -22,7 +22,7 @@ This command lists all monitor resources under a resource group. ### Example 3: Get the properties of a specific monitor resource ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog Location Name Type -------- ---- ---- @@ -33,7 +33,7 @@ This command gets the properties of a specific monitor resource. ### Example 4: Get the properties of a specific monitor resource by pipeline ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitor +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitor Location Name Type -------- ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorApiKey.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorApiKey.md index d00f1463e4ed..32ef71fa7b7e 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorApiKey.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorApiKey.md @@ -1,6 +1,6 @@ ### Example 1: List the api keys for a given monitor resource ```powershell -PS C:\> Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog +Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog Created CreatedBy Key Name ------- --------- --- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorDefaultKey.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorDefaultKey.md index c88100b78502..67e0307591d1 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorDefaultKey.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorDefaultKey.md @@ -1,6 +1,6 @@ ### Example 1: Get the default api key ```powershell -PS C:\> Get-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -Name Datadog +Get-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -Name Datadog Created CreatedBy Key Name ------- --------- --- ---- @@ -11,7 +11,7 @@ This command gets the default api key. ### Example 2: Get the default api key by pipeline ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitorDefaultKey +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitorDefaultKey Created CreatedBy Key Name ------- --------- --- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorHost.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorHost.md index 4b4b19932984..a6b6a1f64693 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorHost.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorHost.md @@ -1,6 +1,6 @@ ### Example 1: List the hosts for a given monitor resource ```powershell -PS C:\> Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog +Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog ``` diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorLinkedResource.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorLinkedResource.md index 66e7ca442172..01165db67b82 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorLinkedResource.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorLinkedResource.md @@ -1,6 +1,6 @@ ### Example 1: List all Azure resources associated to the same Datadog organization as the target resource ```powershell -PS C:\> Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog +Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog Id -- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorMonitoredResource.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorMonitoredResource.md index 0235b6dea6fc..2324bb6825ef 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorMonitoredResource.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogMonitorMonitoredResource.md @@ -1,6 +1,6 @@ ### Example 1: List the resources currently being monitored by the Datadog monitor resource ```powershell -PS C:\> Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog +Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog ``` diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogSingleSignOnConfiguration.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogSingleSignOnConfiguration.md index d99600d1d57a..65bfbbf06f0c 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogSingleSignOnConfiguration.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogSingleSignOnConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: List the Datadog single sign-on resource for the given Monitor ```powershell -PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog +Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog Name Type ---- ---- @@ -11,7 +11,7 @@ This command lists the Datadog single sign-on resource for the given Monitor. ### Example 2: Gets the Datadog single sign-on resource for the given Monitor ```powershell -PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' +Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' Name Type ---- ---- @@ -22,7 +22,7 @@ This command gets the Datadog single sign-on resource for the given Monitor. ### Example 3: Gets the Datadog single sign-on resource for the given Monitor by pipeline ```powershell -PS C:\> New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 | Get-AzDatadogSingleSignOnConfiguration +New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 | Get-AzDatadogSingleSignOnConfiguration Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogTagRule.md b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogTagRule.md index d300cdf80eb0..f847f9201754 100644 --- a/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogTagRule.md +++ b/src/Datadog/Datadog.Autorest/examples/Get-AzDatadogTagRule.md @@ -1,6 +1,6 @@ ### Example 1: List all tag rules set for a given monitor resource ```powershell -PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog +Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog Name Type ---- ---- @@ -11,7 +11,7 @@ This command lists all tag rules set for a given monitor resource. ### Example 2: Get a tag rule set for a given monitor resource ```powershell -PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' +Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' Name Type ---- ---- @@ -22,7 +22,7 @@ This command gets a tag rule set for a given monitor resource. ### Example 3: Get a tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Get-AzDatadogTagRule +Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Get-AzDatadogTagRule Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogFilteringTagObject.md b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogFilteringTagObject.md index 045ba2354c93..cba3143396bc 100644 --- a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogFilteringTagObject.md +++ b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogFilteringTagObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a in-memory object for FilteringTag ```powershell -PS C:\> New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" +New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" ``` diff --git a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMarketplaceAgreement.md b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMarketplaceAgreement.md index 911ae0eb1cec..172cf9135f39 100644 --- a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMarketplaceAgreement.md +++ b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMarketplaceAgreement.md @@ -1,6 +1,6 @@ ### Example 1: Create Datadog marketplace agreement in the subscription ```powershell -PS C:\> New-AzDatadogMarketplaceAgreement -Accepted +New-AzDatadogMarketplaceAgreement -Accepted Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMonitor.md b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMonitor.md index d12a4c7920a0..3a48a8cbf195 100644 --- a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMonitor.md +++ b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Create a monitor resource ```powershell -PS C:\> New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned +New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned Location Name Type -------- ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogSingleSignOnConfiguration.md b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogSingleSignOnConfiguration.md index 334c0a0c3490..e07e55da125a 100644 --- a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogSingleSignOnConfiguration.md +++ b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogSingleSignOnConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Configures single-sign-on for Data monitor resource ```powershell -PS C:\> New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 +New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 Name Type ---- ---- @@ -11,7 +11,7 @@ This command configures single-sign-on for Data monitor resource. ### Example 2: Configures single-sign-on for Data monitor resource by pipeline ```powershell -PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 +Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogTagRule.md b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogTagRule.md index 66dac81b4288..ee9ad56929bb 100644 --- a/src/Datadog/Datadog.Autorest/examples/New-AzDatadogTagRule.md +++ b/src/Datadog/Datadog.Autorest/examples/New-AzDatadogTagRule.md @@ -1,9 +1,9 @@ ### Example 1: Create or update a tag rule set for a given monitor resource ```powershell -PS C:\> $ftobjArray = @() -PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" -PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment" -PS C:\> New-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray +$ftobjArray = @() +$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" +$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment" +New-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray Name Type ---- ---- @@ -14,10 +14,10 @@ This command creates or updates a tag rule set for a given monitor resource. ### Example 2: Create or update a tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> $ftobjArray = @() -PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" -PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment" -PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray +$ftobjArray = @() +$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment" +$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment" +Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray Name Type ---- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Remove-AzDatadogMonitor.md b/src/Datadog/Datadog.Autorest/examples/Remove-AzDatadogMonitor.md index b2e0ea3016b5..9d3846a636bd 100644 --- a/src/Datadog/Datadog.Autorest/examples/Remove-AzDatadogMonitor.md +++ b/src/Datadog/Datadog.Autorest/examples/Remove-AzDatadogMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Delete a monitor resource ```powershell -PS C:\> Remove-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal03 +Remove-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal03 ``` @@ -8,7 +8,7 @@ This command deletes a monitor resource. ### Example 2: Delete a monitor resource by pipeline ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal02 | Remove-AzDatadogMonitor +Get-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal02 | Remove-AzDatadogMonitor ``` diff --git a/src/Datadog/Datadog.Autorest/examples/Set-AzDatadogMonitorDefaultKey.md b/src/Datadog/Datadog.Autorest/examples/Set-AzDatadogMonitorDefaultKey.md index cc72ce05de47..c8e4fa1c4ebc 100644 --- a/src/Datadog/Datadog.Autorest/examples/Set-AzDatadogMonitorDefaultKey.md +++ b/src/Datadog/Datadog.Autorest/examples/Set-AzDatadogMonitorDefaultKey.md @@ -1,6 +1,6 @@ ### Example 1: Set the default api key for monitor resource ```powershell -PS C:\> Set-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Key 'xxxxxxxxxxxxxxxxxxxxxx' +Set-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Key 'xxxxxxxxxxxxxxxxxxxxxx' Created CreatedBy Key Name ------- --------- --- ---- diff --git a/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitor.md b/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitor.md index f83c9215e848..5dafd2016e85 100644 --- a/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitor.md +++ b/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Update a monitor resource ```powershell -PS C:\> Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'} +Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ This command updates a monitor resource. ### Example 2: Update a monitor resource by pipeline ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitor -Tag @{'key1'='value1'; 'key2'='value2'} +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitor -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type -------- ---- ---- eastus2euap Datadog microsoft.Datadog/monitors diff --git a/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitorSetPasswordLink.md b/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitorSetPasswordLink.md index dd1f57ec4758..35816b77291b 100644 --- a/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitorSetPasswordLink.md +++ b/src/Datadog/Datadog.Autorest/examples/Update-AzDatadogMonitorSetPasswordLink.md @@ -1,6 +1,6 @@ ### Example 1: Refresh the set password link and return a latest one ```powershell -PS C:\> Update-AzDatadogMonitorSetPasswordLink -ResourceGroupName azure-rg-Datadog -Name Datadog +Update-AzDatadogMonitorSetPasswordLink -ResourceGroupName azure-rg-Datadog -Name Datadog https://us3.Datadoghq.com/account/reset_password/xxxxxxxxxxxxxxxxxxxxxxxxxxx ``` @@ -9,7 +9,7 @@ This command refresh the set password link and return a latest one. ### Example 2: Refresh the set password link and return a latest one by pipeline ```powershell -PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitorSetPasswordLink +Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitorSetPasswordLink https://us3.Datadoghq.com/account/reset_password/xxxxxxxxxxxxxxxxxxxxxxxxxxx ``` diff --git a/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 b/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 index 4ec66693e247..473222dbf31b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 +++ b/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '4.2.0' +ModuleVersion = '4.2.1' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -127,7 +127,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DesktopVirtualization' + Tags = 'Azure','ResourceManager','ARM','PSModule','DesktopVirtualization' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -139,28 +139,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Added cmdlets: - - ''Get-AzWvdAppAttachPackage'' - - ''Import-AzWvdAppAttachPackageInfo'' - - ''New-AzWvdAppAttachPackage'' - - ''Remove-AzWvdAppAttachPackage'' - - ''Update-AzWvdAppAttachPackage'' -* Added Private Link Cmdlets - - ''Get-AzWvdPrivateEndpointConnection'' - - ''Get-AzWvdPrivateLinkResource'' - - ''Remove-AzWvdPrivateEndpointConnection'' -* Added Scaling Plan Personal Schedule cmdlets - - ''Get-AzWvdScalingPlanPersonalSchedule'' - - ''New-AzWvdScalingPlanPersonalSchedule'' - - ''Remove-AzWvdScalingPlanPersonalSchedule'' - - ''Update-AzWvdScalingPlanPersonalSchedule'' -* Added Scaling Plan Pooled Schedule cmdlets - - ''Get-AzWvdScalingPlanPooledSchedule'' - - ''New-AzWvdScalingPlanPooledSchedule'' - - ''Remove-AzWvdScalingPlanPooledSchedule'' - - ''Update-AzWvdScalingPlanPooledSchedule'' -* Updated rampDownCapacityThresholdPct minimum value from 0 to 1 on ScalingPlanPooledSchedule cmdlets -* Added showInFeed property to ApplicationGroups' + ReleaseNotes = '* Marked AppAttach cmdlets as preview' # Prerelease string of this module # Prerelease = '' @@ -173,7 +152,7 @@ PrivateData = @{ } # End of PSData hashtable -} # End of PrivateData hashtable + } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/DesktopVirtualization/DesktopVirtualization/ChangeLog.md b/src/DesktopVirtualization/DesktopVirtualization/ChangeLog.md index 420d1128bfa1..a719f0926d08 100644 --- a/src/DesktopVirtualization/DesktopVirtualization/ChangeLog.md +++ b/src/DesktopVirtualization/DesktopVirtualization/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release + +## Version 4.2.1 * Marked AppAttach cmdlets as preview ## Version 4.2.0 diff --git a/src/DesktopVirtualization/DesktopVirtualization/Properties/AssemblyInfo.cs b/src/DesktopVirtualization/DesktopVirtualization/Properties/AssemblyInfo.cs index 808853cef711..26be5f8b30bc 100644 --- a/src/DesktopVirtualization/DesktopVirtualization/Properties/AssemblyInfo.cs +++ b/src/DesktopVirtualization/DesktopVirtualization/Properties/AssemblyInfo.cs @@ -24,5 +24,5 @@ [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] [assembly: Guid("5FAC4032-09B2-4E1D-A7CB-078DEA39CAF1")] -[assembly: AssemblyVersion("4.2.0")] -[assembly: AssemblyFileVersion("4.2.0")] +[assembly: AssemblyVersion("4.2.1")] +[assembly: AssemblyFileVersion("4.2.1")] diff --git a/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.format.ps1xml b/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.format.ps1xml index 09aa18950e2a..d9bde7cdd370 100644 --- a/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.format.ps1xml +++ b/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.format.ps1xml @@ -20,6 +20,9 @@ + + + @@ -53,6 +56,9 @@ + + + @@ -72,6 +78,9 @@ DevCenterName + + EnvironmentDefinitionName + EnvironmentTypeName @@ -105,6 +114,9 @@ SubscriptionId + + TaskName + VersionName @@ -113,6 +125,62 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryption + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryption + + + + + + + + + + + + KeyEncryptionKeyUrl + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentity + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentity + + + + + + + + + + + + + + + + + + DelegatedIdentityClientId + + + IdentityType + + + UserAssignedIdentityResourceId + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity @@ -672,9 +740,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentType - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentType @@ -730,9 +798,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeListResult @@ -752,12 +820,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeProperties + + + @@ -765,6 +836,9 @@ + + DisplayName + ProvisioningState @@ -774,9 +848,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection @@ -832,9 +906,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionProperties @@ -878,9 +952,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkListResult @@ -900,9 +974,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Capability + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Capability - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Capability + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Capability @@ -928,9 +1002,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog @@ -986,9 +1060,65 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogConflictError + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogConflictError + + + + + + + + + + + + + + + Name + + + Path + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails + + + + + + + + + + + + + + + Code + + + Message + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogListResult @@ -1008,9 +1138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogProperties @@ -1038,6 +1168,15 @@ + + + + + + + + + @@ -1075,6 +1214,15 @@ GitHubUri + + SyncType + + + ConnectionState + + + LastConnectionTime + LastSyncTime @@ -1090,9 +1238,53 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogSyncError + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogSyncError + + + + + + + + + + + + Path + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties + + + + + + + + + + + + SyncType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTags @@ -1112,9 +1304,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody @@ -1146,15 +1338,12 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTask - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTask - - - @@ -1180,9 +1369,6 @@ - - Location - Name @@ -1210,21 +1396,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskInput - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskInput - + + + + - NextLink + Description + + + Required @@ -1232,81 +1424,497 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskListResult - + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskProperties + + + - + - + + + + + + + Timeout + + + ValidationStatus + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition + + + - + - + - + - + - + - + - + - + - HibernateSupport - - - ImageReferenceExactVersion - - - ImageReferenceId + Location - OSStorageType + Name - SkuCapacity + SystemDataCreatedAt - SkuFamily + SystemDataCreatedBy - SkuName + SystemDataCreatedByType - SkuSize + SystemDataLastModifiedAt - SkuTier + SystemDataLastModifiedBy - ImageValidationStatus + SystemDataLastModifiedByType + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HibernateSupport + + + ImageReferenceExactVersion + + + ImageReferenceId + + + OSStorageType + + + SkuCapacity + + + SkuFamily + + + SkuName + + + SkuSize + + + SkuTier + + + ImageValidationStatus + + + ProvisioningState + + + ValidationStatus + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdate + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdate + + + + + + + + + + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties + + + + + + + + + + + + + + + HibernateSupport + + + OSStorageType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterProperties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CustomerManagedKeyEncryptionKeyUrl + + + DisplayName + + + KeyEncryptionKeyIdentityDelegatedIdentityClientId + + + KeyEncryptionKeyIdentityType + + + KeyEncryptionKeyIdentityUserAssignedIdentityResourceId + + + DevCenterUri + + + ProvisioningState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterSku + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterSku + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Capacity + + + Family + + + Name + + + Size + + + Tier + + + Location + + + ResourceType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdate + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdate + + + + + + + + + + - ProvisioningState + Location @@ -1314,21 +1922,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties - + - Location + DisplayName @@ -1336,27 +1944,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDependency - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDependency - + - + - HibernateSupport + Description - OSStorageType + DomainName @@ -1364,15 +1972,34 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDetail - + + + + + + + Port + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinition + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinition + + + @@ -1398,9 +2025,6 @@ - - Location - Name @@ -1428,9 +2052,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionListResult @@ -1450,85 +2074,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterProperties - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterProperties - - - - - - - - - - - - - - - DevCenterUri - - - ProvisioningState - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterSku + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameter - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterSku + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameter - - - - + - - - - - - - + - + - Capacity - - - Family + Description Name - Size - - - Tier - - - Location + ReadOnly - ResourceType + Required @@ -1536,39 +2114,20 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionProperties - + - - - - - - Location - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDependency - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDependency - - - - + - + @@ -1578,29 +2137,10 @@ Description - DomainName + TemplatePath - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDetail - - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDetail - - - - - - - - - - - Port + ValidationStatus @@ -1608,9 +2148,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentRole + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentRole - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentRole + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentRole @@ -1636,9 +2176,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType @@ -1694,9 +2234,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeListResult @@ -1716,12 +2256,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeProperties + + + @@ -1729,6 +2272,9 @@ + + DisplayName + ProvisioningState @@ -1738,9 +2284,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties + + + + + + + + + + + + DisplayName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery @@ -1796,9 +2364,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryListResult @@ -1818,9 +2386,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryProperties @@ -1846,9 +2414,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog @@ -1886,9 +2454,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheck + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheck - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheck + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheck @@ -1944,9 +2512,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetails @@ -2002,9 +2570,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsListResult @@ -2024,9 +2592,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsProperties @@ -2052,9 +2620,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetail @@ -2080,9 +2648,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Image + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Image - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Image + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Image @@ -2138,9 +2706,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageListResult @@ -2160,9 +2728,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageProperties @@ -2212,9 +2780,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference @@ -2234,9 +2802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetails - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetails + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetails @@ -2262,9 +2830,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersion + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersion - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersion + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersion @@ -2320,9 +2888,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionListResult @@ -2342,9 +2910,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionProperties @@ -2388,9 +2956,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ListUsagesResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ListUsagesResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ListUsagesResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ListUsagesResult @@ -2410,9 +2978,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection @@ -2474,9 +3042,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionListResult @@ -2496,9 +3064,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdate - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdate @@ -2518,9 +3086,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties @@ -2564,9 +3132,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkProperties @@ -2634,9 +3202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OperationStatus @@ -2704,9 +3272,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpoint @@ -2726,9 +3294,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpointCollection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpointCollection - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpointCollection + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpointCollection @@ -2748,9 +3316,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool @@ -2812,9 +3380,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolListResult @@ -2834,30 +3402,45 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolProperties + + + + + + + + + + + + + + + @@ -2871,21 +3454,36 @@ DevBoxDefinitionName + + DisplayName + LicenseType LocalAdministrator + + ManagedVirtualNetworkRegion + NetworkConnectionName + + SingleSignOnStatus + StopOnDisconnectGracePeriodMinute StopOnDisconnectStatus + + VirtualNetworkType + + + DevBoxCount + HealthStatus @@ -2898,9 +3496,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdate - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdate @@ -2920,24 +3518,36 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties + + + + + + + + + + + + @@ -2945,24 +3555,36 @@ DevBoxDefinitionName + + DisplayName + LicenseType LocalAdministrator + + ManagedVirtualNetworkRegion + NetworkConnectionName + + SingleSignOnStatus + + + VirtualNetworkType + - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project @@ -3024,9 +3646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType @@ -3088,9 +3710,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeListResult @@ -3110,9 +3732,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeProperties @@ -3122,6 +3744,12 @@ + + + + + + @@ -3135,6 +3763,12 @@ Status + + DisplayName + + + EnvironmentCount + ProvisioningState @@ -3144,9 +3778,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties @@ -3172,9 +3806,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectListResult @@ -3194,9 +3828,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectProperties @@ -3206,6 +3840,9 @@ + + + @@ -3225,6 +3862,9 @@ DevCenterId + + DisplayName + MaxDevBoxesPerUser @@ -3240,9 +3880,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdate - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdate @@ -3262,9 +3902,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties @@ -3274,6 +3914,9 @@ + + + @@ -3287,6 +3930,9 @@ DevCenterId + + DisplayName + MaxDevBoxesPerUser @@ -3296,9 +3942,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange @@ -3324,9 +3970,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule @@ -3382,9 +4028,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleListResult @@ -3404,9 +4050,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleProperties @@ -3450,9 +4096,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdate - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdate @@ -3472,9 +4118,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties @@ -3512,9 +4158,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.SkuListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SkuListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.SkuListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SkuListResult @@ -3534,9 +4180,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfiguration @@ -3562,9 +4208,61 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStats + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStats + + + + + + + + + + + + + + + + + + + + + + + + + + + Added + + + Removed + + + SynchronizationError + + + Unchanged + + + Updated + + + ValidationError + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags @@ -3584,9 +4282,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate @@ -3606,9 +4304,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Usage + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Usage - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Usage + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Usage @@ -3640,9 +4338,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageName + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageName - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageName + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageName diff --git a/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.psd1 b/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.psd1 index ed9f46818f56..e18a61353b7a 100644 --- a/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.psd1 +++ b/src/DevCenter/DevCenter.AutoRest/Az.DevCenter.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.DevCenter.private.dll' FormatsToProcess = './Az.DevCenter.format.ps1xml' - FunctionsToExport = 'Get-AzDevCenterAdminAttachedNetwork', 'Get-AzDevCenterAdminCatalog', 'Get-AzDevCenterAdminDevBoxDefinition', 'Get-AzDevCenterAdminDevCenter', 'Get-AzDevCenterAdminEnvironmentType', 'Get-AzDevCenterAdminGallery', 'Get-AzDevCenterAdminImage', 'Get-AzDevCenterAdminImageVersion', 'Get-AzDevCenterAdminNetworkConnection', 'Get-AzDevCenterAdminNetworkConnectionHealthDetail', 'Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint', 'Get-AzDevCenterAdminOperationStatus', 'Get-AzDevCenterAdminPool', 'Get-AzDevCenterAdminProject', 'Get-AzDevCenterAdminProjectAllowedEnvironmentType', 'Get-AzDevCenterAdminProjectEnvironmentType', 'Get-AzDevCenterAdminSchedule', 'Get-AzDevCenterAdminSku', 'Get-AzDevCenterAdminUsage', 'Invoke-AzDevCenterAdminExecuteCheckNameAvailability', 'New-AzDevCenterAdminAttachedNetwork', 'New-AzDevCenterAdminCatalog', 'New-AzDevCenterAdminDevBoxDefinition', 'New-AzDevCenterAdminDevCenter', 'New-AzDevCenterAdminEnvironmentType', 'New-AzDevCenterAdminGallery', 'New-AzDevCenterAdminNetworkConnection', 'New-AzDevCenterAdminPool', 'New-AzDevCenterAdminProject', 'New-AzDevCenterAdminProjectEnvironmentType', 'New-AzDevCenterAdminSchedule', 'Remove-AzDevCenterAdminAttachedNetwork', 'Remove-AzDevCenterAdminCatalog', 'Remove-AzDevCenterAdminDevBoxDefinition', 'Remove-AzDevCenterAdminDevCenter', 'Remove-AzDevCenterAdminEnvironmentType', 'Remove-AzDevCenterAdminGallery', 'Remove-AzDevCenterAdminNetworkConnection', 'Remove-AzDevCenterAdminPool', 'Remove-AzDevCenterAdminProject', 'Remove-AzDevCenterAdminProjectEnvironmentType', 'Remove-AzDevCenterAdminSchedule', 'Start-AzDevCenterAdminNetworkConnectionHealthCheck', 'Sync-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminDevBoxDefinition', 'Update-AzDevCenterAdminDevCenter', 'Update-AzDevCenterAdminEnvironmentType', 'Update-AzDevCenterAdminNetworkConnection', 'Update-AzDevCenterAdminPool', 'Update-AzDevCenterAdminProject', 'Update-AzDevCenterAdminProjectEnvironmentType', 'Update-AzDevCenterAdminSchedule', '*' + FunctionsToExport = 'Get-AzDevCenterAdminAttachedNetwork', 'Get-AzDevCenterAdminCatalog', 'Get-AzDevCenterAdminCatalogSyncErrorDetail', 'Get-AzDevCenterAdminDevBoxDefinition', 'Get-AzDevCenterAdminDevCenter', 'Get-AzDevCenterAdminEnvironmentDefinition', 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail', 'Get-AzDevCenterAdminEnvironmentType', 'Get-AzDevCenterAdminGallery', 'Get-AzDevCenterAdminImage', 'Get-AzDevCenterAdminImageVersion', 'Get-AzDevCenterAdminNetworkConnection', 'Get-AzDevCenterAdminNetworkConnectionHealthDetail', 'Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint', 'Get-AzDevCenterAdminOperationStatus', 'Get-AzDevCenterAdminPool', 'Get-AzDevCenterAdminProject', 'Get-AzDevCenterAdminProjectAllowedEnvironmentType', 'Get-AzDevCenterAdminProjectEnvironmentType', 'Get-AzDevCenterAdminSchedule', 'Get-AzDevCenterAdminSku', 'Get-AzDevCenterAdminUsage', 'Invoke-AzDevCenterAdminExecuteCheckNameAvailability', 'New-AzDevCenterAdminAttachedNetwork', 'New-AzDevCenterAdminCatalog', 'New-AzDevCenterAdminDevBoxDefinition', 'New-AzDevCenterAdminDevCenter', 'New-AzDevCenterAdminEnvironmentType', 'New-AzDevCenterAdminGallery', 'New-AzDevCenterAdminNetworkConnection', 'New-AzDevCenterAdminPool', 'New-AzDevCenterAdminProject', 'New-AzDevCenterAdminProjectEnvironmentType', 'New-AzDevCenterAdminSchedule', 'Remove-AzDevCenterAdminAttachedNetwork', 'Remove-AzDevCenterAdminCatalog', 'Remove-AzDevCenterAdminDevBoxDefinition', 'Remove-AzDevCenterAdminDevCenter', 'Remove-AzDevCenterAdminEnvironmentType', 'Remove-AzDevCenterAdminGallery', 'Remove-AzDevCenterAdminNetworkConnection', 'Remove-AzDevCenterAdminPool', 'Remove-AzDevCenterAdminProject', 'Remove-AzDevCenterAdminProjectEnvironmentType', 'Remove-AzDevCenterAdminSchedule', 'Start-AzDevCenterAdminNetworkConnectionHealthCheck', 'Start-AzDevCenterAdminPoolHealthCheck', 'Sync-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminDevBoxDefinition', 'Update-AzDevCenterAdminDevCenter', 'Update-AzDevCenterAdminEnvironmentType', 'Update-AzDevCenterAdminNetworkConnection', 'Update-AzDevCenterAdminPool', 'Update-AzDevCenterAdminProject', 'Update-AzDevCenterAdminProjectEnvironmentType', 'Update-AzDevCenterAdminSchedule', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/src/DevCenter/DevCenter.AutoRest/README.md b/src/DevCenter/DevCenter.AutoRest/README.md index 8c742261ca06..97735f6981b5 100644 --- a/src/DevCenter/DevCenter.AutoRest/README.md +++ b/src/DevCenter/DevCenter.AutoRest/README.md @@ -31,14 +31,18 @@ For information on how to develop for `Az.DevCenter`, see [how-to.md](how-to.md) ```yaml # pin the swagger version by using the commit id instead of branch name -branch: 4f6418dca8c15697489bbe6f855558bb79ca5bf5 +commit: b5e14f2fcc1e0de74c4dcf1d6e518f9faf743417 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/commonDefinitions.json - - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/devcenter.json - - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/vdi.json + - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/commonDefinitions.json + - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/devcenter.json + - $(repo)/specification/devcenter/resource-manager/Microsoft.DevCenter/preview/2023-10-01-preview/vdi.json +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync"].post.responses @@ -112,15 +116,26 @@ directive: set: default: script: '"Windows_Client"' + - where: + subject: DevCenter + parameter-name: CustomerManagedKeyEncryptionKeyUrl + hide: true + - where: + subject: DevCenter + parameter-name: KeyEncryptionKeyIdentityDelegatedIdentityClientId + hide: true + - where: + subject: DevCenter + parameter-name: KeyEncryptionKeyIdentityType + hide: true + - where: + subject: DevCenter + parameter-name: KeyEncryptionKeyIdentityUserAssignedIdentityResourceId + hide: true # Remove Set per design review - where: verb: Set remove: true -# API not available yet - - where: - verb: Start - subject: PoolHealthCheck - hide: true # Remove extra input object variant - where: verb: Get @@ -174,6 +189,13 @@ directive: verb: New subject: ^AttachedNetwork$|^Catalog$|^DevBoxDefinition$|^Gallery$|^NetworkConnection$|^Pool$|^Project$|^ProjectEnvironmentType$ hide: true + - where: + subject: ^CatalogDevBoxDefinition$|^CatalogDevBoxDefinitionErrorDetail$|^CustomizationTask|^CustomizationTaskErrorDetail$ + hide: true + - where: + verb: Connect + subject: Catalog + hide: true - where: subject: OperationStatuses set: diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-attachednetworks.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-attachednetworks.json new file mode 100644 index 000000000000..18ccf0d2898c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-attachednetworks.json @@ -0,0 +1,95 @@ +{ + "resourceType": "devcenters/attachednetworks", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminAttachedNetwork", + "description": "Gets an attached NetworkConnection.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminattachednetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-ConnectionName ", + "-DevCenterName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets an attached NetworkConnection.", + "parameters": [ + { + "name": "-ConnectionName", + "value": "[Path.attachedNetworkConnectionName]" + }, + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminAttachedNetwork", + "description": "Un-attach a NetworkConnection.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminattachednetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-ConnectionName ", + "-DevCenterName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Un-attach a NetworkConnection.", + "parameters": [ + { + "name": "-ConnectionName", + "value": "[Path.attachedNetworkConnectionName]" + }, + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs-environmentDefinitions.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs-environmentDefinitions.json new file mode 100644 index 000000000000..3c3173411a6c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs-environmentDefinitions.json @@ -0,0 +1,105 @@ +{ + "resourceType": "devcenters/catalogs/environmentDefinitions", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail", + "description": "Gets Environment Definition error details", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail" + }, + "parameterSets": [ + { + "parameters": [ + "-CatalogName ", + "-DevCenterName ", + "-EnvironmentDefinitionName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets Environment Definition error details", + "parameters": [ + { + "name": "-CatalogName", + "value": "[Path.catalogName]" + }, + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-EnvironmentDefinitionName", + "value": "[Path.environmentDefinitionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Get-AzDevCenterAdminEnvironmentDefinition", + "description": "Gets an environment definition from the catalog.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition" + }, + "parameterSets": [ + { + "parameters": [ + "-CatalogName ", + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets an environment definition from the catalog.", + "parameters": [ + { + "name": "-CatalogName", + "value": "[Path.catalogName]" + }, + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.environmentDefinitionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs.json new file mode 100644 index 000000000000..d88612ed239e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-catalogs.json @@ -0,0 +1,181 @@ +{ + "resourceType": "devcenters/catalogs", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminCatalogSyncErrorDetail", + "description": "Gets catalog synchronization error details", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail" + }, + "parameterSets": [ + { + "parameters": [ + "-CatalogName ", + "-DevCenterName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets catalog synchronization error details", + "parameters": [ + { + "name": "-CatalogName", + "value": "[Path.catalogName]" + }, + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Get-AzDevCenterAdminCatalog", + "description": "Gets a catalog", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalog" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a catalog", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.catalogName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminCatalog", + "description": "Deletes a catalog resource.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmincatalog" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a catalog resource.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.catalogName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Sync-AzDevCenterAdminCatalog", + "description": "Syncs templates for a template source.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/sync-azdevcenteradmincatalog" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Syncs templates for a template source.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.catalogName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-devboxdefinitions.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-devboxdefinitions.json new file mode 100644 index 000000000000..f7e3d38f8003 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-devboxdefinitions.json @@ -0,0 +1,95 @@ +{ + "resourceType": "devcenters/devboxdefinitions", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminDevBoxDefinition", + "description": "Gets a Dev Box definition", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevboxdefinition" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a Dev Box definition", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.devBoxDefinitionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminDevBoxDefinition", + "description": "Deletes a Dev Box definition", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevboxdefinition" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a Dev Box definition", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.devBoxDefinitionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-environmentTypes.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-environmentTypes.json new file mode 100644 index 000000000000..a94b8ed92b46 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-environmentTypes.json @@ -0,0 +1,95 @@ +{ + "resourceType": "devcenters/environmentTypes", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminEnvironmentType", + "description": "Gets an environment type.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmenttype" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets an environment type.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.environmentTypeName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminEnvironmentType", + "description": "Deletes an environment type.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminenvironmenttype" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes an environment type.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.environmentTypeName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images-versions.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images-versions.json new file mode 100644 index 000000000000..efcbcec8845f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images-versions.json @@ -0,0 +1,62 @@ +{ + "resourceType": "devcenters/galleries/images/versions", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminImageVersion", + "description": "Gets an image version.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimageversion" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-GalleryName ", + "-ImageName ", + "-ResourceGroupName ", + "[-SubscriptionId ]", + "-VersionName " + ] + } + ] + }, + "examples": [ + { + "description": "Gets an image version.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-GalleryName", + "value": "[Path.galleryName]" + }, + { + "name": "-ImageName", + "value": "[Path.imageName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + }, + { + "name": "-VersionName", + "value": "[Path.versionName]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images.json new file mode 100644 index 000000000000..fe6a97fb4142 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries-images.json @@ -0,0 +1,57 @@ +{ + "resourceType": "devcenters/galleries/images", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminImage", + "description": "Gets a gallery image.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimage" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-GalleryName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a gallery image.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-GalleryName", + "value": "[Path.galleryName]" + }, + { + "name": "-Name", + "value": "[Path.imageName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries.json new file mode 100644 index 000000000000..bc1418abfd18 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters-galleries.json @@ -0,0 +1,95 @@ +{ + "resourceType": "devcenters/galleries", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminGallery", + "description": "Gets a gallery", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmingallery" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a gallery", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.galleryName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminGallery", + "description": "Deletes a gallery resource.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmingallery" + }, + "parameterSets": [ + { + "parameters": [ + "-DevCenterName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a gallery resource.", + "parameters": [ + { + "name": "-DevCenterName", + "value": "[Path.devCenterName]" + }, + { + "name": "-Name", + "value": "[Path.galleryName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters.json new file mode 100644 index 000000000000..eaf7c95d7480 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/devcenters.json @@ -0,0 +1,85 @@ +{ + "resourceType": "devcenters", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminDevCenter", + "description": "Gets a devcenter.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevcenter" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a devcenter.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.devCenterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminDevCenter", + "description": "Deletes a devcenter", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevcenter" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a devcenter", + "parameters": [ + { + "name": "-Name", + "value": "[Path.devCenterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/locations-operationStatuses.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/locations-operationStatuses.json new file mode 100644 index 000000000000..b3831836c025 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/locations-operationStatuses.json @@ -0,0 +1,47 @@ +{ + "resourceType": "locations/operationStatuses", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminOperationStatus", + "description": "Gets the current status of an async operation.", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminoperationstatus" + }, + "parameterSets": [ + { + "parameters": [ + "-Location ", + "-OperationId ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets the current status of an async operation.", + "parameters": [ + { + "name": "-Location", + "value": "[Path.location]" + }, + { + "name": "-OperationId", + "value": "[Path.operationId]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/networkConnections.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/networkConnections.json new file mode 100644 index 000000000000..7b4399271d97 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/networkConnections.json @@ -0,0 +1,123 @@ +{ + "resourceType": "networkConnections", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminNetworkConnection", + "description": "Gets a network connection resource", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnection" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a network connection resource", + "parameters": [ + { + "name": "-Name", + "value": "[Path.networkConnectionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminNetworkConnection", + "description": "Deletes a Network Connections resource", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminnetworkconnection" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a Network Connections resource", + "parameters": [ + { + "name": "-Name", + "value": "[Path.networkConnectionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Start-AzDevCenterAdminNetworkConnectionHealthCheck", + "description": "Triggers a new health check run.\nThe execution and health check result can be tracked via the network Connection health check details", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminnetworkconnectionhealthcheck" + }, + "parameterSets": [ + { + "parameters": [ + "-NetworkConnectionName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details", + "parameters": [ + { + "name": "-NetworkConnectionName", + "value": "[Path.networkConnectionName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-allowedEnvironmentTypes.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-allowedEnvironmentTypes.json new file mode 100644 index 000000000000..5b7c83674c4a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-allowedEnvironmentTypes.json @@ -0,0 +1,52 @@ +{ + "resourceType": "projects/allowedEnvironmentTypes", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminProjectAllowedEnvironmentType", + "description": "Gets an allowed environment type.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectallowedenvironmenttype" + }, + "parameterSets": [ + { + "parameters": [ + "-EnvironmentTypeName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets an allowed environment type.", + "parameters": [ + { + "name": "-EnvironmentTypeName", + "value": "[Path.environmentTypeName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-attachednetworks.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-attachednetworks.json new file mode 100644 index 000000000000..3bac44632d34 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-attachednetworks.json @@ -0,0 +1,52 @@ +{ + "resourceType": "projects/attachednetworks", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminAttachedNetwork", + "description": "Gets an attached NetworkConnection.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminattachednetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-ConnectionName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets an attached NetworkConnection.", + "parameters": [ + { + "name": "-ConnectionName", + "value": "[Path.attachedNetworkConnectionName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-devboxdefinitions.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-devboxdefinitions.json new file mode 100644 index 000000000000..752c741b95ed --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-devboxdefinitions.json @@ -0,0 +1,52 @@ +{ + "resourceType": "projects/devboxdefinitions", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminDevBoxDefinition", + "description": "Gets a Dev Box definition", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevboxdefinition" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a Dev Box definition configured for a project", + "parameters": [ + { + "name": "-Name", + "value": "[Path.devBoxDefinitionName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-environmentTypes.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-environmentTypes.json new file mode 100644 index 000000000000..f18b2fdcbc60 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-environmentTypes.json @@ -0,0 +1,95 @@ +{ + "resourceType": "projects/environmentTypes", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminProjectEnvironmentType", + "description": "Gets a project environment type.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectenvironmenttype" + }, + "parameterSets": [ + { + "parameters": [ + "-EnvironmentTypeName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a project environment type.", + "parameters": [ + { + "name": "-EnvironmentTypeName", + "value": "[Path.environmentTypeName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminProjectEnvironmentType", + "description": "Deletes a project environment type.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminprojectenvironmenttype" + }, + "parameterSets": [ + { + "parameters": [ + "-EnvironmentTypeName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a project environment type.", + "parameters": [ + { + "name": "-EnvironmentTypeName", + "value": "[Path.environmentTypeName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-pools.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-pools.json new file mode 100644 index 000000000000..e0b6802113dd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects-pools.json @@ -0,0 +1,138 @@ +{ + "resourceType": "projects/pools", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminPool", + "description": "Gets a machine pool", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminpool" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a machine pool", + "parameters": [ + { + "name": "-Name", + "value": "[Path.poolName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminPool", + "description": "Deletes a machine pool", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminpool" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a machine pool", + "parameters": [ + { + "name": "-Name", + "value": "[Path.poolName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Start-AzDevCenterAdminPoolHealthCheck", + "description": "Triggers a refresh of the pool status.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck" + }, + "parameterSets": [ + { + "parameters": [ + "-PoolName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Triggers a refresh of the pool status.", + "parameters": [ + { + "name": "-PoolName", + "value": "[Path.poolName]" + }, + { + "name": "-ProjectName", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects.json b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects.json new file mode 100644 index 000000000000..e7003bf012f9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/UX/Microsoft.DevCenter/projects.json @@ -0,0 +1,85 @@ +{ + "resourceType": "projects", + "apiVersion": "2023-10-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter" + }, + "commands": [ + { + "name": "Get-AzDevCenterAdminProject", + "description": "Gets a specific project.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminproject" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets a specific project.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDevCenterAdminProject", + "description": "Deletes a project resource.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminproject" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a project resource.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.projectName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DevCenter/DevCenter.AutoRest/build-module.ps1 b/src/DevCenter/DevCenter.AutoRest/build-module.ps1 index de7e874e5cff..5b610582ae9f 100644 --- a/src/DevCenter/DevCenter.AutoRest/build-module.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/custom/Get-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/Get-AzDevCenterAdminSchedule.ps1 index 0a6f90821679..79b558671ba6 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/Get-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/Get-AzDevCenterAdminSchedule.ps1 @@ -27,7 +27,7 @@ Gets a schedule resource. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule #> function Get-AzDevCenterAdminSchedule { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName = 'GetWithDefault', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'GetWithDefault', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminAttachedNetwork.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminAttachedNetwork.ps1 index aec5b6ab9060..8bdadf1c0844 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminAttachedNetwork.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminAttachedNetwork.ps1 @@ -25,11 +25,11 @@ Creates or updates an attached NetworkConnection. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -66,7 +66,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork #> function New-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminCatalog.ps1 index 75e5e9f5567e..a0d4cdc1accc 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminCatalog.ps1 @@ -25,11 +25,11 @@ Creates or updates a catalog. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -73,7 +73,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog #> function New-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='CreateExpandedAdo', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpandedAdo', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminDevBoxDefinition.ps1 index a767412279ea..c070ba57c7c0 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminDevBoxDefinition.ps1 @@ -25,11 +25,11 @@ Creates or updates a Dev Box definition. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -79,7 +79,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition #> function New-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminGallery.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminGallery.ps1 index 8319a6cc1742..3c9c15dffd68 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminGallery.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminGallery.ps1 @@ -25,11 +25,11 @@ Creates or updates a gallery. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -66,7 +66,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery #> function New-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminNetworkConnection.ps1 index a3803040a1a3..9656ecebf080 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminNetworkConnection.ps1 @@ -25,11 +25,11 @@ Creates or updates a Network Connections resource {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -75,7 +75,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection #> function New-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminPool.ps1 index a004ea0a6bf7..c5d689d720c4 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminPool.ps1 @@ -25,11 +25,11 @@ Creates or updates a machine pool {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -74,7 +74,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminpool #> function New-AzDevCenterAdminPool { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] @@ -111,60 +111,66 @@ function New-AzDevCenterAdminPool { # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] - [Parameter(ParameterSetName = 'CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # The geo-location where the resource lives ${Location}, - [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] - [Parameter(ParameterSetName = 'CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Dev Box definition in parent Project of this Pool ${DevBoxDefinitionName}, - [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] - [Parameter(ParameterSetName = 'CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus] # Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. ${LocalAdministrator}, - [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] - [Parameter(ParameterSetName = 'CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, - # Feature in preview, uncomment when available - # [Parameter(ParameterSetName = 'CreateExpanded')] - # [Parameter(ParameterSetName = 'CreateViaIdentityExpanded')] - # [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - # [System.Int32] - # # The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - # ${StopOnDisconnectGracePeriodMinute}, - - # [Parameter(ParameterSetName = 'CreateExpanded')] - # [Parameter(ParameterSetName = 'CreateViaIdentityExpanded')] - # [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus])] - # [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - # [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus] - # # Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - # ${StopOnDisconnectStatus}, - - - [Parameter(ParameterSetName = 'CreateExpanded')] - [Parameter(ParameterSetName = 'CreateViaIdentityExpanded')] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, - + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProject.ps1 index 8de2c8a7a6c9..6a062bdb3fc7 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProject.ps1 @@ -25,11 +25,11 @@ Creates or updates a project. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -71,7 +71,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminproject #> function New-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -102,43 +102,44 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # The geo-location where the resource lives ${Location}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Description of the project. ${Description}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Resource Id of an associated DevCenter ${DevCenterId}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] # When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. # This will have no effect on existing Dev Boxes when reduced. ${MaxDevBoxesPerUser}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateViaIdentityExpanded')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProjectEnvironmentType.ps1 index 114cc2cac9e5..8319900fab54 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -25,11 +25,11 @@ Creates or updates a project environment type. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -77,7 +77,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminprojectenvironmenttype #> function New-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -116,7 +116,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -165,7 +165,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -173,7 +173,7 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. diff --git a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminSchedule.ps1 index 1bdbfd005ba9..d4961cc6ece7 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/New-AzDevCenterAdminSchedule.ps1 @@ -25,11 +25,11 @@ Creates or updates a Schedule. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -70,7 +70,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminschedule #> function New-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/custom/Update-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/custom/Update-AzDevCenterAdminSchedule.ps1 index 5e7da969d7fe..052d41a69557 100644 --- a/src/DevCenter/DevCenter.AutoRest/custom/Update-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/custom/Update-AzDevCenterAdminSchedule.ps1 @@ -25,11 +25,11 @@ Partially updates a Scheduled. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -67,7 +67,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminschedule #> function Update-AzDevCenterAdminSchedule { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName = 'UpdateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'UpdateExpanded', Mandatory)] @@ -114,7 +114,7 @@ function Update-AzDevCenterAdminSchedule { [Parameter(ParameterSetName = 'UpdateExpanded')] [Parameter(ParameterSetName = 'UpdateViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminCatalog.md deleted file mode 100644 index 50acd947aad3..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminCatalog.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalog -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminCatalog - -## SYNOPSIS -Gets a catalog - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminCatalog -DevCenterName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminCatalog -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminCatalog -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets a catalog - -## EXAMPLES - -### Example 1: List catalogs in a dev center -```powershell -Get-AzDevCenterAdminCatalog -DevCenterName Contoso -ResourceGroupName testRg -``` - -This command lists the catalogs in the dev center "Contoso" under the resource group "testRg". - -### Example 2: Get a catalog -```powershell -Get-AzDevCenterAdminCatalog -DevCenterName Contoso -Name CentralCatalog -ResourceGroupName testRg -``` - -This command gets the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". - -### Example 3: Get a catalog using InputObject -```powershell -$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -$catalog = Get-AzDevCenterAdminCatalog -InputObject $catalog -``` - -This command gets the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenterName -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the Catalog. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: CatalogName - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevCenter.md deleted file mode 100644 index 9092c2279cf8..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevCenter.md +++ /dev/null @@ -1,192 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevcenter -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminDevCenter - -## SYNOPSIS -Gets a devcenter. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminDevCenter [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminDevCenter -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminDevCenter -InputObject [-DefaultProfile ] - [] -``` - -### List1 -``` -Get-AzDevCenterAdminDevCenter -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a devcenter. - -## EXAMPLES - -### Example 1: List dev centers in a subscription -```powershell -Get-AzDevCenterAdminDevCenter -``` - -This command lists the dev centers in the current subscription. - -### Example 2: List dev centers in a resource group -```powershell -Get-AzDevCenterAdminDevCenter -ResourceGroupName testRg -``` - -This command lists the dev centers under the resource group "testRg". - -### Example 3: Get a dev center -```powershell -Get-AzDevCenterAdminDevCenter -ResourceGroupName testRg -Name Contoso -``` - -This command gets the dev center named "Contoso" under the resource group "testRg". - -### Example 4: Get a dev center using InputObject -```powershell -$devCenter = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminDevCenter -InputObject $devCenter -``` - -This command gets the dev center named "Contoso" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: DevCenterName - -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: Get, List1 -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: Get, List, List1 -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminEnvironmentType.md deleted file mode 100644 index f142d2026b53..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminEnvironmentType.md +++ /dev/null @@ -1,201 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmenttype -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminEnvironmentType - -## SYNOPSIS -Gets an environment type. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminEnvironmentType -DevCenterName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminEnvironmentType -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets an environment type. - -## EXAMPLES - -### Example 1: List environment types in a dev center -```powershell -Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Contoso -``` - -This command lists the environment types in the dev center "Contoso" under the resource group "testRg". - -### Example 2: Get a dev center environment type -```powershell - -``` - -```powershell - Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Contoso -Name DevTest - ``` -This command gets the environment type named "DevTest" in the dev center "Contoso" under the resource group "testRg". - -### Example 3: Get a dev center environment type using InputObject -```powershell - -``` - -```powershell -$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminEnvironmentType -InputObject $envType - ``` -This command gets the environment type named "DevTest" in the dev center "Contoso" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenterName -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the environment type. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: EnvironmentTypeName - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminGallery.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminGallery.md deleted file mode 100644 index 362ca8306fc1..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminGallery.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmingallery -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminGallery - -## SYNOPSIS -Gets a gallery - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminGallery -DevCenterName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminGallery -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminGallery -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets a gallery - -## EXAMPLES - -### Example 1: List galleries in a dev center -```powershell -Get-AzDevCenterAdminGallery -ResourceGroupName testRg -DevCenterName Contoso -``` - -This command lists the galleries in the dev center "Contoso" under the resource group "testRg". - -### Example 2: Get a gallery -```powershell -Get-AzDevCenterAdminGallery -ResourceGroupName testRg -DevCenterName Contoso -Name StandardGallery -``` - -This command gets the gallery named "StandardGallery" in the dev center "Contoso" under the resource group "testRg". - -### Example 3: Get a gallery using InputObject -```powershell -$gallery = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "GalleryName" = "StandardGallery"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminGallery -InputObject $gallery -``` - -This command gets the gallery named "StandardGallery" in the dev center "Contoso" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenterName -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the gallery. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: GalleryName - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnection.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnection.md deleted file mode 100644 index d9b06fbe1825..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnection.md +++ /dev/null @@ -1,193 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnection -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminNetworkConnection - -## SYNOPSIS -Gets a network connection resource - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminNetworkConnection [-SubscriptionId ] [-DefaultProfile ] - [] -``` - -### Get -``` -Get-AzDevCenterAdminNetworkConnection -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminNetworkConnection -InputObject [-DefaultProfile ] - [] -``` - -### List1 -``` -Get-AzDevCenterAdminNetworkConnection -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a network connection resource - -## EXAMPLES - -### Example 1: List network connections in a subscription -```powershell -Get-AzDevCenterAdminNetworkConnection -``` - -This command lists network connections in the current subscription. - -### Example 2: List network connections in a resource group -```powershell -Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg -``` - -This command lists the network connections under the resource group "testRg". - -### Example 3: Get a network connection -```powershell -Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg -Name eastusNetwork -``` - -This command gets the network connection named "eastusNetwork" under the resource group "testRg". - -### Example 4: Get a network connection using InputObject -```powershell -$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminNetworkConnection -InputObject $networkConnection -``` - -This command gets the network connection named "eastusNetwork" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -Name of the Network Connection that can be applied to a Pool. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: NetworkConnectionName - -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: Get, List1 -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: Get, List, List1 -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md deleted file mode 100644 index d72dbef47dca..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionhealthdetail -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminNetworkConnectionHealthDetail - -## SYNOPSIS -Gets health check status details. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets health check status details. - -## EXAMPLES - -### Example 1: List the health check details of a network connection -```powershell -Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName eastusNetwork -ResourceGroupName testRg -``` - -This command lists the health check details of the network connection "eastusNetwork" under the resource group "testRg". - -### Example 2: List the health check details of a network connection using InputObject -```powershell -$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject $networkConnection -``` - -This command lists the health check details of the network connection "eastusNetwork" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -NetworkConnectionName -Name of the Network Connection that can be applied to a Pool. - -```yaml -Type: System.String -Parameter Sets: List -Aliases: - -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: List -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: List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminOperationStatus.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminOperationStatus.md deleted file mode 100644 index 6b757eb8f473..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminOperationStatus.md +++ /dev/null @@ -1,166 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminoperationstatus -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminOperationStatus - -## SYNOPSIS -Gets the current status of an async operation. - -## SYNTAX - -### Get (Default) -``` -Get-AzDevCenterAdminOperationStatus -Location -OperationId [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminOperationStatus -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets the current status of an async operation. - -## EXAMPLES - -### Example 1: Get an operation -```powershell -Get-AzDevCenterAdminOperationStatus -Location "eastus" -OperationId "7e9e1394-dad0-4414-8160-21c592e880ef*4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614" -``` - -This command gets the operation. - -### Example 2: Get an operatio using InputObject -```powershell -$operation = @{"Location" = "eastus"; "OperationId" = "7e9e1394-dad0-4414-8160-21c592e880ef*4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminOperationStatus -InputObject $operation -``` - -This command gets the operation. - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Location -The Azure region - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -OperationId -The ID of an ongoing async operation - -```yaml -Type: System.String -Parameter Sets: Get -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: Get -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminPool.md deleted file mode 100644 index bc155b42b292..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminPool.md +++ /dev/null @@ -1,194 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminpool -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminPool - -## SYNOPSIS -Gets a machine pool - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminPool -ProjectName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminPool -InputObject [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a machine pool - -## EXAMPLES - -### Example 1: List pools in a project -```powershell -Get-AzDevCenterAdminPool -ResourceGroupName testRg -ProjectName DevProject -``` - -This command lists the pools in the project "DevProject" under the resource group "testRg". - -### Example 2: Get a pool -```powershell -Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject -``` - -This command gets the pool named "DevPool" in the project "DevProject" under the resource group "testRg". - -### Example 3: Get a pool using InputObject -```powershell -$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminPool -InputObject $pool -``` - -This command gets the pool named "DevPool" in the project "DevProject" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -Name of the pool. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: PoolName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProjectName -The name of the project. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProject.md deleted file mode 100644 index f17eadc2df01..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProject.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminproject -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminProject - -## SYNOPSIS -Gets a specific project. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminProject [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminProject -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminProject -InputObject [-DefaultProfile ] - [] -``` - -### List1 -``` -Get-AzDevCenterAdminProject -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a specific project. - -## EXAMPLES - -### Example 1: List projects in a subscription -```powershell - -``` - -```powershell -Get-AzDevCenterAdminProject - ``` -This command lists the projects in the current subscription. - -### Example 2: List projects in a resource group -```powershell -Get-AzDevCenterAdminProject -ResourceGroupName testRg -``` - -This command lists the projects under the resource group "testRg". - -### Example 3: Get a project -```powershell -Get-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject -``` - -This command gets the project named "DevProject" under the resource group "testRg". - -### Example 4: Get a project using InputObject -```powershell -$project = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminProject -InputObject $project -``` - -This command gets the project named "DevProject" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the project. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: ProjectName - -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: Get, List1 -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: Get, List, List1 -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md deleted file mode 100644 index cf2d81f05b81..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectallowedenvironmenttype -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminProjectAllowedEnvironmentType - -## SYNOPSIS -Gets an allowed environment type. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminProjectAllowedEnvironmentType -EnvironmentTypeName -ProjectName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets an allowed environment type. - -## EXAMPLES - -### Example 1: List project allowed environment types -```powershell -Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -``` - -This command lists the allowed environment types in the project "DevProject" under the resource group "testRg". - -### Example 2: Get a project allowed environment type -```powershell -Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest -``` - -This command gets the allowed environment type named "DevTest" in the project "DevProject" under the resource group "testRg". - -### Example 3: Get a project allowed environment type using InputObject -```powershell -$envType = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject $envType -``` - -This command gets the allowed environment type named "DevTest" in the project "DevProject" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -EnvironmentTypeName -The name of the environment type. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ProjectName -The name of the project. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectEnvironmentType.md deleted file mode 100644 index 9aac84211269..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminProjectEnvironmentType.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectenvironmenttype -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminProjectEnvironmentType - -## SYNOPSIS -Gets a project environment type. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterAdminProjectEnvironmentType -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterAdminProjectEnvironmentType -EnvironmentTypeName -ProjectName - -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminProjectEnvironmentType -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets a project environment type. - -## EXAMPLES - -### Example 1: List project environment types -```powershell -Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -``` - -This command lists the environment types in the project "DevProject" under the resource group "testRg". - -### Example 2: Get a project environment type -```powershell -Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest -``` - -This command gets the environment type named "DevTest" in the project "DevProject" under the resource group "testRg". - -### Example 3: Get a project environment type using InputObject -```powershell -$envType = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminProjectEnvironmentType -InputObject $envType -``` - -This command gets the environment type named "DevTest" in the project "DevProject" under the resource group "testRg". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -EnvironmentTypeName -The name of the environment type. - -```yaml -Type: System.String -Parameter Sets: Get -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ProjectName -The name of the project. - -```yaml -Type: System.String -Parameter Sets: Get, List -Aliases: - -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: Get, List -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: Get, List -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSchedule.md b/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSchedule.md deleted file mode 100644 index a4c60ba96236..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSchedule.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule -schema: 2.0.0 ---- - -# Get-AzDevCenterAdminSchedule - -## SYNOPSIS -Gets a schedule resource. - -## SYNTAX - -### GetWithDefault (Default) -``` -Get-AzDevCenterAdminSchedule -PoolName -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterAdminSchedule -InputObject [-DefaultProfile ] - [] -``` - -## DESCRIPTION -Gets a schedule resource. - -## EXAMPLES - -### Example 1: Get a schedule in a pool -```powershell -Get-AzDevCenterAdminSchedule -PoolName DevPool -ProjectName DevProject -ResourceGroupName testRg -``` - -This command gets a schedule in a pool "DevPool" under the project "DevProject. - -### Example 2: Get a schedule in a pool using InputObject -```powershell -$schedule = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Get-AzDevCenterAdminSchedule -InputObject $schedule -``` - -This command gets a schedule in a pool "DevPool" under the project "DevProject. - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: GetViaIdentity -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -PoolName -Name of the pool. - -```yaml -Type: System.String -Parameter Sets: GetWithDefault -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProjectName -The name of the project. - -```yaml -Type: System.String -Parameter Sets: GetWithDefault -Aliases: - -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: GetWithDefault -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: GetWithDefault -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md b/src/DevCenter/DevCenter.AutoRest/docs/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md deleted file mode 100644 index 437c75febbd2..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md +++ /dev/null @@ -1,189 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteradminexecutechecknameavailability -schema: 2.0.0 ---- - -# Invoke-AzDevCenterAdminExecuteCheckNameAvailability - -## SYNOPSIS -Check the availability of name for resource - -## SYNTAX - -### ExecuteExpanded (Default) -``` -Invoke-AzDevCenterAdminExecuteCheckNameAvailability [-SubscriptionId ] [-Name ] - [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### ExecuteViaIdentityExpanded -``` -Invoke-AzDevCenterAdminExecuteCheckNameAvailability -InputObject [-Name ] - [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Check the availability of name for resource - -## EXAMPLES - -### Example 1: Check name availability -```powershell -Invoke-AzDevCenterAdminExecuteCheckNameAvailability -Name "Contoso" -Type "Microsoft.Devcenter/devcenters" -``` - -This command checks the name availability of "Contoso" with a resource type of "Microsoft.Devcenter/devcenters" - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -Parameter Sets: ExecuteViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the resource for which availability needs to be checked. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -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: ExecuteExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Type -The resource type. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityResponse - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminEnvironmentType.md deleted file mode 100644 index 2eba40be7001..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminEnvironmentType.md +++ /dev/null @@ -1,231 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminenvironmenttype -schema: 2.0.0 ---- - -# New-AzDevCenterAdminEnvironmentType - -## SYNOPSIS -Creates or updates an environment type. - -## SYNTAX - -### CreateExpanded (Default) -``` -New-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### CreateViaIdentityExpanded -``` -New-AzDevCenterAdminEnvironmentType -InputObject [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Creates or updates an environment type. - -## EXAMPLES - -### Example 1: Create an environment type -```powershell -$tags = @{"dev" ="test"} -New-AzDevCenterAdminEnvironmentType -DevCenterName Contoso -Name DevTest -ResourceGroupName testRg -Tag $tags -``` - -This command creates an environment type named "DevTest" in the dev center "Contoso". - -### Example 2: Create an environment type using InputObject -```powershell -$tags = @{"dev" ="test"} -$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -New-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags -``` - -This command creates an environment type named "DevTest" in the dev center "Contoso". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenterName -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: CreateExpanded -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: CreateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -Name -The name of the environment type. - -```yaml -Type: System.String -Parameter Sets: CreateExpanded -Aliases: EnvironmentTypeName - -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: CreateExpanded -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: CreateExpanded -Aliases: - -Required: False -Position: Named -Default value: (Get-AzContext).Subscription.Id -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Tag -Resource tags. - -```yaml -Type: System.Collections.Hashtable -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminEnvironmentType.md deleted file mode 100644 index ca53267beba3..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminEnvironmentType.md +++ /dev/null @@ -1,233 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminenvironmenttype -schema: 2.0.0 ---- - -# Update-AzDevCenterAdminEnvironmentType - -## SYNOPSIS -Partially updates an environment type. - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzDevCenterAdminEnvironmentType -InputObject [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Partially updates an environment type. - -## EXAMPLES - -### Example 1: Update an environment type -```powershell -$tags = @{"dev" = "test" } - -Update-AzDevCenterAdminEnvironmentType -DevCenterName Contoso -Name DevTest -ResourceGroupName testRg -Tag $tags -``` - -This command updates an environment type named "DevTest" in the dev center "Contoso". - -### Example 2: Update an environment type using InputObject -```powershell -$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -$tags = @{"dev" = "test" } - -Update-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags -``` - -This command updates an environment type named "DevTest" in the dev center "Contoso". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenterName -The name of the devcenter. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -Required: True -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.DevCenter.Models.IDevCenterIdentity -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 environment type. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: EnvironmentTypeName - -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 -``` - -### -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 -``` - -### -Tag -Resource tags. - -```yaml -Type: System.Collections.Hashtable -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminPool.md deleted file mode 100644 index 0f3985010039..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminPool.md +++ /dev/null @@ -1,339 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenter -online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminpool -schema: 2.0.0 ---- - -# Update-AzDevCenterAdminPool - -## SYNOPSIS -Partially updates a machine pool - -## SYNTAX - -### UpdateExpanded (Default) -``` -Update-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DevBoxDefinitionName ] [-LocalAdministrator ] - [-NetworkConnectionName ] [-StopOnDisconnectGracePeriodMinute ] - [-StopOnDisconnectStatus ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzDevCenterAdminPool -InputObject [-DevBoxDefinitionName ] - [-LocalAdministrator ] [-NetworkConnectionName ] - [-StopOnDisconnectGracePeriodMinute ] [-StopOnDisconnectStatus ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] -``` - -## DESCRIPTION -Partially updates a machine pool - -## EXAMPLES - -### Example 1: Update a pool -```powershell -Update-AzDevCenterAdminPool -Name DevPool -ProjectName DevProject -ResourceGroupName testRg -DevBoxDefinitionName WebDevBox -LocalAdministrator "Disabled" -NetworkConnectionName Network1westus2 -``` - -This command updates a pool named "DevPool" in the project "DevProject". - -### Example 2: Update a pool using InputObject -```powershell -Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject -Update-AzDevCenterAdminPool -InputObject $poolInput -DevBoxDefinitionName WebDevBox -LocalAdministrator "Disabled" -NetworkConnectionName Network1westus2 - -``` - -This command updates a pool named "DevPool" in the project "DevProject". - -## PARAMETERS - -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevBoxDefinitionName -Name of a Dev Box definition in parent Project of this Pool - -```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.DevCenter.Models.IDevCenterIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -LocalAdministrator -Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -Name of the pool. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: PoolName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NetworkConnectionName -Name of a Network Connection in parent Project of this Pool - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProjectName -The name of the project. - -```yaml -Type: System.String -Parameter Sets: UpdateExpanded -Aliases: - -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 -``` - -### -StopOnDisconnectGracePeriodMinute -The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - -```yaml -Type: System.Int32 -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StopOnDisconnectStatus -Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus -Parameter Sets: (All) -Aliases: - -Required: False -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 -``` - -### -Tag -Resource tags. - -```yaml -Type: System.Collections.Hashtable -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -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.DevCenter.Models.IDevCenterIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool - -## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminCatalogSyncErrorDetail.md b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminCatalogSyncErrorDetail.md new file mode 100644 index 000000000000..14c9c35f4555 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminCatalogSyncErrorDetail.md @@ -0,0 +1,12 @@ +### Example 1: Get the catalog sync error dteail +```powershell +Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` +This command gets the sync error detail of the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". + +### Example 2: Get the catalog sync error detail using InputObject +```powershell +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalogErrorDetail = Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog +``` +This command gets the sync error detail of the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". diff --git a/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinition.md b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinition.md new file mode 100644 index 000000000000..bfe120d62585 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinition.md @@ -0,0 +1,18 @@ +### Example 1: List environment definitions in a catalog +```powershell +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` +This command lists the environment definitions in a catalog + +### Example 2: Get environment definition +```powershell +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -Name envDefName +``` +This command gets the environment definition "envDefName". + +### Example 3: Get environment definition using InputObject +```powershell +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinition = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $environmentDefinition +``` +This command gets the environment definition "envDefName" using InputObject diff --git a/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md new file mode 100644 index 000000000000..5c892dcf296f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/examples/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md @@ -0,0 +1,12 @@ +### Example 1: Get environment definition error details +```powershell +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -EnvironmentDefinitionName envDefName +``` +This command gets the environment definition "envDefName" error details + +### Example 3: Get environment definition error details using InputObject +```powershell +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinitionErrorDetail = Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject $environmentDefinition +``` +This command gets the environment definition "envDefName" error details using InputObject diff --git a/src/DevCenter/DevCenter.AutoRest/examples/Start-AzDevCenterAdminPoolHealthCheck.md b/src/DevCenter/DevCenter.AutoRest/examples/Start-AzDevCenterAdminPoolHealthCheck.md new file mode 100644 index 000000000000..99dac0c2bf97 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/examples/Start-AzDevCenterAdminPoolHealthCheck.md @@ -0,0 +1,12 @@ +### Example 1: Start a pool health check +```powershell +Start-AzDevCenterAdminPoolHealthCheck -ResourceGroupName testRg -PoolName DevPool -ProjectName DevProject +``` +This command starts the health check for the pool named "DevPool" in the project "DevProject". + +### Example 2: Start a pool health check using InputObject +```powershell +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminPoolHealthCheck -InputObject $pool +``` +This command start the health check of the pool named "DevPool" in the project "DevProject". diff --git a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminAttachedNetwork.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminAttachedNetwork.ps1 index 4159f86bfc33..cd0f256bc9a1 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminAttachedNetwork.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminAttachedNetwork.ps1 @@ -31,7 +31,7 @@ Get-AzDevCenterAdminAttachedNetwork -ProjectName DevProject -ResourceGroupName t .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -54,12 +55,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminattachednetwork #> function Get-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -197,6 +199,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalog.ps1 index e16da2a1f6b0..f209580b2794 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalog.ps1 @@ -30,7 +30,7 @@ $catalog = Get-AzDevCenterAdminCatalog -InputObject $catalog .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalog #> function Get-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -182,6 +184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalogSyncErrorDetail.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalogSyncErrorDetail.ps1 new file mode 100644 index 000000000000..14be0ea83787 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminCatalogSyncErrorDetail.ps1 @@ -0,0 +1,226 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets catalog synchronization error details +.Description +Gets catalog synchronization error details +.Example +Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +.Example +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalogErrorDetail = Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail +#> +function Get-AzDevCenterAdminCatalogSyncErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogSyncErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevBoxDefinition.ps1 index 3ee5573fbb29..229affe93bdf 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevBoxDefinition.ps1 @@ -31,7 +31,7 @@ Get-AzDevCenterAdminDevBoxDefinition -ResourceGroupName testRg -ProjectName DevP .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -54,12 +55,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevboxdefinition #> function Get-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -197,6 +199,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevCenter.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevCenter.ps1 index 5316e625bf2d..c8aa19d143c5 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevCenter.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminDevCenter.ps1 @@ -32,7 +32,7 @@ Get-AzDevCenterAdminDevCenter -InputObject $devCenter .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -55,12 +56,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevcenter #> function Get-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -179,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinition.ps1 new file mode 100644 index 000000000000..7b57ae87f61d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinition.ps1 @@ -0,0 +1,240 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an environment definition from the catalog. +.Description +Gets an environment definition from the catalog. +.Example +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +.Example +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -Name envDefName +.Example +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinition = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $environmentDefinition + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition +#> +function Get-AzDevCenterAdminEnvironmentDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('EnvironmentDefinitionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Environment Definition. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.ps1 new file mode 100644 index 000000000000..7d7e58dde410 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.ps1 @@ -0,0 +1,232 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Environment Definition error details +.Description +Gets Environment Definition error details +.Example +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -EnvironmentDefinitionName envDefName +.Example +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinitionErrorDetail = Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject $environmentDefinition + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail +#> +function Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Environment Definition. + ${EnvironmentDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentType.ps1 index 80665c988401..18d2d36707cd 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminEnvironmentType.ps1 @@ -29,7 +29,7 @@ Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Con .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmenttype #> function Get-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -181,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminGallery.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminGallery.ps1 index fa128e145a83..60801b0424c1 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminGallery.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminGallery.ps1 @@ -30,7 +30,7 @@ Get-AzDevCenterAdminGallery -InputObject $gallery .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmingallery #> function Get-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -182,6 +184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImage.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImage.ps1 index c83c7ed66d74..77dadd726974 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImage.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImage.ps1 @@ -32,7 +32,7 @@ Get-AzDevCenterAdminImage -InputObject $image .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -55,12 +56,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimage #> function Get-AzDevCenterAdminImage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -195,6 +197,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImageVersion.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImageVersion.ps1 index 86e45fd5d20b..872ef4a4e954 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImageVersion.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminImageVersion.ps1 @@ -30,7 +30,7 @@ Get-AzDevCenterAdminImageVersion -InputObject $imageVersion .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimageversion #> function Get-AzDevCenterAdminImageVersion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -195,6 +197,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnection.ps1 index 92c589a92a20..3762f674c74f 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnection.ps1 @@ -32,7 +32,7 @@ Get-AzDevCenterAdminNetworkConnection -InputObject $networkConnection .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -55,12 +56,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnection #> function Get-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -179,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionHealthDetail.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionHealthDetail.ps1 index 95d64bd715bb..bd2c232860d9 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionHealthDetail.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionHealthDetail.ps1 @@ -28,7 +28,7 @@ Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject $networkConnectio .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionhealthdetail #> function Get-AzDevCenterAdminNetworkConnectionHealthDetail { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -169,6 +171,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.ps1 index 9cf4e7e08103..0c36fe5a3e2c 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.ps1 @@ -25,12 +25,12 @@ These FQDNs should be allowed for outbound access in order for the Dev Box servi Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint -ResourceGroupName testRg -NetworkConnectionName eastusNetwork .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionoutboundnetworkdependencyendpoint #> function Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -135,6 +135,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminOperationStatus.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminOperationStatus.ps1 index d2c780ce824f..aa62ebbfccaf 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminOperationStatus.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminOperationStatus.ps1 @@ -28,7 +28,7 @@ Get-AzDevCenterAdminOperationStatus -InputObject $operation .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminoperationstatus #> function Get-AzDevCenterAdminOperationStatus { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -168,6 +170,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminPool.ps1 index 5619abb42053..89f586f16526 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminPool.ps1 @@ -30,7 +30,7 @@ Get-AzDevCenterAdminPool -InputObject $pool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminpool #> function Get-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -182,6 +184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProject.ps1 index 3b050940984f..2e363de59417 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProject.ps1 @@ -32,7 +32,7 @@ Get-AzDevCenterAdminProject -InputObject $project .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -55,12 +56,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminproject #> function Get-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -179,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectAllowedEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectAllowedEnvironmentType.ps1 index 7e5176f07ad9..f2748e6a81b9 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectAllowedEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectAllowedEnvironmentType.ps1 @@ -30,7 +30,7 @@ Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject $envType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectallowedenvironmenttype #> function Get-AzDevCenterAdminProjectAllowedEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -181,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectEnvironmentType.ps1 index 2ad613c83e70..4796f648fb92 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -30,7 +30,7 @@ Get-AzDevCenterAdminProjectEnvironmentType -InputObject $envType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectenvironmenttype #> function Get-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -181,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSchedule.ps1 index 6a7a5dc77009..12602dfb61b1 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSchedule.ps1 @@ -28,7 +28,7 @@ Get-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule #> function Get-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='GetWithDefault', PositionalBinding=$false)] param( [Parameter(ParameterSetName='GetWithDefault', Mandatory)] @@ -175,6 +177,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSku.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSku.ps1 index 094c1cc3dc8d..644f59c368a0 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSku.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminSku.ps1 @@ -23,12 +23,12 @@ Lists the Microsoft.DevCenter SKUs available in a subscription Get-AzDevCenterAdminSku .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminsku #> function Get-AzDevCenterAdminSku { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -120,6 +120,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminUsage.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminUsage.ps1 index eab56e85cd8b..23398f3215e9 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminUsage.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Get-AzDevCenterAdminUsage.ps1 @@ -23,12 +23,12 @@ Lists the current usages and limits in this location for the provided subscripti Get-AzDevCenterAdminUsage -Location "westus3" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminusage #> function Get-AzDevCenterAdminUsage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -126,6 +126,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.ps1 index b1b0b490a711..a2c0722595bd 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.ps1 @@ -36,6 +36,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -48,6 +49,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteradminexecutechecknameavailability @@ -165,6 +167,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminAttachedNetwork.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminAttachedNetwork.ps1 index 395b71701b16..77e483238132 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminAttachedNetwork.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminAttachedNetwork.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminAttachedNetwork -InputObject $attachedNetwork -NetworkConnec .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork #> function New-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminCatalog.ps1 index 0647237749ac..b75c19e9b41a 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminCatalog.ps1 @@ -33,7 +33,7 @@ New-AzDevCenterAdminCatalog -InputObject $catalog -GitHubBranch main -GitHubPath .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -44,6 +44,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -56,12 +57,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog #> function New-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='CreateExpandedAdo', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpandedAdo', Mandatory)] @@ -256,6 +258,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevBoxDefinition.ps1 index 4f1c485e7049..69e5f7592aa0 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevBoxDefinition.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinition -Location "w .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition #> function New-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -258,6 +260,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevCenter.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevCenter.ps1 index c2ebdb2ce7f2..34610d85bbb0 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevCenter.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminDevCenter.ps1 @@ -34,7 +34,7 @@ New-AzDevCenterAdminDevCenter -InputObject $devCenter -Location eastus -Identity .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -45,6 +45,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -57,12 +58,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevcenter #> function New-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -99,6 +101,12 @@ param( # The geo-location where the resource lives ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the devcenter. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -217,6 +225,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminEnvironmentType.ps1 index 20bc59317d87..db0a2003dbe0 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminEnvironmentType.ps1 @@ -30,7 +30,7 @@ New-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,12 +54,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminenvironmenttype #> function New-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -97,7 +99,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [System.String] + # The display name of the environment type. + ${DisplayName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -185,6 +193,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminGallery.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminGallery.ps1 index 4681ff7d796e..32a5bc8c7864 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminGallery.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminGallery.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminGallery -InputObject $gallery -GalleryResourceId "/subscript .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery #> function New-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminNetworkConnection.ps1 index 3475e005e57d..f0956bda4f92 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminNetworkConnection.ps1 @@ -34,7 +34,7 @@ New-AzDevCenterAdminNetworkConnection -InputObject $networkConnection -Location .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -45,6 +45,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -57,12 +58,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection #> function New-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -245,6 +247,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminPool.ps1 index 58b51e262235..071c3c8e3655 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminPool.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminPool -InputObject $pool -Location westus2 -DevBoxDefinitionN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminpool #> function New-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -118,6 +120,19 @@ param( # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags]))] @@ -125,6 +140,21 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -220,6 +250,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProject.ps1 index 68341d81dd30..a36d2faf762c 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProject.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminProject -InputObject $project -Location eastus -DevCenterId .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminproject #> function New-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -119,6 +121,12 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -214,6 +222,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProjectEnvironmentType.ps1 index cf18b13cea2c..f2a5c1d1f957 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -50,7 +50,7 @@ New-AzDevCenterAdminProjectEnvironmentType -InputObject $envType -CreatorRoleAss .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -61,6 +61,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -73,12 +74,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminprojectenvironmenttype #> function New-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -130,7 +132,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -159,14 +161,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. @@ -255,6 +257,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminSchedule.ps1 index b2d13ce528cc..d5234b0ea89c 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/New-AzDevCenterAdminSchedule.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminschedule #> function New-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -207,6 +209,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/ProxyCmdletDefinitions.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/ProxyCmdletDefinitions.ps1 index bcb742110649..df587835aad3 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/ProxyCmdletDefinitions.ps1 @@ -31,7 +31,7 @@ Get-AzDevCenterAdminAttachedNetwork -ProjectName DevProject -ResourceGroupName t .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -54,12 +55,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminattachednetwork #> function Get-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -197,6 +199,221 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 +Gets catalog synchronization error details +.Description +Gets catalog synchronization error details +.Example +Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +.Example +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalogErrorDetail = Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail +#> +function Get-AzDevCenterAdminCatalogSyncErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogSyncErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -257,7 +474,7 @@ $catalog = Get-AzDevCenterAdminCatalog -InputObject $catalog .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -268,6 +485,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -280,12 +498,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalog #> function Get-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -409,6 +628,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -470,7 +693,7 @@ Get-AzDevCenterAdminDevBoxDefinition -ResourceGroupName testRg -ProjectName DevP .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -481,6 +704,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -493,12 +717,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevboxdefinition #> function Get-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -636,6 +861,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -698,7 +927,7 @@ Get-AzDevCenterAdminDevCenter -InputObject $devCenter .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -709,6 +938,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -721,12 +951,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevcenter #> function Get-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -840,11 +1071,457 @@ begin { List = 'Az.DevCenter.private\Get-AzDevCenterAdminDevCenter_List'; List1 = 'Az.DevCenter.private\Get-AzDevCenterAdminDevCenter_List1'; } - if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 +Gets Environment Definition error details +.Description +Gets Environment Definition error details +.Example +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -EnvironmentDefinitionName envDefName +.Example +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinitionErrorDetail = Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject $environmentDefinition + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail +#> +function Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Environment Definition. + ${EnvironmentDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 +Gets an environment definition from the catalog. +.Description +Gets an environment definition from the catalog. +.Example +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +.Example +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -Name envDefName +.Example +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinition = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $environmentDefinition + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition +#> +function Get-AzDevCenterAdminEnvironmentDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('EnvironmentDefinitionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Environment Definition. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminEnvironmentDefinition_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -904,7 +1581,7 @@ Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Con .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -915,6 +1592,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -927,12 +1605,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmenttype #> function Get-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1056,6 +1735,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -1116,7 +1799,7 @@ Get-AzDevCenterAdminGallery -InputObject $gallery .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -1127,6 +1810,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1139,12 +1823,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmingallery #> function Get-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1268,6 +1953,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -1328,7 +2017,7 @@ Get-AzDevCenterAdminImageVersion -InputObject $imageVersion .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion .Notes COMPLEX PARAMETER PROPERTIES @@ -1339,6 +2028,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1351,12 +2041,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimageversion #> function Get-AzDevCenterAdminImageVersion { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1493,6 +2184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -1555,7 +2250,7 @@ Get-AzDevCenterAdminImage -InputObject $image .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage .Notes COMPLEX PARAMETER PROPERTIES @@ -1566,6 +2261,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1578,12 +2274,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminimage #> function Get-AzDevCenterAdminImage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1718,6 +2415,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -1776,7 +2477,7 @@ Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject $networkConnectio .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -1787,6 +2488,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1799,12 +2501,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionhealthdetail #> function Get-AzDevCenterAdminNetworkConnectionHealthDetail { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1917,6 +2620,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -1972,12 +2679,12 @@ These FQDNs should be allowed for outbound access in order for the Dev Box servi Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint -ResourceGroupName testRg -NetworkConnectionName eastusNetwork .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionoutboundnetworkdependencyendpoint #> function Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2082,6 +2789,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -2144,7 +2855,7 @@ Get-AzDevCenterAdminNetworkConnection -InputObject $networkConnection .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -2155,6 +2866,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2167,12 +2879,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnection #> function Get-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -2291,6 +3004,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -2349,7 +3066,7 @@ Get-AzDevCenterAdminOperationStatus -InputObject $operation .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -2360,6 +3077,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2372,12 +3090,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminoperationstatus #> function Get-AzDevCenterAdminOperationStatus { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -2489,6 +3208,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -2549,7 +3272,7 @@ Get-AzDevCenterAdminPool -InputObject $pool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -2560,6 +3283,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2572,12 +3296,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminpool #> function Get-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -2701,6 +3426,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -2761,7 +3490,7 @@ Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject $envType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -2772,6 +3501,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2784,12 +3514,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectallowedenvironmenttype #> function Get-AzDevCenterAdminProjectAllowedEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -2912,6 +3643,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -2972,7 +3707,7 @@ Get-AzDevCenterAdminProjectEnvironmentType -InputObject $envType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -2983,6 +3718,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2995,12 +3731,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectenvironmenttype #> function Get-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -3123,6 +3860,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -3185,7 +3926,7 @@ Get-AzDevCenterAdminProject -InputObject $project .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -3196,6 +3937,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -3208,12 +3950,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminproject #> function Get-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -3332,6 +4075,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -3385,12 +4132,12 @@ Lists the Microsoft.DevCenter SKUs available in a subscription Get-AzDevCenterAdminSku .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminsku #> function Get-AzDevCenterAdminSku { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -3482,6 +4229,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -3535,12 +4286,12 @@ Lists the current usages and limits in this location for the provided subscripti Get-AzDevCenterAdminUsage -Location "westus3" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminusage #> function Get-AzDevCenterAdminUsage { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3638,6 +4389,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -3704,6 +4459,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -3716,6 +4472,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteradminexecutechecknameavailability @@ -3833,6 +4590,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -3897,7 +4658,7 @@ New-AzDevCenterAdminDevCenter -InputObject $devCenter -Location eastus -Identity .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -3908,6 +4669,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -3920,12 +4682,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevcenter #> function New-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3962,6 +4725,12 @@ param( # The geo-location where the resource lives ${Location}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the devcenter. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -4080,6 +4849,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -4140,7 +4913,7 @@ New-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -4151,6 +4924,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -4163,12 +4937,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminenvironmenttype #> function New-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -4207,7 +4982,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [System.String] + # The display name of the environment type. + ${DisplayName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4295,6 +5076,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -4366,6 +5151,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -4378,6 +5164,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminattachednetwork @@ -4521,6 +5308,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -4590,6 +5381,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -4602,6 +5394,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmincatalog @@ -4745,6 +5538,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -4816,6 +5613,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -4828,6 +5626,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevboxdefinition @@ -4971,6 +5770,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -5041,6 +5844,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -5053,6 +5857,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevcenter @@ -5190,6 +5995,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -5259,6 +6068,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -5271,6 +6081,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminenvironmenttype @@ -5402,6 +6213,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -5471,6 +6286,237 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmingallery +#> +function Remove-AzDevCenterAdminGallery { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('GalleryName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the gallery. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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.DevCenter.private\Remove-AzDevCenterAdminGallery_Delete'; + DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminGallery_DeleteViaIdentity'; + } + 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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 a Network Connections resource +.Description +Deletes a Network Connections resource +.Example +Remove-AzDevCenterAdminNetworkConnection -Name networkEastUs -ResourceGroupName testRg +.Example +$networkConnection = Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg -Name networkEastUs +Remove-AzDevCenterAdminNetworkConnection -InputObject $networkConnection + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -5483,25 +6529,20 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmingallery +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminnetworkconnection #> -function Remove-AzDevCenterAdminGallery { +function Remove-AzDevCenterAdminNetworkConnection { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('NetworkConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] - # The name of the devcenter. - ${DevCenterName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('GalleryName')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the gallery. + # Name of the Network Connection that can be applied to a Pool. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -5618,14 +6659,18 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminGallery_Delete'; - DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminGallery_DeleteViaIdentity'; + Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminNetworkConnection_Delete'; + DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminNetworkConnection_DeleteViaIdentity'; } 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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -5672,14 +6717,14 @@ end { <# .Synopsis -Deletes a Network Connections resource +Deletes a machine pool .Description -Deletes a Network Connections resource +Deletes a machine pool .Example -Remove-AzDevCenterAdminNetworkConnection -Name networkEastUs -ResourceGroupName testRg +Remove-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject .Example -$networkConnection = Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg -Name networkEastUs -Remove-AzDevCenterAdminNetworkConnection -InputObject $networkConnection +$pool = Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject +Remove-AzDevCenterAdminPool -InputObject $pool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity @@ -5695,6 +6740,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -5707,21 +6753,28 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminnetworkconnection +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminpool #> -function Remove-AzDevCenterAdminNetworkConnection { +function Remove-AzDevCenterAdminPool { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('NetworkConnectionName')] + [Alias('PoolName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] - # Name of the Network Connection that can be applied to a Pool. + # Name of the pool. ${Name}, + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the project. + ${ProjectName}, + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] @@ -5836,14 +6889,18 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminNetworkConnection_Delete'; - DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminNetworkConnection_DeleteViaIdentity'; + Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminPool_Delete'; + DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminPool_DeleteViaIdentity'; } 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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -5890,14 +6947,14 @@ end { <# .Synopsis -Deletes a machine pool +Deletes a project environment type. .Description -Deletes a machine pool +Deletes a project environment type. .Example -Remove-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject +Remove-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest .Example -$pool = Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject -Remove-AzDevCenterAdminPool -InputObject $pool +$projEnvType = Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest +Remove-AzDevCenterAdminProjectEnvironmentType -InputObject $projEnvType .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity @@ -5913,6 +6970,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -5925,20 +6983,20 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminpool +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminprojectenvironmenttype #> -function Remove-AzDevCenterAdminPool { +function Remove-AzDevCenterAdminProjectEnvironmentType { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('PoolName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] - # Name of the pool. - ${Name}, + # The name of the environment type. + ${EnvironmentTypeName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] @@ -5976,12 +7034,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -6002,12 +7054,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -6060,14 +7106,18 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminPool_Delete'; - DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminPool_DeleteViaIdentity'; + Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminProjectEnvironmentType_Delete'; + DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity'; } 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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -6114,14 +7164,14 @@ end { <# .Synopsis -Deletes a project environment type. +Deletes a project resource. .Description -Deletes a project environment type. +Deletes a project resource. .Example -Remove-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest +Remove-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject .Example -$projEnvType = Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest -Remove-AzDevCenterAdminProjectEnvironmentType -InputObject $projEnvType +$project = Get-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject +Remove-AzDevCenterAdminProject -InputObject $project .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity @@ -6137,6 +7187,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -6149,25 +7200,21 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminprojectenvironmenttype +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminproject #> -function Remove-AzDevCenterAdminProjectEnvironmentType { +function Remove-AzDevCenterAdminProject { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the environment type. - ${EnvironmentTypeName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ProjectName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] # The name of the project. - ${ProjectName}, + ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] @@ -6199,6 +7246,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -6219,6 +7272,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -6271,14 +7330,18 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminProjectEnvironmentType_Delete'; - DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity'; + Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminProject_Delete'; + DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminProject_DeleteViaIdentity'; } 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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -6325,14 +7388,16 @@ end { <# .Synopsis -Deletes a project resource. +Triggers a new health check run. +The execution and health check result can be tracked via the network Connection health check details .Description -Deletes a project resource. +Triggers a new health check run. +The execution and health check result can be tracked via the network Connection health check details .Example -Remove-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject +Start-AzDevCenterAdminNetworkConnectionHealthCheck -NetworkConnectionName eastusNetwork -ResourceGroupName testRg .Example -$project = Get-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject -Remove-AzDevCenterAdminProject -InputObject $project +$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminNetworkConnectionHealthCheck -InputObject $networkConnection .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity @@ -6348,6 +7413,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -6360,36 +7426,36 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminproject +https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminnetworkconnectionhealthcheck #> -function Remove-AzDevCenterAdminProject { +function Start-AzDevCenterAdminNetworkConnectionHealthCheck { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Run', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('ProjectName')] + [Parameter(ParameterSetName='Run', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] - # The name of the project. - ${Name}, + # Name of the Network Connection that can be applied to a Pool. + ${NetworkConnectionName}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Run', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Run')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RunViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] # Identity Parameter @@ -6489,14 +7555,18 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenter.private\Remove-AzDevCenterAdminProject_Delete'; - DeleteViaIdentity = 'Az.DevCenter.private\Remove-AzDevCenterAdminProject_DeleteViaIdentity'; + Run = 'Az.DevCenter.private\Start-AzDevCenterAdminNetworkConnectionHealthCheck_Run'; + RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Run') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -6543,16 +7613,14 @@ end { <# .Synopsis -Triggers a new health check run. -The execution and health check result can be tracked via the network Connection health check details +Triggers a refresh of the pool status. .Description -Triggers a new health check run. -The execution and health check result can be tracked via the network Connection health check details +Triggers a refresh of the pool status. .Example -Start-AzDevCenterAdminNetworkConnectionHealthCheck -NetworkConnectionName eastusNetwork -ResourceGroupName testRg +Start-AzDevCenterAdminPoolHealthCheck -ResourceGroupName testRg -PoolName DevPool -ProjectName DevProject .Example -$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} -Start-AzDevCenterAdminNetworkConnectionHealthCheck -InputObject $networkConnection +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminPoolHealthCheck -InputObject $pool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity @@ -6568,6 +7636,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -6580,19 +7649,26 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminnetworkconnectionhealthcheck +https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck #> -function Start-AzDevCenterAdminNetworkConnectionHealthCheck { +function Start-AzDevCenterAdminPoolHealthCheck { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Run', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Run', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] [System.String] - # Name of the Network Connection that can be applied to a Pool. - ${NetworkConnectionName}, + # Name of the pool. + ${PoolName}, + + [Parameter(ParameterSetName='Run', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the project. + ${ProjectName}, [Parameter(ParameterSetName='Run', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] @@ -6708,14 +7784,18 @@ begin { } $mapping = @{ - Run = 'Az.DevCenter.private\Start-AzDevCenterAdminNetworkConnectionHealthCheck_Run'; - RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity'; + Run = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_Run'; + RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity'; } if (('Run') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -6785,6 +7865,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -6797,6 +7878,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/sync-azdevcenteradmincatalog @@ -6940,6 +8022,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -6999,7 +8085,7 @@ Update-AzDevCenterAdminCatalog -InputObject $catalogInput -GitHubPath "testpath" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -7010,6 +8096,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -7022,12 +8109,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmincatalog #> function Update-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7112,9 +8200,16 @@ param( # Git URI. ${GitHubUri}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType] + # Indicates the type of sync that is configured for the catalog. + ${SyncType}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -7214,6 +8309,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -7280,7 +8379,7 @@ Update-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinitionId -Hibern .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -7291,6 +8390,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -7303,12 +8403,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmindevboxdefinition #> function Update-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7404,7 +8505,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -7504,6 +8605,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -7563,7 +8668,7 @@ Update-AzDevCenterAdminDevCenter -InputObject $devCenterInput -IdentityType "Sys .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -7574,6 +8679,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -7586,12 +8692,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmindevcenter #> function Update-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7622,6 +8729,12 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the devcenter. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -7640,7 +8753,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -7740,6 +8853,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -7802,7 +8919,7 @@ Update-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -7813,6 +8930,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -7825,12 +8943,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminenvironmenttype #> function Update-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7869,7 +8988,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [System.String] + # The display name of the environment type. + ${DisplayName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -7957,6 +9082,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -8020,7 +9149,7 @@ Update-AzDevCenterAdminNetworkConnection -InputObject $hybridNetworkConnectionIn .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -8031,6 +9160,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -8043,12 +9173,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminnetworkconnection #> function Update-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8112,7 +9243,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -8212,6 +9343,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -8271,7 +9406,7 @@ Update-AzDevCenterAdminPool -InputObject $poolInput -DevBoxDefinitionName WebDev .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -8282,6 +9417,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -8294,12 +9430,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminpool #> function Update-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8342,6 +9479,12 @@ param( # Name of a Dev Box definition in parent Project of this Pool ${DevBoxDefinitionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -8349,12 +9492,27 @@ param( # Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. ${LocalAdministrator}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -8370,11 +9528,18 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -8473,6 +9638,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -8552,7 +9721,7 @@ Update-AzDevCenterAdminProjectEnvironmentType -InputObject $projEnvTypeInput -Cr .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -8563,6 +9732,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -8575,12 +9745,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminprojectenvironmenttype #> function Update-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8618,7 +9789,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -8655,14 +9826,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. @@ -8751,6 +9922,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -8810,7 +9985,7 @@ Update-AzDevCenterAdminProject -InputObject $projectInput -MaxDevBoxesPerUser 5 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -8821,6 +9996,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -8833,12 +10009,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminproject #> function Update-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8875,6 +10052,12 @@ param( # Description of the project. ${Description}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -8884,7 +10067,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -8984,6 +10167,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -9042,7 +10229,7 @@ Get-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -9053,6 +10240,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -9065,12 +10253,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule #> function Get-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='GetWithDefault', PositionalBinding=$false)] param( [Parameter(ParameterSetName='GetWithDefault', Mandatory)] @@ -9189,6 +10378,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -9247,7 +10440,7 @@ New-AzDevCenterAdminAttachedNetwork -InputObject $attachedNetwork -NetworkConnec .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -9258,6 +10451,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -9270,12 +10464,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork #> function New-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -9413,6 +10608,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -9476,7 +10675,7 @@ New-AzDevCenterAdminCatalog -InputObject $catalog -GitHubBranch main -GitHubPath .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -9487,6 +10686,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -9499,12 +10699,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog #> function New-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='CreateExpandedAdo', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpandedAdo', Mandatory)] @@ -9699,6 +10900,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -9757,7 +10962,7 @@ New-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinition -Location "w .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -9768,6 +10973,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -9780,12 +10986,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition #> function New-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -9987,6 +11194,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -10045,7 +11256,7 @@ New-AzDevCenterAdminGallery -InputObject $gallery -GalleryResourceId "/subscript .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -10056,6 +11267,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -10068,12 +11280,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery #> function New-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -10211,6 +11424,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -10275,7 +11492,7 @@ New-AzDevCenterAdminNetworkConnection -InputObject $networkConnection -Location .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -10286,6 +11503,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -10298,12 +11516,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection #> function New-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -10486,6 +11705,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -10544,7 +11767,7 @@ New-AzDevCenterAdminPool -InputObject $pool -Location westus2 -DevBoxDefinitionN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -10555,6 +11778,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -10567,12 +11791,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminpool #> function New-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -10634,6 +11859,19 @@ param( # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags]))] @@ -10641,6 +11879,21 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -10736,6 +11989,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -10794,7 +12051,7 @@ New-AzDevCenterAdminProject -InputObject $project -Location eastus -DevCenterId .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -10805,6 +12062,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -10817,12 +12075,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminproject #> function New-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -10885,6 +12144,12 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -10980,6 +12245,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -11060,7 +12329,7 @@ New-AzDevCenterAdminProjectEnvironmentType -InputObject $envType -CreatorRoleAss .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -11071,6 +12340,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -11083,12 +12353,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminprojectenvironmenttype #> function New-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -11140,7 +12411,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -11169,14 +12440,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. @@ -11265,6 +12536,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -11323,7 +12598,7 @@ New-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -11334,6 +12609,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -11346,12 +12622,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminschedule #> function New-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -11502,6 +12779,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -11571,6 +12852,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -11583,6 +12865,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminschedule @@ -11725,6 +13008,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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) @@ -11784,7 +13071,7 @@ New-AzDevCenterAdminSchedule -InputObject $scheduleInput -State "Disabled" -Time .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -11795,6 +13082,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -11807,12 +13095,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminschedule #> function Update-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -11857,7 +13146,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -11977,6 +13266,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminAttachedNetwork.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminAttachedNetwork.ps1 index 9a17b40f0f8e..e6790f922ef5 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminAttachedNetwork.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminAttachedNetwork.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,6 +54,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminattachednetwork @@ -196,6 +198,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminCatalog.ps1 index 03d5eaa3a5e3..ed8c20578cb1 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminCatalog.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmincatalog @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevBoxDefinition.ps1 index 61de1eeb863c..0e0839a29af0 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevBoxDefinition.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,6 +54,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevboxdefinition @@ -196,6 +198,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevCenter.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevCenter.ps1 index 1f183d9e3697..f8db313f9b51 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevCenter.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminDevCenter.ps1 @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,6 +53,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmindevcenter @@ -189,6 +191,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminEnvironmentType.ps1 index b11545e3a1e5..12c5945cb29d 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminEnvironmentType.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminenvironmenttype @@ -182,6 +184,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminGallery.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminGallery.ps1 index 11532f1ff553..344e05d3e65d 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminGallery.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminGallery.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradmingallery @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminNetworkConnection.ps1 index 51a825445166..76ac707d07b7 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminNetworkConnection.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminnetworkconnection @@ -188,6 +190,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminPool.ps1 index 54eda1f2b752..67c0a39cab16 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminPool.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminpool @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProject.ps1 index c0009cdea661..e3b89eb235a2 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProject.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminproject @@ -188,6 +190,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProjectEnvironmentType.ps1 index c1b5f06ac7a3..c5f94e0df957 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminprojectenvironmenttype @@ -181,6 +183,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminSchedule.ps1 index 0cf0f39e9cd5..ae0affd139bf 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Remove-AzDevCenterAdminSchedule.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminschedule @@ -193,6 +195,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminNetworkConnectionHealthCheck.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminNetworkConnectionHealthCheck.ps1 index 4137f48975c1..186e43338bd5 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminNetworkConnectionHealthCheck.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminNetworkConnectionHealthCheck.ps1 @@ -41,6 +41,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -53,6 +54,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminnetworkconnectionhealthcheck @@ -189,6 +191,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminPoolHealthCheck.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminPoolHealthCheck.ps1 new file mode 100644 index 000000000000..483c3ce2cbc5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/exports/Start-AzDevCenterAdminPoolHealthCheck.ps1 @@ -0,0 +1,244 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Triggers a refresh of the pool status. +.Description +Triggers a refresh of the pool status. +.Example +Start-AzDevCenterAdminPoolHealthCheck -ResourceGroupName testRg -PoolName DevPool -ProjectName DevProject +.Example +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminPoolHealthCheck -InputObject $pool + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck +#> +function Start-AzDevCenterAdminPoolHealthCheck { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Run', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Run', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # Name of the pool. + ${PoolName}, + + [Parameter(ParameterSetName='Run', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the project. + ${ProjectName}, + + [Parameter(ParameterSetName='Run', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Run')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='RunViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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 = @{ + Run = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_Run'; + RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity'; + } + if (('Run') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Sync-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Sync-AzDevCenterAdminCatalog.ps1 index 54e8dbf3750d..e044bb12bc3e 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Sync-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Sync-AzDevCenterAdminCatalog.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/sync-azdevcenteradmincatalog @@ -194,6 +196,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminCatalog.ps1 index 6b3861860be6..0eb03231372d 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminCatalog.ps1 @@ -29,7 +29,7 @@ Update-AzDevCenterAdminCatalog -InputObject $catalogInput -GitHubPath "testpath" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmincatalog #> function Update-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -143,8 +145,15 @@ param( ${GitHubUri}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType] + # Indicates the type of sync that is configured for the catalog. + ${SyncType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -244,6 +253,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevBoxDefinition.ps1 index aae556beb2e7..0a0974987235 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevBoxDefinition.ps1 @@ -36,7 +36,7 @@ Update-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinitionId -Hibern .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -47,6 +47,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -59,12 +60,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmindevboxdefinition #> function Update-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -160,7 +162,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -260,6 +262,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevCenter.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevCenter.ps1 index dfbad2a21d39..5ecf64105d2d 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevCenter.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminDevCenter.ps1 @@ -29,7 +29,7 @@ Update-AzDevCenterAdminDevCenter -InputObject $devCenterInput -IdentityType "Sys .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradmindevcenter #> function Update-AzDevCenterAdminDevCenter { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -88,6 +90,12 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the devcenter. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -106,7 +114,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -206,6 +214,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminEnvironmentType.ps1 index e880e174b47e..b9f98c47c4bf 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminEnvironmentType.ps1 @@ -32,7 +32,7 @@ Update-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -43,6 +43,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -55,12 +56,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminenvironmenttype #> function Update-AzDevCenterAdminEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -99,7 +101,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [System.String] + # The display name of the environment type. + ${DisplayName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -187,6 +195,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminNetworkConnection.ps1 index c6ae6dfd913f..84bf364e2a1e 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminNetworkConnection.ps1 @@ -33,7 +33,7 @@ Update-AzDevCenterAdminNetworkConnection -InputObject $hybridNetworkConnectionIn .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -44,6 +44,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -56,12 +57,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminnetworkconnection #> function Update-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -125,7 +127,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -225,6 +227,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminPool.ps1 index 0d89ccea517a..c2dcc1b8694d 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminPool.ps1 @@ -29,7 +29,7 @@ Update-AzDevCenterAdminPool -InputObject $poolInput -DevBoxDefinitionName WebDev .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminpool #> function Update-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -100,6 +102,12 @@ param( # Name of a Dev Box definition in parent Project of this Pool ${DevBoxDefinitionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -107,12 +115,27 @@ param( # Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. ${LocalAdministrator}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -128,11 +151,18 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -231,6 +261,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProject.ps1 index 0bbd1da0b750..c020345ea3da 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProject.ps1 @@ -29,7 +29,7 @@ Update-AzDevCenterAdminProject -InputObject $projectInput -MaxDevBoxesPerUser 5 .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminproject #> function Update-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -94,6 +96,12 @@ param( # Description of the project. ${Description}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -103,7 +111,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -203,6 +211,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProjectEnvironmentType.ps1 index 5d10caa02010..2e9f738dfba1 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -49,7 +49,7 @@ Update-AzDevCenterAdminProjectEnvironmentType -InputObject $projEnvTypeInput -Cr .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -60,6 +60,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -72,12 +73,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminprojectenvironmenttype #> function Update-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -115,7 +117,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -152,14 +154,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. @@ -248,6 +250,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminSchedule.ps1 index 4a3b246696c2..8570895ebc90 100644 --- a/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/exports/Update-AzDevCenterAdminSchedule.ps1 @@ -29,7 +29,7 @@ New-AzDevCenterAdminSchedule -InputObject $scheduleInput -State "Disabled" -Time .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminschedule #> function Update-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -102,7 +104,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -222,6 +224,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generate-help.ps1 b/src/DevCenter/DevCenter.AutoRest/generate-help.ps1 index b33bf2b66d03..ffcd09c97efd 100644 --- a/src/DevCenter/DevCenter.AutoRest/generate-help.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/generate-portal-ux.ps1 b/src/DevCenter/DevCenter.AutoRest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..a28919795f9d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/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.DevCenter' +$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.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/api/DevCenter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/DevCenter.cs index ff96f0490be6..90f7c61c1253 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/DevCenter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/DevCenter.cs @@ -28,9 +28,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -76,9 +76,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -136,7 +136,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -250,13 +250,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -284,7 +284,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task AttachedNetworksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -294,7 +294,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName); + await eventListener.AssertMinimumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,63); + await eventListener.AssertRegEx(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -314,9 +320,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksDelete(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksDelete(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -358,9 +364,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -415,7 +421,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -542,7 +548,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -579,7 +585,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName); + await eventListener.AssertMinimumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,63); + await eventListener.AssertRegEx(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -596,9 +608,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, string attachedNetworkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -639,9 +651,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenterViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenterViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -695,7 +707,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksGetByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -713,13 +725,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -756,7 +768,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName); + await eventListener.AssertMinimumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,63); + await eventListener.AssertRegEx(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -773,9 +791,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksGetByProject(string subscriptionId, string resourceGroupName, string projectName, string attachedNetworkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksGetByProject(string subscriptionId, string resourceGroupName, string projectName, string attachedNetworkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -816,9 +834,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksGetByProjectViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksGetByProjectViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -872,7 +890,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksGetByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksGetByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -890,13 +908,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -933,7 +951,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName); + await eventListener.AssertMinimumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,63); + await eventListener.AssertRegEx(nameof(attachedNetworkConnectionName),attachedNetworkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -950,9 +974,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -995,9 +1019,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1051,7 +1075,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1069,13 +1093,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1112,6 +1136,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); } } @@ -1128,9 +1155,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1173,9 +1200,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AttachedNetworksListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AttachedNetworksListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1229,7 +1256,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AttachedNetworksListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AttachedNetworksListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1247,13 +1274,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1290,15 +1317,18 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Creates or updates a catalog. + /// Gets a Dev Box definition from the catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. - /// Represents a catalog. + /// The name of the Dev Box definition. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1307,9 +1337,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1323,6 +1353,8 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(devCenterName) + "/catalogs/" + global::System.Uri.EscapeDataString(catalogName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1331,22 +1363,67 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogDevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a catalog. + /// Gets Catalog Devbox Definition error details + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGetErrorDetails(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "/getErrorDetails" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CatalogDevBoxDefinitionsGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets Catalog Devbox Definition error details /// - /// Represents a catalog. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1355,18 +1432,18 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGetErrorDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/devboxdefinitions/(?[^/]+)/getErrorDetails$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}/getErrorDetails'"); } // replace URI parameters with values from identity @@ -1374,6 +1451,7 @@ public partial class DevCenter var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; var catalogName = _match.Groups["catalogName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -1384,6 +1462,9 @@ public partial class DevCenter + devCenterName + "/catalogs/" + catalogName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "/getErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1392,20 +1473,18 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogDevBoxDefinitionsGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1415,7 +1494,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGetErrorDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1426,102 +1505,6 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -1529,13 +1512,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogResourceValidationErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1551,19 +1534,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. - /// Represents a catalog. + /// The name of the Dev Box definition. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGetErrorDetails_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1573,63 +1556,23 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(catalogName),catalogName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Deletes a catalog resource. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// The name of the Catalog. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task CatalogsDelete(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/devcenters/" - + global::System.Uri.EscapeDataString(devCenterName) - + "/catalogs/" - + global::System.Uri.EscapeDataString(catalogName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.CatalogsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Deletes a catalog resource. + /// Gets a Dev Box definition from the catalog /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -1637,18 +1580,18 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}'"); } // replace URI parameters with values from identity @@ -1656,6 +1599,7 @@ public partial class DevCenter var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; var catalogName = _match.Groups["catalogName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -1666,6 +1610,8 @@ public partial class DevCenter + devCenterName + "/catalogs/" + catalogName + + "/devboxdefinitions/" + + devBoxDefinitionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1674,19 +1620,18 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.CatalogDevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -1694,7 +1639,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1705,123 +1650,20 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1837,18 +1679,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. + /// The name of the Dev Box definition. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1858,15 +1701,26 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets a catalog + /// List Dev Box definitions in the catalog. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1875,9 +1729,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsGet(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsListByCatalog(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1891,8 +1745,11 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(devCenterName) + "/catalogs/" + global::System.Uri.EscapeDataString(catalogName) + + "/devboxdefinitions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1904,12 +1761,13 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogDevBoxDefinitionsListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a catalog + /// List Dev Box definitions in the catalog. /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1918,18 +1776,18 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsListByCatalogViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/devboxdefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions'"); } // replace URI parameters with values from identity @@ -1947,8 +1805,11 @@ public partial class DevCenter + devCenterName + "/catalogs/" + catalogName + + "/devboxdefinitions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -1960,11 +1821,13 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogDevBoxDefinitionsListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1974,7 +1837,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsListByCatalog_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1992,13 +1855,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2014,18 +1877,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation events - /// back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogDevBoxDefinitionsListByCatalog_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2035,16 +1899,21 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists catalogs for a devcenter. + /// Connects a catalog to enable syncing. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The maximum number of resources to return from the operation. Example: '$top=10'. - /// a delegate that is called when the remote service returns 200 (OK). + /// The name of the Catalog. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2052,9 +1921,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsConnect(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2066,30 +1935,28 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) - + "/catalogs" + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/connect" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsConnect_Call(request,onDefault,eventListener,sender); } } - /// Lists catalogs for a devcenter. + /// Connects a catalog to enable syncing. /// - /// The maximum number of resources to return from the operation. Example: '$top=10'. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2097,24 +1964,25 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsConnectViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/connect$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -2123,29 +1991,28 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName - + "/catalogs" + + "/catalogs/" + + catalogName + + "/connect" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsConnect_Call(request,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2153,7 +2020,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsConnect_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2164,20 +2031,111 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2193,18 +2151,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the Catalog. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsListByDevCenter_Validate(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsConnect_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2214,14 +2172,22 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Syncs templates for a template source. + /// Creates or updates a catalog. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. + /// Represents a catalog. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2230,9 +2196,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsSync(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2246,7 +2212,6 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(devCenterName) + "/catalogs/" + global::System.Uri.EscapeDataString(catalogName) - + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2255,17 +2220,22 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsSync_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Syncs templates for a template source. + /// Creates or updates a catalog. /// + /// Represents a catalog. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2274,18 +2244,18 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsSyncViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/sync$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); } // replace URI parameters with values from identity @@ -2303,7 +2273,6 @@ public partial class DevCenter + devCenterName + "/catalogs/" + catalogName - + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2312,16 +2281,20 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsSync_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2331,7 +2304,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsSync_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2345,7 +2318,6 @@ public partial class DevCenter // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -2429,7 +2401,7 @@ public partial class DevCenter } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -2446,13 +2418,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2468,18 +2440,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. + /// Represents a catalog. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsSync_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2489,17 +2462,25 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Partially updates a catalog. + /// Deletes a catalog resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. - /// Updatable catalog properties. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2507,9 +2488,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsDelete(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2531,23 +2512,19 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Partially updates a catalog. + /// Deletes a catalog resource. /// - /// Updatable catalog properties. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2555,9 +2532,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CatalogsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2592,22 +2569,19 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CatalogsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2615,7 +2589,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2629,6 +2603,7 @@ public partial class DevCenter // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -2712,7 +2687,7 @@ public partial class DevCenter } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -2729,13 +2704,19 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2751,19 +2732,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. /// The name of the Catalog. - /// Updatable catalog properties. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CatalogsUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2773,15 +2753,21 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(catalogName),catalogName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Check the availability of name for resource + /// Gets a catalog /// The ID of the target subscription. - /// The required parameters for checking if resource name is available. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2790,9 +2776,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsGet(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2800,7 +2786,59 @@ public partial class DevCenter var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DevCenter/checkNameAvailability" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CatalogsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets catalog synchronization error details + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CatalogsGetSyncErrorDetails(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/getSyncErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2813,18 +2851,13 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CheckNameAvailabilityExecute_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsGetSyncErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Check the availability of name for resource + /// Gets catalog synchronization error details /// - /// The required parameters for checking if resource name is available. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2833,27 +2866,36 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecuteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsGetSyncErrorDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DevCenter/checkNameAvailability$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/getSyncErrorDetails$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.DevCenter/checkNameAvailability" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/catalogs/" + + catalogName + + "/getSyncErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2866,16 +2908,12 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.CheckNameAvailabilityExecute_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsGetSyncErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2885,7 +2923,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsGetSyncErrorDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2903,13 +2941,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.CheckNameAvailabilityResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2925,80 +2963,39 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// /// The ID of the target subscription. - /// The required parameters for checking if resource name is available. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// Creates or updates a Dev Box definition. - /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. - /// Represents a Dev Box definition. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + /// The name of the Catalog. /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsGetSyncErrorDetails_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { - var apiVersion = @"2023-04-01"; - // Constant Parameters using( NoSynchronizationContext ) { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/devcenters/" - + global::System.Uri.EscapeDataString(devCenterName) - + "/devboxdefinitions/" - + global::System.Uri.EscapeDataString(devBoxDefinitionName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevBoxDefinitionsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Creates or updates a Dev Box definition. + /// Gets a catalog /// - /// Represents a Dev Box definition. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3007,25 +3004,25 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; - var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -3034,8 +3031,8 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName - + "/devboxdefinitions/" - + devBoxDefinitionName + + "/catalogs/" + + catalogName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3044,20 +3041,16 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3067,7 +3060,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3078,116 +3071,20 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3203,19 +3100,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation events + /// back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. - /// Represents a Dev Box definition. + /// The name of the Catalog. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3225,19 +3121,22 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Deletes a Dev Box definition + /// Lists catalogs for a devcenter. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3245,9 +3144,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3259,29 +3158,30 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) - + "/devboxdefinitions/" - + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "/catalogs" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.CatalogsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes a Dev Box definition + /// Lists catalogs for a devcenter. /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3289,25 +3189,24 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; - var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -3316,29 +3215,29 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName - + "/devboxdefinitions/" - + devBoxDefinitionName + + "/catalogs" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.CatalogsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3346,7 +3245,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3357,103 +3256,6 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3461,19 +3263,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3489,18 +3285,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get + /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsListByDevCenter_Validate(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3510,15 +3306,17 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); } } - /// Gets a Dev Box definition + /// Syncs templates for a template source. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. + /// The name of the Catalog. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3527,9 +3325,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsSync(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3541,54 +3339,9 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) - + "/devboxdefinitions/" - + global::System.Uri.EscapeDataString(devBoxDefinitionName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Gets a Dev Box definition configured for a project - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the project. - /// The name of the Dev Box definition. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/devboxdefinitions/" - + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3597,16 +3350,16 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsGetByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsSync_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a Dev Box definition configured for a project + /// Syncs templates for a template source. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3616,35 +3369,36 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProjectViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsSyncViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/projects/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/sync$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var projectName = _match.Groups["projectName"].Value; - var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DevCenter/projects/" - + projectName - + "/devboxdefinitions/" - + devBoxDefinitionName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/catalogs/" + + catalogName + + "/sync" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3653,16 +3407,16 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsGetByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsSync_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3672,7 +3426,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsSync_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3683,6 +3437,103 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3690,13 +3541,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3712,18 +3563,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the project. - /// The name of the Dev Box definition. + /// The name of the devcenter. + /// The name of the Catalog. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject_Validate(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsSync_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3732,13 +3583,71 @@ public partial class DevCenter await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(projectName),projectName); - await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets a Dev Box definition + /// Partially updates a catalog. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// Updatable catalog properties. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CatalogsUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CatalogsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Partially updates a catalog. /// + /// Updatable catalog properties. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3747,25 +3656,25 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CatalogsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; - var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -3774,8 +3683,8 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName - + "/devboxdefinitions/" - + devBoxDefinitionName + + "/catalogs/" + + catalogName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3784,16 +3693,20 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.CatalogsUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3803,7 +3716,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CatalogsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3814,6 +3727,102 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3821,13 +3830,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3843,18 +3852,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. + /// The name of the Catalog. + /// Updatable catalog properties. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CatalogsUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3864,15 +3874,21 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// List Dev Box definitions for a devcenter. + /// Check the availability of name for resource /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The required parameters for checking if resource name is available. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3881,9 +3897,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3891,33 +3907,31 @@ public partial class DevCenter var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/devcenters/" - + global::System.Uri.EscapeDataString(devCenterName) - + "/devboxdefinitions" + + "/providers/Microsoft.DevCenter/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + await this.CheckNameAvailabilityExecute_Call(request,onOk,onDefault,eventListener,sender); } } - /// List Dev Box definitions for a devcenter. + /// Check the availability of name for resource /// - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The required parameters for checking if resource name is available. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3926,53 +3940,49 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CheckNameAvailabilityExecuteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DevCenter/checkNameAvailability$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var devCenterName = _match.Groups["devCenterName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DevCenter/devcenters/" - + devCenterName - + "/devboxdefinitions" + + "/providers/Microsoft.DevCenter/checkNameAvailability" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + await this.CheckNameAvailabilityExecute_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3982,7 +3992,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4000,13 +4010,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.CheckNameAvailabilityResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4022,35 +4032,32 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The required parameters for checking if resource name is available. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter_Validate(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CheckNameAvailabilityExecute_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// List Dev Box definitions configured for a project. + /// Gets a Task from the catalog /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the project. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Task. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4059,9 +4066,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CustomizationTasksGet(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string taskName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4071,13 +4078,14 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/devboxdefinitions" + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/tasks/" + + global::System.Uri.EscapeDataString(taskName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4089,13 +4097,62 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsListByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.CustomizationTasksGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// List Dev Box definitions configured for a project. + /// Gets Customization Task error details + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Task. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task CustomizationTasksGetErrorDetails(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string taskName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/tasks/" + + global::System.Uri.EscapeDataString(taskName) + + "/getErrorDetails" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.CustomizationTasksGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets Customization Task error details /// - /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4104,53 +4161,57 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CustomizationTasksGetErrorDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/projects/(?[^/]+)/devboxdefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/tasks/(?[^/]+)/getErrorDetails$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var projectName = _match.Groups["projectName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var taskName = _match.Groups["taskName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DevCenter/projects/" - + projectName - + "/devboxdefinitions" + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/catalogs/" + + catalogName + + "/tasks/" + + taskName + + "/getErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsListByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.CustomizationTasksGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4160,7 +4221,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CustomizationTasksGetErrorDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4178,13 +4239,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogResourceValidationErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4200,18 +4261,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the project. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Task. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject_Validate(string subscriptionId, string resourceGroupName, string projectName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CustomizationTasksGetErrorDetails_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string taskName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4220,64 +4282,23 @@ public partial class DevCenter await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(projectName),projectName); - } - } - - /// Partially updates a Dev Box definition. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// The name of the Dev Box definition. - /// Represents a Dev Box definition. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/devcenters/" - + global::System.Uri.EscapeDataString(devCenterName) - + "/devboxdefinitions/" - + global::System.Uri.EscapeDataString(devBoxDefinitionName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevBoxDefinitionsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(taskName),taskName); + await eventListener.AssertMinimumLength(nameof(taskName),taskName,3); + await eventListener.AssertMaximumLength(nameof(taskName),taskName,63); + await eventListener.AssertRegEx(nameof(taskName),taskName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Partially updates a Dev Box definition. + /// Gets a Task from the catalog /// - /// Represents a Dev Box definition. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4286,25 +4307,26 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CustomizationTasksGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/tasks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; - var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var taskName = _match.Groups["taskName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -4313,8 +4335,10 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName - + "/devboxdefinitions/" - + devBoxDefinitionName + + "/catalogs/" + + catalogName + + "/tasks/" + + taskName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4323,20 +4347,16 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxDefinitionsUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CustomizationTasksGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4346,7 +4366,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CustomizationTasksGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4357,102 +4377,6 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -4460,13 +4384,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTask.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4482,19 +4406,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// The name of the Dev Box definition. - /// Represents a Dev Box definition. + /// The name of the Catalog. + /// The name of the Task. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task CustomizationTasksGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string taskName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4504,17 +4428,26 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(taskName),taskName); + await eventListener.AssertMinimumLength(nameof(taskName),taskName,3); + await eventListener.AssertMaximumLength(nameof(taskName),taskName,63); + await eventListener.AssertRegEx(nameof(taskName),taskName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Creates or updates a devcenter resource + /// List Tasks in the catalog. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// Represents a devcenter. + /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4523,9 +4456,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CustomizationTasksListByCatalog(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4537,30 +4470,31 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/tasks" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CustomizationTasksListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a devcenter resource + /// List Tasks in the catalog. /// - /// Represents a devcenter. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4569,24 +4503,25 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CustomizationTasksListByCatalogViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/tasks$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -4595,28 +4530,29 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName + + "/catalogs/" + + catalogName + + "/tasks" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.CustomizationTasksListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4626,7 +4562,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CustomizationTasksListByCatalog_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4637,37 +4573,231 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task CustomizationTasksListByCatalog_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Creates or updates a Dev Box definition. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// Represents a Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a Dev Box definition. + /// + /// Represents a Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } // drop the old response _response?.Dispose(); @@ -4701,38 +4831,2424 @@ public partial class DevCenter // we're done polling. break; - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// Represents a Dev Box definition. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a Dev Box definition + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a Dev Box definition + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets a Dev Box definition + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a Dev Box definition configured for a project + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the project. + /// The name of the Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsGetByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a Dev Box definition configured for a project + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProjectViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/projects/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var projectName = _match.Groups["projectName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/projects/" + + projectName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsGetByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the project. + /// The name of the Dev Box definition. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGetByProject_Validate(string subscriptionId, string resourceGroupName, string projectName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets a Dev Box definition + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// List Dev Box definitions for a devcenter. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/devboxdefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List Dev Box definitions for a devcenter. + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/devboxdefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsListByDevCenter_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByDevCenter_Validate(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + } + } + + /// List Dev Box definitions configured for a project. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the project. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/devboxdefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsListByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// List Dev Box definitions configured for a project. + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/projects/(?[^/]+)/devboxdefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var projectName = _match.Groups["projectName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/projects/" + + projectName + + "/devboxdefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsListByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the project. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsListByProject_Validate(string subscriptionId, string resourceGroupName, string projectName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Partially updates a Dev Box definition. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// Represents a Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/devboxdefinitions/" + + global::System.Uri.EscapeDataString(devBoxDefinitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Partially updates a Dev Box definition. + /// + /// Represents a Dev Box definition. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/devboxdefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var devBoxDefinitionName = _match.Groups["devBoxDefinitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/devboxdefinitions/" + + devBoxDefinitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxDefinitionsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Dev Box definition. + /// Represents a Dev Box definition. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxDefinitionsUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string devBoxDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(devBoxDefinitionName),devBoxDefinitionName); + await eventListener.AssertMinimumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(devBoxDefinitionName),devBoxDefinitionName,63); + await eventListener.AssertRegEx(nameof(devBoxDefinitionName),devBoxDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a devcenter resource + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// Represents a devcenter. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a devcenter resource + /// + /// Represents a devcenter. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// Represents a devcenter. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a devcenter + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersDelete(string subscriptionId, string resourceGroupName, string devCenterName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a devcenter + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + } + } + + /// Gets a devcenter. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersGet(string subscriptionId, string resourceGroupName, string devCenterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a devcenter. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + } + } + + /// Lists all devcenters in a resource group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DevCenter/devcenters" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all devcenters in a resource group. + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// Lists all devcenters in a subscription. + /// The ID of the target subscription. + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.DevCenter/devcenters" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all devcenters in a subscription. + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCentersListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DevCenter/devcenters$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.DevCenter/devcenters" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // drop the old response - _response?.Dispose(); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCentersListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + } + } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCentersListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -4740,13 +7256,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4762,38 +7278,30 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// Represents a devcenter. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevCentersListBySubscription_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Deletes a devcenter + /// Partially updates a devcenter. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. + /// Updatable devcenter properties. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4801,9 +7309,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersDelete(string subscriptionId, string resourceGroupName, string devCenterName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevCentersUpdate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4823,19 +7331,23 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DevCentersUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes a devcenter + /// Partially updates a devcenter. /// + /// Updatable devcenter properties. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4843,9 +7355,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevCentersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4877,19 +7389,22 @@ public partial class DevCenter // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DevCentersUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4897,7 +7412,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevCentersUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4911,7 +7426,6 @@ public partial class DevCenter // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: azure-async-operation - var _finalUri = _response.GetFirstHeader(@"Azure-AsyncOperation"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4995,7 +7509,7 @@ public partial class DevCenter } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -5012,19 +7526,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5040,17 +7548,18 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. + /// Updatable devcenter properties. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersDelete_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevCentersUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5060,13 +7569,20 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets a devcenter. + /// Gets an environment definition from the catalog. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Environment Definition. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5075,9 +7591,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersGet(string subscriptionId, string resourceGroupName, string devCenterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string environmentDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5089,6 +7605,10 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/environmentDefinitions/" + + global::System.Uri.EscapeDataString(environmentDefinitionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5096,146 +7616,22 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevCentersGet_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Gets a devcenter. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DevCentersGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var devCenterName = _match.Groups["devCenterName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.DevCenter/devcenters/" - + devCenterName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevCentersGet_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task DevCentersGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the devcenter. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task DevCentersGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all devcenters in a resource group. + /// Gets Environment Definition error details /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Environment Definition. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5244,9 +7640,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsGetErrorDetails(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string environmentDefinitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5256,29 +7652,32 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.DevCenter/devcenters" + + "/providers/Microsoft.DevCenter/devcenters/" + + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/environmentDefinitions/" + + global::System.Uri.EscapeDataString(environmentDefinitionName) + + "/getErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentDefinitionsGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all devcenters in a resource group. + /// Gets Environment Definition error details /// - /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5287,50 +7686,59 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsGetErrorDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions/(?[^/]+)/getErrorDetails$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var environmentDefinitionName = _match.Groups["environmentDefinitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.DevCenter/devcenters" + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/catalogs/" + + catalogName + + "/environmentDefinitions/" + + environmentDefinitionName + + "/getErrorDetails" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentDefinitionsGetErrorDetails_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5340,7 +7748,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsGetErrorDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5358,13 +7766,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogResourceValidationErrorDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5380,17 +7788,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Environment Definition. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsGetErrorDetails_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string environmentDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5399,53 +7809,23 @@ public partial class DevCenter await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(environmentDefinitionName),environmentDefinitionName); + await eventListener.AssertMinimumLength(nameof(environmentDefinitionName),environmentDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(environmentDefinitionName),environmentDefinitionName,63); + await eventListener.AssertRegEx(nameof(environmentDefinitionName),environmentDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists all devcenters in a subscription. - /// The ID of the target subscription. - /// The maximum number of resources to return from the operation. Example: '$top=10'. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DevCentersListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.DevCenter/devcenters" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevCentersListBySubscription_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Lists all devcenters in a subscription. + /// Gets an environment definition from the catalog. /// - /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5454,31 +7834,40 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.DevCenter/devcenters$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var environmentDefinitionName = _match.Groups["environmentDefinitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.DevCenter/devcenters" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DevCenter/devcenters/" + + devCenterName + + "/catalogs/" + + catalogName + + "/environmentDefinitions/" + + environmentDefinitionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5490,11 +7879,11 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentDefinitionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5504,7 +7893,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5522,13 +7911,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5544,29 +7933,48 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The ID of the target subscription. - /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// The name of the resource group. The name is case insensitive. + /// The name of the devcenter. + /// The name of the Catalog. + /// The name of the Environment Definition. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersListBySubscription_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsGet_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, string environmentDefinitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(environmentDefinitionName),environmentDefinitionName); + await eventListener.AssertMinimumLength(nameof(environmentDefinitionName),environmentDefinitionName,3); + await eventListener.AssertMaximumLength(nameof(environmentDefinitionName),environmentDefinitionName,63); + await eventListener.AssertRegEx(nameof(environmentDefinitionName),environmentDefinitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Partially updates a devcenter. + /// List environment definitions in the catalog. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// Updatable devcenter properties. + /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5575,9 +7983,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersUpdate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsListByCatalog(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5589,30 +7997,31 @@ public partial class DevCenter + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.DevCenter/devcenters/" + global::System.Uri.EscapeDataString(devCenterName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/environmentDefinitions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentDefinitionsListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Partially updates a devcenter. + /// List environment definitions in the catalog. /// - /// Updatable devcenter properties. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5621,24 +8030,25 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCentersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentDefinitionsListByCatalogViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DevCenter/devcenters/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var devCenterName = _match.Groups["devCenterName"].Value; + var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -5647,28 +8057,29 @@ public partial class DevCenter + resourceGroupName + "/providers/Microsoft.DevCenter/devcenters/" + devCenterName + + "/catalogs/" + + catalogName + + "/environmentDefinitions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCentersUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentDefinitionsListByCatalog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5678,7 +8089,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsListByCatalog_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5689,102 +8100,6 @@ public partial class DevCenter await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -5792,13 +8107,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5814,18 +8129,19 @@ public partial class DevCenter } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the devcenter. - /// Updatable devcenter properties. + /// The name of the Catalog. + /// The maximum number of resources to return from the operation. Example: '$top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCentersUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentDefinitionsListByCatalog_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string catalogName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5835,8 +8151,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -5854,9 +8175,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5902,9 +8223,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5962,7 +8283,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5980,13 +8301,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6014,7 +8335,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentTypesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6024,7 +8345,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -6044,9 +8371,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesDelete(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesDelete(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6088,9 +8415,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6145,7 +8472,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentTypesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6175,7 +8502,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6212,7 +8539,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -6229,9 +8562,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesGet(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesGet(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6272,9 +8605,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6328,7 +8661,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6346,13 +8679,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6389,7 +8722,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -6406,9 +8745,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6451,9 +8790,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6507,7 +8846,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentTypesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6525,13 +8864,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6568,6 +8907,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); } } @@ -6585,9 +8927,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6633,9 +8975,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentTypesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentTypesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6693,7 +9035,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentTypesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6711,13 +9053,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6745,7 +9087,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentTypesUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentTypesUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6755,7 +9097,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -6775,9 +9123,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6823,9 +9171,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6883,7 +9231,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6997,13 +9345,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7031,7 +9379,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task GalleriesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -7041,7 +9389,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -7061,9 +9415,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesDelete(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesDelete(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7105,9 +9459,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7162,7 +9516,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GalleriesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GalleriesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7289,7 +9643,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7326,7 +9680,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -7343,9 +9703,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7386,9 +9746,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7442,7 +9802,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GalleriesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GalleriesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7460,13 +9820,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7503,7 +9863,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -7520,9 +9886,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7565,9 +9931,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GalleriesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GalleriesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7621,7 +9987,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GalleriesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GalleriesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7639,13 +10005,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7682,6 +10048,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); } } @@ -7700,9 +10069,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImageVersionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, string versionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImageVersionsGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, string versionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7747,9 +10116,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImageVersionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImageVersionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7809,7 +10178,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ImageVersionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ImageVersionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7827,13 +10196,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersion.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersion.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7872,7 +10241,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(imageName),imageName); await eventListener.AssertNotNull(nameof(versionName),versionName); } @@ -7892,9 +10267,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImageVersionsListByImage(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImageVersionsListByImage(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7938,9 +10313,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImageVersionsListByImageViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImageVersionsListByImageViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7998,7 +10373,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ImageVersionsListByImage_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ImageVersionsListByImage_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8016,13 +10391,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8060,7 +10435,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(imageName),imageName); } } @@ -8079,9 +10460,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesGet(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, string imageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8124,9 +10505,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8183,7 +10564,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ImagesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ImagesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8201,13 +10582,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Image.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Image.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8245,7 +10626,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(imageName),imageName); } } @@ -8263,9 +10650,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesListByDevCenter(string subscriptionId, string resourceGroupName, string devCenterName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8308,9 +10695,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesListByDevCenterViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8364,7 +10751,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ImagesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ImagesListByDevCenter_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8382,13 +10769,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8425,6 +10812,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); } } @@ -8442,9 +10832,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesListByGallery(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesListByGallery(string subscriptionId, string resourceGroupName, string devCenterName, string galleryName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8489,9 +10879,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ImagesListByGalleryViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ImagesListByGalleryViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8548,7 +10938,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ImagesListByGallery_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ImagesListByGallery_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8566,13 +10956,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8610,7 +11000,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(devCenterName),devCenterName); + await eventListener.AssertMinimumLength(nameof(devCenterName),devCenterName,3); + await eventListener.AssertMaximumLength(nameof(devCenterName),devCenterName,26); + await eventListener.AssertRegEx(nameof(devCenterName),devCenterName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$"); await eventListener.AssertNotNull(nameof(galleryName),galleryName); + await eventListener.AssertMinimumLength(nameof(galleryName),galleryName,3); + await eventListener.AssertMaximumLength(nameof(galleryName),galleryName,63); + await eventListener.AssertRegEx(nameof(galleryName),galleryName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -8627,9 +11023,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8673,9 +11069,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8730,7 +11126,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8844,13 +11240,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8877,7 +11273,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task NetworkConnectionsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -8887,6 +11283,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -8905,9 +11304,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsDelete(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsDelete(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8947,9 +11346,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9001,7 +11400,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9128,7 +11527,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9164,6 +11563,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -9179,9 +11581,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsGet(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsGet(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9222,9 +11624,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetails(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetails(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9264,9 +11666,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetailsViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9318,7 +11720,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsGetHealthDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9336,13 +11738,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetails.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9378,6 +11780,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -9391,9 +11796,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9444,7 +11849,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9462,13 +11867,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9504,6 +11909,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -9519,9 +11927,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9562,9 +11970,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9617,7 +12025,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9635,13 +12043,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9690,9 +12098,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9731,9 +12139,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9783,7 +12191,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9801,13 +12209,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9854,9 +12262,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetails(string subscriptionId, string resourceGroupName, int? Top, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetails(string subscriptionId, string resourceGroupName, int? Top, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9899,9 +12307,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetailsViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetailsViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9955,7 +12363,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsListHealthDetails_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9973,13 +12381,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10016,6 +12424,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -10035,9 +12446,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, int? Top, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpoints(string subscriptionId, string resourceGroupName, int? Top, string networkConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10083,9 +12494,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpointsViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpointsViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10141,7 +12552,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpoints_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsListOutboundNetworkDependenciesEndpoints_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10159,13 +12570,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpointCollection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10202,6 +12613,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -10220,9 +12634,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecks(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecks(string subscriptionId, string resourceGroupName, string networkConnectionName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10265,9 +12679,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecksViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecksViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10319,7 +12733,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsRunHealthChecks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10440,7 +12854,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10476,6 +12890,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -10492,9 +12909,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsUpdate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsUpdate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10538,9 +12955,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task NetworkConnectionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task NetworkConnectionsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10595,7 +13012,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task NetworkConnectionsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10709,13 +13126,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10742,7 +13159,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task NetworkConnectionsUpdate_Validate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task NetworkConnectionsUpdate_Validate(string subscriptionId, string resourceGroupName, string networkConnectionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10752,6 +13169,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(networkConnectionName),networkConnectionName); + await eventListener.AssertMinimumLength(nameof(networkConnectionName),networkConnectionName,3); + await eventListener.AssertMaximumLength(nameof(networkConnectionName),networkConnectionName,63); + await eventListener.AssertRegEx(nameof(networkConnectionName),networkConnectionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -10770,9 +13190,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusesGet(string subscriptionId, string location, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationStatusesGet(string subscriptionId, string location, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10812,9 +13232,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationStatusesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10866,7 +13286,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationStatusesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationStatusesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10884,19 +13304,19 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onAccepted(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onAccepted(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10942,9 +13362,9 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10978,9 +13398,9 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11023,7 +13443,7 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11047,7 +13467,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11092,9 +13512,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11140,9 +13560,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11200,7 +13620,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11314,13 +13734,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11348,7 +13768,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PoolsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11358,7 +13778,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -11378,9 +13804,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsDelete(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsDelete(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11422,9 +13848,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11479,7 +13905,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11606,7 +14032,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11643,7 +14069,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -11660,9 +14092,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsGet(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsGet(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11703,9 +14135,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11759,7 +14191,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11777,13 +14209,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11820,7 +14252,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -11837,9 +14275,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsListByProject(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11882,9 +14320,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsListByProjectViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11938,7 +14376,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsListByProject_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11956,13 +14394,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11999,6 +14437,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -12015,9 +14456,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsRunHealthChecks(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsRunHealthChecks(string subscriptionId, string resourceGroupName, string projectName, string poolName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12059,9 +14500,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsRunHealthChecksViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsRunHealthChecksViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12116,7 +14557,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsRunHealthChecks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsRunHealthChecks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12237,7 +14678,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12274,7 +14715,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -12292,9 +14739,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12340,9 +14787,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PoolsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PoolsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12400,7 +14847,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PoolsUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12514,13 +14961,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12548,7 +14995,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PoolsUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PoolsUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -12558,7 +15005,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -12577,9 +15030,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGet(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGet(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12620,9 +15073,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12676,7 +15129,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12694,13 +15147,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12737,7 +15190,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -12754,9 +15213,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesList(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesList(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12799,9 +15258,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12855,7 +15314,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesList_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectAllowedEnvironmentTypesList_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12873,13 +15332,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -12916,6 +15375,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -12933,9 +15395,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12981,9 +15443,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13043,7 +15505,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13061,13 +15523,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13095,7 +15557,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -13105,7 +15567,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -13125,9 +15593,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDelete(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDelete(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13169,9 +15637,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDeleteViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13226,7 +15694,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13256,7 +15724,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13293,7 +15761,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -13310,9 +15784,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGet(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGet(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13353,9 +15827,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGetViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13409,7 +15883,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13427,13 +15901,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13470,7 +15944,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -13487,9 +15967,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesList(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesList(string subscriptionId, string resourceGroupName, string projectName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13532,9 +16012,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13588,7 +16068,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesList_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesList_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13606,13 +16086,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13649,6 +16129,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -13666,9 +16149,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13714,9 +16197,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13774,7 +16257,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13792,13 +16275,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -13826,7 +16309,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectEnvironmentTypesUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string environmentTypeName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -13836,7 +16319,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(environmentTypeName),environmentTypeName); + await eventListener.AssertMinimumLength(nameof(environmentTypeName),environmentTypeName,3); + await eventListener.AssertMaximumLength(nameof(environmentTypeName),environmentTypeName,63); + await eventListener.AssertRegEx(nameof(environmentTypeName),environmentTypeName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -13855,9 +16344,9 @@ public partial class DevCenter /// /// 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 projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13901,9 +16390,9 @@ public partial class DevCenter /// /// 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.DevCenter.Models.Api20230401.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13958,7 +16447,7 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14072,13 +16561,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14105,7 +16594,7 @@ public partial class DevCenter /// /// 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 projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -14115,6 +16604,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -14133,9 +16625,9 @@ public partial class DevCenter /// /// 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 projectName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsDelete(string subscriptionId, string resourceGroupName, string projectName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14175,9 +16667,9 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14229,7 +16721,7 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14356,7 +16848,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14392,6 +16884,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -14407,9 +16902,9 @@ public partial class DevCenter /// /// 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 projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGet(string subscriptionId, string resourceGroupName, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14448,9 +16943,9 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14501,7 +16996,7 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14519,13 +17014,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14561,6 +17056,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -14576,9 +17074,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14619,9 +17117,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14672,7 +17170,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsListByResourceGroup_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14690,13 +17188,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14745,9 +17243,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14786,9 +17284,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ProjectsListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14836,7 +17334,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ProjectsListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -14854,13 +17352,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -14907,9 +17405,9 @@ public partial class DevCenter /// /// 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 projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdate(string subscriptionId, string resourceGroupName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14953,9 +17451,9 @@ public partial class DevCenter /// /// 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.DevCenter.Models.Api20230401.IProjectUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15010,7 +17508,7 @@ public partial class DevCenter /// /// 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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15124,13 +17622,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15157,7 +17655,7 @@ public partial class DevCenter /// /// 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 projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15167,6 +17665,9 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } @@ -15188,9 +17689,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15241,9 +17742,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15306,7 +17807,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15420,13 +17921,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15456,7 +17957,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SchedulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -15466,7 +17967,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); await eventListener.AssertMinimumLength(nameof(scheduleName),scheduleName,1); await eventListener.AssertMaximumLength(nameof(scheduleName),scheduleName,100); @@ -15492,9 +17999,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesDelete(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesDelete(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15541,9 +18048,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesDeleteViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesDeleteViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15603,7 +18110,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchedulesDelete_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15730,7 +18237,7 @@ public partial class DevCenter default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15769,7 +18276,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); await eventListener.AssertMinimumLength(nameof(scheduleName),scheduleName,1); await eventListener.AssertMaximumLength(nameof(scheduleName),scheduleName,100); @@ -15792,9 +18305,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesGet(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesGet(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15840,9 +18353,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesGetViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesGetViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15901,7 +18414,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchedulesGet_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15919,13 +18432,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -15964,7 +18477,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); await eventListener.AssertMinimumLength(nameof(scheduleName),scheduleName,1); await eventListener.AssertMaximumLength(nameof(scheduleName),scheduleName,100); @@ -15986,9 +18505,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesListByPool(string subscriptionId, string resourceGroupName, string projectName, string poolName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesListByPool(string subscriptionId, string resourceGroupName, string projectName, string poolName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16033,9 +18552,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesListByPoolViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesListByPoolViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16092,7 +18611,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesListByPool_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchedulesListByPool_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16110,13 +18629,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16154,7 +18673,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } @@ -16174,9 +18699,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesUpdate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16227,9 +18752,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SchedulesUpdateViaIdentity(global::System.String viaIdentity, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SchedulesUpdateViaIdentity(global::System.String viaIdentity, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16292,7 +18817,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SchedulesUpdate_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16406,13 +18931,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16442,7 +18967,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SchedulesUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SchedulesUpdate_Validate(string subscriptionId, string resourceGroupName, string projectName, string poolName, string scheduleName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -16452,7 +18977,13 @@ public partial class DevCenter await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); await eventListener.AssertMinimumLength(nameof(scheduleName),scheduleName,1); await eventListener.AssertMaximumLength(nameof(scheduleName),scheduleName,100); @@ -16473,9 +19004,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SkusListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SkusListBySubscription(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16514,9 +19045,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SkusListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SkusListBySubscriptionViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16564,7 +19095,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SkusListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SkusListBySubscription_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16582,13 +19113,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.SkuListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SkuListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -16635,9 +19166,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UsagesListByLocation(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UsagesListByLocation(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16677,9 +19208,9 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task UsagesListByLocationViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task UsagesListByLocationViaIdentity(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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16728,7 +19259,7 @@ public partial class DevCenter /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task UsagesListByLocation_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task UsagesListByLocation_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.DevCenter.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16746,13 +19277,13 @@ public partial class DevCenter case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ListUsagesResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ListUsagesResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.PowerShell.cs deleted file mode 100644 index 884bef62c0df..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the allowed environment type list operation. - [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypeListResultTypeConverter))] - public partial class AllowedEnvironmentTypeListResult - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AllowedEnvironmentTypeListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).NextLink, 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 AllowedEnvironmentTypeListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal)this).NextLink, 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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AllowedEnvironmentTypeListResult(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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AllowedEnvironmentTypeListResult(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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the allowed environment type list operation. - [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypeListResultTypeConverter))] - public partial interface IAllowedEnvironmentTypeListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.PowerShell.cs deleted file mode 100644 index eb61df0b2071..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.PowerShell.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of an allowed environment type. - [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypePropertiesTypeConverter))] - public partial class AllowedEnvironmentTypeProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AllowedEnvironmentTypeProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AllowedEnvironmentTypeProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AllowedEnvironmentTypeProperties(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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AllowedEnvironmentTypeProperties(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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an allowed environment type. - [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypePropertiesTypeConverter))] - public partial interface IAllowedEnvironmentTypeProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.cs deleted file mode 100644 index 907d0f478327..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.cs +++ /dev/null @@ -1,54 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of an allowed environment type. - public partial class AllowedEnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal - { - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public AllowedEnvironmentTypeProperties() - { - - } - } - /// Properties of an allowed environment type. - public partial interface IAllowedEnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of an allowed environment type. - internal partial interface IAllowedEnvironmentTypePropertiesInternal - - { - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.PowerShell.cs deleted file mode 100644 index ff7e31fae3d7..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.PowerShell.cs +++ /dev/null @@ -1,180 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of an attached NetworkConnection. - [System.ComponentModel.TypeConverter(typeof(AttachedNetworkConnectionPropertiesTypeConverter))] - public partial class AttachedNetworkConnectionProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AttachedNetworkConnectionProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("NetworkConnectionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal AttachedNetworkConnectionProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("NetworkConnectionId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.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.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AttachedNetworkConnectionProperties(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.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AttachedNetworkConnectionProperties(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.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an attached NetworkConnection. - [System.ComponentModel.TypeConverter(typeof(AttachedNetworkConnectionPropertiesTypeConverter))] - public partial interface IAttachedNetworkConnectionProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.PowerShell.cs deleted file mode 100644 index 315b6ff874d7..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the Attached Networks list operation. - [System.ComponentModel.TypeConverter(typeof(AttachedNetworkListResultTypeConverter))] - public partial class AttachedNetworkListResult - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal AttachedNetworkListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).NextLink, 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 AttachedNetworkListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal)this).NextLink, 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.DevCenter.Models.Api20230401.IAttachedNetworkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AttachedNetworkListResult(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.DevCenter.Models.Api20230401.IAttachedNetworkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AttachedNetworkListResult(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.DevCenter.Models.Api20230401.IAttachedNetworkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the Attached Networks list operation. - [System.ComponentModel.TypeConverter(typeof(AttachedNetworkListResultTypeConverter))] - public partial interface IAttachedNetworkListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs deleted file mode 100644 index 47d9869a00f0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs +++ /dev/null @@ -1,328 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents a catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] - public partial class Catalog - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Catalog(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("SyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitPath, 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 Catalog(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("SyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal)this).AdoGitPath, 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.DevCenter.Models.Api20230401.ICatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Catalog(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.DevCenter.Models.Api20230401.ICatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Catalog(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.DevCenter.Models.Api20230401.ICatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] - public partial interface ICatalog - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs deleted file mode 100644 index 170ec41b071d..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CatalogTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalog ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Catalog.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Catalog.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Catalog.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.cs deleted file mode 100644 index 1e644107d80b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.cs +++ /dev/null @@ -1,307 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a catalog. - public partial class Catalog : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitUri = value ?? null; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubUri = value ?? null; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } - - /// When the catalog was last synced. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public global::System.DateTime? LastSyncTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).LastSyncTime; } - - /// Internal Acessors for AdoGit - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGit = value; } - - /// Internal Acessors for GitHub - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHub = value; } - - /// Internal Acessors for LastSyncTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.LastSyncTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).LastSyncTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).LastSyncTime = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for SyncState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogInternal.SyncState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).SyncState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).SyncState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties _property; - - /// Catalog properties. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).ProvisioningState; } - - /// The synchronization state of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)Property).SyncState; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Catalog() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Represents a catalog. - public partial interface ICatalog : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource - { - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string AdoGitUri { get; set; } - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string GitHubSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string GitHubUri { get; set; } - /// When the catalog was last synced. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"When the catalog was last synced.", - SerializedName = @"lastSyncTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastSyncTime { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// The synchronization state of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The synchronization state of the catalog.", - SerializedName = @"syncState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; } - - } - /// Represents a catalog. - internal partial interface ICatalogInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal - { - /// Properties for an Azure DevOps catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog AdoGit { get; set; } - /// Git branch. - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - string AdoGitUri { get; set; } - /// Properties for a GitHub catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog GitHub { get; set; } - /// Git branch. - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string GitHubSecretIdentifier { get; set; } - /// Git URI. - string GitHubUri { get; set; } - /// When the catalog was last synced. - global::System.DateTime? LastSyncTime { get; set; } - /// Catalog properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// The synchronization state of the catalog. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.json.cs deleted file mode 100644 index 5e42710d6c37..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Catalog.json.cs +++ /dev/null @@ -1,110 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a catalog. - public partial class Catalog - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal Catalog(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogProperties.FromJson(__jsonProperties) : Property;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Catalog(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs deleted file mode 100644 index 4c6bf2fd04f0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the catalog list operation. - [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] - public partial class CatalogListResult - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CatalogListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).NextLink, 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 CatalogListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal)this).NextLink, 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.DevCenter.Models.Api20230401.ICatalogListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CatalogListResult(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.DevCenter.Models.Api20230401.ICatalogListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CatalogListResult(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.DevCenter.Models.Api20230401.ICatalogListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the catalog list operation. - [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] - public partial interface ICatalogListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs deleted file mode 100644 index 02652eec00c5..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CatalogListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalogListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CatalogListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CatalogListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CatalogListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs deleted file mode 100644 index 799f0e3ed619..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the catalog list operation. - public partial class CatalogListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[] Value { get => this._value; } - - /// Creates an new instance. - public CatalogListResult() - { - - } - } - /// Results of the catalog list operation. - public partial interface ICatalogListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[] Value { get; } - - } - /// Results of the catalog list operation. - internal partial interface ICatalogListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs deleted file mode 100644 index cd8028a1e0e3..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs +++ /dev/null @@ -1,124 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the catalog list operation. - public partial class CatalogListResult - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal CatalogListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalog) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog.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.DevCenter.Models.Api20230401.ICatalogListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.PowerShell.cs deleted file mode 100644 index a1e52520733f..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.PowerShell.cs +++ /dev/null @@ -1,240 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of a catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogPropertiesTypeConverter))] - public partial class CatalogProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CatalogProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath, global::System.Convert.ToString); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CatalogProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SyncState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); - } - if (content.Contains("LastSyncTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath, global::System.Convert.ToString); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - 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.DevCenter.Models.Api20230401.ICatalogProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CatalogProperties(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.DevCenter.Models.Api20230401.ICatalogProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CatalogProperties(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.DevCenter.Models.Api20230401.ICatalogProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogPropertiesTypeConverter))] - public partial interface ICatalogProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.cs deleted file mode 100644 index 89bb6ff1ed59..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.cs +++ /dev/null @@ -1,157 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of a catalog. - public partial class CatalogProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties __catalogUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateProperties(); - - /// Properties for an Azure DevOps catalog type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGit = value ?? null /* model class */; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitUri = value ?? null; } - - /// Properties for a GitHub catalog type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHub = value ?? null /* model class */; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubUri = value ?? null; } - - /// Backing field for property. - private global::System.DateTime? _lastSyncTime; - - /// When the catalog was last synced. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public global::System.DateTime? LastSyncTime { get => this._lastSyncTime; } - - /// Internal Acessors for LastSyncTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal.LastSyncTime { get => this._lastSyncTime; set { {_lastSyncTime = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for SyncState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogPropertiesInternal.SyncState { get => this._syncState; set { {_syncState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? _syncState; - - /// The synchronization state of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get => this._syncState; } - - /// Creates an new instance. - public CatalogProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__catalogUpdateProperties), __catalogUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__catalogUpdateProperties), __catalogUpdateProperties); - } - } - /// Properties of a catalog. - public partial interface ICatalogProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties - { - /// When the catalog was last synced. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"When the catalog was last synced.", - SerializedName = @"lastSyncTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? LastSyncTime { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// The synchronization state of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The synchronization state of the catalog.", - SerializedName = @"syncState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; } - - } - /// Properties of a catalog. - internal partial interface ICatalogPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal - { - /// When the catalog was last synced. - global::System.DateTime? LastSyncTime { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// The synchronization state of the catalog. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.PowerShell.cs deleted file mode 100644 index b0a76537da14..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.PowerShell.cs +++ /dev/null @@ -1,234 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(CatalogUpdateTypeConverter))] - public partial class CatalogUpdate - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CatalogUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTagsTypeConverter.ConvertFrom); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitPath, 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 CatalogUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTagsTypeConverter.ConvertFrom); - } - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal)this).AdoGitPath, 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.DevCenter.Models.Api20230401.ICatalogUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CatalogUpdate(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.DevCenter.Models.Api20230401.ICatalogUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CatalogUpdate(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.DevCenter.Models.Api20230401.ICatalogUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(CatalogUpdateTypeConverter))] - public partial interface ICatalogUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.cs deleted file mode 100644 index d74c655a27d9..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.cs +++ /dev/null @@ -1,199 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. - /// - public partial class CatalogUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal - { - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGitUri = value ?? null; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubBranch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubPath = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHubUri = value ?? null; } - - /// Internal Acessors for AdoGit - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal.AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).AdoGit = value; } - - /// Internal Acessors for GitHub - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal.GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)Property).GitHub = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties _property; - - /// Catalog properties for update. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateProperties()); set => this._property = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTags()); set => this._tag = value; } - - /// Creates an new instance. - public CatalogUpdate() - { - - } - } - /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. - public partial interface ICatalogUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string AdoGitUri { get; set; } - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string GitHubSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string GitHubUri { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags Tag { get; set; } - - } - /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. - internal partial interface ICatalogUpdateInternal - - { - /// Properties for an Azure DevOps catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog AdoGit { get; set; } - /// Git branch. - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - string AdoGitUri { get; set; } - /// Properties for a GitHub catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog GitHub { get; set; } - /// Git branch. - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string GitHubSecretIdentifier { get; set; } - /// Git URI. - string GitHubUri { get; set; } - /// Catalog properties for update. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties Property { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.PowerShell.cs deleted file mode 100644 index 55df142bce1d..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,218 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of a catalog. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(CatalogUpdatePropertiesTypeConverter))] - public partial class CatalogUpdateProperties - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CatalogUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath, 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 CatalogUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("GitHub")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("AdoGit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalogTypeConverter.ConvertFrom); - } - if (content.Contains("GitHubUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); - } - if (content.Contains("GitHubBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); - } - if (content.Contains("GitHubSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("GitHubPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); - } - if (content.Contains("AdoGitUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); - } - if (content.Contains("AdoGitBranch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); - } - if (content.Contains("AdoGitSecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("AdoGitPath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal)this).AdoGitPath, 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.DevCenter.Models.Api20230401.ICatalogUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CatalogUpdateProperties(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.DevCenter.Models.Api20230401.ICatalogUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CatalogUpdateProperties(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.DevCenter.Models.Api20230401.ICatalogUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a catalog. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(CatalogUpdatePropertiesTypeConverter))] - public partial interface ICatalogUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.cs deleted file mode 100644 index 1ee1fb65ed3a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.cs +++ /dev/null @@ -1,184 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// Properties of a catalog. These properties can be updated after the resource has been created. - /// - public partial class CatalogUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog _adoGit; - - /// Properties for an Azure DevOps catalog type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog AdoGit { get => (this._adoGit = this._adoGit ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog()); set => this._adoGit = value; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Branch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Branch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Path = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).SecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)AdoGit).Uri = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog _gitHub; - - /// Properties for a GitHub catalog type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog GitHub { get => (this._gitHub = this._gitHub ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog()); set => this._gitHub = value; } - - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Branch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Branch = value ?? null; } - - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Path = value ?? null; } - - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).SecretIdentifier = value ?? null; } - - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)GitHub).Uri = value ?? null; } - - /// Internal Acessors for AdoGit - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal.AdoGit { get => (this._adoGit = this._adoGit ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog()); set { {_adoGit = value;} } } - - /// Internal Acessors for GitHub - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdatePropertiesInternal.GitHub { get => (this._gitHub = this._gitHub ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog()); set { {_gitHub = value;} } } - - /// Creates an new instance. - public CatalogUpdateProperties() - { - - } - } - /// Properties of a catalog. These properties can be updated after the resource has been created. - public partial interface ICatalogUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string AdoGitUri { get; set; } - /// Git branch. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git branch.", - SerializedName = @"branch", - PossibleTypes = new [] { typeof(string) })] - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The folder where the catalog items can be found inside the repository.", - SerializedName = @"path", - PossibleTypes = new [] { typeof(string) })] - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", - SerializedName = @"secretIdentifier", - PossibleTypes = new [] { typeof(string) })] - string GitHubSecretIdentifier { get; set; } - /// Git URI. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Git URI.", - SerializedName = @"uri", - PossibleTypes = new [] { typeof(string) })] - string GitHubUri { get; set; } - - } - /// Properties of a catalog. These properties can be updated after the resource has been created. - internal partial interface ICatalogUpdatePropertiesInternal - - { - /// Properties for an Azure DevOps catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog AdoGit { get; set; } - /// Git branch. - string AdoGitBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string AdoGitPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string AdoGitSecretIdentifier { get; set; } - /// Git URI. - string AdoGitUri { get; set; } - /// Properties for a GitHub catalog type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog GitHub { get; set; } - /// Git branch. - string GitHubBranch { get; set; } - /// The folder where the catalog items can be found inside the repository. - string GitHubPath { get; set; } - /// - /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. - /// - string GitHubSecretIdentifier { get; set; } - /// Git URI. - string GitHubUri { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs deleted file mode 100644 index e0f1f1bdd2a8..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// An error response from the DevCenter service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial class CloudError - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CloudError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - 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.DevCenter.Models.Api20230401.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudError(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.DevCenter.Models.Api20230401.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudError(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.DevCenter.Models.Api20230401.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An error response from the DevCenter service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial interface ICloudError - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs deleted file mode 100644 index 118721647a3b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICloudError ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudError).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudError.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudError.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.cs deleted file mode 100644 index 7f17afb66134..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.cs +++ /dev/null @@ -1,120 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// An error response from the DevCenter service. - public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal - { - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Code = value ; } - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody _error; - - /// Error body - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody()); set => this._error = value; } - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Message = value ; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody()); set { {_error = value;} } } - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)Error).Target = value ?? null; } - - /// Creates an new instance. - public CloudError() - { - - } - } - /// An error response from the DevCenter service. - public partial interface ICloudError : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// An error response from the DevCenter service. - internal partial interface ICloudErrorInternal - - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// Error body - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody Error { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.json.cs deleted file mode 100644 index bab7e700906e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudError.json.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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// An error response from the DevCenter service. - public partial class CloudError - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody.FromJson(__jsonError) : Error;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudError. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudError. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CloudError(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs deleted file mode 100644 index b361aaffc63d..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs +++ /dev/null @@ -1,168 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// An error response from the DevCenter service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] - public partial class CloudErrorBody - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudErrorBody(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CloudErrorBody(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - 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.DevCenter.Models.Api20230401.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudErrorBody(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.DevCenter.Models.Api20230401.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudErrorBody(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.DevCenter.Models.Api20230401.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An error response from the DevCenter service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] - public partial interface ICloudErrorBody - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs deleted file mode 100644 index 1cfdf62b7d57..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorBodyTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICloudErrorBody ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudErrorBody.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudErrorBody.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudErrorBody.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs deleted file mode 100644 index 14a8b2862eac..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs +++ /dev/null @@ -1,120 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// An error response from the DevCenter service. - public partial class CloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBodyInternal - { - - /// Backing field for property. - private string _code; - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Code { get => this._code; set => this._code = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] _detail; - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } - - /// Backing field for property. - private string _message; - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Message { get => this._message; set => this._message = value; } - - /// Backing field for property. - private string _target; - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Target { get => this._target; set => this._target = value; } - - /// Creates an new instance. - public CloudErrorBody() - { - - } - } - /// An error response from the DevCenter service. - public partial interface ICloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// An error response from the DevCenter service. - internal partial interface ICloudErrorBodyInternal - - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs deleted file mode 100644 index 3cc6aa567476..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs +++ /dev/null @@ -1,122 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// An error response from the DevCenter service. - public partial class CloudErrorBody - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_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.DevCenter.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.DevCenter.Models.Api20230401.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CloudErrorBody(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); - if (null != this._detail) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._detail ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("details",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.PowerShell.cs deleted file mode 100644 index 28fe09b8c29c..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.PowerShell.cs +++ /dev/null @@ -1,392 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents a definition for a Developer Machine. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionTypeConverter))] - public partial class DevBoxDefinition - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxDefinition(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.DevCenter.Models.Api20230401.IDevBoxDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxDefinition(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxDefinition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("ImageValidationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); - } - if (content.Contains("ImageValidationErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion, 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 DevBoxDefinition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("ImageValidationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); - } - if (content.Contains("ImageValidationErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevBoxDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a definition for a Developer Machine. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionTypeConverter))] - public partial interface IDevBoxDefinition - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.PowerShell.cs deleted file mode 100644 index bc706b4aa973..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the Dev Box definition list operation. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionListResultTypeConverter))] - public partial class DevBoxDefinitionListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxDefinitionListResult(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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxDefinitionListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxDefinitionListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).NextLink, 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 DevBoxDefinitionListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the Dev Box definition list operation. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionListResultTypeConverter))] - public partial interface IDevBoxDefinitionListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.PowerShell.cs deleted file mode 100644 index fd78362c52f0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.PowerShell.cs +++ /dev/null @@ -1,290 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of a Dev Box definition. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionPropertiesTypeConverter))] - public partial class DevBoxDefinitionProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxDefinitionProperties(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.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxDefinitionProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxDefinitionProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ImageValidationErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ImageValidationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ImageValidationErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion, 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 DevBoxDefinitionProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ImageValidationErrorDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ActiveImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ImageValidationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ImageValidationErrorDetailCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); - } - if (content.Contains("ImageValidationErrorDetailMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ActiveImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a Dev Box definition. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionPropertiesTypeConverter))] - public partial interface IDevBoxDefinitionProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.cs deleted file mode 100644 index 119cbdca09d0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.cs +++ /dev/null @@ -1,266 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of a Dev Box definition. - public partial class DevBoxDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties __devBoxDefinitionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference _activeImageReference; - - /// - /// Image reference information for the currently active image (only populated during updates). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ActiveImageReference { get => (this._activeImageReference = this._activeImageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference()); } - - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ActiveImageReference).ExactVersion; } - - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ActiveImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ActiveImageReference).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ActiveImageReference).Id = value ?? null; } - - /// - /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting - /// hibernation. To find out more see https://aka.ms/devbox/hibernate - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } - - /// Image reference information. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReference = value ?? null /* model class */; } - - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion; } - - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceId = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails _imageValidationErrorDetail; - - /// - /// Details for image validator error. Populated when the image validation is not successful. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails ImageValidationErrorDetail { get => (this._imageValidationErrorDetail = this._imageValidationErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetails()); } - - /// An identifier for the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageValidationErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Code = value ?? null; } - - /// A message describing the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageValidationErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Message = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? _imageValidationStatus; - - /// Validation status of the configured image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get => this._imageValidationStatus; } - - /// Internal Acessors for ActiveImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal.ActiveImageReference { get => (this._activeImageReference = this._activeImageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference()); set { {_activeImageReference = value;} } } - - /// Internal Acessors for ActiveImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal.ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ActiveImageReference).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ActiveImageReference).ExactVersion = value; } - - /// Internal Acessors for ImageValidationErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal.ImageValidationErrorDetail { get => (this._imageValidationErrorDetail = this._imageValidationErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetails()); set { {_imageValidationErrorDetail = value;} } } - - /// Internal Acessors for ImageValidationStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal.ImageValidationStatus { get => this._imageValidationStatus; set { {_imageValidationStatus = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for ImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion = value; } - - /// - /// The storage type used for the Operating System disk of Dev Boxes created using this definition. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).OSStorageType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// The SKU for Dev Boxes created using this definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).Sku = value ?? null /* model class */; } - - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuCapacity = value ?? default(int); } - - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuFamily = value ?? null; } - - /// The name of the SKU. Ex - P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuName = value ?? null; } - - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuSize = value ?? null; } - - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } - - /// Creates an new instance. - public DevBoxDefinitionProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__devBoxDefinitionUpdateProperties), __devBoxDefinitionUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__devBoxDefinitionUpdateProperties), __devBoxDefinitionUpdateProperties); - } - } - /// Properties of a Dev Box definition. - public partial interface IDevBoxDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties - { - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", - SerializedName = @"exactVersion", - PossibleTypes = new [] { typeof(string) })] - string ActiveImageReferenceExactVersion { get; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string ActiveImageReferenceId { get; set; } - /// An identifier for the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"An identifier for the error.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string ImageValidationErrorDetailCode { get; set; } - /// A message describing the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A message describing the error.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string ImageValidationErrorDetailMessage { get; set; } - /// Validation status of the configured image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Validation status of the configured image.", - SerializedName = @"imageValidationStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of a Dev Box definition. - internal partial interface IDevBoxDefinitionPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal - { - /// - /// Image reference information for the currently active image (only populated during updates). - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ActiveImageReference { get; set; } - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - string ActiveImageReferenceExactVersion { get; set; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - string ActiveImageReferenceId { get; set; } - /// - /// Details for image validator error. Populated when the image validation is not successful. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails ImageValidationErrorDetail { get; set; } - /// An identifier for the error. - string ImageValidationErrorDetailCode { get; set; } - /// A message describing the error. - string ImageValidationErrorDetailMessage { get; set; } - /// Validation status of the configured image. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.PowerShell.cs deleted file mode 100644 index 31f2c97589e2..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.PowerShell.cs +++ /dev/null @@ -1,248 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Partial update of a Dev Box definition resource. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdateTypeConverter))] - public partial class DevBoxDefinitionUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxDefinitionUpdate(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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxDefinitionUpdate(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxDefinitionUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DevBoxDefinitionUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Partial update of a Dev Box definition resource. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdateTypeConverter))] - public partial interface IDevBoxDefinitionUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.cs deleted file mode 100644 index 4e2268210c1d..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.cs +++ /dev/null @@ -1,272 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Partial update of a Dev Box definition resource. - public partial class DevBoxDefinitionUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// - /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting - /// hibernation. To find out more see https://aka.ms/devbox/hibernate - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } - - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; } - - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId = value ?? null; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// Internal Acessors for ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal.ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference = value; } - - /// Internal Acessors for ImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties()); set { {_property = value;} } } - - /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku = value; } - - /// - /// The storage type used for the Operating System disk of Dev Boxes created using this definition. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties _property; - - /// Properties of a Dev Box definition to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties()); set => this._property = value; } - - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity = value ?? default(int); } - - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily = value ?? null; } - - /// The name of the SKU. Ex - P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName = value ?? null; } - - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize = value ?? null; } - - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// Creates an new instance. - public DevBoxDefinitionUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// Partial update of a Dev Box definition resource. - public partial interface IDevBoxDefinitionUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// - /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting - /// hibernation. To find out more see https://aka.ms/devbox/hibernate - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - SerializedName = @"hibernateSupport", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", - SerializedName = @"exactVersion", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceExactVersion { get; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceId { get; set; } - /// - /// The storage type used for the Operating System disk of Dev Boxes created using this definition. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The storage type used for the Operating System disk of Dev Boxes created using this definition.", - SerializedName = @"osStorageType", - PossibleTypes = new [] { typeof(string) })] - string OSStorageType { get; set; } - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", - SerializedName = @"capacity", - PossibleTypes = new [] { typeof(int) })] - int? SkuCapacity { get; set; } - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", - SerializedName = @"family", - PossibleTypes = new [] { typeof(string) })] - string SkuFamily { get; set; } - /// The name of the SKU. Ex - P3. It is typically a letter+number code - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the SKU. Ex - P3. It is typically a letter+number code", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string SkuName { get; set; } - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", - SerializedName = @"size", - PossibleTypes = new [] { typeof(string) })] - string SkuSize { get; set; } - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", - SerializedName = @"tier", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } - - } - /// Partial update of a Dev Box definition resource. - internal partial interface IDevBoxDefinitionUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// - /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting - /// hibernation. To find out more see https://aka.ms/devbox/hibernate - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } - /// Image reference information. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ImageReference { get; set; } - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - string ImageReferenceExactVersion { get; set; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - string ImageReferenceId { get; set; } - /// - /// The storage type used for the Operating System disk of Dev Boxes created using this definition. - /// - string OSStorageType { get; set; } - /// Properties of a Dev Box definition to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties Property { get; set; } - /// The SKU for Dev Boxes created using this definition. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Sku { get; set; } - /// - /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - /// resource this may be omitted. - /// - int? SkuCapacity { get; set; } - /// - /// If the service has different generations of hardware, for the same SKU, then that can be captured here. - /// - string SkuFamily { get; set; } - /// The name of the SKU. Ex - P3. It is typically a letter+number code - string SkuName { get; set; } - /// - /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - /// - string SkuSize { get; set; } - /// - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - /// on a PUT. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.PowerShell.cs deleted file mode 100644 index 9c880ab3905a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,228 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of a Dev Box definition. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdatePropertiesTypeConverter))] - public partial class DevBoxDefinitionUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxDefinitionUpdateProperties(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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxDefinitionUpdateProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxDefinitionUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DevBoxDefinitionUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); - } - if (content.Contains("OSStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ImageReferenceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); - } - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("SkuTier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); - } - if (content.Contains("SkuSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); - } - if (content.Contains("SkuFamily")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); - } - if (content.Contains("SkuCapacity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a Dev Box definition. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdatePropertiesTypeConverter))] - public partial interface IDevBoxDefinitionUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.PowerShell.cs deleted file mode 100644 index d6c2b9640c0b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.PowerShell.cs +++ /dev/null @@ -1,296 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents a devcenter resource. - [System.ComponentModel.TypeConverter(typeof(DevCenterTypeConverter))] - public partial class DevCenter - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevCenter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevCenter(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.DevCenter.Models.Api20230401.IDevCenter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevCenter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevCenter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Uri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Uri, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DevCenter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Uri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).Uri, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevCenter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a devcenter resource. - [System.ComponentModel.TypeConverter(typeof(DevCenterTypeConverter))] - public partial interface IDevCenter - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.cs deleted file mode 100644 index 7c795e3c4783..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.cs +++ /dev/null @@ -1,269 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a devcenter resource. - public partial class DevCenter : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity _identity; - - /// Managed identity properties - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set => this._identity = value; } - - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; } - - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; } - - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType)""); } - - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Uri - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterInternal.Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).DevCenterUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).DevCenterUri = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties _property; - - /// DevCenter properties - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).ProvisioningState; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// The URI of the Dev Center. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)Property).DevCenterUri; } - - /// Creates an new instance. - public DevCenter() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Represents a devcenter resource. - public partial interface IDevCenter : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource - { - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string IdentityPrincipalId { get; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string IdentityTenantId { get; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// The URI of the Dev Center. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The URI of the Dev Center.", - SerializedName = @"devCenterUri", - PossibleTypes = new [] { typeof(string) })] - string Uri { get; } - - } - /// Represents a devcenter resource. - internal partial interface IDevCenterInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal - { - /// Managed identity properties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get; set; } - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityPrincipalId { get; set; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityTenantId { get; set; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - /// DevCenter properties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// The URI of the Dev Center. - string Uri { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.PowerShell.cs deleted file mode 100644 index bf341a40c6eb..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the list devcenters operation - [System.ComponentModel.TypeConverter(typeof(DevCenterListResultTypeConverter))] - public partial class DevCenterListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevCenterListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevCenterListResult(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.DevCenter.Models.Api20230401.IDevCenterListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevCenterListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevCenterListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).NextLink, 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 DevCenterListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevCenterListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the list devcenters operation - [System.ComponentModel.TypeConverter(typeof(DevCenterListResultTypeConverter))] - public partial interface IDevCenterListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.PowerShell.cs deleted file mode 100644 index 0e3f02f0a407..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of the devcenter. - [System.ComponentModel.TypeConverter(typeof(DevCenterPropertiesTypeConverter))] - public partial class DevCenterProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevCenterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevCenterProperties(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.DevCenter.Models.Api20230401.IDevCenterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevCenterProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevCenterProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).DevCenterUri, 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 DevCenterProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevCenterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of the devcenter. - [System.ComponentModel.TypeConverter(typeof(DevCenterPropertiesTypeConverter))] - public partial interface IDevCenterProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.cs deleted file mode 100644 index 3fd69a523744..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of the devcenter. - public partial class DevCenterProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal - { - - /// Backing field for property. - private string _devCenterUri; - - /// The URI of the Dev Center. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string DevCenterUri { get => this._devCenterUri; } - - /// Internal Acessors for DevCenterUri - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal.DevCenterUri { get => this._devCenterUri; set { {_devCenterUri = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public DevCenterProperties() - { - - } - } - /// Properties of the devcenter. - public partial interface IDevCenterProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// The URI of the Dev Center. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The URI of the Dev Center.", - SerializedName = @"devCenterUri", - PossibleTypes = new [] { typeof(string) })] - string DevCenterUri { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of the devcenter. - internal partial interface IDevCenterPropertiesInternal - - { - /// The URI of the Dev Center. - string DevCenterUri { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.PowerShell.cs deleted file mode 100644 index 541092d45452..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.PowerShell.cs +++ /dev/null @@ -1,194 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(DevCenterUpdateTypeConverter))] - public partial class DevCenterUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IDevCenterUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevCenterUpdate(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.DevCenter.Models.Api20230401.IDevCenterUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevCenterUpdate(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevCenterUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DevCenterUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IDevCenterUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(DevCenterUpdateTypeConverter))] - public partial interface IDevCenterUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.cs deleted file mode 100644 index 8c2b43d1de3e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.cs +++ /dev/null @@ -1,167 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. - /// - public partial class DevCenterUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity _identity; - - /// Managed identity properties - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set => this._identity = value; } - - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; } - - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; } - - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType)""); } - - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// Creates an new instance. - public DevCenterUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. - public partial interface IDevCenterUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string IdentityPrincipalId { get; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string IdentityTenantId { get; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - - } - /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. - internal partial interface IDevCenterUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// Managed identity properties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get; set; } - /// - /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityPrincipalId { get; set; } - /// - /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - /// - string IdentityTenantId { get; set; } - /// - /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } - /// - /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM - /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - /// The dictionary values can be empty objects ({}) in requests. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.PowerShell.cs deleted file mode 100644 index e1a649e94d53..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.PowerShell.cs +++ /dev/null @@ -1,160 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// A domain name and connection details used to access a dependency. - [System.ComponentModel.TypeConverter(typeof(EndpointDependencyTypeConverter))] - public partial class EndpointDependency - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IEndpointDependency DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EndpointDependency(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.DevCenter.Models.Api20230401.IEndpointDependency DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EndpointDependency(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EndpointDependency(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EndpointDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).EndpointDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[]) content.GetValueForProperty("EndpointDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).EndpointDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDetailTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EndpointDependency(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("EndpointDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).EndpointDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[]) content.GetValueForProperty("EndpointDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal)this).EndpointDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDetailTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IEndpointDependency FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A domain name and connection details used to access a dependency. - [System.ComponentModel.TypeConverter(typeof(EndpointDependencyTypeConverter))] - public partial interface IEndpointDependency - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs deleted file mode 100644 index 3d368fb44cd1..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs +++ /dev/null @@ -1,240 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] - public partial class EnvironmentType - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentType(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.DevCenter.Models.Api20230401.IEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentType(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentType(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnvironmentType(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] - public partial interface IEnvironmentType - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs deleted file mode 100644 index 6b292e1d4795..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentTypeTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentType ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentType.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentType.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentType.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs deleted file mode 100644 index 7130ba88d92b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs +++ /dev/null @@ -1,156 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents an environment type. - public partial class EnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties _property; - - /// Properties of an environment type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)Property).ProvisioningState; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags()); set => this._tag = value; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public EnvironmentType() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Represents an environment type. - public partial interface IEnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource - { - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } - - } - /// Represents an environment type. - internal partial interface IEnvironmentTypeInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal - { - /// Properties of an environment type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs deleted file mode 100644 index 06b261b2ab4c..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs +++ /dev/null @@ -1,112 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents an environment type. - public partial class EnvironmentType - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags.FromJson(__jsonTags) : Tag;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentType(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs deleted file mode 100644 index aebdf86b025c..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the environment type list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] - public partial class EnvironmentTypeListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentTypeListResult(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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentTypeListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentTypeListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink, 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 EnvironmentTypeListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the environment type list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] - public partial interface IEnvironmentTypeListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs deleted file mode 100644 index e23fad648200..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentTypeListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentTypeListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentTypeListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentTypeListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs deleted file mode 100644 index 8c48ffbc20e6..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Result of the environment type list operation. - public partial class EnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[] Value { get => this._value; } - - /// Creates an new instance. - public EnvironmentTypeListResult() - { - - } - } - /// Result of the environment type list operation. - public partial interface IEnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[] Value { get; } - - } - /// Result of the environment type list operation. - internal partial interface IEnvironmentTypeListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs deleted file mode 100644 index 82549aea6495..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs +++ /dev/null @@ -1,124 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Result of the environment type list operation. - public partial class EnvironmentTypeListResult - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType.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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentTypeListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.PowerShell.cs deleted file mode 100644 index 3c32b32eb8c6..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.PowerShell.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypePropertiesTypeConverter))] - public partial class EnvironmentTypeProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentTypeProperties(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.DevCenter.Models.Api20230401.IEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentTypeProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentTypeProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnvironmentTypeProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypePropertiesTypeConverter))] - public partial interface IEnvironmentTypeProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.cs deleted file mode 100644 index ae78de1efc26..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.cs +++ /dev/null @@ -1,54 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of an environment type. - public partial class EnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal - { - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public EnvironmentTypeProperties() - { - - } - } - /// Properties of an environment type. - public partial interface IEnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of an environment type. - internal partial interface IEnvironmentTypePropertiesInternal - - { - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.PowerShell.cs deleted file mode 100644 index 84152ff76fb4..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.PowerShell.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The environment type for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdateTypeConverter))] - public partial class EnvironmentTypeUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentTypeUpdate(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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentTypeUpdate(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentTypeUpdate(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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnvironmentTypeUpdate(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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The environment type for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdateTypeConverter))] - public partial interface IEnvironmentTypeUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.cs deleted file mode 100644 index 7d1c5237098c..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.cs +++ /dev/null @@ -1,53 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The environment type for partial update. Properties not provided in the update request will not be changed. - /// - public partial class EnvironmentTypeUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdateInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags()); set => this._tag = value; } - - /// Creates an new instance. - public EnvironmentTypeUpdate() - { - - } - } - /// The environment type for partial update. Properties not provided in the update request will not be changed. - public partial interface IEnvironmentTypeUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } - - } - /// The environment type for partial update. Properties not provided in the update request will not be changed. - internal partial interface IEnvironmentTypeUpdateInternal - - { - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.PowerShell.cs deleted file mode 100644 index afd3f9a1ba38..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the gallery list operation. - [System.ComponentModel.TypeConverter(typeof(GalleryListResultTypeConverter))] - public partial class GalleryListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IGalleryListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new GalleryListResult(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.DevCenter.Models.Api20230401.IGalleryListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new GalleryListResult(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.DevCenter.Models.Api20230401.IGalleryListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal GalleryListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).NextLink, 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 GalleryListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the gallery list operation. - [System.ComponentModel.TypeConverter(typeof(GalleryListResultTypeConverter))] - public partial interface IGalleryListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.PowerShell.cs deleted file mode 100644 index 4a33c839dde2..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.PowerShell.cs +++ /dev/null @@ -1,168 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties for a Git repository catalog. - [System.ComponentModel.TypeConverter(typeof(GitCatalogTypeConverter))] - public partial class GitCatalog - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IGitCatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new GitCatalog(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.DevCenter.Models.Api20230401.IGitCatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new GitCatalog(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.DevCenter.Models.Api20230401.IGitCatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal GitCatalog(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Uri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Uri, global::System.Convert.ToString); - } - if (content.Contains("Branch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Branch = (string) content.GetValueForProperty("Branch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Branch, global::System.Convert.ToString); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Path, 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 GitCatalog(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Uri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Uri, global::System.Convert.ToString); - } - if (content.Contains("Branch")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Branch = (string) content.GetValueForProperty("Branch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Branch, global::System.Convert.ToString); - } - if (content.Contains("SecretIdentifier")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).SecretIdentifier, global::System.Convert.ToString); - } - if (content.Contains("Path")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal)this).Path, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties for a Git repository catalog. - [System.ComponentModel.TypeConverter(typeof(GitCatalogTypeConverter))] - public partial interface IGitCatalog - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.PowerShell.cs deleted file mode 100644 index 2a99eaa2eb49..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.PowerShell.cs +++ /dev/null @@ -1,192 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// An individual health check item - [System.ComponentModel.TypeConverter(typeof(HealthCheckTypeConverter))] - public partial class HealthCheck - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IHealthCheck DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthCheck(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.DevCenter.Models.Api20230401.IHealthCheck DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthCheck(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.DevCenter.Models.Api20230401.IHealthCheck FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthCheck(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("StartDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("AdditionalDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).AdditionalDetail = (string) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).AdditionalDetail, 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 HealthCheck(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("StartDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ErrorType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).ErrorType, global::System.Convert.ToString); - } - if (content.Contains("RecommendedAction")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).RecommendedAction, global::System.Convert.ToString); - } - if (content.Contains("AdditionalDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).AdditionalDetail = (string) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal)this).AdditionalDetail, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An individual health check item - [System.ComponentModel.TypeConverter(typeof(HealthCheckTypeConverter))] - public partial interface IHealthCheck - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.PowerShell.cs deleted file mode 100644 index 52969a4c095a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.PowerShell.cs +++ /dev/null @@ -1,156 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the network health check list operation. - [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsListResultTypeConverter))] - public partial class HealthCheckStatusDetailsListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthCheckStatusDetailsListResult(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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthCheckStatusDetailsListResult(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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthCheckStatusDetailsListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).NextLink, 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 HealthCheckStatusDetailsListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the network health check list operation. - [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsListResultTypeConverter))] - public partial interface IHealthCheckStatusDetailsListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.PowerShell.cs deleted file mode 100644 index 8a159e618d05..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.PowerShell.cs +++ /dev/null @@ -1,164 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Health Check properties. - [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsPropertiesTypeConverter))] - public partial class HealthCheckStatusDetailsProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HealthCheckStatusDetailsProperties(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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HealthCheckStatusDetailsProperties(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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HealthCheckStatusDetailsProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StartDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("HealthCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HealthCheckStatusDetailsProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StartDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndDateTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("HealthCheck")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckTypeConverter.ConvertFrom)); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Health Check properties. - [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsPropertiesTypeConverter))] - public partial interface IHealthCheckStatusDetailsProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.PowerShell.cs deleted file mode 100644 index 2e1cb0e5d229..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.PowerShell.cs +++ /dev/null @@ -1,328 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents an image. - [System.ComponentModel.TypeConverter(typeof(ImageTypeConverter))] - public partial class Image - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IImage DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Image(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.DevCenter.Models.Api20230401.IImage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Image(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.DevCenter.Models.Api20230401.IImage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Image(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImagePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("RecommendedMachineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Publisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Publisher, global::System.Convert.ToString); - } - if (content.Contains("Offer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Offer, global::System.Convert.ToString); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Sku, global::System.Convert.ToString); - } - if (content.Contains("RecommendedMachineConfigurationMemory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("RecommendedMachineConfigurationVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Image(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImagePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("RecommendedMachineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Publisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Publisher, global::System.Convert.ToString); - } - if (content.Contains("Offer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Offer, global::System.Convert.ToString); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).Sku, global::System.Convert.ToString); - } - if (content.Contains("RecommendedMachineConfigurationMemory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("RecommendedMachineConfigurationVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents an image. - [System.ComponentModel.TypeConverter(typeof(ImageTypeConverter))] - public partial interface IImage - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.PowerShell.cs deleted file mode 100644 index af1c95ddec71..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.PowerShell.cs +++ /dev/null @@ -1,240 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of an image. - [System.ComponentModel.TypeConverter(typeof(ImagePropertiesTypeConverter))] - public partial class ImageProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IImageProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ImageProperties(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.DevCenter.Models.Api20230401.IImageProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ImageProperties(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.DevCenter.Models.Api20230401.IImageProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ImageProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecommendedMachineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Publisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Publisher, global::System.Convert.ToString); - } - if (content.Contains("Offer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Offer, global::System.Convert.ToString); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Sku, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("RecommendedMachineConfigurationMemory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("RecommendedMachineConfigurationVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ImageProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("RecommendedMachineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Publisher")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Publisher, global::System.Convert.ToString); - } - if (content.Contains("Offer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Offer, global::System.Convert.ToString); - } - if (content.Contains("Sku")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).Sku, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("RecommendedMachineConfigurationMemory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("RecommendedMachineConfigurationVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an image. - [System.ComponentModel.TypeConverter(typeof(ImagePropertiesTypeConverter))] - public partial interface IImageProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.cs deleted file mode 100644 index af3a746d6dfb..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.cs +++ /dev/null @@ -1,253 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of an image. - public partial class ImageProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal - { - - /// Backing field for property. - private string _description; - - /// The description of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Description { get => this._description; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? _hibernateSupport; - - /// - /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out - /// more see https://aka.ms/devbox/hibernate - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; } - - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax; } - - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin; } - - /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.Description { get => this._description; set { {_description = value;} } } - - /// Internal Acessors for HibernateSupport - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.HibernateSupport { get => this._hibernateSupport; set { {_hibernateSupport = value;} } } - - /// Internal Acessors for MemoryMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax = value; } - - /// Internal Acessors for MemoryMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin = value; } - - /// Internal Acessors for Offer - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.Offer { get => this._offer; set { {_offer = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for Publisher - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.Publisher { get => this._publisher; set { {_publisher = value;} } } - - /// Internal Acessors for RecommendedMachineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.RecommendedMachineConfiguration { get => (this._recommendedMachineConfiguration = this._recommendedMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfiguration()); set { {_recommendedMachineConfiguration = value;} } } - - /// Internal Acessors for RecommendedMachineConfigurationMemory - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.RecommendedMachineConfigurationMemory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).Memory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).Memory = value; } - - /// Internal Acessors for RecommendedMachineConfigurationVCpUs - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.RecommendedMachineConfigurationVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUs = value; } - - /// Internal Acessors for Sku - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.Sku { get => this._sku; set { {_sku = value;} } } - - /// Internal Acessors for VCpUsMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax = value; } - - /// Internal Acessors for VCpUsMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin = value; } - - /// Backing field for property. - private string _offer; - - /// The name of the image offer. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Offer { get => this._offer; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private string _publisher; - - /// The publisher of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Publisher { get => this._publisher; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration _recommendedMachineConfiguration; - - /// The recommended machine configuration to use with the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get => (this._recommendedMachineConfiguration = this._recommendedMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfiguration()); } - - /// Backing field for property. - private string _sku; - - /// The SKU name for the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Sku { get => this._sku; } - - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax; } - - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin; } - - /// Creates an new instance. - public ImageProperties() - { - - } - } - /// Properties of an image. - public partial interface IImageProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// The description of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The description of the image.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; } - /// - /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out - /// more see https://aka.ms/devbox/hibernate - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", - SerializedName = @"hibernateSupport", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; } - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Maximum value.", - SerializedName = @"max", - PossibleTypes = new [] { typeof(int) })] - int? MemoryMax { get; } - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Minimum value.", - SerializedName = @"min", - PossibleTypes = new [] { typeof(int) })] - int? MemoryMin { get; } - /// The name of the image offer. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the image offer.", - SerializedName = @"offer", - PossibleTypes = new [] { typeof(string) })] - string Offer { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// The publisher of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The publisher of the image.", - SerializedName = @"publisher", - PossibleTypes = new [] { typeof(string) })] - string Publisher { get; } - /// The SKU name for the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The SKU name for the image.", - SerializedName = @"sku", - PossibleTypes = new [] { typeof(string) })] - string Sku { get; } - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Maximum value.", - SerializedName = @"max", - PossibleTypes = new [] { typeof(int) })] - int? VCpUsMax { get; } - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Minimum value.", - SerializedName = @"min", - PossibleTypes = new [] { typeof(int) })] - int? VCpUsMin { get; } - - } - /// Properties of an image. - internal partial interface IImagePropertiesInternal - - { - /// The description of the image. - string Description { get; set; } - /// - /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out - /// more see https://aka.ms/devbox/hibernate - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } - /// Maximum value. - int? MemoryMax { get; set; } - /// Minimum value. - int? MemoryMin { get; set; } - /// The name of the image offer. - string Offer { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// The publisher of the image. - string Publisher { get; set; } - /// The recommended machine configuration to use with the image. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get; set; } - /// Recommended memory range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange RecommendedMachineConfigurationMemory { get; set; } - /// Recommended vCPU range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange RecommendedMachineConfigurationVCpUs { get; set; } - /// The SKU name for the image. - string Sku { get; set; } - /// Maximum value. - int? VCpUsMax { get; set; } - /// Minimum value. - int? VCpUsMin { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs deleted file mode 100644 index aa4c04375e1b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Image reference information - [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] - public partial class ImageReference - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ImageReference(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.DevCenter.Models.Api20230401.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ImageReference(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.DevCenter.Models.Api20230401.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ImageReference(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("ExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).ExactVersion = (string) content.GetValueForProperty("ExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).ExactVersion, 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 ImageReference(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("ExactVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).ExactVersion = (string) content.GetValueForProperty("ExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)this).ExactVersion, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Image reference information - [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] - public partial interface IImageReference - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs deleted file mode 100644 index c1d2eb944b81..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ImageReferenceTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageReference ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ImageReference.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ImageReference.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ImageReference.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.cs deleted file mode 100644 index 860d792e3f32..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.cs +++ /dev/null @@ -1,86 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Image reference information - public partial class ImageReference : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal - { - - /// Backing field for property. - private string _exactVersion; - - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string ExactVersion { get => this._exactVersion; } - - /// Backing field for property. - private string _id; - - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Internal Acessors for ExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal.ExactVersion { get => this._exactVersion; set { {_exactVersion = value;} } } - - /// Creates an new instance. - public ImageReference() - { - - } - } - /// Image reference information - public partial interface IImageReference : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", - SerializedName = @"exactVersion", - PossibleTypes = new [] { typeof(string) })] - string ExactVersion { get; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - - } - /// Image reference information - internal partial interface IImageReferenceInternal - - { - /// - /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual - /// version in use. - /// - string ExactVersion { get; set; } - /// - /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. - /// - string Id { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs deleted file mode 100644 index 84095515a992..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs +++ /dev/null @@ -1,113 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Image reference information - public partial class ImageReference - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageReference(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal ImageReference(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_exactVersion = If( json?.PropertyT("exactVersion"), out var __jsonExactVersion) ? (string)__jsonExactVersion : (string)ExactVersion;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._exactVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._exactVersion.ToString()) : null, "exactVersion" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.PowerShell.cs deleted file mode 100644 index 60f8a27ae8e1..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the image version list operation. - [System.ComponentModel.TypeConverter(typeof(ImageVersionListResultTypeConverter))] - public partial class ImageVersionListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IImageVersionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ImageVersionListResult(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.DevCenter.Models.Api20230401.IImageVersionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ImageVersionListResult(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.DevCenter.Models.Api20230401.IImageVersionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ImageVersionListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).NextLink, 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 ImageVersionListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the image version list operation. - [System.ComponentModel.TypeConverter(typeof(ImageVersionListResultTypeConverter))] - public partial interface IImageVersionListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.PowerShell.cs deleted file mode 100644 index 9d4a7a3bba7b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of an image version. - [System.ComponentModel.TypeConverter(typeof(ImageVersionPropertiesTypeConverter))] - public partial class ImageVersionProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IImageVersionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ImageVersionProperties(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.DevCenter.Models.Api20230401.IImageVersionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ImageVersionProperties(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.DevCenter.Models.Api20230401.IImageVersionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ImageVersionProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("PublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ExcludeFromLatest")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OSDiskImageSizeInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ImageVersionProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("PublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("ExcludeFromLatest")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OSDiskImageSizeInGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an image version. - [System.ComponentModel.TypeConverter(typeof(ImageVersionPropertiesTypeConverter))] - public partial interface IImageVersionProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.PowerShell.cs deleted file mode 100644 index dd435c020dee..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// List of Core Usages. - [System.ComponentModel.TypeConverter(typeof(ListUsagesResultTypeConverter))] - public partial class ListUsagesResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IListUsagesResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ListUsagesResult(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.DevCenter.Models.Api20230401.IListUsagesResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ListUsagesResult(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.DevCenter.Models.Api20230401.IListUsagesResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ListUsagesResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).NextLink, 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 ListUsagesResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// List of Core Usages. - [System.ComponentModel.TypeConverter(typeof(ListUsagesResultTypeConverter))] - public partial interface IListUsagesResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.PowerShell.cs deleted file mode 100644 index bd7cf86d29a3..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.PowerShell.cs +++ /dev/null @@ -1,312 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Network related settings - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionTypeConverter))] - public partial class NetworkConnection - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.INetworkConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkConnection(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.DevCenter.Models.Api20230401.INetworkConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkConnection(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.DevCenter.Models.Api20230401.INetworkConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkConnection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainPassword, global::System.Convert.ToString); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("NetworkingResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal NetworkConnection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainPassword, global::System.Convert.ToString); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("NetworkingResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network related settings - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionTypeConverter))] - public partial interface INetworkConnection - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.PowerShell.cs deleted file mode 100644 index c5e340af534a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the network connection list operation. - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionListResultTypeConverter))] - public partial class NetworkConnectionListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.INetworkConnectionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkConnectionListResult(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.DevCenter.Models.Api20230401.INetworkConnectionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkConnectionListResult(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.DevCenter.Models.Api20230401.INetworkConnectionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkConnectionListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).NextLink, 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 NetworkConnectionListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the network connection list operation. - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionListResultTypeConverter))] - public partial interface INetworkConnectionListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.PowerShell.cs deleted file mode 100644 index c960821da0a3..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.PowerShell.cs +++ /dev/null @@ -1,202 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The network connection properties for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdateTypeConverter))] - public partial class NetworkConnectionUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.INetworkConnectionUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkConnectionUpdate(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.DevCenter.Models.Api20230401.INetworkConnectionUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkConnectionUpdate(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.DevCenter.Models.Api20230401.INetworkConnectionUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkConnectionUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainPassword, 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 NetworkConnectionUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The network connection properties for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdateTypeConverter))] - public partial interface INetworkConnectionUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.cs deleted file mode 100644 index b58c97da43ae..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The network connection properties for partial update. Properties not provided in the update request will not be changed. - /// - public partial class NetworkConnectionUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// Active Directory domain name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainName = value ?? null; } - - /// The password for the account used to join domain - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword = value ?? null; } - - /// - /// The username of an Active Directory account (user or service account) that has permissions to create computer objects - /// in Active Directory. Required format: admin@contoso.com. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername = value ?? null; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties()); set { {_property = value;} } } - - /// Active Directory domain Organization Unit (OU) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties _property; - - /// Properties of a network connection resource to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties()); set => this._property = value; } - - /// The subnet to attach Virtual Machines to - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId = value ?? null; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// Creates an new instance. - public NetworkConnectionUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// The network connection properties for partial update. Properties not provided in the update request will not be changed. - public partial interface INetworkConnectionUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// Active Directory domain name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Active Directory domain name", - SerializedName = @"domainName", - PossibleTypes = new [] { typeof(string) })] - string DomainName { get; set; } - /// The password for the account used to join domain - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The password for the account used to join domain", - SerializedName = @"domainPassword", - PossibleTypes = new [] { typeof(string) })] - string DomainPassword { get; set; } - /// - /// The username of an Active Directory account (user or service account) that has permissions to create computer objects - /// in Active Directory. Required format: admin@contoso.com. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.", - SerializedName = @"domainUsername", - PossibleTypes = new [] { typeof(string) })] - string DomainUsername { get; set; } - /// Active Directory domain Organization Unit (OU) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Active Directory domain Organization Unit (OU)", - SerializedName = @"organizationUnit", - PossibleTypes = new [] { typeof(string) })] - string OrganizationUnit { get; set; } - /// The subnet to attach Virtual Machines to - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The subnet to attach Virtual Machines to", - SerializedName = @"subnetId", - PossibleTypes = new [] { typeof(string) })] - string SubnetId { get; set; } - - } - /// The network connection properties for partial update. Properties not provided in the update request will not be changed. - internal partial interface INetworkConnectionUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// Active Directory domain name - string DomainName { get; set; } - /// The password for the account used to join domain - string DomainPassword { get; set; } - /// - /// The username of an Active Directory account (user or service account) that has permissions to create computer objects - /// in Active Directory. Required format: admin@contoso.com. - /// - string DomainUsername { get; set; } - /// Active Directory domain Organization Unit (OU) - string OrganizationUnit { get; set; } - /// Properties of a network connection resource to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties Property { get; set; } - /// The subnet to attach Virtual Machines to - string SubnetId { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.PowerShell.cs deleted file mode 100644 index 33ad0a87cbe6..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,182 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of network connection. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdatePropertiesTypeConverter))] - public partial class NetworkConnectionUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkConnectionUpdateProperties(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.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkConnectionUpdateProperties(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.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkConnectionUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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 NetworkConnectionUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of network connection. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdatePropertiesTypeConverter))] - public partial interface INetworkConnectionUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.PowerShell.cs deleted file mode 100644 index d8b330837f2e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.PowerShell.cs +++ /dev/null @@ -1,208 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Network properties - [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] - public partial class NetworkProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.INetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new NetworkProperties(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.DevCenter.Models.Api20230401.INetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new NetworkProperties(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.DevCenter.Models.Api20230401.INetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal NetworkProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("NetworkingResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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 NetworkProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("HealthCheckStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); - } - if (content.Contains("NetworkingResourceGroupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); - } - if (content.Contains("DomainJoinType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); - } - if (content.Contains("SubnetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("OrganizationUnit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); - } - if (content.Contains("DomainUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); - } - if (content.Contains("DomainPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Network properties - [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] - public partial interface INetworkProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs deleted file mode 100644 index 77e6fc28ab86..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs +++ /dev/null @@ -1,256 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// The current status of an async operation - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial class OperationStatus - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationStatus(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.DevCenter.Models.Api20230401.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationStatus(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.DevCenter.Models.Api20230401.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationStatus(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("PercentComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Operation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResultTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationStatus(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("AdditionalInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("PercentComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Operation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResultTypeConverter.ConvertFrom)); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The current status of an async operation - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial interface IOperationStatus - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs deleted file mode 100644 index 0417abf1b11b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class OperationStatusTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IOperationStatus ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return OperationStatus.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return OperationStatus.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return OperationStatus.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs deleted file mode 100644 index ddf470bac677..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs +++ /dev/null @@ -1,160 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// The current status of an async operation - public partial class OperationStatus : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult __operationStatusResult = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResult(); - - /// The error additional info. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo; } - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code; } - - /// The error details. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail; } - - /// The end time of the operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).EndTime = value ?? default(global::System.DateTime); } - - /// If present, details of the operation error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Error = value ?? null /* model class */; } - - /// Fully qualified ID for the async operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Id = value ?? null; } - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any()); set { {_property = value;} } } - - /// Internal Acessors for ResourceId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatusInternal.ResourceId { get => this._resourceId; set { {_resourceId = value;} } } - - /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo = value; } - - /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code = value; } - - /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail = value; } - - /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message = value; } - - /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target = value; } - - /// Name of the async operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Name = value ?? null; } - - /// The operations list. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[] Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Operation = value ?? null /* arrayOf */; } - - /// Percent of the operation that is complete. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public float? PercentComplete { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).PercentComplete; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).PercentComplete = value ?? default(float); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny _property; - - /// Custom operation properties, populated only for a successful operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any()); } - - /// Backing field for property. - private string _resourceId; - - /// The id of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string ResourceId { get => this._resourceId; } - - /// The start time of the operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).StartTime = value ?? default(global::System.DateTime); } - - /// Operation status. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Status = value ; } - - /// The error target. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target; } - - /// Creates an new instance. - public OperationStatus() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__operationStatusResult), __operationStatusResult); - await eventListener.AssertObjectIsValid(nameof(__operationStatusResult), __operationStatusResult); - } - } - /// The current status of an async operation - public partial interface IOperationStatus : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult - { - /// Custom operation properties, populated only for a successful operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Custom operation properties, populated only for a successful operation.", - SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get; } - /// The id of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The id of the resource.", - SerializedName = @"resourceId", - PossibleTypes = new [] { typeof(string) })] - string ResourceId { get; } - - } - /// The current status of an async operation - internal partial interface IOperationStatusInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal - { - /// Custom operation properties, populated only for a successful operation. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get; set; } - /// The id of the resource. - string ResourceId { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs deleted file mode 100644 index 09e4c70205cb..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs +++ /dev/null @@ -1,118 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// The current status of an async operation - public partial class OperationStatus - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new OperationStatus(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal OperationStatus(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __operationStatusResult = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResult(json); - {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any.FromJson(__jsonProperties) : Property;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __operationStatusResult?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._resourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._resourceId.ToString()) : null, "resourceId" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.PowerShell.cs deleted file mode 100644 index 963a136f7067..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.PowerShell.cs +++ /dev/null @@ -1,156 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A collection of related endpoints from the same service for which the agent requires outbound access. - /// - [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointTypeConverter))] - public partial class OutboundEnvironmentEndpoint - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OutboundEnvironmentEndpoint(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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OutboundEnvironmentEndpoint(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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OutboundEnvironmentEndpoint(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("Endpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[]) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Endpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDependencyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal OutboundEnvironmentEndpoint(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("Endpoint")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[]) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal)this).Endpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDependencyTypeConverter.ConvertFrom)); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A collection of related endpoints from the same service for which the agent requires outbound access. - [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointTypeConverter))] - public partial interface IOutboundEnvironmentEndpoint - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.PowerShell.cs deleted file mode 100644 index bb1673046f05..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.PowerShell.cs +++ /dev/null @@ -1,157 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Values returned by the List operation. - [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointCollectionTypeConverter))] - public partial class OutboundEnvironmentEndpointCollection - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OutboundEnvironmentEndpointCollection(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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OutboundEnvironmentEndpointCollection(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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OutboundEnvironmentEndpointCollection(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink, 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 OutboundEnvironmentEndpointCollection(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Values returned by the List operation. - [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointCollectionTypeConverter))] - public partial interface IOutboundEnvironmentEndpointCollection - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs deleted file mode 100644 index bcd28271272f..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs +++ /dev/null @@ -1,320 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// A pool of Virtual Machines. - [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] - public partial class Pool - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IPool DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Pool(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.DevCenter.Models.Api20230401.IPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Pool(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.DevCenter.Models.Api20230401.IPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Pool(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HealthStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Pool(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HealthStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A pool of Virtual Machines. - [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] - public partial interface IPool - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs deleted file mode 100644 index 0937dd57b415..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PoolTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPool ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Pool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Pool.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Pool.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.cs deleted file mode 100644 index 3a1bafa27ebe..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.cs +++ /dev/null @@ -1,310 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// A pool of Virtual Machines. - public partial class Pool : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); - - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName = value ?? null; } - - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatus; } - - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatusDetail; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } - - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for HealthStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal.HealthStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatus = value; } - - /// Internal Acessors for HealthStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal.HealthStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).HealthStatusDetail = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for StopOnDisconnect - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolInternal.StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties _property; - - /// Pool properties - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)Property).ProvisioningState; } - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute = value ?? default(int); } - - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public Pool() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// A pool of Virtual Machines. - public partial interface IPool : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource - { - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Dev Box definition in parent Project of this Pool", - SerializedName = @"devBoxDefinitionName", - PossibleTypes = new [] { typeof(string) })] - string DevBoxDefinitionName { get; set; } - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - SerializedName = @"healthStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; } - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", - SerializedName = @"healthStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", - SerializedName = @"localAdministrator", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Network Connection in parent Project of this Pool", - SerializedName = @"networkConnectionName", - PossibleTypes = new [] { typeof(string) })] - string NetworkConnectionName { get; set; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } - /// A pool of Virtual Machines. - internal partial interface IPoolInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal - { - /// Name of a Dev Box definition in parent Project of this Pool - string DevBoxDefinitionName { get; set; } - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; set; } - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get; set; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - string NetworkConnectionName { get; set; } - /// Pool properties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.json.cs deleted file mode 100644 index 854fe14bf790..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Pool.json.cs +++ /dev/null @@ -1,110 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// A pool of Virtual Machines. - public partial class Pool - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Pool(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal Pool(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolProperties.FromJson(__jsonProperties) : Property;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs deleted file mode 100644 index cbf31e235e16..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the machine pool list operation. - [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] - public partial class PoolListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PoolListResult(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.DevCenter.Models.Api20230401.IPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PoolListResult(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.DevCenter.Models.Api20230401.IPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PoolListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).NextLink, 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 PoolListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the machine pool list operation. - [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] - public partial interface IPoolListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs deleted file mode 100644 index 78e8133e5776..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PoolListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPoolListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PoolListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PoolListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs deleted file mode 100644 index e360c3a43f5f..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the machine pool list operation. - public partial class PoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[] Value { get => this._value; } - - /// Creates an new instance. - public PoolListResult() - { - - } - } - /// Results of the machine pool list operation. - public partial interface IPoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[] Value { get; } - - } - /// Results of the machine pool list operation. - internal partial interface IPoolListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs deleted file mode 100644 index b88668438f0e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs +++ /dev/null @@ -1,124 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the machine pool list operation. - public partial class PoolListResult - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal PoolListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPool) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.PowerShell.cs deleted file mode 100644 index 3332044cc342..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.PowerShell.cs +++ /dev/null @@ -1,216 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of a Pool - [System.ComponentModel.TypeConverter(typeof(PoolPropertiesTypeConverter))] - public partial class PoolProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IPoolProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PoolProperties(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.DevCenter.Models.Api20230401.IPoolProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PoolProperties(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.DevCenter.Models.Api20230401.IPoolProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PoolProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); - } - if (content.Contains("HealthStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PoolProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); - } - if (content.Contains("HealthStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetailTypeConverter.ConvertFrom)); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a Pool - [System.ComponentModel.TypeConverter(typeof(PoolPropertiesTypeConverter))] - public partial interface IPoolProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.cs deleted file mode 100644 index 48733888f030..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.cs +++ /dev/null @@ -1,164 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of a Pool - public partial class PoolProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties __poolUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties(); - - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DevBoxDefinitionName = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? _healthStatus; - - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get => this._healthStatus; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] _healthStatusDetail; - - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get => this._healthStatusDetail; } - - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } - - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } - - /// Internal Acessors for HealthStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal.HealthStatus { get => this._healthStatus; set { {_healthStatus = value;} } } - - /// Internal Acessors for HealthStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal.HealthStatusDetail { get => this._healthStatusDetail; set { {_healthStatusDetail = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).NetworkConnectionName = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnect = value ?? null /* model class */; } - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectGracePeriodMinute = value ?? default(int); } - - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } - - /// Creates an new instance. - public PoolProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__poolUpdateProperties), __poolUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__poolUpdateProperties), __poolUpdateProperties); - } - } - /// Properties of a Pool - public partial interface IPoolProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties - { - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - SerializedName = @"healthStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; } - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", - SerializedName = @"healthStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of a Pool - internal partial interface IPoolPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal - { - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; set; } - /// - /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool - /// is in a non-healthy state - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail[] HealthStatusDetail { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.PowerShell.cs deleted file mode 100644 index 95999a0d7bd7..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.PowerShell.cs +++ /dev/null @@ -1,218 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The pool properties for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(PoolUpdateTypeConverter))] - public partial class PoolUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IPoolUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PoolUpdate(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.DevCenter.Models.Api20230401.IPoolUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PoolUpdate(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.DevCenter.Models.Api20230401.IPoolUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PoolUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PoolUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The pool properties for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(PoolUpdateTypeConverter))] - public partial interface IPoolUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.cs deleted file mode 100644 index 42a17cf2bd5b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.cs +++ /dev/null @@ -1,188 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The pool properties for partial update. Properties not provided in the update request will not be changed. - /// - public partial class PoolUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName = value ?? null; } - - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } - - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties()); set { {_property = value;} } } - - /// Internal Acessors for StopOnDisconnect - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateInternal.StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect = value; } - - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties _property; - - /// Properties of a pool to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties()); set => this._property = value; } - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute = value ?? default(int); } - - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// Creates an new instance. - public PoolUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// The pool properties for partial update. Properties not provided in the update request will not be changed. - public partial interface IPoolUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Dev Box definition in parent Project of this Pool", - SerializedName = @"devBoxDefinitionName", - PossibleTypes = new [] { typeof(string) })] - string DevBoxDefinitionName { get; set; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", - SerializedName = @"localAdministrator", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Network Connection in parent Project of this Pool", - SerializedName = @"networkConnectionName", - PossibleTypes = new [] { typeof(string) })] - string NetworkConnectionName { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } - /// The pool properties for partial update. Properties not provided in the update request will not be changed. - internal partial interface IPoolUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// Name of a Dev Box definition in parent Project of this Pool - string DevBoxDefinitionName { get; set; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - string NetworkConnectionName { get; set; } - /// Properties of a pool to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties Property { get; set; } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.PowerShell.cs deleted file mode 100644 index 6cc44b407318..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,194 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of a Pool. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(PoolUpdatePropertiesTypeConverter))] - public partial class PoolUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IPoolUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PoolUpdateProperties(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.DevCenter.Models.Api20230401.IPoolUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PoolUpdateProperties(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.DevCenter.Models.Api20230401.IPoolUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PoolUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PoolUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("DevBoxDefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); - } - if (content.Contains("NetworkConnectionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); - } - if (content.Contains("LicenseType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a Pool. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(PoolUpdatePropertiesTypeConverter))] - public partial interface IPoolUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.cs deleted file mode 100644 index 21b0fa9afe71..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.cs +++ /dev/null @@ -1,168 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// Properties of a Pool. These properties can be updated after the resource has been created. - /// - public partial class PoolUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal - { - - /// Backing field for property. - private string _devBoxDefinitionName; - - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string DevBoxDefinitionName { get => this._devBoxDefinitionName; set => this._devBoxDefinitionName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? _licenseType; - - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? _localAdministrator; - - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => this._localAdministrator; set => this._localAdministrator = value; } - - /// Internal Acessors for StopOnDisconnect - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdatePropertiesInternal.StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfiguration()); set { {_stopOnDisconnect = value;} } } - - /// Backing field for property. - private string _networkConnectionName; - - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NetworkConnectionName { get => this._networkConnectionName; set => this._networkConnectionName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration _stopOnDisconnect; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfiguration()); set => this._stopOnDisconnect = value; } - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute = value ?? default(int); } - - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } - - /// Creates an new instance. - public PoolUpdateProperties() - { - - } - } - /// Properties of a Pool. These properties can be updated after the resource has been created. - public partial interface IPoolUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// Name of a Dev Box definition in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Dev Box definition in parent Project of this Pool", - SerializedName = @"devBoxDefinitionName", - PossibleTypes = new [] { typeof(string) })] - string DevBoxDefinitionName { get; set; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", - SerializedName = @"licenseType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", - SerializedName = @"localAdministrator", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of a Network Connection in parent Project of this Pool", - SerializedName = @"networkConnectionName", - PossibleTypes = new [] { typeof(string) })] - string NetworkConnectionName { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } - /// Properties of a Pool. These properties can be updated after the resource has been created. - internal partial interface IPoolUpdatePropertiesInternal - - { - /// Name of a Dev Box definition in parent Project of this Pool - string DevBoxDefinitionName { get; set; } - /// - /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Name of a Network Connection in parent Project of this Pool - string NetworkConnectionName { get; set; } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.json.cs deleted file mode 100644 index 147969fc7691..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.json.cs +++ /dev/null @@ -1,118 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// Properties of a Pool. These properties can be updated after the resource has been created. - /// - public partial class PoolUpdateProperties - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolUpdateProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal PoolUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_stopOnDisconnect = If( json?.PropertyT("stopOnDisconnect"), out var __jsonStopOnDisconnect) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.StopOnDisconnectConfiguration.FromJson(__jsonStopOnDisconnect) : StopOnDisconnect;} - {_devBoxDefinitionName = If( json?.PropertyT("devBoxDefinitionName"), out var __jsonDevBoxDefinitionName) ? (string)__jsonDevBoxDefinitionName : (string)DevBoxDefinitionName;} - {_networkConnectionName = If( json?.PropertyT("networkConnectionName"), out var __jsonNetworkConnectionName) ? (string)__jsonNetworkConnectionName : (string)NetworkConnectionName;} - {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} - {_localAdministrator = If( json?.PropertyT("localAdministrator"), out var __jsonLocalAdministrator) ? (string)__jsonLocalAdministrator : (string)LocalAdministrator;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._stopOnDisconnect ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._stopOnDisconnect.ToJson(null,serializationMode) : null, "stopOnDisconnect" ,container.Add ); - AddIf( null != (((object)this._devBoxDefinitionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._devBoxDefinitionName.ToString()) : null, "devBoxDefinitionName" ,container.Add ); - AddIf( null != (((object)this._networkConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._networkConnectionName.ToString()) : null, "networkConnectionName" ,container.Add ); - AddIf( null != (((object)this._licenseType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._licenseType.ToString()) : null, "licenseType" ,container.Add ); - AddIf( null != (((object)this._localAdministrator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._localAdministrator.ToString()) : null, "localAdministrator" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs deleted file mode 100644 index 93e4017b5b51..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs +++ /dev/null @@ -1,280 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents a project resource. - [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] - public partial class Project - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Project(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.DevCenter.Models.Api20230401.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Project(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.DevCenter.Models.Api20230401.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Project(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterUri, 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 Project(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectPropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal)this).DevCenterUri, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a project resource. - [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] - public partial interface IProject - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs deleted file mode 100644 index 22c3770abbcd..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProjectTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProject ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Project.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Project.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Project.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.cs deleted file mode 100644 index fe2f054620fc..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.cs +++ /dev/null @@ -1,216 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a project resource. - public partial class Project : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); - - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } - - /// Resource Id of an associated DevCenter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).DevCenterId = value ?? null; } - - /// The URI of the Dev Center resource this project is associated with. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DevCenterUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).DevCenterUri; } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser = value ?? default(int); } - - /// Internal Acessors for DevCenterUri - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal.DevCenterUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).DevCenterUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).DevCenterUri = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties _property; - - /// Properties of a project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)Property).ProvisioningState; } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } - - /// Creates an new instance. - public Project() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); - await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); - } - } - /// Represents a project resource. - public partial interface IProject : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource - { - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Description of the project.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// Resource Id of an associated DevCenter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource Id of an associated DevCenter", - SerializedName = @"devCenterId", - PossibleTypes = new [] { typeof(string) })] - string DevCenterId { get; set; } - /// The URI of the Dev Center resource this project is associated with. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The URI of the Dev Center resource this project is associated with.", - SerializedName = @"devCenterUri", - PossibleTypes = new [] { typeof(string) })] - string DevCenterUri { get; } - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.", - SerializedName = @"maxDevBoxesPerUser", - PossibleTypes = new [] { typeof(int) })] - int? MaxDevBoxesPerUser { get; set; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Represents a project resource. - internal partial interface IProjectInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal - { - /// Description of the project. - string Description { get; set; } - /// Resource Id of an associated DevCenter - string DevCenterId { get; set; } - /// The URI of the Dev Center resource this project is associated with. - string DevCenterUri { get; set; } - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - int? MaxDevBoxesPerUser { get; set; } - /// Properties of a project. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.json.cs deleted file mode 100644 index acd44a8c2073..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Project.json.cs +++ /dev/null @@ -1,110 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a project resource. - public partial class Project - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Project(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal Project(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectProperties.FromJson(__jsonProperties) : Property;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __trackedResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.PowerShell.cs deleted file mode 100644 index f4c820b06b47..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.PowerShell.cs +++ /dev/null @@ -1,328 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents an environment type. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeTypeConverter))] - public partial class ProjectEnvironmentType - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectEnvironmentType(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.DevCenter.Models.Api20230401.IProjectEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectEnvironmentType(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.DevCenter.Models.Api20230401.IProjectEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectEnvironmentType(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectEnvironmentType(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents an environment type. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeTypeConverter))] - public partial interface IProjectEnvironmentType - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.PowerShell.cs deleted file mode 100644 index 0f843bc9cd53..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the project environment type list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeListResultTypeConverter))] - public partial class ProjectEnvironmentTypeListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectEnvironmentTypeListResult(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectEnvironmentTypeListResult(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectEnvironmentTypeListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).NextLink, 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 ProjectEnvironmentTypeListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the project environment type list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeListResultTypeConverter))] - public partial interface IProjectEnvironmentTypeListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.PowerShell.cs deleted file mode 100644 index 5f6fe69e81ab..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.PowerShell.cs +++ /dev/null @@ -1,186 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of a project environment type. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypePropertiesTypeConverter))] - public partial class ProjectEnvironmentTypeProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectEnvironmentTypeProperties(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectEnvironmentTypeProperties(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectEnvironmentTypeProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectEnvironmentTypeProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a project environment type. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypePropertiesTypeConverter))] - public partial interface IProjectEnvironmentTypeProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.cs deleted file mode 100644 index bdc93c88e270..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.cs +++ /dev/null @@ -1,99 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of a project environment type. - public partial class ProjectEnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties __projectEnvironmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties(); - - /// The role definition assigned to the environment creator on backing resources. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignment = value ?? null /* model class */; } - - /// A map of roles to assign to the environment creator. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignmentRole = value ?? null /* model class */; } - - /// - /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this - /// subscription. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).DeploymentTargetId = value ?? null; } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Defines whether this Environment Type can be used in this Project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } - - /// - /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role - /// definition IDs. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).UserRoleAssignment = value ?? null /* model class */; } - - /// Creates an new instance. - public ProjectEnvironmentTypeProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__projectEnvironmentTypeUpdateProperties), __projectEnvironmentTypeUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__projectEnvironmentTypeUpdateProperties), __projectEnvironmentTypeUpdateProperties); - } - } - /// Properties of a project environment type. - public partial interface IProjectEnvironmentTypeProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties - { - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of a project environment type. - internal partial interface IProjectEnvironmentTypePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal - { - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.PowerShell.cs deleted file mode 100644 index e53bd6d3ab97..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.PowerShell.cs +++ /dev/null @@ -1,236 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The project environment type for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdateTypeConverter))] - public partial class ProjectEnvironmentTypeUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectEnvironmentTypeUpdate(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectEnvironmentTypeUpdate(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectEnvironmentTypeUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectEnvironmentTypeUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The project environment type for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdateTypeConverter))] - public partial interface IProjectEnvironmentTypeUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs deleted file mode 100644 index fe1dc4a47e1a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,183 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of a project environment type. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdatePropertiesTypeConverter))] - public partial class ProjectEnvironmentTypeUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectEnvironmentTypeUpdateProperties(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectEnvironmentTypeUpdateProperties(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectEnvironmentTypeUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectEnvironmentTypeUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("CreatorRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - if (content.Contains("UserRoleAssignment")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); - } - if (content.Contains("CreatorRoleAssignmentRole")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a project environment type. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdatePropertiesTypeConverter))] - public partial interface IProjectEnvironmentTypeUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.cs deleted file mode 100644 index 999faa156629..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.cs +++ /dev/null @@ -1,131 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// Properties of a project environment type. These properties can be updated after the resource has been created. - /// - public partial class ProjectEnvironmentTypeUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment _creatorRoleAssignment; - - /// The role definition assigned to the environment creator on backing resources. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get => (this._creatorRoleAssignment = this._creatorRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment()); set => this._creatorRoleAssignment = value; } - - /// A map of roles to assign to the environment creator. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)CreatorRoleAssignment).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)CreatorRoleAssignment).Role = value ?? null /* model class */; } - - /// Backing field for property. - private string _deploymentTargetId; - - /// - /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this - /// subscription. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string DeploymentTargetId { get => this._deploymentTargetId; set => this._deploymentTargetId = value; } - - /// Internal Acessors for CreatorRoleAssignment - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal.CreatorRoleAssignment { get => (this._creatorRoleAssignment = this._creatorRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment()); set { {_creatorRoleAssignment = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? _status; - - /// Defines whether this Environment Type can be used in this Project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => this._status; set => this._status = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments _userRoleAssignment; - - /// - /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role - /// definition IDs. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => (this._userRoleAssignment = this._userRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments()); set => this._userRoleAssignment = value; } - - /// Creates an new instance. - public ProjectEnvironmentTypeUpdateProperties() - { - - } - } - /// Properties of a project environment type. These properties can be updated after the resource has been created. - public partial interface IProjectEnvironmentTypeUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// A map of roles to assign to the environment creator. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A map of roles to assign to the environment creator.", - SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } - /// - /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this - /// subscription. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.", - SerializedName = @"deploymentTargetId", - PossibleTypes = new [] { typeof(string) })] - string DeploymentTargetId { get; set; } - /// Defines whether this Environment Type can be used in this Project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Defines whether this Environment Type can be used in this Project.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } - /// - /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role - /// definition IDs. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", - SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } - - } - /// Properties of a project environment type. These properties can be updated after the resource has been created. - internal partial interface IProjectEnvironmentTypeUpdatePropertiesInternal - - { - /// The role definition assigned to the environment creator on backing resources. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } - /// A map of roles to assign to the environment creator. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } - /// - /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this - /// subscription. - /// - string DeploymentTargetId { get; set; } - /// Defines whether this Environment Type can be used in this Project. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } - /// - /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role - /// definition IDs. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs deleted file mode 100644 index 5360642facdf..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs +++ /dev/null @@ -1,53 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// The role definition assigned to the environment creator on backing resources. - public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles _role; - - /// A map of roles to assign to the environment creator. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get => (this._role = this._role ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles()); set => this._role = value; } - - /// - /// Creates an new instance. - /// - public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment() - { - - } - } - /// The role definition assigned to the environment creator on backing resources. - public partial interface IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// A map of roles to assign to the environment creator. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A map of roles to assign to the environment creator.", - SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get; set; } - - } - /// The role definition assigned to the environment creator on backing resources. - internal partial interface IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal - - { - /// A map of roles to assign to the environment creator. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs deleted file mode 100644 index 5460ec5dcce4..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs +++ /dev/null @@ -1,75 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs deleted file mode 100644 index de5e42be612e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs +++ /dev/null @@ -1,75 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - public partial class ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs deleted file mode 100644 index e2a27163f3d0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Results of the project list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] - public partial class ProjectListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectListResult(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.DevCenter.Models.Api20230401.IProjectListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectListResult(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.DevCenter.Models.Api20230401.IProjectListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).NextLink, 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 ProjectListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the project list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] - public partial interface IProjectListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs deleted file mode 100644 index 7bf4c7e165d5..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProjectListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ProjectListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ProjectListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ProjectListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs deleted file mode 100644 index ef5482f2400e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the project list operation. - public partial class ProjectListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[] Value { get => this._value; } - - /// Creates an new instance. - public ProjectListResult() - { - - } - } - /// Results of the project list operation. - public partial interface IProjectListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[] Value { get; } - - } - /// Results of the project list operation. - internal partial interface IProjectListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs deleted file mode 100644 index bd3b7128861f..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs +++ /dev/null @@ -1,124 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Results of the project list operation. - public partial class ProjectListResult - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal ProjectListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProject) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.PowerShell.cs deleted file mode 100644 index 27144a8af3a8..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties of a project. - [System.ComponentModel.TypeConverter(typeof(ProjectPropertiesTypeConverter))] - public partial class ProjectProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectProperties(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.DevCenter.Models.Api20230401.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectProperties(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.DevCenter.Models.Api20230401.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("DevCenterUri")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a project. - [System.ComponentModel.TypeConverter(typeof(ProjectPropertiesTypeConverter))] - public partial interface IProjectProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.cs deleted file mode 100644 index c3465358525d..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties of a project. - public partial class ProjectProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties __projectUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties(); - - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).Description = value ?? null; } - - /// Resource Id of an associated DevCenter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DevCenterId = value ?? null; } - - /// Backing field for property. - private string _devCenterUri; - - /// The URI of the Dev Center resource this project is associated with. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string DevCenterUri { get => this._devCenterUri; } - - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)__projectUpdateProperties).MaxDevBoxesPerUser = value ?? default(int); } - - /// Internal Acessors for DevCenterUri - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal.DevCenterUri { get => this._devCenterUri; set { {_devCenterUri = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public ProjectProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__projectUpdateProperties), __projectUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__projectUpdateProperties), __projectUpdateProperties); - } - } - /// Properties of a project. - public partial interface IProjectProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties - { - /// The URI of the Dev Center resource this project is associated with. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The URI of the Dev Center resource this project is associated with.", - SerializedName = @"devCenterUri", - PossibleTypes = new [] { typeof(string) })] - string DevCenterUri { get; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// Properties of a project. - internal partial interface IProjectPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal - { - /// The URI of the Dev Center resource this project is associated with. - string DevCenterUri { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.PowerShell.cs deleted file mode 100644 index 16c2fd514ea2..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.PowerShell.cs +++ /dev/null @@ -1,186 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The project properties for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(ProjectUpdateTypeConverter))] - public partial class ProjectUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectUpdate(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.DevCenter.Models.Api20230401.IProjectUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectUpdate(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.DevCenter.Models.Api20230401.IProjectUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The project properties for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(ProjectUpdateTypeConverter))] - public partial interface IProjectUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.cs deleted file mode 100644 index 35c37a40fd5a..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.cs +++ /dev/null @@ -1,126 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The project properties for partial update. Properties not provided in the update request will not be changed. - /// - public partial class ProjectUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } - - /// Resource Id of an associated DevCenter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).DevCenterId = value ?? null; } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser = value ?? default(int); } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties _property; - - /// Properties of a project to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties()); set => this._property = value; } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// Creates an new instance. - public ProjectUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// The project properties for partial update. Properties not provided in the update request will not be changed. - public partial interface IProjectUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Description of the project.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// Resource Id of an associated DevCenter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource Id of an associated DevCenter", - SerializedName = @"devCenterId", - PossibleTypes = new [] { typeof(string) })] - string DevCenterId { get; set; } - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.", - SerializedName = @"maxDevBoxesPerUser", - PossibleTypes = new [] { typeof(int) })] - int? MaxDevBoxesPerUser { get; set; } - - } - /// The project properties for partial update. Properties not provided in the update request will not be changed. - internal partial interface IProjectUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// Description of the project. - string Description { get; set; } - /// Resource Id of an associated DevCenter - string DevCenterId { get; set; } - /// - /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This - /// will have no effect on existing Dev Boxes when reduced. - /// - int? MaxDevBoxesPerUser { get; set; } - /// Properties of a project to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties Property { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.PowerShell.cs deleted file mode 100644 index 18c95adbea7e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,162 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// Properties of a project. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(ProjectUpdatePropertiesTypeConverter))] - public partial class ProjectUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectUpdateProperties(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.DevCenter.Models.Api20230401.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectUpdateProperties(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.DevCenter.Models.Api20230401.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ProjectUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("DevCenterId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of a project. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(ProjectUpdatePropertiesTypeConverter))] - public partial interface IProjectUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.PowerShell.cs deleted file mode 100644 index c1f92ddf2d28..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.PowerShell.cs +++ /dev/null @@ -1,186 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Properties for a recommended machine configuration. - [System.ComponentModel.TypeConverter(typeof(RecommendedMachineConfigurationTypeConverter))] - public partial class RecommendedMachineConfiguration - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new RecommendedMachineConfiguration(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.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new RecommendedMachineConfiguration(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.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal RecommendedMachineConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Memory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).Memory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("Memory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).Memory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("VCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal RecommendedMachineConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Memory")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).Memory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("Memory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).Memory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("VCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRangeTypeConverter.ConvertFrom); - } - if (content.Contains("MemoryMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMin")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("VCpUsMax")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties for a recommended machine configuration. - [System.ComponentModel.TypeConverter(typeof(RecommendedMachineConfigurationTypeConverter))] - public partial interface IRecommendedMachineConfiguration - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.cs deleted file mode 100644 index d715a499f2f6..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.cs +++ /dev/null @@ -1,126 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Properties for a recommended machine configuration. - public partial class RecommendedMachineConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange _memory; - - /// Recommended memory range. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Memory { get => (this._memory = this._memory ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange()); } - - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Max; } - - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Min; } - - /// Internal Acessors for Memory - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.Memory { get => (this._memory = this._memory ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange()); set { {_memory = value;} } } - - /// Internal Acessors for MemoryMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Max; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Max = value; } - - /// Internal Acessors for MemoryMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Min; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)Memory).Min = value; } - - /// Internal Acessors for VCpUs - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.VCpUs { get => (this._vCpUs = this._vCpUs ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange()); set { {_vCpUs = value;} } } - - /// Internal Acessors for VCpUsMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Max; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Max = value; } - - /// Internal Acessors for VCpUsMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfigurationInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Min; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Min = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange _vCpUs; - - /// Recommended vCPU range. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange VCpUs { get => (this._vCpUs = this._vCpUs ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange()); } - - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Max; } - - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)VCpUs).Min; } - - /// Creates an new instance. - public RecommendedMachineConfiguration() - { - - } - } - /// Properties for a recommended machine configuration. - public partial interface IRecommendedMachineConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Maximum value.", - SerializedName = @"max", - PossibleTypes = new [] { typeof(int) })] - int? MemoryMax { get; } - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Minimum value.", - SerializedName = @"min", - PossibleTypes = new [] { typeof(int) })] - int? MemoryMin { get; } - /// Maximum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Maximum value.", - SerializedName = @"max", - PossibleTypes = new [] { typeof(int) })] - int? VCpUsMax { get; } - /// Minimum value. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Minimum value.", - SerializedName = @"min", - PossibleTypes = new [] { typeof(int) })] - int? VCpUsMin { get; } - - } - /// Properties for a recommended machine configuration. - internal partial interface IRecommendedMachineConfigurationInternal - - { - /// Recommended memory range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Memory { get; set; } - /// Maximum value. - int? MemoryMax { get; set; } - /// Minimum value. - int? MemoryMin { get; set; } - /// Recommended vCPU range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange VCpUs { get; set; } - /// Maximum value. - int? VCpUsMax { get; set; } - /// Minimum value. - int? VCpUsMin { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs deleted file mode 100644 index 46a7793da676..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs +++ /dev/null @@ -1,272 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Represents a Schedule to execute a task. - [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] - public partial class Schedule - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.ISchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Schedule(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.DevCenter.Models.Api20230401.ISchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Schedule(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.DevCenter.Models.Api20230401.ISchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Schedule(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.SchedulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("PropertiesType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).PropertiesType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).PropertiesType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Schedule(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.SchedulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("PropertiesType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).PropertiesType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).PropertiesType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Represents a Schedule to execute a task. - [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] - public partial interface ISchedule - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs deleted file mode 100644 index f1b26385c257..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ScheduleTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ISchedule ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Schedule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Schedule.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Schedule.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.cs deleted file mode 100644 index 46e15ba7ce65..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.cs +++ /dev/null @@ -1,209 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a Schedule to execute a task. - public partial class Schedule : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); - - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleProperties()); set { {_property = value;} } } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)Property).ProvisioningState = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } - - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties _property; - - /// Properties of a Schedule resource - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleProperties()); set => this._property = value; } - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)Property).ProvisioningState; } - - /// Indicates whether or not this scheduled task is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } - - /// - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } - - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } - - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } - - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } - - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } - - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } - - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Time = value ?? null; } - - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).TimeZone = value ?? null; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public Schedule() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// Represents a Schedule to execute a task. - public partial interface ISchedule : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource - { - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The frequency of this scheduled task.", - SerializedName = @"frequency", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Supported type this scheduled task represents.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get; set; } - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - /// Indicates whether or not this scheduled task is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether or not this scheduled task is enabled.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target time to trigger the action. The format is HH:MM.", - SerializedName = @"time", - PossibleTypes = new [] { typeof(string) })] - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IANA timezone id at which the schedule should execute.", - SerializedName = @"timeZone", - PossibleTypes = new [] { typeof(string) })] - string TimeZone { get; set; } - - } - /// Represents a Schedule to execute a task. - internal partial interface IScheduleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal - { - /// The frequency of this scheduled task. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } - /// Supported type this scheduled task represents. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get; set; } - /// Properties of a Schedule resource - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties Property { get; set; } - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - /// Indicates whether or not this scheduled task is enabled. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } - /// The target time to trigger the action. The format is HH:MM. - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - string TimeZone { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs deleted file mode 100644 index aa97eee579b0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs +++ /dev/null @@ -1,110 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Represents a Schedule to execute a task. - public partial class Schedule - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Schedule(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal Schedule(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleProperties.FromJson(__jsonProperties) : Property;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs deleted file mode 100644 index 914abd022ccc..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Result of the schedule list operation. - [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] - public partial class ScheduleListResult - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IScheduleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleListResult(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.DevCenter.Models.Api20230401.IScheduleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleListResult(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.DevCenter.Models.Api20230401.IScheduleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).NextLink, 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 ScheduleListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the schedule list operation. - [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] - public partial interface IScheduleListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs deleted file mode 100644 index 5beea10a6f7c..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ScheduleListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IScheduleListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ScheduleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ScheduleListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ScheduleListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs deleted file mode 100644 index dceabee65c50..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs +++ /dev/null @@ -1,74 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Result of the schedule list operation. - public partial class ScheduleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal - { - - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResultInternal.Value { get => this._value; set { {_value = value;} } } - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[] Value { get => this._value; } - - /// Creates an new instance. - public ScheduleListResult() - { - - } - } - /// Result of the schedule list operation. - public partial interface IScheduleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[] Value { get; } - - } - /// Result of the schedule list operation. - internal partial interface IScheduleListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs deleted file mode 100644 index decabc2a2409..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs +++ /dev/null @@ -1,124 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Result of the schedule list operation. - public partial class ScheduleListResult - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ScheduleListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal ScheduleListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ISchedule) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.PowerShell.cs deleted file mode 100644 index 96b740de2207..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.PowerShell.cs +++ /dev/null @@ -1,184 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// The Schedule properties defining when and what to execute. - [System.ComponentModel.TypeConverter(typeof(SchedulePropertiesTypeConverter))] - public partial class ScheduleProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IScheduleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleProperties(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.DevCenter.Models.Api20230401.IScheduleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleProperties(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.DevCenter.Models.Api20230401.IScheduleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ScheduleProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The Schedule properties defining when and what to execute. - [System.ComponentModel.TypeConverter(typeof(SchedulePropertiesTypeConverter))] - public partial interface IScheduleProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.cs deleted file mode 100644 index 8d1eb05a5cfd..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.cs +++ /dev/null @@ -1,93 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// The Schedule properties defining when and what to execute. - public partial class ScheduleProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties __scheduleUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties(); - - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; - - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Indicates whether or not this scheduled task is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } - - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Time = value ?? null; } - - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).TimeZone = value ?? null; } - - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } - - /// Creates an new instance. - public ScheduleProperties() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__scheduleUpdateProperties), __scheduleUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__scheduleUpdateProperties), __scheduleUpdateProperties); - } - } - /// The Schedule properties defining when and what to execute. - public partial interface IScheduleProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties - { - /// The provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the resource.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } - - } - /// The Schedule properties defining when and what to execute. - internal partial interface ISchedulePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal - { - /// The provisioning state of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.PowerShell.cs deleted file mode 100644 index 52bf4227c5e0..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.PowerShell.cs +++ /dev/null @@ -1,202 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// The schedule properties for partial update. Properties not provided in the update request will not be changed. - /// - [System.ComponentModel.TypeConverter(typeof(ScheduleUpdateTypeConverter))] - public partial class ScheduleUpdate - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IScheduleUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleUpdate(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.DevCenter.Models.Api20230401.IScheduleUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleUpdate(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.DevCenter.Models.Api20230401.IScheduleUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleUpdate(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ScheduleUpdate(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdatePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The schedule properties for partial update. Properties not provided in the update request will not be changed. - [System.ComponentModel.TypeConverter(typeof(ScheduleUpdateTypeConverter))] - public partial interface IScheduleUpdate - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.cs deleted file mode 100644 index 4c9f12308b72..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.cs +++ /dev/null @@ -1,145 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// - /// The schedule properties for partial update. Properties not provided in the update request will not be changed. - /// - public partial class ScheduleUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(); - - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties _property; - - /// Properties of a schedule resource to be updated. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties()); set => this._property = value; } - - /// Indicates whether or not this scheduled task is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } - - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Time = value ?? null; } - - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).TimeZone = value ?? null; } - - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)Property).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } - - /// Creates an new instance. - public ScheduleUpdate() - { - - } - - /// 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.DevCenter.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); - } - } - /// The schedule properties for partial update. Properties not provided in the update request will not be changed. - public partial interface IScheduleUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate - { - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The frequency of this scheduled task.", - SerializedName = @"frequency", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } - /// Indicates whether or not this scheduled task is enabled. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether or not this scheduled task is enabled.", - SerializedName = @"state", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target time to trigger the action. The format is HH:MM.", - SerializedName = @"time", - PossibleTypes = new [] { typeof(string) })] - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The IANA timezone id at which the schedule should execute.", - SerializedName = @"timeZone", - PossibleTypes = new [] { typeof(string) })] - string TimeZone { get; set; } - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Supported type this scheduled task represents.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get; set; } - - } - /// The schedule properties for partial update. Properties not provided in the update request will not be changed. - internal partial interface IScheduleUpdateInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal - { - /// The frequency of this scheduled task. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } - /// Properties of a schedule resource to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties Property { get; set; } - /// Indicates whether or not this scheduled task is enabled. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } - /// The target time to trigger the action. The format is HH:MM. - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - string TimeZone { get; set; } - /// Supported type this scheduled task represents. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.PowerShell.cs deleted file mode 100644 index 76db39abbafb..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Updatable properties of a Schedule. - [System.ComponentModel.TypeConverter(typeof(ScheduleUpdatePropertiesTypeConverter))] - public partial class ScheduleUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IScheduleUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleUpdateProperties(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.DevCenter.Models.Api20230401.IScheduleUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleUpdateProperties(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.DevCenter.Models.Api20230401.IScheduleUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ScheduleUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Updatable properties of a Schedule. - [System.ComponentModel.TypeConverter(typeof(ScheduleUpdatePropertiesTypeConverter))] - public partial interface IScheduleUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs deleted file mode 100644 index 47b4edba4283..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] - public partial class StopOnDisconnectConfiguration - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StopOnDisconnectConfiguration(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.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StopOnDisconnectConfiguration(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.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StopOnDisconnectConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("GracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal StopOnDisconnectConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("GracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] - public partial interface IStopOnDisconnectConfiguration - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs deleted file mode 100644 index 83d04e553ba4..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class StopOnDisconnectConfigurationTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return StopOnDisconnectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return StopOnDisconnectConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return StopOnDisconnectConfiguration.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.cs deleted file mode 100644 index 4cee1778d232..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial class StopOnDisconnectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfigurationInternal - { - - /// Backing field for property. - private int? _gracePeriodMinute; - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public int? GracePeriodMinute { get => this._gracePeriodMinute; set => this._gracePeriodMinute = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? _status; - - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get => this._status; set => this._status = value; } - - /// Creates an new instance. - public StopOnDisconnectConfiguration() - { - - } - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial interface IStopOnDisconnectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable - { - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? GracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get; set; } - - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - internal partial interface IStopOnDisconnectConfigurationInternal - - { - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? GracePeriodMinute { get; set; } - /// - /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs deleted file mode 100644 index 6564b8f53d10..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs +++ /dev/null @@ -1,110 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial class StopOnDisconnectConfiguration - { - - /// - /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IStopOnDisconnectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new StopOnDisconnectConfiguration(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. - internal StopOnDisconnectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_gracePeriodMinute = If( json?.PropertyT("gracePeriodMinutes"), out var __jsonGracePeriodMinutes) ? (int?)__jsonGracePeriodMinutes : GracePeriodMinute;} - 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AddIf( null != this._gracePeriodMinute ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._gracePeriodMinute) : null, "gracePeriodMinutes" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.PowerShell.cs deleted file mode 100644 index 874b28fa9a2e..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.PowerShell.cs +++ /dev/null @@ -1,184 +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.DevCenter.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; - - /// The core usage details. - [System.ComponentModel.TypeConverter(typeof(UsageTypeConverter))] - public partial class Usage - { - - /// - /// 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); - - /// - /// 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.DevCenter.Models.Api20230401.IUsage DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Usage(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.DevCenter.Models.Api20230401.IUsage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Usage(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.DevCenter.Models.Api20230401.IUsage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Usage(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageNameTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).CurrentValue = (long?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).CurrentValue, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Limit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Limit = (long?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Limit, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Unit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Unit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit?) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Unit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit.CreateFrom); - } - if (content.Contains("NameLocalizedValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); - } - if (content.Contains("NameValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameValue, 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 Usage(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageNameTypeConverter.ConvertFrom); - } - if (content.Contains("CurrentValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).CurrentValue = (long?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).CurrentValue, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Limit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Limit = (long?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Limit, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); - } - if (content.Contains("Unit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Unit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit?) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).Unit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit.CreateFrom); - } - if (content.Contains("NameLocalizedValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); - } - if (content.Contains("NameValue")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal)this).NameValue, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - } - /// The core usage details. - [System.ComponentModel.TypeConverter(typeof(UsageTypeConverter))] - public partial interface IUsage - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.dictionary.cs deleted file mode 100644 index fe50979abca9..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.dictionary.cs +++ /dev/null @@ -1,75 +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.DevCenter.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; - - public partial class UserRoleAssignmentRoles : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray - { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - - int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } - - /// - /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole value) => __additionalProperties.Add( key, value); - - public void Clear() => __additionalProperties.Clear(); - - /// - public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); - - /// - public void CopyFrom(global::System.Collections.IDictionary source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public void CopyFrom(global::System.Management.Automation.PSObject source) - { - if (null != source) - { - foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) - { - if ((null != property.Key && null != property.Value)) - { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); - } - } - } - } - - /// - public bool Remove(global::System.String key) => __additionalProperties.Remove( key); - - /// - /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole value) => __additionalProperties.TryGetValue( key, out value); - - /// - - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentRoles source) => source.__additionalProperties; - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.PowerShell.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.PowerShell.cs index 4526ff69aa51..50559ab15531 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AllowedEnvironmentType partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,7 +70,7 @@ internal AllowedEnvironmentType(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -114,13 +114,17 @@ internal AllowedEnvironmentType(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).DisplayName, 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. @@ -135,7 +139,7 @@ internal AllowedEnvironmentType(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -179,33 +183,39 @@ internal AllowedEnvironmentType(global::System.Management.Automation.PSObject co } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal)this).DisplayName, 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.DevCenter.Models.Api20230401.IAllowedEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AllowedEnvironmentType(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.DevCenter.Models.Api20230401.IAllowedEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AllowedEnvironmentType(content); } @@ -215,7 +225,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IA /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.TypeConverter.cs index 0866104c4964..64bcd3f8d49d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAllowedEnvironmentType ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.cs index a785b40db840..58b5233272e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents an allowed environment type. public partial class AllowedEnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -18,17 +18,24 @@ public partial class AllowedEnvironmentType : /// private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + /// The display name of the allowed environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).DisplayName; } + /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + /// Internal Acessors for DisplayName + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal.DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).DisplayName = value; } + /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -47,15 +54,15 @@ public partial class AllowedEnvironmentType : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties _property; /// Properties of an allowed environment type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -116,6 +123,14 @@ public partial interface IAllowedEnvironmentType : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource { + /// The display name of the allowed environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The display name of the allowed environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -130,8 +145,10 @@ public partial interface IAllowedEnvironmentType : internal partial interface IAllowedEnvironmentTypeInternal : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal { + /// The display name of the allowed environment type. + string DisplayName { get; set; } /// Properties of an allowed environment type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.json.cs index 42d6dbfdcf23..5061782f51a4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentType.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -66,18 +66,18 @@ internal AllowedEnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Run return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AllowedEnvironmentType(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.PowerShell.cs new file mode 100644 index 000000000000..d5463c0d4fe0 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the allowed environment type list operation. + [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypeListResultTypeConverter))] + public partial class AllowedEnvironmentTypeListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AllowedEnvironmentTypeListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).NextLink, 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 AllowedEnvironmentTypeListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal)this).NextLink, 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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AllowedEnvironmentTypeListResult(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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AllowedEnvironmentTypeListResult(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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the allowed environment type list operation. + [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypeListResultTypeConverter))] + public partial interface IAllowedEnvironmentTypeListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.TypeConverter.cs index 30e64da97651..790f17a09cd3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.cs index 044243164cff..cf465b24dcfd 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Result of the allowed environment type list operation. public partial class AllowedEnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class AllowedEnvironmentTypeListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[] Value { get => this._value; } /// Creates an new instance. public AllowedEnvironmentTypeListResult() @@ -57,8 +57,8 @@ public partial interface IAllowedEnvironmentTypeListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[] Value { get; } } /// Result of the allowed environment type list operation. @@ -68,7 +68,7 @@ internal partial interface IAllowedEnvironmentTypeListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.json.cs index 729b74d329fd..bdad3718b9d7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AllowedEnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.Dev { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAllowedEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AllowedEnvironmentType.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AllowedEnvironmentType.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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AllowedEnvironmentTypeListResult(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.PowerShell.cs new file mode 100644 index 000000000000..02ddd946cefc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an allowed environment type. + [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypePropertiesTypeConverter))] + public partial class AllowedEnvironmentTypeProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AllowedEnvironmentTypeProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).DisplayName, 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 AllowedEnvironmentTypeProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal)this).DisplayName, 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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AllowedEnvironmentTypeProperties(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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AllowedEnvironmentTypeProperties(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.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an allowed environment type. + [System.ComponentModel.TypeConverter(typeof(AllowedEnvironmentTypePropertiesTypeConverter))] + public partial interface IAllowedEnvironmentTypeProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.TypeConverter.cs index b7b8219d4f1c..3d4c2205c3bf 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.cs new file mode 100644 index 000000000000..9e3701d300bd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an allowed environment type. + public partial class AllowedEnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal + { + + /// Backing field for property. + private string _displayName; + + /// The display name of the allowed environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; } + + /// Internal Acessors for DisplayName + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public AllowedEnvironmentTypeProperties() + { + + } + } + /// Properties of an allowed environment type. + public partial interface IAllowedEnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// The display name of the allowed environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The display name of the allowed environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of an allowed environment type. + internal partial interface IAllowedEnvironmentTypePropertiesInternal + + { + /// The display name of the allowed environment type. + string DisplayName { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.json.cs similarity index 87% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.json.cs index bf32f98e0fd8..61b428c34845 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AllowedEnvironmentTypeProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AllowedEnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -66,17 +66,18 @@ internal AllowedEnvironmentTypeProperties(Microsoft.Azure.PowerShell.Cmdlets.Dev return; } {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AllowedEnvironmentTypeProperties(json) : null; } @@ -104,6 +105,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.PowerShell.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.PowerShell.cs index 5cbcdb87a617..f229e2856443 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AttachedNetworkConnection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,7 +70,7 @@ internal AttachedNetworkConnection(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -114,29 +114,29 @@ internal AttachedNetworkConnection(global::System.Collections.IDictionary conten } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("NetworkConnectionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionId, global::System.Convert.ToString); } if (content.Contains("NetworkConnectionLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); } if (content.Contains("HealthCheckStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); } if (content.Contains("DomainJoinType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.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. @@ -151,7 +151,7 @@ internal AttachedNetworkConnection(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -195,51 +195,51 @@ internal AttachedNetworkConnection(global::System.Management.Automation.PSObject } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("NetworkConnectionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionId, global::System.Convert.ToString); } if (content.Contains("NetworkConnectionLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); } if (content.Contains("HealthCheckStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); } if (content.Contains("DomainJoinType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.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.DevCenter.Models.Api20230401.IAttachedNetworkConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AttachedNetworkConnection(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.DevCenter.Models.Api20230401.IAttachedNetworkConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AttachedNetworkConnection(content); } @@ -249,7 +249,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IA /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.TypeConverter.cs index 701fd7f9d400..92ed1487686f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAttachedNetworkConnection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.cs index 9b0bc15d83fe..fd42b6b37a3a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents an attached NetworkConnection. public partial class AttachedNetworkConnection : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -22,11 +22,11 @@ public partial class AttachedNetworkConnection : /// AAD Join type of the network. This is populated based on the referenced Network Connection. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType; } /// Health check status values [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -35,19 +35,19 @@ public partial class AttachedNetworkConnection : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for DomainJoinType - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal.DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal.DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).DomainJoinType = value; } /// Internal Acessors for HealthCheckStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal.HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal.HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).HealthCheckStatus = value; } /// Internal Acessors for NetworkConnectionLocation - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal.NetworkConnectionLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal.NetworkConnectionLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -67,24 +67,24 @@ public partial class AttachedNetworkConnection : /// The resource ID of the NetworkConnection you want to attach. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NetworkConnectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionId = value ?? null; } + public string NetworkConnectionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionId = value ?? null; } /// /// The geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NetworkConnectionLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation; } + public string NetworkConnectionLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).NetworkConnectionLocation; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties _property; /// Attached NetworkConnection properties. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -208,7 +208,7 @@ internal partial interface IAttachedNetworkConnectionInternal : /// string NetworkConnectionLocation { get; set; } /// Attached NetworkConnection properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.json.cs index fedfe7314713..a586cf25c874 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnection.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -66,18 +66,18 @@ internal AttachedNetworkConnection(Microsoft.Azure.PowerShell.Cmdlets.DevCenter. return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnectionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AttachedNetworkConnection(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.PowerShell.cs new file mode 100644 index 000000000000..479e838f340b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an attached NetworkConnection. + [System.ComponentModel.TypeConverter(typeof(AttachedNetworkConnectionPropertiesTypeConverter))] + public partial class AttachedNetworkConnectionProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AttachedNetworkConnectionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("NetworkConnectionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal AttachedNetworkConnectionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("NetworkConnectionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId = (string) content.GetValueForProperty("NetworkConnectionId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionId, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation = (string) content.GetValueForProperty("NetworkConnectionLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).NetworkConnectionLocation, global::System.Convert.ToString); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType?) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.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.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AttachedNetworkConnectionProperties(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.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AttachedNetworkConnectionProperties(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.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an attached NetworkConnection. + [System.ComponentModel.TypeConverter(typeof(AttachedNetworkConnectionPropertiesTypeConverter))] + public partial interface IAttachedNetworkConnectionProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.TypeConverter.cs index fe59b815be4b..c997e0b7237a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.cs index 1d0d0b66045d..4e10118d5807 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Properties of an attached NetworkConnection. public partial class AttachedNetworkConnectionProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal { /// Backing field for property. @@ -30,16 +30,16 @@ public partial class AttachedNetworkConnectionProperties : public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => this._healthCheckStatus; } /// Internal Acessors for DomainJoinType - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal.DomainJoinType { get => this._domainJoinType; set { {_domainJoinType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal.DomainJoinType { get => this._domainJoinType; set { {_domainJoinType = value;} } } /// Internal Acessors for HealthCheckStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal.HealthCheckStatus { get => this._healthCheckStatus; set { {_healthCheckStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal.HealthCheckStatus { get => this._healthCheckStatus; set { {_healthCheckStatus = value;} } } /// Internal Acessors for NetworkConnectionLocation - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal.NetworkConnectionLocation { get => this._networkConnectionLocation; set { {_networkConnectionLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal.NetworkConnectionLocation { get => this._networkConnectionLocation; set { {_networkConnectionLocation = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _networkConnectionId; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.json.cs index beb1afd39f53..944f7d4a35a7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkConnectionProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkConnectionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -74,13 +74,13 @@ internal AttachedNetworkConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnectionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AttachedNetworkConnectionProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.PowerShell.cs new file mode 100644 index 000000000000..89b9689c4b1c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the Attached Networks list operation. + [System.ComponentModel.TypeConverter(typeof(AttachedNetworkListResultTypeConverter))] + public partial class AttachedNetworkListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal AttachedNetworkListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).NextLink, 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 AttachedNetworkListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal)this).NextLink, 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.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new AttachedNetworkListResult(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.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new AttachedNetworkListResult(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.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the Attached Networks list operation. + [System.ComponentModel.TypeConverter(typeof(AttachedNetworkListResultTypeConverter))] + public partial interface IAttachedNetworkListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.TypeConverter.cs index 93e61cb65524..3f7467512a04 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAttachedNetworkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.cs index 199940adb424..287385b6d473 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the Attached Networks list operation. public partial class AttachedNetworkListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class AttachedNetworkListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[] Value { get => this._value; } /// Creates an new instance. public AttachedNetworkListResult() @@ -57,8 +57,8 @@ public partial interface IAttachedNetworkListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[] Value { get; } } /// Results of the Attached Networks list operation. @@ -68,7 +68,7 @@ internal partial interface IAttachedNetworkListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.json.cs index 119e1ee7f09b..83043fb2c8bb 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/AttachedNetworkListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/AttachedNetworkListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AttachedNetworkListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAttachedNetworkConnection) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection.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.DevCenter.Models.Api20230401.IAttachedNetworkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new AttachedNetworkListResult(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.PowerShell.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.PowerShell.cs index b000dd52888e..603061beee71 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class Capability partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -70,17 +70,17 @@ internal Capability(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Value, 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. @@ -95,37 +95,37 @@ internal Capability(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal)this).Value, 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.DevCenter.Models.Api20230401.ICapability DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Capability(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.DevCenter.Models.Api20230401.ICapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Capability(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IC /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.TypeConverter.cs index 71ab689e8192..15bffa359884 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICapability ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.cs index efcdbac439a9..6a60a99373b0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// A name/value pair to describe a capability. public partial class Capability : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal { /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Value - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapabilityInternal.Value { get => this._value; set { {_value = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapabilityInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _name; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.json.cs index f7e3dfbedd6a..ccfe9320e418 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Capability.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Capability.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -71,13 +71,13 @@ internal Capability(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Capability(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs new file mode 100644 index 000000000000..1aa57181d243 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs @@ -0,0 +1,408 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] + public partial class Catalog + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Catalog(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("LastSyncStat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStat = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats) content.GetValueForProperty("LastSyncStat",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStat, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStatsTypeConverter.ConvertFrom); + } + if (content.Contains("SyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); + } + if (content.Contains("ConnectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState?) content.GetValueForProperty("ConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState.CreateFrom); + } + if (content.Contains("LastConnectionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastConnectionTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectionTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastConnectionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitPath, global::System.Convert.ToString); + } + if (content.Contains("LastSyncStatAdded")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatAdded = (int?) content.GetValueForProperty("LastSyncStatAdded",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatAdded, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUpdated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUpdated = (int?) content.GetValueForProperty("LastSyncStatUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUpdated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUnchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUnchanged = (int?) content.GetValueForProperty("LastSyncStatUnchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUnchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatRemoved")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatRemoved = (int?) content.GetValueForProperty("LastSyncStatRemoved",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatRemoved, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatValidationError = (int?) content.GetValueForProperty("LastSyncStatValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatSynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatSynchronizationError = (int?) content.GetValueForProperty("LastSyncStatSynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatSynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Catalog(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("LastSyncStat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStat = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats) content.GetValueForProperty("LastSyncStat",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStat, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStatsTypeConverter.ConvertFrom); + } + if (content.Contains("SyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); + } + if (content.Contains("ConnectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState?) content.GetValueForProperty("ConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).ConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState.CreateFrom); + } + if (content.Contains("LastConnectionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastConnectionTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectionTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastConnectionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).AdoGitPath, global::System.Convert.ToString); + } + if (content.Contains("LastSyncStatAdded")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatAdded = (int?) content.GetValueForProperty("LastSyncStatAdded",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatAdded, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUpdated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUpdated = (int?) content.GetValueForProperty("LastSyncStatUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUpdated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUnchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUnchanged = (int?) content.GetValueForProperty("LastSyncStatUnchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatUnchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatRemoved")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatRemoved = (int?) content.GetValueForProperty("LastSyncStatRemoved",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatRemoved, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatValidationError = (int?) content.GetValueForProperty("LastSyncStatValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatSynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatSynchronizationError = (int?) content.GetValueForProperty("LastSyncStatSynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal)this).LastSyncStatSynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Models.Api20231001Preview.ICatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Catalog(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.DevCenter.Models.Api20231001Preview.ICatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Catalog(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.DevCenter.Models.Api20231001Preview.ICatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] + public partial interface ICatalog + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs new file mode 100644 index 000000000000..e738dea0c5a7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalog ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Catalog.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Catalog.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Catalog.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs new file mode 100644 index 000000000000..d48f223779df --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs @@ -0,0 +1,462 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a catalog. + public partial class Catalog : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitUri = value ?? null; } + + /// The connection state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ConnectionState; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubUri = value ?? null; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + + /// When the catalog was last connected. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public global::System.DateTime? LastConnectionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastConnectionTime; } + + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatAdded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatAdded; } + + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatRemoved { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatRemoved; } + + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatSynchronizationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatSynchronizationError; } + + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatUnchanged { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUnchanged; } + + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUpdated; } + + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatValidationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatValidationError; } + + /// When the catalog was last synced. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public global::System.DateTime? LastSyncTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncTime; } + + /// Internal Acessors for AdoGit + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGit = value; } + + /// Internal Acessors for ConnectionState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.ConnectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ConnectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ConnectionState = value; } + + /// Internal Acessors for GitHub + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHub = value; } + + /// Internal Acessors for LastConnectionTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastConnectionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastConnectionTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastConnectionTime = value; } + + /// Internal Acessors for LastSyncStat + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStat { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStat; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStat = value; } + + /// Internal Acessors for LastSyncStatAdded + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatAdded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatAdded; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatAdded = value; } + + /// Internal Acessors for LastSyncStatRemoved + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatRemoved { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatRemoved; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatRemoved = value; } + + /// Internal Acessors for LastSyncStatSynchronizationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatSynchronizationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatSynchronizationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatSynchronizationError = value; } + + /// Internal Acessors for LastSyncStatUnchanged + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatUnchanged { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUnchanged; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUnchanged = value; } + + /// Internal Acessors for LastSyncStatUpdated + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatUpdated = value; } + + /// Internal Acessors for LastSyncStatValidationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncStatValidationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatValidationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncStatValidationError = value; } + + /// Internal Acessors for LastSyncTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.LastSyncTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).LastSyncTime = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for SyncState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogInternal.SyncState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).SyncState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).SyncState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties _property; + + /// Catalog properties. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).ProvisioningState; } + + /// The synchronization state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)Property).SyncState; } + + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).SyncType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).SyncType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Catalog() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents a catalog. + public partial interface ICatalog : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource + { + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string AdoGitUri { get; set; } + /// The connection state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The connection state of the catalog.", + SerializedName = @"connectionState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get; } + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string GitHubSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string GitHubUri { get; set; } + /// When the catalog was last connected. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"When the catalog was last connected.", + SerializedName = @"lastConnectionTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastConnectionTime { get; } + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items added during synchronization.", + SerializedName = @"added", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatAdded { get; } + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items removed during synchronization.", + SerializedName = @"removed", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatRemoved { get; } + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of synchronization errors that occured during synchronization.", + SerializedName = @"synchronizationErrors", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatSynchronizationError { get; } + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that were unchanged during synchronization.", + SerializedName = @"unchanged", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatUnchanged { get; } + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items updated during synchronization.", + SerializedName = @"updated", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatUpdated { get; } + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that had validation errors during synchronization.", + SerializedName = @"validationErrors", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatValidationError { get; } + /// When the catalog was last synced. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"When the catalog was last synced.", + SerializedName = @"lastSyncTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastSyncTime { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// The synchronization state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The synchronization state of the catalog.", + SerializedName = @"syncState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; } + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + + } + /// Represents a catalog. + internal partial interface ICatalogInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal + { + /// Properties for an Azure DevOps catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog AdoGit { get; set; } + /// Git branch. + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + string AdoGitUri { get; set; } + /// The connection state of the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get; set; } + /// Properties for a GitHub catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog GitHub { get; set; } + /// Git branch. + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string GitHubSecretIdentifier { get; set; } + /// Git URI. + string GitHubUri { get; set; } + /// When the catalog was last connected. + global::System.DateTime? LastConnectionTime { get; set; } + /// Stats of the latest synchronization. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats LastSyncStat { get; set; } + /// Count of catalog items added during synchronization. + int? LastSyncStatAdded { get; set; } + /// Count of catalog items removed during synchronization. + int? LastSyncStatRemoved { get; set; } + /// Count of synchronization errors that occured during synchronization. + int? LastSyncStatSynchronizationError { get; set; } + /// Count of catalog items that were unchanged during synchronization. + int? LastSyncStatUnchanged { get; set; } + /// Count of catalog items updated during synchronization. + int? LastSyncStatUpdated { get; set; } + /// Count of catalog items that had validation errors during synchronization. + int? LastSyncStatValidationError { get; set; } + /// When the catalog was last synced. + global::System.DateTime? LastSyncTime { get; set; } + /// Catalog properties. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// The synchronization state of the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; set; } + /// Indicates the type of sync that is configured for the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.json.cs new file mode 100644 index 000000000000..e4e03e4c0d6d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Catalog.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a catalog. + public partial class Catalog + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal Catalog(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Catalog(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.PowerShell.cs new file mode 100644 index 000000000000..4b2832345b92 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// An individual conflict error. + [System.ComponentModel.TypeConverter(typeof(CatalogConflictErrorTypeConverter))] + public partial class CatalogConflictError + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogConflictError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Name, 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 CatalogConflictError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal)this).Name, 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.DevCenter.Models.Api20231001Preview.ICatalogConflictError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogConflictError(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.DevCenter.Models.Api20231001Preview.ICatalogConflictError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogConflictError(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.DevCenter.Models.Api20231001Preview.ICatalogConflictError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An individual conflict error. + [System.ComponentModel.TypeConverter(typeof(CatalogConflictErrorTypeConverter))] + public partial interface ICatalogConflictError + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.TypeConverter.cs new file mode 100644 index 000000000000..5a23b8681375 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogConflictErrorTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogConflictError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogConflictError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogConflictError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogConflictError.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.cs new file mode 100644 index 000000000000..dc31efa676bc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An individual conflict error. + public partial class CatalogConflictError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Path + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictErrorInternal.Path { get => this._path; set { {_path = value;} } } + + /// Backing field for property. + private string _name; + + /// Name of the conflicting catalog item. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _path; + + /// The path of the file that has a conflicting name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Path { get => this._path; } + + /// Creates an new instance. + public CatalogConflictError() + { + + } + } + /// An individual conflict error. + public partial interface ICatalogConflictError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Name of the conflicting catalog item. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Name of the conflicting catalog item.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The path of the file that has a conflicting name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The path of the file that has a conflicting name.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string Path { get; } + + } + /// An individual conflict error. + internal partial interface ICatalogConflictErrorInternal + + { + /// Name of the conflicting catalog item. + string Name { get; set; } + /// The path of the file that has a conflicting name. + string Path { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.json.cs new file mode 100644 index 000000000000..ce5d579189a8 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogConflictError.json.cs @@ -0,0 +1,116 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An individual conflict error. + public partial class CatalogConflictError + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogConflictError(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)Path;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogConflictError(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._path)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._path.ToString()) : null, "path" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..a4da6817a445 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Catalog error details + [System.ComponentModel.TypeConverter(typeof(CatalogErrorDetailsTypeConverter))] + public partial class CatalogErrorDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Message, 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 CatalogErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)this).Message, 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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogErrorDetails(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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogErrorDetails(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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Catalog error details + [System.ComponentModel.TypeConverter(typeof(CatalogErrorDetailsTypeConverter))] + public partial interface ICatalogErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..751aa128ee23 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogErrorDetailsTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogErrorDetails.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.cs new file mode 100644 index 000000000000..896bd1627661 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.cs @@ -0,0 +1,68 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Catalog error details + public partial class CatalogErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal + { + + /// Backing field for property. + private string _code; + + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Creates an new instance. + public CatalogErrorDetails() + { + + } + } + /// Catalog error details + public partial interface ICatalogErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + + } + /// Catalog error details + internal partial interface ICatalogErrorDetailsInternal + + { + /// An identifier for the error. + string Code { get; set; } + /// A message describing the error. + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.json.cs new file mode 100644 index 000000000000..526d37ba88fa --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogErrorDetails.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Catalog error details + public partial class CatalogErrorDetails + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogErrorDetails(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs new file mode 100644 index 000000000000..b8faae6d1ec4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the catalog list operation. + [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] + public partial class CatalogListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink, 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 CatalogListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink, 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.DevCenter.Models.Api20231001Preview.ICatalogListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogListResult(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.DevCenter.Models.Api20231001Preview.ICatalogListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogListResult(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.DevCenter.Models.Api20231001Preview.ICatalogListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the catalog list operation. + [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] + public partial interface ICatalogListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.TypeConverter.cs new file mode 100644 index 000000000000..7a54231b08df --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs new file mode 100644 index 000000000000..0d9264cc0b8a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the catalog list operation. + public partial class CatalogListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[] Value { get => this._value; } + + /// Creates an new instance. + public CatalogListResult() + { + + } + } + /// Results of the catalog list operation. + public partial interface ICatalogListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[] Value { get; } + + } + /// Results of the catalog list operation. + internal partial interface ICatalogListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs new file mode 100644 index 000000000000..58924cd6e35c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the catalog list operation. + public partial class CatalogListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalog) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog.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.DevCenter.Models.Api20231001Preview.ICatalogListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.PowerShell.cs new file mode 100644 index 000000000000..aab60476ac0c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.PowerShell.cs @@ -0,0 +1,320 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogPropertiesTypeConverter))] + public partial class CatalogProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LastSyncStat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStat = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats) content.GetValueForProperty("LastSyncStat",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStat, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStatsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); + } + if (content.Contains("ConnectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState?) content.GetValueForProperty("ConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState.CreateFrom); + } + if (content.Contains("LastConnectionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastConnectionTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectionTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastConnectionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath, global::System.Convert.ToString); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("LastSyncStatAdded")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatAdded = (int?) content.GetValueForProperty("LastSyncStatAdded",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatAdded, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUpdated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUpdated = (int?) content.GetValueForProperty("LastSyncStatUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUpdated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUnchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUnchanged = (int?) content.GetValueForProperty("LastSyncStatUnchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUnchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatRemoved")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatRemoved = (int?) content.GetValueForProperty("LastSyncStatRemoved",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatRemoved, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatValidationError = (int?) content.GetValueForProperty("LastSyncStatValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatSynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatSynchronizationError = (int?) content.GetValueForProperty("LastSyncStatSynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatSynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CatalogProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("LastSyncStat")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStat = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats) content.GetValueForProperty("LastSyncStat",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStat, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStatsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SyncState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).SyncState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState?) content.GetValueForProperty("SyncState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).SyncState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState.CreateFrom); + } + if (content.Contains("ConnectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ConnectionState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState?) content.GetValueForProperty("ConnectionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).ConnectionState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState.CreateFrom); + } + if (content.Contains("LastConnectionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastConnectionTime = (global::System.DateTime?) content.GetValueForProperty("LastConnectionTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastConnectionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastSyncTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncTime = (global::System.DateTime?) content.GetValueForProperty("LastSyncTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath, global::System.Convert.ToString); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("LastSyncStatAdded")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatAdded = (int?) content.GetValueForProperty("LastSyncStatAdded",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatAdded, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUpdated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUpdated = (int?) content.GetValueForProperty("LastSyncStatUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUpdated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatUnchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUnchanged = (int?) content.GetValueForProperty("LastSyncStatUnchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatUnchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatRemoved")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatRemoved = (int?) content.GetValueForProperty("LastSyncStatRemoved",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatRemoved, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatValidationError = (int?) content.GetValueForProperty("LastSyncStatValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastSyncStatSynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatSynchronizationError = (int?) content.GetValueForProperty("LastSyncStatSynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal)this).LastSyncStatSynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Models.Api20231001Preview.ICatalogProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogProperties(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.DevCenter.Models.Api20231001Preview.ICatalogProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogProperties(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.DevCenter.Models.Api20231001Preview.ICatalogProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogPropertiesTypeConverter))] + public partial interface ICatalogProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.TypeConverter.cs index ff3c66c6764e..e26718aa068c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalogProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.cs new file mode 100644 index 000000000000..a2e58c9f451e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.cs @@ -0,0 +1,315 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a catalog. + public partial class CatalogProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties __catalogUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties(); + + /// Properties for an Azure DevOps catalog type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGit = value ?? null /* model class */; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).AdoGitUri = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? _connectionState; + + /// The connection state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get => this._connectionState; } + + /// Properties for a GitHub catalog type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHub = value ?? null /* model class */; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).GitHubUri = value ?? null; } + + /// Backing field for property. + private global::System.DateTime? _lastConnectionTime; + + /// When the catalog was last connected. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public global::System.DateTime? LastConnectionTime { get => this._lastConnectionTime; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats _lastSyncStat; + + /// Stats of the latest synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats LastSyncStat { get => (this._lastSyncStat = this._lastSyncStat ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStats()); } + + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatAdded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Added; } + + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatRemoved { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Removed; } + + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatSynchronizationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).SynchronizationError; } + + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatUnchanged { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Unchanged; } + + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Updated; } + + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? LastSyncStatValidationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).ValidationError; } + + /// Backing field for property. + private global::System.DateTime? _lastSyncTime; + + /// When the catalog was last synced. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public global::System.DateTime? LastSyncTime { get => this._lastSyncTime; } + + /// Internal Acessors for ConnectionState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.ConnectionState { get => this._connectionState; set { {_connectionState = value;} } } + + /// Internal Acessors for LastConnectionTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastConnectionTime { get => this._lastConnectionTime; set { {_lastConnectionTime = value;} } } + + /// Internal Acessors for LastSyncStat + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStat { get => (this._lastSyncStat = this._lastSyncStat ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStats()); set { {_lastSyncStat = value;} } } + + /// Internal Acessors for LastSyncStatAdded + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatAdded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Added; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Added = value; } + + /// Internal Acessors for LastSyncStatRemoved + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatRemoved { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Removed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Removed = value; } + + /// Internal Acessors for LastSyncStatSynchronizationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatSynchronizationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).SynchronizationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).SynchronizationError = value; } + + /// Internal Acessors for LastSyncStatUnchanged + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatUnchanged { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Unchanged; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Unchanged = value; } + + /// Internal Acessors for LastSyncStatUpdated + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Updated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).Updated = value; } + + /// Internal Acessors for LastSyncStatValidationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncStatValidationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).ValidationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)LastSyncStat).ValidationError = value; } + + /// Internal Acessors for LastSyncTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.LastSyncTime { get => this._lastSyncTime; set { {_lastSyncTime = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for SyncState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogPropertiesInternal.SyncState { get => this._syncState; set { {_syncState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? _syncState; + + /// The synchronization state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get => this._syncState; } + + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).SyncType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)__catalogUpdateProperties).SyncType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); } + + /// Creates an new instance. + public CatalogProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__catalogUpdateProperties), __catalogUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__catalogUpdateProperties), __catalogUpdateProperties); + } + } + /// Properties of a catalog. + public partial interface ICatalogProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties + { + /// The connection state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The connection state of the catalog.", + SerializedName = @"connectionState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get; } + /// When the catalog was last connected. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"When the catalog was last connected.", + SerializedName = @"lastConnectionTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastConnectionTime { get; } + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items added during synchronization.", + SerializedName = @"added", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatAdded { get; } + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items removed during synchronization.", + SerializedName = @"removed", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatRemoved { get; } + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of synchronization errors that occured during synchronization.", + SerializedName = @"synchronizationErrors", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatSynchronizationError { get; } + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that were unchanged during synchronization.", + SerializedName = @"unchanged", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatUnchanged { get; } + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items updated during synchronization.", + SerializedName = @"updated", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatUpdated { get; } + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that had validation errors during synchronization.", + SerializedName = @"validationErrors", + PossibleTypes = new [] { typeof(int) })] + int? LastSyncStatValidationError { get; } + /// When the catalog was last synced. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"When the catalog was last synced.", + SerializedName = @"lastSyncTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastSyncTime { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// The synchronization state of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The synchronization state of the catalog.", + SerializedName = @"syncState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; } + + } + /// Properties of a catalog. + internal partial interface ICatalogPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal + { + /// The connection state of the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState? ConnectionState { get; set; } + /// When the catalog was last connected. + global::System.DateTime? LastConnectionTime { get; set; } + /// Stats of the latest synchronization. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats LastSyncStat { get; set; } + /// Count of catalog items added during synchronization. + int? LastSyncStatAdded { get; set; } + /// Count of catalog items removed during synchronization. + int? LastSyncStatRemoved { get; set; } + /// Count of synchronization errors that occured during synchronization. + int? LastSyncStatSynchronizationError { get; set; } + /// Count of catalog items that were unchanged during synchronization. + int? LastSyncStatUnchanged { get; set; } + /// Count of catalog items updated during synchronization. + int? LastSyncStatUpdated { get; set; } + /// Count of catalog items that had validation errors during synchronization. + int? LastSyncStatValidationError { get; set; } + /// When the catalog was last synced. + global::System.DateTime? LastSyncTime { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// The synchronization state of the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncState? SyncState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.json.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.json.cs index fba618de6cc3..fb3b2d05bdcd 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,21 +65,24 @@ internal CatalogProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. { return; } - __catalogUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateProperties(json); + __catalogUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties(json); + {_lastSyncStat = If( json?.PropertyT("lastSyncStats"), out var __jsonLastSyncStats) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SyncStats.FromJson(__jsonLastSyncStats) : LastSyncStat;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_syncState = If( json?.PropertyT("syncState"), out var __jsonSyncState) ? (string)__jsonSyncState : (string)SyncState;} + {_connectionState = If( json?.PropertyT("connectionState"), out var __jsonConnectionState) ? (string)__jsonConnectionState : (string)ConnectionState;} + {_lastConnectionTime = If( json?.PropertyT("lastConnectionTime"), out var __jsonLastConnectionTime) ? global::System.DateTime.TryParse((string)__jsonLastConnectionTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastConnectionTimeValue) ? __jsonLastConnectionTimeValue : LastConnectionTime : LastConnectionTime;} {_lastSyncTime = If( json?.PropertyT("lastSyncTime"), out var __jsonLastSyncTime) ? global::System.DateTime.TryParse((string)__jsonLastSyncTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastSyncTimeValue) ? __jsonLastSyncTimeValue : LastSyncTime : LastSyncTime;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogProperties(json) : null; } @@ -105,6 +108,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson } __catalogUpdateProperties?.ToJson(container, serializationMode); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._lastSyncStat ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._lastSyncStat.ToJson(null,serializationMode) : null, "lastSyncStats" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } @@ -113,6 +120,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson AddIf( null != (((object)this._syncState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._syncState.ToString()) : null, "syncState" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._connectionState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._connectionState.ToString()) : null, "connectionState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._lastConnectionTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._lastConnectionTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastConnectionTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != this._lastSyncTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._lastSyncTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastSyncTime" ,container.Add ); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..3c50858707bd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.PowerShell.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + /// + [System.ComponentModel.TypeConverter(typeof(CatalogResourceValidationErrorDetailsTypeConverter))] + public partial class CatalogResourceValidationErrorDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogResourceValidationErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CatalogResourceValidationErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom)); + } + 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogResourceValidationErrorDetails(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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogResourceValidationErrorDetails(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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + [System.ComponentModel.TypeConverter(typeof(CatalogResourceValidationErrorDetailsTypeConverter))] + public partial interface ICatalogResourceValidationErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..cef8ca06f905 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogResourceValidationErrorDetailsTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogResourceValidationErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogResourceValidationErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogResourceValidationErrorDetails.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.cs new file mode 100644 index 000000000000..e3e861fb571f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + /// + public partial class CatalogResourceValidationErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] _error; + + /// Errors associated with resources synchronized from the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] Error { get => this._error; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetailsInternal.Error { get => this._error; set { {_error = value;} } } + + /// Creates an new instance. + public CatalogResourceValidationErrorDetails() + { + + } + } + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + public partial interface ICatalogResourceValidationErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Errors associated with resources synchronized from the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Errors associated with resources synchronized from the catalog.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] Error { get; } + + } + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + internal partial interface ICatalogResourceValidationErrorDetailsInternal + + { + /// Errors associated with resources synchronized from the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] Error { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.json.cs new file mode 100644 index 000000000000..9a9c0fc529a2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogResourceValidationErrorDetails.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// List of validator error details. Populated when changes are made to the resource or its dependent resources that impact + /// the validity of the Catalog resource. + /// + public partial class CatalogResourceValidationErrorDetails + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogResourceValidationErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails.FromJson(__u) )) ))() : null : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogResourceValidationErrorDetails(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._error) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._error ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("errors",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.PowerShell.cs new file mode 100644 index 000000000000..c010c0b6a925 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// An individual synchronization error. + [System.ComponentModel.TypeConverter(typeof(CatalogSyncErrorTypeConverter))] + public partial class CatalogSyncError + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogSyncError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("ErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CatalogSyncError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).Path, global::System.Convert.ToString); + } + if (content.Contains("ErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom)); + } + 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.DevCenter.Models.Api20231001Preview.ICatalogSyncError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogSyncError(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.DevCenter.Models.Api20231001Preview.ICatalogSyncError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogSyncError(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.DevCenter.Models.Api20231001Preview.ICatalogSyncError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An individual synchronization error. + [System.ComponentModel.TypeConverter(typeof(CatalogSyncErrorTypeConverter))] + public partial interface ICatalogSyncError + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.TypeConverter.cs new file mode 100644 index 000000000000..fcdbe24b683e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogSyncErrorTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogSyncError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogSyncError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogSyncError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogSyncError.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.cs new file mode 100644 index 000000000000..a0cb23ac1786 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An individual synchronization error. + public partial class CatalogSyncError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] _errorDetail; + + /// Errors associated with the file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] ErrorDetail { get => this._errorDetail; } + + /// Internal Acessors for ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } + + /// Internal Acessors for Path + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncErrorInternal.Path { get => this._path; set { {_path = value;} } } + + /// Backing field for property. + private string _path; + + /// The path of the file the error is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Path { get => this._path; } + + /// Creates an new instance. + public CatalogSyncError() + { + + } + } + /// An individual synchronization error. + public partial interface ICatalogSyncError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Errors associated with the file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Errors associated with the file.", + SerializedName = @"errorDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] ErrorDetail { get; } + /// The path of the file the error is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The path of the file the error is associated with.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string Path { get; } + + } + /// An individual synchronization error. + internal partial interface ICatalogSyncErrorInternal + + { + /// Errors associated with the file. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails[] ErrorDetail { get; set; } + /// The path of the file the error is associated with. + string Path { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.json.cs new file mode 100644 index 000000000000..424d2a51519f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogSyncError.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An individual synchronization error. + public partial class CatalogSyncError + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogSyncError(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)Path;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? If( __jsonErrorDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails.FromJson(__u) )) ))() : null : ErrorDetail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogSyncError(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._path)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._path.ToString()) : null, "path" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._errorDetail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._errorDetail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("errorDetails",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.PowerShell.cs new file mode 100644 index 000000000000..eaadb1d5c95f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.PowerShell.cs @@ -0,0 +1,242 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(CatalogUpdateTypeConverter))] + public partial class CatalogUpdate + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitPath, 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 CatalogUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal)this).AdoGitPath, 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.DevCenter.Models.Api20231001Preview.ICatalogUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogUpdate(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.DevCenter.Models.Api20231001Preview.ICatalogUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogUpdate(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.DevCenter.Models.Api20231001Preview.ICatalogUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(CatalogUpdateTypeConverter))] + public partial interface ICatalogUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.TypeConverter.cs index 92b22edd7398..9343d039ac45 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalogUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.cs new file mode 100644 index 000000000000..0323659402ad --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.cs @@ -0,0 +1,213 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. + /// + public partial class CatalogUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal + { + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGitUri = value ?? null; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubBranch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubBranch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubPath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubPath = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubSecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHubUri = value ?? null; } + + /// Internal Acessors for AdoGit + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal.AdoGit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).AdoGit = value; } + + /// Internal Acessors for GitHub + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal.GitHub { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHub; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).GitHub = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties _property; + + /// Catalog properties for update. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties()); set => this._property = value; } + + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).SyncType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)Property).SyncType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTags()); set => this._tag = value; } + + /// Creates an new instance. + public CatalogUpdate() + { + + } + } + /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. + public partial interface ICatalogUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string AdoGitUri { get; set; } + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string GitHubSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string GitHubUri { get; set; } + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags Tag { get; set; } + + } + /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. + internal partial interface ICatalogUpdateInternal + + { + /// Properties for an Azure DevOps catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog AdoGit { get; set; } + /// Git branch. + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + string AdoGitUri { get; set; } + /// Properties for a GitHub catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog GitHub { get; set; } + /// Git branch. + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string GitHubSecretIdentifier { get; set; } + /// Git URI. + string GitHubUri { get; set; } + /// Catalog properties for update. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties Property { get; set; } + /// Indicates the type of sync that is configured for the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.json.cs index 69905db4c477..7d2db05ac9e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,19 +67,19 @@ internal CatalogUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdateTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogUpdate(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..a58e68cf6aa0 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.PowerShell.cs @@ -0,0 +1,228 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of a catalog. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(CatalogUpdatePropertiesTypeConverter))] + public partial class CatalogUpdateProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath, 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 CatalogUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("GitHub")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("GitHub",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHub, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("AdoGit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog) content.GetValueForProperty("AdoGit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalogTypeConverter.ConvertFrom); + } + if (content.Contains("SyncType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType.CreateFrom); + } + if (content.Contains("GitHubUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri = (string) content.GetValueForProperty("GitHubUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubUri, global::System.Convert.ToString); + } + if (content.Contains("GitHubBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch = (string) content.GetValueForProperty("GitHubBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubBranch, global::System.Convert.ToString); + } + if (content.Contains("GitHubSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier = (string) content.GetValueForProperty("GitHubSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("GitHubPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath = (string) content.GetValueForProperty("GitHubPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).GitHubPath, global::System.Convert.ToString); + } + if (content.Contains("AdoGitUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri = (string) content.GetValueForProperty("AdoGitUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitUri, global::System.Convert.ToString); + } + if (content.Contains("AdoGitBranch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch = (string) content.GetValueForProperty("AdoGitBranch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitBranch, global::System.Convert.ToString); + } + if (content.Contains("AdoGitSecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier = (string) content.GetValueForProperty("AdoGitSecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitSecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("AdoGitPath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath = (string) content.GetValueForProperty("AdoGitPath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal)this).AdoGitPath, 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.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogUpdateProperties(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.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogUpdateProperties(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.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a catalog. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(CatalogUpdatePropertiesTypeConverter))] + public partial interface ICatalogUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.TypeConverter.cs index 06f45f252eeb..bc6a3d431b9e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalogUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.cs new file mode 100644 index 000000000000..6fb60573970d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of a catalog. These properties can be updated after the resource has been created. + /// + public partial class CatalogUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog _adoGit; + + /// Properties for an Azure DevOps catalog type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog AdoGit { get => (this._adoGit = this._adoGit ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog()); set => this._adoGit = value; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Branch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Branch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Path = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).SecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string AdoGitUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)AdoGit).Uri = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog _gitHub; + + /// Properties for a GitHub catalog type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog GitHub { get => (this._gitHub = this._gitHub ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog()); set => this._gitHub = value; } + + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubBranch { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Branch; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Branch = value ?? null; } + + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Path = value ?? null; } + + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubSecretIdentifier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).SecretIdentifier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).SecretIdentifier = value ?? null; } + + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string GitHubUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)GitHub).Uri = value ?? null; } + + /// Internal Acessors for AdoGit + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal.AdoGit { get => (this._adoGit = this._adoGit ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog()); set { {_adoGit = value;} } } + + /// Internal Acessors for GitHub + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdatePropertiesInternal.GitHub { get => (this._gitHub = this._gitHub ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog()); set { {_gitHub = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? _syncType; + + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get => this._syncType; set => this._syncType = value; } + + /// Creates an new instance. + public CatalogUpdateProperties() + { + + } + } + /// Properties of a catalog. These properties can be updated after the resource has been created. + public partial interface ICatalogUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string AdoGitUri { get; set; } + /// Git branch. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git branch.", + SerializedName = @"branch", + PossibleTypes = new [] { typeof(string) })] + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The folder where the catalog items can be found inside the repository.", + SerializedName = @"path", + PossibleTypes = new [] { typeof(string) })] + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A reference to the Key Vault secret containing a security token to authenticate to a Git repository.", + SerializedName = @"secretIdentifier", + PossibleTypes = new [] { typeof(string) })] + string GitHubSecretIdentifier { get; set; } + /// Git URI. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Git URI.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string GitHubUri { get; set; } + /// Indicates the type of sync that is configured for the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + + } + /// Properties of a catalog. These properties can be updated after the resource has been created. + internal partial interface ICatalogUpdatePropertiesInternal + + { + /// Properties for an Azure DevOps catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog AdoGit { get; set; } + /// Git branch. + string AdoGitBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string AdoGitPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string AdoGitSecretIdentifier { get; set; } + /// Git URI. + string AdoGitUri { get; set; } + /// Properties for a GitHub catalog type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog GitHub { get; set; } + /// Git branch. + string GitHubBranch { get; set; } + /// The folder where the catalog items can be found inside the repository. + string GitHubPath { get; set; } + /// + /// A reference to the Key Vault secret containing a security token to authenticate to a Git repository. + /// + string GitHubSecretIdentifier { get; set; } + /// Git URI. + string GitHubUri { get; set; } + /// Indicates the type of sync that is configured for the catalog. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType? SyncType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.json.cs similarity index 88% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.json.cs index 2055891e2dac..f7bb7cd4d177 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,19 +67,20 @@ internal CatalogUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Ru { return; } - {_gitHub = If( json?.PropertyT("gitHub"), out var __jsonGitHub) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog.FromJson(__jsonGitHub) : GitHub;} - {_adoGit = If( json?.PropertyT("adoGit"), out var __jsonAdoGit) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GitCatalog.FromJson(__jsonAdoGit) : AdoGit;} + {_gitHub = If( json?.PropertyT("gitHub"), out var __jsonGitHub) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog.FromJson(__jsonGitHub) : GitHub;} + {_adoGit = If( json?.PropertyT("adoGit"), out var __jsonAdoGit) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GitCatalog.FromJson(__jsonAdoGit) : AdoGit;} + {_syncType = If( json?.PropertyT("syncType"), out var __jsonSyncType) ? (string)__jsonSyncType : (string)SyncType;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogUpdateProperties(json) : null; } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson } AddIf( null != this._gitHub ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._gitHub.ToJson(null,serializationMode) : null, "gitHub" ,container.Add ); AddIf( null != this._adoGit ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._adoGit.ToJson(null,serializationMode) : null, "adoGit" ,container.Add ); + AddIf( null != (((object)this._syncType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._syncType.ToString()) : null, "syncType" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.PowerShell.cs similarity index 88% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.PowerShell.cs index a3ee56131cb3..499eaf4dc1fc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CatalogUpdateTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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. @@ -74,7 +74,7 @@ internal CatalogUpdateTags(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. @@ -93,27 +93,27 @@ internal CatalogUpdateTags(global::System.Management.Automation.PSObject 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.DevCenter.Models.Api20230401.ICatalogUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CatalogUpdateTags(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.DevCenter.Models.Api20230401.ICatalogUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CatalogUpdateTags(content); } @@ -123,7 +123,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IC /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.TypeConverter.cs index fcfeff9646fe..461ce3f34c46 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalogUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.cs index df37273c6fec..7bb692ac35db 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Resource tags. public partial class CatalogUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTagsInternal { /// Creates an new instance. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.dictionary.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.dictionary.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.dictionary.cs index 26535d5c9fde..d587482d92c6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.dictionary.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.CatalogUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.json.cs index 1c6bdc3d6560..bc4c4579da9b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/CatalogUpdateTags.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CatalogUpdateTags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -71,13 +71,13 @@ internal CatalogUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CatalogUpdateTags(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.cs new file mode 100644 index 000000000000..a2c255d4ca6b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// An error response from the DevCenter service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial class CloudError + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CloudError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + 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.DevCenter.Models.Api20231001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudError(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.DevCenter.Models.Api20231001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudError(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.DevCenter.Models.Api20231001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the DevCenter service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial interface ICloudError + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs new file mode 100644 index 000000000000..e9c56a591f18 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICloudError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudError.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs new file mode 100644 index 000000000000..444ceb09f4d9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs @@ -0,0 +1,120 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An error response from the DevCenter service. + public partial class CloudError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal + { + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Error body + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody()); set => this._error = value; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Creates an new instance. + public CloudError() + { + + } + } + /// An error response from the DevCenter service. + public partial interface ICloudError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// An error response from the DevCenter service. + internal partial interface ICloudErrorInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// Error body + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs new file mode 100644 index 000000000000..4f4521ae64d4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An error response from the DevCenter service. + public partial class CloudError + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CloudError(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs new file mode 100644 index 000000000000..db817943a409 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// An error response from the DevCenter service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] + public partial class CloudErrorBody + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CloudErrorBody(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudErrorBody(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + 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.DevCenter.Models.Api20231001Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudErrorBody(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.DevCenter.Models.Api20231001Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudErrorBody(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.DevCenter.Models.Api20231001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the DevCenter service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] + public partial interface ICloudErrorBody + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.TypeConverter.cs new file mode 100644 index 000000000000..857ccd052a78 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorBodyTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudErrorBody.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudErrorBody.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudErrorBody.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs new file mode 100644 index 000000000000..0e5e90eefc71 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs @@ -0,0 +1,120 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An error response from the DevCenter service. + public partial class CloudErrorBody : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBodyInternal + { + + /// Backing field for property. + private string _code; + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] _detail; + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + + /// Backing field for property. + private string _message; + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public CloudErrorBody() + { + + } + } + /// An error response from the DevCenter service. + public partial interface ICloudErrorBody : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// An error response from the DevCenter service. + internal partial interface ICloudErrorBodyInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs new file mode 100644 index 000000000000..4ddf7ff1c439 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs @@ -0,0 +1,122 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// An error response from the DevCenter service. + public partial class CloudErrorBody + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.DevCenter.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.DevCenter.Models.Api20231001Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CloudErrorBody(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs new file mode 100644 index 000000000000..2dadfc445137 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs @@ -0,0 +1,248 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a Task to be used in customizing a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskTypeConverter))] + public partial class CustomizationTask + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTask(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Input")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Input, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputsTypeConverter.ConvertFrom); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Timeout = (int?) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Timeout, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTask(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Input")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Input, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputsTypeConverter.ConvertFrom); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Timeout = (int?) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).Timeout, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.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.DevCenter.Models.Api20231001Preview.ICustomizationTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTask(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.DevCenter.Models.Api20231001Preview.ICustomizationTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTask(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.DevCenter.Models.Api20231001Preview.ICustomizationTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a Task to be used in customizing a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskTypeConverter))] + public partial interface ICustomizationTask + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.TypeConverter.cs new file mode 100644 index 000000000000..02e462bb09b2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTask ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTask.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTask.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTask.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs new file mode 100644 index 000000000000..9f5437175cbd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs @@ -0,0 +1,173 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a Task to be used in customizing a Dev Box. + public partial class CustomizationTask : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + + /// Inputs to the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Input; } + + /// Internal Acessors for Input + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal.Input { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Input; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Input = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskProperties()); set { {_property = value;} } } + + /// Internal Acessors for Timeout + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal.Timeout { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Timeout; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Timeout = value; } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInternal.ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).ValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).ValidationStatus = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties _property; + + /// Task properties + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskProperties()); set => this._property = value; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The default timeout for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? Timeout { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).Timeout; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } + + /// Validation status for the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)Property).ValidationStatus; } + + /// Creates an new instance. + public CustomizationTask() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents a Task to be used in customizing a Dev Box. + public partial interface ICustomizationTask : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource + { + /// Inputs to the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Inputs to the task.", + SerializedName = @"inputs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get; } + /// The default timeout for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The default timeout for the task.", + SerializedName = @"timeout", + PossibleTypes = new [] { typeof(int) })] + int? Timeout { get; } + /// Validation status for the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the Task.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } + + } + /// Represents a Task to be used in customizing a Dev Box. + internal partial interface ICustomizationTaskInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal + { + /// Inputs to the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get; set; } + /// Task properties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties Property { get; set; } + /// The default timeout for the task. + int? Timeout { get; set; } + /// Validation status for the Task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.json.cs new file mode 100644 index 000000000000..d780d44c7a97 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a Task to be used in customizing a Dev Box. + public partial class CustomizationTask + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTask(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomizationTask(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.PowerShell.cs new file mode 100644 index 000000000000..7cb6712427e4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Input for a Task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskInputTypeConverter))] + public partial class CustomizationTaskInput + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType.CreateFrom); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType.CreateFrom); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + 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.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskInput(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskInput(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Input for a Task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskInputTypeConverter))] + public partial interface ICustomizationTaskInput + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.TypeConverter.cs new file mode 100644 index 000000000000..9750ce6fee6b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskInputTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskInput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskInput.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.cs new file mode 100644 index 000000000000..890e10ebfcda --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.cs @@ -0,0 +1,94 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Input for a Task. + public partial class CustomizationTaskInput : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal + { + + /// Backing field for property. + private string _description; + + /// Description of the input. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for Required + bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal.Required { get => this._required; set { {_required = value;} } } + + /// Internal Acessors for Type + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInputInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private bool? _required; + + /// Whether or not the input is required. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public bool? Required { get => this._required; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType? _type; + + /// Type of the input. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType? Type { get => this._type; } + + /// Creates an new instance. + public CustomizationTaskInput() + { + + } + } + /// Input for a Task. + public partial interface ICustomizationTaskInput : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Description of the input. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Description of the input.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Whether or not the input is required. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Whether or not the input is required.", + SerializedName = @"required", + PossibleTypes = new [] { typeof(bool) })] + bool? Required { get; } + /// Type of the input. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Type of the input.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType? Type { get; } + + } + /// Input for a Task. + internal partial interface ICustomizationTaskInputInternal + + { + /// Description of the input. + string Description { get; set; } + /// Whether or not the input is required. + bool? Required { get; set; } + /// Type of the input. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.json.cs new file mode 100644 index 000000000000..e4241b587bba --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskInput.json.cs @@ -0,0 +1,121 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Input for a Task. + public partial class CustomizationTaskInput + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskInput(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_required = If( json?.PropertyT("required"), out var __jsonRequired) ? (bool?)__jsonRequired : Required;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomizationTaskInput(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._required ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonBoolean((bool)this._required) : null, "required" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.PowerShell.cs new file mode 100644 index 000000000000..831f2c99b344 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the Task list operation. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListResultTypeConverter))] + public partial class CustomizationTaskListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).NextLink, 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 CustomizationTaskListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal)this).NextLink, 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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskListResult(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskListResult(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the Task list operation. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListResultTypeConverter))] + public partial interface ICustomizationTaskListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.TypeConverter.cs new file mode 100644 index 000000000000..7737fe173514 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.cs new file mode 100644 index 000000000000..849348cfc38a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the Task list operation. + public partial class CustomizationTaskListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[] Value { get => this._value; } + + /// Creates an new instance. + public CustomizationTaskListResult() + { + + } + } + /// Results of the Task list operation. + public partial interface ICustomizationTaskListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[] Value { get; } + + } + /// Results of the Task list operation. + internal partial interface ICustomizationTaskListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.json.cs new file mode 100644 index 000000000000..aec97ee5c1d8 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the Task list operation. + public partial class CustomizationTaskListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTask) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTask.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomizationTaskListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.PowerShell.cs new file mode 100644 index 000000000000..eba3be86a8e5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a Task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskPropertiesTypeConverter))] + public partial class CustomizationTaskProperties + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Input")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Input, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputsTypeConverter.ConvertFrom); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Timeout = (int?) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Timeout, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Input")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Input = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) content.GetValueForProperty("Input",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Input, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputsTypeConverter.ConvertFrom); + } + if (content.Contains("Timeout")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Timeout = (int?) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).Timeout, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskProperties(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskProperties(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a Task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskPropertiesTypeConverter))] + public partial interface ICustomizationTaskProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.TypeConverter.cs new file mode 100644 index 000000000000..46244b1aef2f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskPropertiesTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskProperties.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.cs new file mode 100644 index 000000000000..5ec689d1d7fb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.cs @@ -0,0 +1,94 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a Task. + public partial class CustomizationTaskProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs _input; + + /// Inputs to the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get => (this._input = this._input ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputs()); } + + /// Internal Acessors for Input + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal.Input { get => (this._input = this._input ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputs()); set { {_input = value;} } } + + /// Internal Acessors for Timeout + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal.Timeout { get => this._timeout; set { {_timeout = value;} } } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInternal.ValidationStatus { get => this._validationStatus; set { {_validationStatus = value;} } } + + /// Backing field for property. + private int? _timeout; + + /// The default timeout for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? Timeout { get => this._timeout; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? _validationStatus; + + /// Validation status for the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => this._validationStatus; } + + /// Creates an new instance. + public CustomizationTaskProperties() + { + + } + } + /// Properties of a Task. + public partial interface ICustomizationTaskProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Inputs to the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Inputs to the task.", + SerializedName = @"inputs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get; } + /// The default timeout for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The default timeout for the task.", + SerializedName = @"timeout", + PossibleTypes = new [] { typeof(int) })] + int? Timeout { get; } + /// Validation status for the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the Task.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } + + } + /// Properties of a Task. + internal partial interface ICustomizationTaskPropertiesInternal + + { + /// Inputs to the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs Input { get; set; } + /// The default timeout for the task. + int? Timeout { get; set; } + /// Validation status for the Task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.json.cs new file mode 100644 index 000000000000..66764b7dfb2a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskProperties.json.cs @@ -0,0 +1,121 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a Task. + public partial class CustomizationTaskProperties + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_input = If( json?.PropertyT("inputs"), out var __jsonInputs) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputs.FromJson(__jsonInputs) : Input;} + {_timeout = If( json?.PropertyT("timeout"), out var __jsonTimeout) ? (int?)__jsonTimeout : Timeout;} + {_validationStatus = If( json?.PropertyT("validationStatus"), out var __jsonValidationStatus) ? (string)__jsonValidationStatus : (string)ValidationStatus;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomizationTaskProperties(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._input ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._input.ToJson(null,serializationMode) : null, "inputs" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._timeout ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._timeout) : null, "timeout" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._validationStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._validationStatus.ToString()) : null, "validationStatus" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.PowerShell.cs new file mode 100644 index 000000000000..66fac1d1c147 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.PowerShell.cs @@ -0,0 +1,144 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Inputs to the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskPropertiesInputsTypeConverter))] + public partial class CustomizationTaskPropertiesInputs + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskPropertiesInputs(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskPropertiesInputs(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskPropertiesInputs(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskPropertiesInputs(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.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Inputs to the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskPropertiesInputsTypeConverter))] + public partial interface ICustomizationTaskPropertiesInputs + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.TypeConverter.cs new file mode 100644 index 000000000000..13602113a4ee --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskPropertiesInputsTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskPropertiesInputs.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskPropertiesInputs.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskPropertiesInputs.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.cs new file mode 100644 index 000000000000..ebe4cd3f1239 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.cs @@ -0,0 +1,35 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Inputs to the task. + public partial class CustomizationTaskPropertiesInputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputsInternal + { + + /// Creates an new instance. + public CustomizationTaskPropertiesInputs() + { + + } + } + /// Inputs to the task. + public partial interface ICustomizationTaskPropertiesInputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + { + + } + /// Inputs to the task. + internal partial interface ICustomizationTaskPropertiesInputsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.dictionary.cs new file mode 100644 index 000000000000..d56cd3984ba1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class CustomizationTaskPropertiesInputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskInput value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskPropertiesInputs source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.json.cs new file mode 100644 index 000000000000..5442d9fb471b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskPropertiesInputs.json.cs @@ -0,0 +1,109 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Inputs to the task. + public partial class CustomizationTaskPropertiesInputs + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + /// + internal CustomizationTaskPropertiesInputs(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CustomizationTaskInput.FromJson(j) ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTaskPropertiesInputs FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomizationTaskPropertiesInputs(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.PowerShell.cs new file mode 100644 index 000000000000..b84fe09faf0e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.PowerShell.cs @@ -0,0 +1,400 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a definition for a Developer Machine. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionTypeConverter))] + public partial class DevBoxDefinition + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxDefinition(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxDefinition(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("ImageValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + if (content.Contains("ImageValidationErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion, 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 DevBoxDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("ImageValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + if (content.Contains("ImageValidationErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal)this).ActiveImageReferenceExactVersion, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a definition for a Developer Machine. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionTypeConverter))] + public partial interface IDevBoxDefinition + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.TypeConverter.cs index 895105bbdbc6..002521c08bd2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.cs index 2ffb61100e3e..edeff7a245f4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents a definition for a Developer Machine. public partial class DevBoxDefinition : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -24,20 +24,20 @@ public partial class DevBoxDefinition : /// version in use. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion; } + public string ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion; } /// /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ActiveImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceId = value ?? null; } + public string ActiveImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceId = value ?? null; } /// /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting /// hibernation. To find out more see https://aka.ms/devbox/hibernate /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -50,56 +50,59 @@ public partial class DevBoxDefinition : /// version in use. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; } + public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; } /// /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId = value ?? null; } + public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId = value ?? null; } /// An identifier for the error. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageValidationErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailCode = value ?? null; } + public string ImageValidationErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailCode = value ?? null; } /// A message describing the error. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageValidationErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailMessage = value ?? null; } + public string ImageValidationErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetailMessage = value ?? null; } /// Validation status of the configured image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for ActiveImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ActiveImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ActiveImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReference = value; } /// Internal Acessors for ActiveImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ActiveImageReferenceExactVersion = value; } /// Internal Acessors for ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference = value; } /// Internal Acessors for ImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion = value; } /// Internal Acessors for ImageValidationErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ImageValidationErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ImageValidationErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationErrorDetail = value; } /// Internal Acessors for ImageValidationStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ImageValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ImageValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ImageValidationStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku = value; } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionInternal.ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ValidationStatus = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } @@ -121,48 +124,48 @@ public partial class DevBoxDefinition : /// The storage type used for the Operating System disk of Dev Boxes created using this definition. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType = value ?? null; } + public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties _property; /// Dev Box definition properties [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ProvisioningState; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the /// resource this may be omitted. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity = value ?? default(int); } + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity = value ?? default(int); } /// /// If the service has different generations of hardware, for the same SKU, then that can be captured here. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily = value ?? null; } + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily = value ?? null; } /// The name of the SKU. Ex - P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName = value ?? null; } + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName = value ?? null; } /// /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize = value ?? null; } + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize = value ?? null; } /// /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required /// on a PUT. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -204,6 +207,10 @@ public partial class DevBoxDefinition : [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } + /// Validation status for the Dev Box Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)Property).ValidationStatus; } + /// Creates an new instance. public DevBoxDefinition() { @@ -372,6 +379,14 @@ public partial interface IDevBoxDefinition : SerializedName = @"tier", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier) })] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } + /// Validation status for the Dev Box Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the Dev Box Definition.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } } /// Represents a definition for a Developer Machine. @@ -381,7 +396,7 @@ internal partial interface IDevBoxDefinitionInternal : /// /// Image reference information for the currently active image (only populated during updates). /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ActiveImageReference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ActiveImageReference { get; set; } /// /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual /// version in use. @@ -397,7 +412,7 @@ internal partial interface IDevBoxDefinitionInternal : /// Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } /// Image reference information. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ImageReference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ImageReference { get; set; } /// /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual /// version in use. @@ -410,7 +425,7 @@ internal partial interface IDevBoxDefinitionInternal : /// /// Details for image validator error. Populated when the image validation is not successful. /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails ImageValidationErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails ImageValidationErrorDetail { get; set; } /// An identifier for the error. string ImageValidationErrorDetailCode { get; set; } /// A message describing the error. @@ -422,7 +437,7 @@ internal partial interface IDevBoxDefinitionInternal : /// string OSStorageType { get; set; } /// Dev Box definition properties - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// The SKU for Dev Boxes created using this definition. @@ -447,6 +462,8 @@ internal partial interface IDevBoxDefinitionInternal : /// on a PUT. /// Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } + /// Validation status for the Dev Box Definition. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.json.cs index 49a6a978c977..bf12187d82d9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinition.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinition.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -66,18 +66,18 @@ internal DevBoxDefinition(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.J return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevBoxDefinition(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.PowerShell.cs new file mode 100644 index 000000000000..c12c206b71e6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the Dev Box definition list operation. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionListResultTypeConverter))] + public partial class DevBoxDefinitionListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxDefinitionListResult(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxDefinitionListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxDefinitionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).NextLink, 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 DevBoxDefinitionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the Dev Box definition list operation. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionListResultTypeConverter))] + public partial interface IDevBoxDefinitionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.TypeConverter.cs index ea146751483f..ecac5e15cc26 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.cs similarity index 81% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.cs index e25780bdaf55..046aa6064343 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the Dev Box definition list operation. public partial class DevBoxDefinitionListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class DevBoxDefinitionListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[] Value { get => this._value; } /// Creates an new instance. public DevBoxDefinitionListResult() @@ -57,8 +57,8 @@ public partial interface IDevBoxDefinitionListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[] Value { get; } } /// Results of the Dev Box definition list operation. @@ -68,7 +68,7 @@ internal partial interface IDevBoxDefinitionListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.json.cs index b5eeb1c32aff..2a492dea5a78 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevBoxDefinitionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition.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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevBoxDefinitionListResult(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.PowerShell.cs new file mode 100644 index 000000000000..343ffd03c438 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.PowerShell.cs @@ -0,0 +1,298 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a Dev Box definition. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionPropertiesTypeConverter))] + public partial class DevBoxDefinitionProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxDefinitionProperties(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxDefinitionProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxDefinitionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ImageValidationErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ImageValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ImageValidationErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion, 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 DevBoxDefinitionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ImageValidationErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails) content.GetValueForProperty("ImageValidationErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ActiveImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ActiveImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ImageValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus?) content.GetValueForProperty("ImageValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus.CreateFrom); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ImageValidationErrorDetailCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode = (string) content.GetValueForProperty("ImageValidationErrorDetailCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailCode, global::System.Convert.ToString); + } + if (content.Contains("ImageValidationErrorDetailMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage = (string) content.GetValueForProperty("ImageValidationErrorDetailMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ImageValidationErrorDetailMessage, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId = (string) content.GetValueForProperty("ActiveImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ActiveImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion = (string) content.GetValueForProperty("ActiveImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal)this).ActiveImageReferenceExactVersion, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a Dev Box definition. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionPropertiesTypeConverter))] + public partial interface IDevBoxDefinitionProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.TypeConverter.cs index 1e4ff37f8ef6..06a3c73d2fb5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.cs new file mode 100644 index 000000000000..eb5d6ad2b70e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.cs @@ -0,0 +1,286 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a Dev Box definition. + public partial class DevBoxDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties __devBoxDefinitionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference _activeImageReference; + + /// + /// Image reference information for the currently active image (only populated during updates). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ActiveImageReference { get => (this._activeImageReference = this._activeImageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference()); } + + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ActiveImageReference).ExactVersion; } + + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ActiveImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ActiveImageReference).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ActiveImageReference).Id = value ?? null; } + + /// + /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting + /// hibernation. To find out more see https://aka.ms/devbox/hibernate + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } + + /// Image reference information. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReference = value ?? null /* model class */; } + + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion; } + + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails _imageValidationErrorDetail; + + /// + /// Details for image validator error. Populated when the image validation is not successful. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails ImageValidationErrorDetail { get => (this._imageValidationErrorDetail = this._imageValidationErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetails()); } + + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ImageValidationErrorDetailCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Code = value ?? null; } + + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ImageValidationErrorDetailMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)ImageValidationErrorDetail).Message = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? _imageValidationStatus; + + /// Validation status of the configured image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get => this._imageValidationStatus; } + + /// Internal Acessors for ActiveImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ActiveImageReference { get => (this._activeImageReference = this._activeImageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference()); set { {_activeImageReference = value;} } } + + /// Internal Acessors for ActiveImageReferenceExactVersion + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ActiveImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ActiveImageReference).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ActiveImageReference).ExactVersion = value; } + + /// Internal Acessors for ImageValidationErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ImageValidationErrorDetail { get => (this._imageValidationErrorDetail = this._imageValidationErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetails()); set { {_imageValidationErrorDetail = value;} } } + + /// Internal Acessors for ImageValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ImageValidationStatus { get => this._imageValidationStatus; set { {_imageValidationStatus = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionPropertiesInternal.ValidationStatus { get => this._validationStatus; set { {_validationStatus = value;} } } + + /// Internal Acessors for ImageReferenceExactVersion + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).ImageReferenceExactVersion = value; } + + /// + /// The storage type used for the Operating System disk of Dev Boxes created using this definition. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).OSStorageType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// The SKU for Dev Boxes created using this definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).Sku = value ?? null /* model class */; } + + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuCapacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuFamily = value ?? null; } + + /// The name of the SKU. Ex - P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuName = value ?? null; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuSize = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)__devBoxDefinitionUpdateProperties).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? _validationStatus; + + /// Validation status for the Dev Box Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => this._validationStatus; } + + /// Creates an new instance. + public DevBoxDefinitionProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devBoxDefinitionUpdateProperties), __devBoxDefinitionUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__devBoxDefinitionUpdateProperties), __devBoxDefinitionUpdateProperties); + } + } + /// Properties of a Dev Box definition. + public partial interface IDevBoxDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties + { + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", + SerializedName = @"exactVersion", + PossibleTypes = new [] { typeof(string) })] + string ActiveImageReferenceExactVersion { get; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ActiveImageReferenceId { get; set; } + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string ImageValidationErrorDetailCode { get; set; } + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string ImageValidationErrorDetailMessage { get; set; } + /// Validation status of the configured image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status of the configured image.", + SerializedName = @"imageValidationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// Validation status for the Dev Box Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the Dev Box Definition.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } + + } + /// Properties of a Dev Box definition. + internal partial interface IDevBoxDefinitionPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal + { + /// + /// Image reference information for the currently active image (only populated during updates). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ActiveImageReference { get; set; } + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + string ActiveImageReferenceExactVersion { get; set; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + string ActiveImageReferenceId { get; set; } + /// + /// Details for image validator error. Populated when the image validation is not successful. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails ImageValidationErrorDetail { get; set; } + /// An identifier for the error. + string ImageValidationErrorDetailCode { get; set; } + /// A message describing the error. + string ImageValidationErrorDetailMessage { get; set; } + /// Validation status of the configured image. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ImageValidationStatus? ImageValidationStatus { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// Validation status for the Dev Box Definition. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.json.cs similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.json.cs index e3154632332d..82b5eaeb7426 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,22 +65,23 @@ internal DevBoxDefinitionProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter { return; } - __devBoxDefinitionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties(json); - {_imageValidationErrorDetail = If( json?.PropertyT("imageValidationErrorDetails"), out var __jsonImageValidationErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageValidationErrorDetails.FromJson(__jsonImageValidationErrorDetails) : ImageValidationErrorDetail;} - {_activeImageReference = If( json?.PropertyT("activeImageReference"), out var __jsonActiveImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference.FromJson(__jsonActiveImageReference) : ActiveImageReference;} + __devBoxDefinitionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties(json); + {_imageValidationErrorDetail = If( json?.PropertyT("imageValidationErrorDetails"), out var __jsonImageValidationErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageValidationErrorDetails.FromJson(__jsonImageValidationErrorDetails) : ImageValidationErrorDetail;} + {_activeImageReference = If( json?.PropertyT("activeImageReference"), out var __jsonActiveImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference.FromJson(__jsonActiveImageReference) : ActiveImageReference;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_imageValidationStatus = If( json?.PropertyT("imageValidationStatus"), out var __jsonImageValidationStatus) ? (string)__jsonImageValidationStatus : (string)ImageValidationStatus;} + {_validationStatus = If( json?.PropertyT("validationStatus"), out var __jsonValidationStatus) ? (string)__jsonValidationStatus : (string)ValidationStatus;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevBoxDefinitionProperties(json) : null; } @@ -121,6 +122,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { AddIf( null != (((object)this._imageValidationStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._imageValidationStatus.ToString()) : null, "imageValidationStatus" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._validationStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._validationStatus.ToString()) : null, "validationStatus" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.PowerShell.cs new file mode 100644 index 000000000000..7ce161a6ca67 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.PowerShell.cs @@ -0,0 +1,250 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Partial update of a Dev Box definition resource. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdateTypeConverter))] + public partial class DevBoxDefinitionUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxDefinitionUpdate(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxDefinitionUpdate(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxDefinitionUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DevBoxDefinitionUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Partial update of a Dev Box definition resource. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdateTypeConverter))] + public partial interface IDevBoxDefinitionUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.TypeConverter.cs index db8d023b41ef..8bb2d879c63a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.cs new file mode 100644 index 000000000000..e371c8ffdc53 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.cs @@ -0,0 +1,272 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Partial update of a Dev Box definition resource. + public partial class DevBoxDefinitionUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// + /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting + /// hibernation. To find out more see https://aka.ms/devbox/hibernate + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).HibernateSupport = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport)""); } + + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; } + + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceId = value ?? null; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// Internal Acessors for ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal.ImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReference = value; } + + /// Internal Acessors for ImageReferenceExactVersion + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).ImageReferenceExactVersion = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties()); set { {_property = value;} } } + + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).Sku = value; } + + /// + /// The storage type used for the Operating System disk of Dev Boxes created using this definition. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string OSStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).OSStorageType = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties _property; + + /// Properties of a Dev Box definition to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties()); set => this._property = value; } + + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuCapacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuFamily = value ?? null; } + + /// The name of the SKU. Ex - P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuName = value ?? null; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuSize = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)Property).SkuTier = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// Creates an new instance. + public DevBoxDefinitionUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// Partial update of a Dev Box definition resource. + public partial interface IDevBoxDefinitionUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// + /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting + /// hibernation. To find out more see https://aka.ms/devbox/hibernate + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", + SerializedName = @"hibernateSupport", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", + SerializedName = @"exactVersion", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceExactVersion { get; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceId { get; set; } + /// + /// The storage type used for the Operating System disk of Dev Boxes created using this definition. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The storage type used for the Operating System disk of Dev Boxes created using this definition.", + SerializedName = @"osStorageType", + PossibleTypes = new [] { typeof(string) })] + string OSStorageType { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. Ex - P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. Ex - P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } + + } + /// Partial update of a Dev Box definition resource. + internal partial interface IDevBoxDefinitionUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// + /// Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting + /// hibernation. To find out more see https://aka.ms/devbox/hibernate + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } + /// Image reference information. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ImageReference { get; set; } + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + string ImageReferenceExactVersion { get; set; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + string ImageReferenceId { get; set; } + /// + /// The storage type used for the Operating System disk of Dev Boxes created using this definition. + /// + string OSStorageType { get; set; } + /// Properties of a Dev Box definition to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties Property { get; set; } + /// The SKU for Dev Boxes created using this definition. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. Ex - P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier? SkuTier { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.json.cs index 7fdf529e8d09..d9319a60595a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevBoxDefinitionUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Run { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevBoxDefinitionUpdate(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..5e97d4bf0182 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.PowerShell.cs @@ -0,0 +1,228 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of a Dev Box definition. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdatePropertiesTypeConverter))] + public partial class DevBoxDefinitionUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxDefinitionUpdateProperties(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxDefinitionUpdateProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxDefinitionUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DevBoxDefinitionUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SkuTypeConverter.ConvertFrom); + } + if (content.Contains("OSStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType = (string) content.GetValueForProperty("OSStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).OSStorageType, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ImageReferenceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceId, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion = (string) content.GetValueForProperty("ImageReferenceExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).ImageReferenceExactVersion, global::System.Convert.ToString); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SkuTier.CreateFrom); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a Dev Box definition. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(DevBoxDefinitionUpdatePropertiesTypeConverter))] + public partial interface IDevBoxDefinitionUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.TypeConverter.cs index 46e8cbe350a8..427c234d26e8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.cs similarity index 89% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.cs index d21d4c6a398a..02eda5574bbe 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// Properties of a Dev Box definition. These properties can be updated after the resource has been created. /// public partial class DevBoxDefinitionUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal { /// Backing field for property. @@ -26,33 +26,33 @@ public partial class DevBoxDefinitionUpdateProperties : public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; set => this._hibernateSupport = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference _imageReference; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference _imageReference; /// Image reference information. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference()); set => this._imageReference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference()); set => this._imageReference = value; } /// /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual /// version in use. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ImageReference).ExactVersion; } + public string ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).ExactVersion; } /// /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ImageReference).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ImageReference).Id = value ?? null; } + public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Id = value ?? null; } /// Internal Acessors for ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference()); set { {_imageReference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference()); set { {_imageReference = value;} } } /// Internal Acessors for ImageReferenceExactVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ImageReference).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReferenceInternal)ImageReference).ExactVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal.ImageReferenceExactVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).ExactVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).ExactVersion = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdatePropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Sku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdatePropertiesInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Sku()); set { {_sku = value;} } } /// Backing field for property. private string _oSStorageType; @@ -214,7 +214,7 @@ internal partial interface IDevBoxDefinitionUpdatePropertiesInternal /// Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } /// Image reference information. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageReference ImageReference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference ImageReference { get; set; } /// /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual /// version in use. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.json.cs index 5ed9864510e5..edc268e8be2a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevBoxDefinitionUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevBoxDefinitionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,7 +67,7 @@ internal DevBoxDefinitionUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Dev { return; } - {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageReference.FromJson(__jsonImageReference) : ImageReference;} + {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageReference.FromJson(__jsonImageReference) : ImageReference;} {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Sku.FromJson(__jsonSku) : Sku;} {_oSStorageType = If( json?.PropertyT("osStorageType"), out var __jsonOSStorageType) ? (string)__jsonOSStorageType : (string)OSStorageType;} {_hibernateSupport = If( json?.PropertyT("hibernateSupport"), out var __jsonHibernateSupport) ? (string)__jsonHibernateSupport : (string)HibernateSupport;} @@ -75,13 +75,13 @@ internal DevBoxDefinitionUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.Dev } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevBoxDefinitionUpdateProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.PowerShell.cs new file mode 100644 index 000000000000..6eaf6fd4116e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.PowerShell.cs @@ -0,0 +1,360 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a devcenter resource. + [System.ComponentModel.TypeConverter(typeof(DevCenterTypeConverter))] + public partial class DevCenter + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevCenter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevCenter(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.DevCenter.Models.Api20231001Preview.IDevCenter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevCenter(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevCenter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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 DevCenter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevCenter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a devcenter resource. + [System.ComponentModel.TypeConverter(typeof(DevCenterTypeConverter))] + public partial interface IDevCenter + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.TypeConverter.cs index da167859752c..96ea4a1a0e01 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.cs new file mode 100644 index 000000000000..fc3a0d257ae5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.cs @@ -0,0 +1,391 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a devcenter resource. + public partial class DevCenter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string CustomerManagedKeyEncryptionKeyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyUrl = value ?? null; } + + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity _identity; + + /// Managed identity properties + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set => this._identity = value; } + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; } + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType)""); } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityDelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityDelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value; } + + /// Internal Acessors for Encryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).Encryption = value; } + + /// Internal Acessors for EncryptionCustomerManagedKeyEncryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterInternal.Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).DevCenterUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).DevCenterUri = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties _property; + + /// DevCenter properties + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } + + /// The URI of the Dev Center. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)Property).DevCenterUri; } + + /// Creates an new instance. + public DevCenter() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Represents a devcenter resource. + public partial interface IDevCenter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource + { + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// The URI of the Dev Center. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The URI of the Dev Center.", + SerializedName = @"devCenterUri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } + + } + /// Represents a devcenter resource. + internal partial interface IDevCenterInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal + { + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity CustomerManagedKeyEncryptionKeyIdentity { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + string DisplayName { get; set; } + /// + /// Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Encryption { get; set; } + /// All Customer-managed key encryption properties for the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption EncryptionCustomerManagedKeyEncryption { get; set; } + /// Managed identity properties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + /// DevCenter properties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// The URI of the Dev Center. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.json.cs index 5f90c192ed2f..ef50a7b3b726 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenter.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenter.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -66,19 +66,19 @@ internal DevCenter(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.Jso return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterProperties.FromJson(__jsonProperties) : Property;} {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenter(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.PowerShell.cs new file mode 100644 index 000000000000..4b2fa69583d6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the list devcenters operation + [System.ComponentModel.TypeConverter(typeof(DevCenterListResultTypeConverter))] + public partial class DevCenterListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevCenterListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevCenterListResult(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.DevCenter.Models.Api20231001Preview.IDevCenterListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevCenterListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevCenterListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).NextLink, 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 DevCenterListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevCenterListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the list devcenters operation + [System.ComponentModel.TypeConverter(typeof(DevCenterListResultTypeConverter))] + public partial interface IDevCenterListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.TypeConverter.cs index 63223a975357..231084481c63 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.cs index d81c9a3a51f2..3bf329635af1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Result of the list devcenters operation public partial class DevCenterListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class DevCenterListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[] Value { get => this._value; } /// Creates an new instance. public DevCenterListResult() @@ -57,8 +57,8 @@ public partial interface IDevCenterListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[] Value { get; } } /// Result of the list devcenters operation @@ -68,7 +68,7 @@ internal partial interface IDevCenterListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.json.cs index 927240ce802b..11010ac15eec 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevCenterListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtim { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenter) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IDevCenter) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenterListResult(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.PowerShell.cs new file mode 100644 index 000000000000..935328e3c37a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.PowerShell.cs @@ -0,0 +1,218 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of the devcenter. + [System.ComponentModel.TypeConverter(typeof(DevCenterPropertiesTypeConverter))] + public partial class DevCenterProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevCenterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevCenterProperties(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.DevCenter.Models.Api20231001Preview.IDevCenterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevCenterProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevCenterProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName, 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 DevCenterProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevCenterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of the devcenter. + [System.ComponentModel.TypeConverter(typeof(DevCenterPropertiesTypeConverter))] + public partial interface IDevCenterProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.TypeConverter.cs index ecc5c4587005..4cf73eb94c3f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.cs new file mode 100644 index 000000000000..d33f37b395a6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.cs @@ -0,0 +1,140 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of the devcenter. + public partial class DevCenterProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties __devCenterUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties(); + + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).CustomerManagedKeyEncryptionKeyIdentity = value ?? null /* model class */; } + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string CustomerManagedKeyEncryptionKeyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).CustomerManagedKeyEncryptionKeyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).CustomerManagedKeyEncryptionKeyUrl = value ?? null; } + + /// Backing field for property. + private string _devCenterUri; + + /// The URI of the Dev Center. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DevCenterUri { get => this._devCenterUri; } + + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).DisplayName = value ?? null; } + + /// + /// Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).Encryption = value ?? null /* model class */; } + + /// All Customer-managed key encryption properties for the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).EncryptionCustomerManagedKeyEncryption = value ?? null /* model class */; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityDelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityDelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)__devCenterUpdateProperties).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } + + /// Internal Acessors for DevCenterUri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal.DevCenterUri { get => this._devCenterUri; set { {_devCenterUri = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public DevCenterProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devCenterUpdateProperties), __devCenterUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__devCenterUpdateProperties), __devCenterUpdateProperties); + } + } + /// Properties of the devcenter. + public partial interface IDevCenterProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties + { + /// The URI of the Dev Center. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The URI of the Dev Center.", + SerializedName = @"devCenterUri", + PossibleTypes = new [] { typeof(string) })] + string DevCenterUri { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of the devcenter. + internal partial interface IDevCenterPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal + { + /// The URI of the Dev Center. + string DevCenterUri { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.json.cs index fbd878ded25e..46c52cc37135 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,19 +65,20 @@ internal DevCenterProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtim { return; } + __devCenterUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_devCenterUri = If( json?.PropertyT("devCenterUri"), out var __jsonDevCenterUri) ? (string)__jsonDevCenterUri : (string)DevCenterUri;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenterProperties(json) : null; } @@ -101,6 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } + __devCenterUpdateProperties?.ToJson(container, serializationMode); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.PowerShell.cs similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.PowerShell.cs index 0dc426c25554..866213d126a3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DevCenterSku partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IDevCenterSku DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DevCenterSku(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.DevCenter.Models.Api20230401.IDevCenterSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DevCenterSku(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,15 +96,15 @@ internal DevCenterSku(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Capability")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[]) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Capability, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CapabilityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[]) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Capability, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CapabilityTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { @@ -130,7 +130,7 @@ internal DevCenterSku(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. @@ -145,15 +145,15 @@ internal DevCenterSku(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Capability")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[]) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal)this).Capability, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CapabilityTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Capability = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[]) content.GetValueForProperty("Capability",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal)this).Capability, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CapabilityTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { @@ -183,7 +183,7 @@ internal DevCenterSku(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.DevCenter.Models.Api20230401.IDevCenterSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.TypeConverter.cs index 5b82c47ce994..8f12272dd790 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterSku ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.cs index dfe533b8daba..a50fc8a40d39 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// The resource model definition representing SKU for DevCenter resources public partial class DevCenterSku : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -19,11 +19,11 @@ public partial class DevCenterSku : private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISku __sku = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Sku(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[] _capability; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[] _capability; /// Collection of name/value pairs to describe the SKU capabilities. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[] Capability { get => this._capability; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[] Capability { get => this._capability; } /// /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the @@ -46,13 +46,13 @@ public partial class DevCenterSku : public string[] Location { get => this._location; } /// Internal Acessors for Capability - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal.Capability { get => this._capability; set { {_capability = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal.Capability { get => this._capability; set { {_capability = value;} } } /// Internal Acessors for Location - string[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal.Location { get => this._location; set { {_location = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal.Location { get => this._location; set { {_location = value;} } } /// Internal Acessors for ResourceType - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSkuInternal.ResourceType { get => this._resourceType; set { {_resourceType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSkuInternal.ResourceType { get => this._resourceType; set { {_resourceType = value;} } } /// The name of the SKU. Ex - P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] @@ -107,8 +107,8 @@ public partial interface IDevCenterSku : ReadOnly = true, Description = @"Collection of name/value pairs to describe the SKU capabilities.", SerializedName = @"capabilities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[] Capability { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[] Capability { get; } /// SKU supported locations. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -132,7 +132,7 @@ internal partial interface IDevCenterSkuInternal : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISkuInternal { /// Collection of name/value pairs to describe the SKU capabilities. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICapability[] Capability { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICapability[] Capability { get; set; } /// SKU supported locations. string[] Location { get; set; } /// The name of the resource type diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.json.cs index 472175ff49b6..dc4b080182af 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterSku.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterSku.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -68,18 +68,18 @@ internal DevCenterSku(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json. __sku = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Sku(json); {_resourceType = If( json?.PropertyT("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType;} {_location = If( json?.PropertyT("locations"), out var __jsonLocations) ? If( __jsonLocations as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Location;} - {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? If( __jsonCapabilities as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICapability) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Capability.FromJson(__p) )) ))() : null : Capability;} + {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? If( __jsonCapabilities as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICapability) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Capability.FromJson(__p) )) ))() : null : Capability;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenterSku(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.PowerShell.cs new file mode 100644 index 000000000000..4dcb2e25f96e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.PowerShell.cs @@ -0,0 +1,266 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(DevCenterUpdateTypeConverter))] + public partial class DevCenterUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevCenterUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevCenterUpdate(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.DevCenter.Models.Api20231001Preview.IDevCenterUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevCenterUpdate(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevCenterUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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 DevCenterUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevCenterUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(DevCenterUpdateTypeConverter))] + public partial interface IDevCenterUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.TypeConverter.cs index c6549ada8e4a..976ff2fd71f5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.cs new file mode 100644 index 000000000000..4df63b6335f3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.cs @@ -0,0 +1,301 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. + /// + public partial class DevCenterUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string CustomerManagedKeyEncryptionKeyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyUrl = value ?? null; } + + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity _identity; + + /// Managed identity properties + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set => this._identity = value; } + + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; } + + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; } + + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType)""); } + + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityDelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityDelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).CustomerManagedKeyEncryptionKeyIdentity = value; } + + /// Internal Acessors for Encryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).Encryption = value; } + + /// Internal Acessors for EncryptionCustomerManagedKeyEncryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)Property).EncryptionCustomerManagedKeyEncryption = value; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties _property; + + /// Properties of a Dev Center to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties()); set => this._property = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// Creates an new instance. + public DevCenterUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. + public partial interface IDevCenterUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + SerializedName = @"userAssignedIdentities", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + + } + /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. + internal partial interface IDevCenterUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity CustomerManagedKeyEncryptionKeyIdentity { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + string DisplayName { get; set; } + /// + /// Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Encryption { get; set; } + /// All Customer-managed key encryption properties for the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption EncryptionCustomerManagedKeyEncryption { get; set; } + /// Managed identity properties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get; set; } + /// + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityPrincipalId { get; set; } + /// + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// + string IdentityTenantId { get; set; } + /// + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType? IdentityType { get; set; } + /// + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + /// resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + /// The dictionary values can be empty objects ({}) in requests. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + /// Properties of a Dev Center to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.json.cs similarity index 88% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.json.cs index 557896a8fb99..93cebb380a0d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/DevCenterUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,19 +67,20 @@ internal DevCenterUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Js { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenterUpdate(json) : null; } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson } __trackedResourceUpdate?.ToJson(container, serializationMode); AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..37a45d48fb1e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.PowerShell.cs @@ -0,0 +1,204 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of the devcenter. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(DevCenterUpdatePropertiesTypeConverter))] + public partial class DevCenterUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevCenterUpdateProperties(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.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevCenterUpdateProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevCenterUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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 DevCenterUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EncryptionCustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("EncryptionCustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).EncryptionCustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of the devcenter. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(DevCenterUpdatePropertiesTypeConverter))] + public partial interface IDevCenterUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..83ec0d5b52d7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevCenterUpdatePropertiesTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevCenterUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevCenterUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevCenterUpdateProperties.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.cs new file mode 100644 index 000000000000..09957724a3f2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.cs @@ -0,0 +1,170 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of the devcenter. These properties can be updated after the resource has been created. + /// + public partial class DevCenterUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal + { + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string CustomerManagedKeyEncryptionKeyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryptionKeyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryptionKeyUrl = value ?? null; } + + /// Backing field for property. + private string _displayName; + + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption _encryption; + + /// + /// Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Encryption()); set => this._encryption = value; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityDelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityDelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } + + /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryptionKeyIdentity = value; } + + /// Internal Acessors for Encryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal.Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Encryption()); set { {_encryption = value;} } } + + /// Internal Acessors for EncryptionCustomerManagedKeyEncryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdatePropertiesInternal.EncryptionCustomerManagedKeyEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)Encryption).CustomerManagedKeyEncryption = value; } + + /// Creates an new instance. + public DevCenterUpdateProperties() + { + + } + } + /// Properties of the devcenter. These properties can be updated after the resource has been created. + public partial interface IDevCenterUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + + } + /// Properties of the devcenter. These properties can be updated after the resource has been created. + internal partial interface IDevCenterUpdatePropertiesInternal + + { + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity CustomerManagedKeyEncryptionKeyIdentity { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// The display name of the devcenter. + string DisplayName { get; set; } + /// + /// Encryption settings to be used for server-side encryption for proprietary content (such as catalogs, logs, customizations). + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption Encryption { get; set; } + /// All Customer-managed key encryption properties for the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption EncryptionCustomerManagedKeyEncryption { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.json.cs new file mode 100644 index 000000000000..30d8005223f4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/DevCenterUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of the devcenter. These properties can be updated after the resource has been created. + /// + public partial class DevCenterUpdateProperties + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal DevCenterUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Encryption.FromJson(__jsonEncryption) : Encryption;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new DevCenterUpdateProperties(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._encryption ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._encryption.ToJson(null,serializationMode) : null, "encryption" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.PowerShell.cs new file mode 100644 index 000000000000..8bd3340950f5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.PowerShell.cs @@ -0,0 +1,182 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(EncryptionTypeConverter))] + public partial class Encryption + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEncryption DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Encryption(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.DevCenter.Models.Api20231001Preview.IEncryption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Encryption(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Encryption(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("CustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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 Encryption(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CustomerManagedKeyEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption) content.GetValueForProperty("CustomerManagedKeyEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryption, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("CustomerManagedKeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyUrl = (string) content.GetValueForProperty("CustomerManagedKeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).CustomerManagedKeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEncryption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(EncryptionTypeConverter))] + public partial interface IEncryption + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.TypeConverter.cs new file mode 100644 index 000000000000..9338300ac48e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EncryptionTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEncryption ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Encryption.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Encryption.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Encryption.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.cs new file mode 100644 index 000000000000..c61926131036 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.cs @@ -0,0 +1,139 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class Encryption : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption _customerManagedKeyEncryption; + + /// All Customer-managed key encryption properties for the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption CustomerManagedKeyEncryption { get => (this._customerManagedKeyEncryption = this._customerManagedKeyEncryption ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryption()); set => this._customerManagedKeyEncryption = value; } + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string CustomerManagedKeyEncryptionKeyUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyUrl = value ?? null; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityDelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityDelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value ?? null; } + + /// Internal Acessors for CustomerManagedKeyEncryption + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal.CustomerManagedKeyEncryption { get => (this._customerManagedKeyEncryption = this._customerManagedKeyEncryption ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryption()); set { {_customerManagedKeyEncryption = value;} } } + + /// Internal Acessors for CustomerManagedKeyEncryptionKeyIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryptionInternal.CustomerManagedKeyEncryptionKeyIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)CustomerManagedKeyEncryption).KeyEncryptionKeyIdentity = value; } + + /// Creates an new instance. + public Encryption() + { + + } + } + public partial interface IEncryption : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + + } + internal partial interface IEncryptionInternal + + { + /// All Customer-managed key encryption properties for the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption CustomerManagedKeyEncryption { get; set; } + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity CustomerManagedKeyEncryptionKeyIdentity { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + string CustomerManagedKeyEncryptionKeyUrl { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.json.cs new file mode 100644 index 000000000000..d33ae1117c34 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Encryption.json.cs @@ -0,0 +1,107 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class Encryption + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal Encryption(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_customerManagedKeyEncryption = If( json?.PropertyT("customerManagedKeyEncryption"), out var __jsonCustomerManagedKeyEncryption) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryption.FromJson(__jsonCustomerManagedKeyEncryption) : CustomerManagedKeyEncryption;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEncryption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Encryption(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._customerManagedKeyEncryption ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._customerManagedKeyEncryption.ToJson(null,serializationMode) : null, "customerManagedKeyEncryption" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.PowerShell.cs new file mode 100644 index 000000000000..4a970ed965d9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// A domain name and connection details used to access a dependency. + [System.ComponentModel.TypeConverter(typeof(EndpointDependencyTypeConverter))] + public partial class EndpointDependency + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEndpointDependency DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EndpointDependency(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.DevCenter.Models.Api20231001Preview.IEndpointDependency DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EndpointDependency(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EndpointDependency(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EndpointDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).EndpointDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[]) content.GetValueForProperty("EndpointDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).EndpointDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDetailTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EndpointDependency(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("EndpointDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).EndpointDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[]) content.GetValueForProperty("EndpointDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal)this).EndpointDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDetailTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEndpointDependency FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A domain name and connection details used to access a dependency. + [System.ComponentModel.TypeConverter(typeof(EndpointDependencyTypeConverter))] + public partial interface IEndpointDependency + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.TypeConverter.cs index b91b866f8118..75da31d17e22 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEndpointDependency ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.cs similarity index 84% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.cs index 29b2e3c7c4aa..173345609289 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// A domain name and connection details used to access a dependency. public partial class EndpointDependency : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal { /// Backing field for property. @@ -32,20 +32,20 @@ public partial class EndpointDependency : public string DomainName { get => this._domainName; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[] _endpointDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[] _endpointDetail; /// The list of connection details for this endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[] EndpointDetail { get => this._endpointDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[] EndpointDetail { get => this._endpointDetail; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for DomainName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal.DomainName { get => this._domainName; set { {_domainName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal.DomainName { get => this._domainName; set { {_domainName = value;} } } /// Internal Acessors for EndpointDetail - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependencyInternal.EndpointDetail { get => this._endpointDetail; set { {_endpointDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependencyInternal.EndpointDetail { get => this._endpointDetail; set { {_endpointDetail = value;} } } /// Creates an new instance. public EndpointDependency() @@ -83,8 +83,8 @@ public partial interface IEndpointDependency : ReadOnly = true, Description = @"The list of connection details for this endpoint.", SerializedName = @"endpointDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[] EndpointDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[] EndpointDetail { get; } } /// A domain name and connection details used to access a dependency. @@ -100,7 +100,7 @@ internal partial interface IEndpointDependencyInternal /// string DomainName { get; set; } /// The list of connection details for this endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail[] EndpointDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail[] EndpointDetail { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.json.cs index 1e43c0a88529..804cdcd11d8a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDependency.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDependency.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,18 +67,18 @@ internal EndpointDependency(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime } {_domainName = If( json?.PropertyT("domainName"), out var __jsonDomainName) ? (string)__jsonDomainName : (string)DomainName;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_endpointDetail = If( json?.PropertyT("endpointDetails"), out var __jsonEndpointDetails) ? If( __jsonEndpointDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEndpointDetail) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDetail.FromJson(__u) )) ))() : null : EndpointDetail;} + {_endpointDetail = If( json?.PropertyT("endpointDetails"), out var __jsonEndpointDetails) ? If( __jsonEndpointDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEndpointDetail) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDetail.FromJson(__u) )) ))() : null : EndpointDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EndpointDependency(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.PowerShell.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.PowerShell.cs index b6158b5ba775..f59319e82a42 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class EndpointDetail partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IEndpointDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EndpointDetail(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.DevCenter.Models.Api20230401.IEndpointDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EndpointDetail(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +96,13 @@ internal EndpointDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } 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. @@ -117,7 +117,7 @@ internal EndpointDetail(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } @@ -127,7 +127,7 @@ internal EndpointDetail(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.DevCenter.Models.Api20230401.IEndpointDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.TypeConverter.cs index 08d99e03e670..788f22bbd42f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEndpointDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.cs index 8c824282518b..db2573f687de 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.cs @@ -3,18 +3,18 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Details about the connection between the Batch service and the endpoint. public partial class EndpointDetail : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal { /// Internal Acessors for Port - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetailInternal.Port { get => this._port; set { {_port = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetailInternal.Port { get => this._port; set { {_port = value;} } } /// Backing field for property. private int? _port; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.json.cs index 96c27ce8e5aa..7b578a84f2d5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EndpointDetail.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EndpointDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -70,13 +70,13 @@ internal EndpointDetail(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EndpointDetail(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs new file mode 100644 index 000000000000..d4ad163db096 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs @@ -0,0 +1,258 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents an environment definition catalog item. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] + public partial class EnvironmentDefinition + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinition(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinition(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath, global::System.Convert.ToString); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath, global::System.Convert.ToString); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents an environment definition catalog item. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] + public partial interface IEnvironmentDefinition + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.TypeConverter.cs new file mode 100644 index 000000000000..8639c7b37857 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinition.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs new file mode 100644 index 000000000000..7c0c471df3bc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs @@ -0,0 +1,190 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents an environment definition catalog item. + public partial class EnvironmentDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Description; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Description = value; } + + /// Internal Acessors for Parameter + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal.Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Parameter = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionProperties()); set { {_property = value;} } } + + /// Internal Acessors for TemplatePath + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal.TemplatePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).TemplatePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).TemplatePath = value; } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionInternal.ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).ValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).ValidationStatus = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } + + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).Parameter; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties _property; + + /// Environment definition properties. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionProperties()); set => this._property = value; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string TemplatePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).TemplatePath; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } + + /// Validation status for the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)Property).ValidationStatus; } + + /// Creates an new instance. + public EnvironmentDefinition() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents an environment definition catalog item. + public partial interface IEnvironmentDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource + { + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A short description of the environment definition.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Input parameters passed to an environment.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; } + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Path to the Environment Definition entrypoint file.", + SerializedName = @"templatePath", + PossibleTypes = new [] { typeof(string) })] + string TemplatePath { get; } + /// Validation status for the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the environment definition.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } + + } + /// Represents an environment definition catalog item. + internal partial interface IEnvironmentDefinitionInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal + { + /// A short description of the environment definition. + string Description { get; set; } + /// Input parameters passed to an environment. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; set; } + /// Environment definition properties. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties Property { get; set; } + /// Path to the Environment Definition entrypoint file. + string TemplatePath { get; set; } + /// Validation status for the environment definition. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.json.cs new file mode 100644 index 000000000000..7069e462818d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents an environment definition catalog item. + public partial class EnvironmentDefinition + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinition(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionProperties.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentDefinition(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs new file mode 100644 index 000000000000..eced8412210e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the environment definition list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] + public partial class EnvironmentDefinitionListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinitionListResult(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinitionListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinitionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink, 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 EnvironmentDefinitionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the environment definition list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] + public partial interface IEnvironmentDefinitionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.TypeConverter.cs new file mode 100644 index 000000000000..d34007507870 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinitionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinitionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinitionListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs new file mode 100644 index 000000000000..ad8a3c974e31 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the environment definition list operation. + public partial class EnvironmentDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get => this._value; } + + /// Creates an new instance. + public EnvironmentDefinitionListResult() + { + + } + } + /// Results of the environment definition list operation. + public partial interface IEnvironmentDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get; } + + } + /// Results of the environment definition list operation. + internal partial interface IEnvironmentDefinitionListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs new file mode 100644 index 000000000000..aa77a3b172ac --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the environment definition list operation. + public partial class EnvironmentDefinitionListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinitionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinition.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentDefinitionListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs new file mode 100644 index 000000000000..994f63843bc4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an Environment Definition parameter + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] + public partial class EnvironmentDefinitionParameter + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinitionParameter(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinitionParameter(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinitionParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType.CreateFrom); + } + if (content.Contains("ReadOnly")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentDefinitionParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType.CreateFrom); + } + if (content.Contains("ReadOnly")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an Environment Definition parameter + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] + public partial interface IEnvironmentDefinitionParameter + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.TypeConverter.cs new file mode 100644 index 000000000000..878cc08edad1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionParameterTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinitionParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinitionParameter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinitionParameter.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs new file mode 100644 index 000000000000..ae06d801265f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs @@ -0,0 +1,166 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an Environment Definition parameter + public partial class EnvironmentDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal + { + + /// Backing field for property. + private string _description; + + /// Description of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Backing field for property. + private string _id; + + /// Unique ID of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for ReadOnly + bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.ReadOnly { get => this._readOnly; set { {_readOnly = value;} } } + + /// Internal Acessors for Required + bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.Required { get => this._required; set { {_required = value;} } } + + /// Internal Acessors for Type + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Display name of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private bool? _readOnly; + + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public bool? ReadOnly { get => this._readOnly; } + + /// Backing field for property. + private bool? _required; + + /// Whether or not this parameter is required + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public bool? Required { get => this._required; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType? _type; + + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType? Type { get => this._type; } + + /// Creates an new instance. + public EnvironmentDefinitionParameter() + { + + } + } + /// Properties of an Environment Definition parameter + public partial interface IEnvironmentDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Description of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Description of the parameter", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Unique ID of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Unique ID of the parameter", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Display name of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Display name of the parameter", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Whether or not this parameter is read-only. If true, default should have a value.", + SerializedName = @"readOnly", + PossibleTypes = new [] { typeof(bool) })] + bool? ReadOnly { get; } + /// Whether or not this parameter is required + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Whether or not this parameter is required", + SerializedName = @"required", + PossibleTypes = new [] { typeof(bool) })] + bool? Required { get; } + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A string of one of the basic JSON types (number, integer, array, object, boolean, string)", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType? Type { get; } + + } + /// Properties of an Environment Definition parameter + internal partial interface IEnvironmentDefinitionParameterInternal + + { + /// Description of the parameter + string Description { get; set; } + /// Unique ID of the parameter + string Id { get; set; } + /// Display name of the parameter + string Name { get; set; } + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + bool? ReadOnly { get; set; } + /// Whether or not this parameter is required + bool? Required { get; set; } + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs new file mode 100644 index 000000000000..71c21f598fd9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs @@ -0,0 +1,136 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an Environment Definition parameter + public partial class EnvironmentDefinitionParameter + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinitionParameter(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_readOnly = If( json?.PropertyT("readOnly"), out var __jsonReadOnly) ? (bool?)__jsonReadOnly : ReadOnly;} + {_required = If( json?.PropertyT("required"), out var __jsonRequired) ? (bool?)__jsonRequired : Required;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentDefinitionParameter(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._readOnly ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonBoolean((bool)this._readOnly) : null, "readOnly" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._required ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonBoolean((bool)this._required) : null, "required" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.PowerShell.cs new file mode 100644 index 000000000000..2612113451fd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.PowerShell.cs @@ -0,0 +1,170 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an environment definition. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionPropertiesTypeConverter))] + public partial class EnvironmentDefinitionProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinitionProperties(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinitionProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinitionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).TemplatePath, global::System.Convert.ToString); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentDefinitionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).TemplatePath, global::System.Convert.ToString); + } + if (content.Contains("ValidationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus.CreateFrom); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment definition. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionPropertiesTypeConverter))] + public partial interface IEnvironmentDefinitionProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.TypeConverter.cs new file mode 100644 index 000000000000..147238e40d63 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionPropertiesTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinitionProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinitionProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinitionProperties.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.cs new file mode 100644 index 000000000000..a612b6df3380 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an environment definition. + public partial class EnvironmentDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal + { + + /// Backing field for property. + private string _description; + + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for Parameter + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal.Parameter { get => this._parameter; set { {_parameter = value;} } } + + /// Internal Acessors for TemplatePath + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal.TemplatePath { get => this._templatePath; set { {_templatePath = value;} } } + + /// Internal Acessors for ValidationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionPropertiesInternal.ValidationStatus { get => this._validationStatus; set { {_validationStatus = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] _parameter; + + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get => this._parameter; } + + /// Backing field for property. + private string _templatePath; + + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string TemplatePath { get => this._templatePath; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? _validationStatus; + + /// Validation status for the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get => this._validationStatus; } + + /// Creates an new instance. + public EnvironmentDefinitionProperties() + { + + } + } + /// Properties of an environment definition. + public partial interface IEnvironmentDefinitionProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A short description of the environment definition.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Input parameters passed to an environment.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; } + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Path to the Environment Definition entrypoint file.", + SerializedName = @"templatePath", + PossibleTypes = new [] { typeof(string) })] + string TemplatePath { get; } + /// Validation status for the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Validation status for the environment definition.", + SerializedName = @"validationStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; } + + } + /// Properties of an environment definition. + internal partial interface IEnvironmentDefinitionPropertiesInternal + + { + /// A short description of the environment definition. + string Description { get; set; } + /// Input parameters passed to an environment. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; set; } + /// Path to the Environment Definition entrypoint file. + string TemplatePath { get; set; } + /// Validation status for the environment definition. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus? ValidationStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.json.cs new file mode 100644 index 000000000000..89dc8f6af7fb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionProperties.json.cs @@ -0,0 +1,134 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an environment definition. + public partial class EnvironmentDefinitionProperties + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinitionProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? If( __jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionParameter) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentDefinitionParameter.FromJson(__u) )) ))() : null : Parameter;} + {_templatePath = If( json?.PropertyT("templatePath"), out var __jsonTemplatePath) ? (string)__jsonTemplatePath : (string)TemplatePath;} + {_validationStatus = If( json?.PropertyT("validationStatus"), out var __jsonValidationStatus) ? (string)__jsonValidationStatus : (string)ValidationStatus;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentDefinitionProperties(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._parameter) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._parameter ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("parameters",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._templatePath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._templatePath.ToString()) : null, "templatePath" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._validationStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._validationStatus.ToString()) : null, "validationStatus" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.PowerShell.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.PowerShell.cs index 80026bb9db9e..e68fbad36ff3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class EnvironmentRole partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IEnvironmentRole DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnvironmentRole(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.DevCenter.Models.Api20230401.IEnvironmentRole DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnvironmentRole(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal EnvironmentRole(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("RoleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).RoleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).RoleName, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)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. @@ -121,11 +121,11 @@ internal EnvironmentRole(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("RoleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).RoleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).RoleName = (string) content.GetValueForProperty("RoleName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).RoleName, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal EnvironmentRole(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.DevCenter.Models.Api20230401.IEnvironmentRole FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.TypeConverter.cs index f7d8c8300904..109b764fd54f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentRole ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.cs index 383dad8721ca..307d216c35b8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// A role that can be assigned to a user. public partial class EnvironmentRole : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class EnvironmentRole : public string Description { get => this._description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for RoleName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRoleInternal.RoleName { get => this._roleName; set { {_roleName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRoleInternal.RoleName { get => this._roleName; set { {_roleName = value;} } } /// Backing field for property. private string _roleName; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.json.cs index 6de2f9d8be64..49d60af7a5f7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentRole.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentRole.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -71,13 +71,13 @@ internal EnvironmentRole(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentRole FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentRole(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs new file mode 100644 index 000000000000..c35d890bc2a6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs @@ -0,0 +1,248 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] + public partial class EnvironmentType + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentType(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.DevCenter.Models.Api20231001Preview.IEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentType(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentType(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName, 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 EnvironmentType(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] + public partial interface IEnvironmentType + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.TypeConverter.cs new file mode 100644 index 000000000000..39ff7074a050 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentTypeTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentType ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentType.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentType.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentType.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs new file mode 100644 index 000000000000..4978dd1a4cde --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs @@ -0,0 +1,170 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents an environment type. + public partial class EnvironmentType : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties _property; + + /// Properties of an environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags()); set => this._tag = value; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public EnvironmentType() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents an environment type. + public partial interface IEnvironmentType : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource + { + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } + + } + /// Represents an environment type. + internal partial interface IEnvironmentTypeInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal + { + /// The display name of the environment type. + string DisplayName { get; set; } + /// Properties of an environment type. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.json.cs new file mode 100644 index 000000000000..e9aee7a75665 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents an environment type. + public partial class EnvironmentType + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentType(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs new file mode 100644 index 000000000000..83be43a01ead --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the environment type list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] + public partial class EnvironmentTypeListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentTypeListResult(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentTypeListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentTypeListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink, 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 EnvironmentTypeListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the environment type list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] + public partial interface IEnvironmentTypeListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.TypeConverter.cs new file mode 100644 index 000000000000..c019d6661338 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentTypeListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentTypeListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentTypeListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentTypeListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs new file mode 100644 index 000000000000..497c8a8adb2c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Result of the environment type list operation. + public partial class EnvironmentTypeListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[] Value { get => this._value; } + + /// Creates an new instance. + public EnvironmentTypeListResult() + { + + } + } + /// Result of the environment type list operation. + public partial interface IEnvironmentTypeListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[] Value { get; } + + } + /// Result of the environment type list operation. + internal partial interface IEnvironmentTypeListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs new file mode 100644 index 000000000000..40cd4bb969de --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Result of the environment type list operation. + public partial class EnvironmentTypeListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType.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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentTypeListResult(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.PowerShell.cs new file mode 100644 index 000000000000..6e89413c1306 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypePropertiesTypeConverter))] + public partial class EnvironmentTypeProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentTypeProperties(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentTypeProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentTypeProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName, 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 EnvironmentTypeProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypePropertiesTypeConverter))] + public partial interface IEnvironmentTypeProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.TypeConverter.cs index 40b68d7c6325..f73c75bc617a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.cs new file mode 100644 index 000000000000..2f4ba1dd2800 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.cs @@ -0,0 +1,77 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an environment type. + public partial class EnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties __environmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties(); + + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)__environmentTypeUpdateProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)__environmentTypeUpdateProperties).DisplayName = value ?? null; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public EnvironmentTypeProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__environmentTypeUpdateProperties), __environmentTypeUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__environmentTypeUpdateProperties), __environmentTypeUpdateProperties); + } + } + /// Properties of an environment type. + public partial interface IEnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties + { + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of an environment type. + internal partial interface IEnvironmentTypePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal + { + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.json.cs index 5f6b9fb4b92e..7ca1c5f6f8b0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -65,18 +65,19 @@ internal EnvironmentTypeProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter. { return; } + __environmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentTypeProperties(json) : null; } @@ -100,6 +101,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } + __environmentTypeUpdateProperties?.ToJson(container, serializationMode); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.PowerShell.cs new file mode 100644 index 000000000000..b8629f395a95 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.PowerShell.cs @@ -0,0 +1,164 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The environment type for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdateTypeConverter))] + public partial class EnvironmentTypeUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentTypeUpdate(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentTypeUpdate(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentTypeUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).DisplayName, 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 EnvironmentTypeUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The environment type for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdateTypeConverter))] + public partial interface IEnvironmentTypeUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.TypeConverter.cs index 3d29c64d8650..586f50c4943f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.cs new file mode 100644 index 000000000000..31e8032bec2c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.cs @@ -0,0 +1,79 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The environment type for partial update. Properties not provided in the update request will not be changed. + /// + public partial class EnvironmentTypeUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal + { + + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties _property; + + /// Properties of an environment type to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags()); set => this._tag = value; } + + /// Creates an new instance. + public EnvironmentTypeUpdate() + { + + } + } + /// The environment type for partial update. Properties not provided in the update request will not be changed. + public partial interface IEnvironmentTypeUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } + + } + /// The environment type for partial update. Properties not provided in the update request will not be changed. + internal partial interface IEnvironmentTypeUpdateInternal + + { + /// The display name of the environment type. + string DisplayName { get; set; } + /// Properties of an environment type to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties Property { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.json.cs similarity index 88% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.json.cs index 5e6057128031..ff8e7db80e8d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -67,18 +67,19 @@ internal EnvironmentTypeUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runt { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdateProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentTypeUpdate(json) : null; } @@ -102,6 +103,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..cb89f8ec1880 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.PowerShell.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of an environment type. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdatePropertiesTypeConverter))] + public partial class EnvironmentTypeUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentTypeUpdateProperties(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentTypeUpdateProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentTypeUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName, 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 EnvironmentTypeUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment type. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeUpdatePropertiesTypeConverter))] + public partial interface IEnvironmentTypeUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.TypeConverter.cs new file mode 100644 index 000000000000..01bf47ea4deb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentTypeUpdatePropertiesTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentTypeUpdateProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentTypeUpdateProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentTypeUpdateProperties.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.cs new file mode 100644 index 000000000000..2f50b2819111 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.cs @@ -0,0 +1,53 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of an environment type. These properties can be updated after the resource has been created. + /// + public partial class EnvironmentTypeUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdatePropertiesInternal + { + + /// Backing field for property. + private string _displayName; + + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Creates an new instance. + public EnvironmentTypeUpdateProperties() + { + + } + } + /// Properties of an environment type. These properties can be updated after the resource has been created. + public partial interface IEnvironmentTypeUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// The display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + + } + /// Properties of an environment type. These properties can be updated after the resource has been created. + internal partial interface IEnvironmentTypeUpdatePropertiesInternal + + { + /// The display name of the environment type. + string DisplayName { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.json.cs new file mode 100644 index 000000000000..0357dc4dbd88 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of an environment type. These properties can be updated after the resource has been created. + /// + public partial class EnvironmentTypeUpdateProperties + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentTypeUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new EnvironmentTypeUpdateProperties(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.PowerShell.cs similarity index 85% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.PowerShell.cs index 2dad931af3da..3873f0e850d2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Gallery partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IGallery DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Gallery(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.DevCenter.Models.Api20230401.IGallery DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Gallery(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IG /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,7 +103,7 @@ internal Gallery(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -147,17 +147,17 @@ internal Gallery(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ResourceId, 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. @@ -172,7 +172,7 @@ internal Gallery(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -216,11 +216,11 @@ internal Gallery(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal)this).ResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.TypeConverter.cs index b04a580cef4f..4700ad6662bf 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGallery ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.cs similarity index 89% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.cs index 02dd534f0537..3b6feb604202 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents a gallery. public partial class Gallery : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -25,10 +25,10 @@ public partial class Gallery : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -47,19 +47,19 @@ public partial class Gallery : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties _property; /// Gallery properties. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)Property).ProvisioningState; } /// The resource ID of the backing Azure Compute Gallery. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string ResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)Property).GalleryResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)Property).GalleryResourceId = value ?? null; } + public string ResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)Property).GalleryResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)Property).GalleryResourceId = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -143,7 +143,7 @@ internal partial interface IGalleryInternal : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal { /// Gallery properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// The resource ID of the backing Azure Compute Gallery. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.json.cs index a4aef95c161b..e30de2925b93 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Gallery.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Gallery.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Gallery partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Gallery(json) : null; } @@ -78,7 +78,7 @@ internal Gallery(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonO return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.GalleryProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.PowerShell.cs new file mode 100644 index 000000000000..7e6eada51f18 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the gallery list operation. + [System.ComponentModel.TypeConverter(typeof(GalleryListResultTypeConverter))] + public partial class GalleryListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IGalleryListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new GalleryListResult(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.DevCenter.Models.Api20231001Preview.IGalleryListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new GalleryListResult(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.DevCenter.Models.Api20231001Preview.IGalleryListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal GalleryListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).NextLink, 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 GalleryListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.GalleryTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the gallery list operation. + [System.ComponentModel.TypeConverter(typeof(GalleryListResultTypeConverter))] + public partial interface IGalleryListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.TypeConverter.cs index f41f9533392d..f20fdfdd3e5c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGalleryListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.cs index b72d0244d936..327a0181c1ee 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the gallery list operation. public partial class GalleryListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class GalleryListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[] Value { get => this._value; } /// Creates an new instance. public GalleryListResult() @@ -57,8 +57,8 @@ public partial interface IGalleryListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[] Value { get; } } /// Results of the gallery list operation. @@ -68,7 +68,7 @@ internal partial interface IGalleryListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.json.cs index cbd84e531ae4..caa9ea6694ca 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GalleryListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new GalleryListResult(json) : null; } @@ -77,7 +77,7 @@ internal GalleryListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGallery) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IGallery) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.PowerShell.cs similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.PowerShell.cs index 95d04e2710f8..5b47ed8c35d6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class GalleryProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IGalleryProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GalleryProperties(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.DevCenter.Models.Api20230401.IGalleryProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GalleryProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IG /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,17 +103,17 @@ internal GalleryProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("GalleryResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).GalleryResourceId = (string) content.GetValueForProperty("GalleryResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).GalleryResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).GalleryResourceId = (string) content.GetValueForProperty("GalleryResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).GalleryResourceId, 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. @@ -128,11 +128,11 @@ internal GalleryProperties(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("GalleryResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).GalleryResourceId = (string) content.GetValueForProperty("GalleryResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal)this).GalleryResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).GalleryResourceId = (string) content.GetValueForProperty("GalleryResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal)this).GalleryResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.TypeConverter.cs index 079bc6e723b6..de311f2bdf62 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGalleryProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.cs index 6e0b90033616..c615d49da1d6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Properties of a gallery. public partial class GalleryProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class GalleryProperties : public string GalleryResourceId { get => this._galleryResourceId; set => this._galleryResourceId = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.json.cs index 5b95a9c5d439..68b4b2c8e90f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GalleryProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GalleryProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GalleryProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGalleryProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new GalleryProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.PowerShell.cs new file mode 100644 index 000000000000..6ae59ee17b66 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.PowerShell.cs @@ -0,0 +1,168 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties for a Git repository catalog. + [System.ComponentModel.TypeConverter(typeof(GitCatalogTypeConverter))] + public partial class GitCatalog + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IGitCatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new GitCatalog(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.DevCenter.Models.Api20231001Preview.IGitCatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new GitCatalog(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.DevCenter.Models.Api20231001Preview.IGitCatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal GitCatalog(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Branch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Branch = (string) content.GetValueForProperty("Branch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Branch, global::System.Convert.ToString); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Path, 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 GitCatalog(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Branch")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Branch = (string) content.GetValueForProperty("Branch",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Branch, global::System.Convert.ToString); + } + if (content.Contains("SecretIdentifier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).SecretIdentifier = (string) content.GetValueForProperty("SecretIdentifier",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).SecretIdentifier, global::System.Convert.ToString); + } + if (content.Contains("Path")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal)this).Path, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties for a Git repository catalog. + [System.ComponentModel.TypeConverter(typeof(GitCatalogTypeConverter))] + public partial interface IGitCatalog + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.TypeConverter.cs index 5ef12d498ce1..683412928850 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGitCatalog ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.cs similarity index 98% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.cs index 778396ef3bd0..a186a0e87702 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Properties for a Git repository catalog. public partial class GitCatalog : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalogInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalogInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.json.cs index a286324386ed..c2cf288491ba 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/GitCatalog.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/GitCatalog.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GitCatalog partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGitCatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGitCatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new GitCatalog(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.PowerShell.cs new file mode 100644 index 000000000000..9fce9dead416 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// An individual health check item + [System.ComponentModel.TypeConverter(typeof(HealthCheckTypeConverter))] + public partial class HealthCheck + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IHealthCheck DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthCheck(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.DevCenter.Models.Api20231001Preview.IHealthCheck DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthCheck(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.DevCenter.Models.Api20231001Preview.IHealthCheck FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthCheck(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("StartDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("AdditionalDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).AdditionalDetail = (string) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).AdditionalDetail, 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 HealthCheck(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("StartDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ErrorType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).ErrorType = (string) content.GetValueForProperty("ErrorType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).ErrorType, global::System.Convert.ToString); + } + if (content.Contains("RecommendedAction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).RecommendedAction = (string) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).RecommendedAction, global::System.Convert.ToString); + } + if (content.Contains("AdditionalDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).AdditionalDetail = (string) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal)this).AdditionalDetail, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An individual health check item + [System.ComponentModel.TypeConverter(typeof(HealthCheckTypeConverter))] + public partial interface IHealthCheck + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.TypeConverter.cs index f2551db9d6f8..a67351bcf68b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthCheck ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.cs similarity index 90% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.cs index 8f6813b331f7..133a6ba3b22b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// An individual health check item public partial class HealthCheck : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal { /// Backing field for property. @@ -42,25 +42,25 @@ public partial class HealthCheck : public string ErrorType { get => this._errorType; } /// Internal Acessors for AdditionalDetail - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.AdditionalDetail { get => this._additionalDetail; set { {_additionalDetail = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.AdditionalDetail { get => this._additionalDetail; set { {_additionalDetail = value;} } } /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } /// Internal Acessors for EndDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.EndDateTime { get => this._endDateTime; set { {_endDateTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.EndDateTime { get => this._endDateTime; set { {_endDateTime = value;} } } /// Internal Acessors for ErrorType - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.ErrorType { get => this._errorType; set { {_errorType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.ErrorType { get => this._errorType; set { {_errorType = value;} } } /// Internal Acessors for RecommendedAction - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.RecommendedAction { get => this._recommendedAction; set { {_recommendedAction = value;} } } /// Internal Acessors for StartDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.StartDateTime { get => this._startDateTime; set { {_startDateTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.StartDateTime { get => this._startDateTime; set { {_startDateTime = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckInternal.Status { get => this._status; set { {_status = value;} } } /// Backing field for property. private string _recommendedAction; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.json.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.json.cs index 03748f3dbace..6d71be86c489 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheck.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheck.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthCheck partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new HealthCheck(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.PowerShell.cs similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.PowerShell.cs index 9e22bbc20353..9c47de782d8a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class HealthCheckStatusDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HealthCheckStatusDetails(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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HealthCheckStatusDetails(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IH /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,7 +105,7 @@ internal HealthCheckStatusDetails(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -147,21 +149,21 @@ internal HealthCheckStatusDetails(global::System.Collections.IDictionary content } if (content.Contains("StartDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("HealthCheck")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckTypeConverter.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. @@ -176,7 +178,7 @@ internal HealthCheckStatusDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -220,15 +222,15 @@ internal HealthCheckStatusDetails(global::System.Management.Automation.PSObject } if (content.Contains("StartDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("HealthCheck")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.TypeConverter.cs index 3ea5b703ce6b..fd2f77539df2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.cs index a1e780a74ed9..2ba644f5f8e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Health Check details. public partial class HealthCheckStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -20,11 +20,11 @@ public partial class HealthCheckStatusDetails : /// End time of last execution of the health checks. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public global::System.DateTime? EndDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime; } + public global::System.DateTime? EndDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime; } /// Details for each health check item. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -33,16 +33,16 @@ public partial class HealthCheckStatusDetails : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for EndDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal.EndDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal.EndDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).EndDateTime = value; } /// Internal Acessors for HealthCheck - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal.HealthCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal.HealthCheck { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).HealthCheck = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsProperties()); set { {_property = value;} } } /// Internal Acessors for StartDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsInternal.StartDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsInternal.StartDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -61,15 +61,15 @@ public partial class HealthCheckStatusDetails : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties _property; /// Health check status details properties. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsProperties()); set => this._property = value; } /// Start time of last execution of the health checks. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public global::System.DateTime? StartDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime; } + public global::System.DateTime? StartDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)Property).StartDateTime; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -144,8 +144,8 @@ public partial interface IHealthCheckStatusDetails : ReadOnly = true, Description = @"Details for each health check item.", SerializedName = @"healthChecks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get; } /// Start time of last execution of the health checks. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -163,9 +163,9 @@ internal partial interface IHealthCheckStatusDetailsInternal : /// End time of last execution of the health checks. global::System.DateTime? EndDateTime { get; set; } /// Details for each health check item. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get; set; } /// Health check status details properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties Property { get; set; } /// Start time of last execution of the health checks. global::System.DateTime? StartDateTime { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.json.cs index 90c77d9fa4ec..321f17324021 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetails.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthCheckStatusDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new HealthCheckStatusDetails(json) : null; } @@ -78,7 +78,7 @@ internal HealthCheckStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.R return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetailsProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.PowerShell.cs new file mode 100644 index 000000000000..7cae202100fe --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the network health check list operation. + [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsListResultTypeConverter))] + public partial class HealthCheckStatusDetailsListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthCheckStatusDetailsListResult(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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthCheckStatusDetailsListResult(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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthCheckStatusDetailsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).NextLink, 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 HealthCheckStatusDetailsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the network health check list operation. + [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsListResultTypeConverter))] + public partial interface IHealthCheckStatusDetailsListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.TypeConverter.cs index e21ebe9c116d..0eebaf4143a5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.cs index de44b3709082..f4d82db835f0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Result of the network health check list operation. public partial class HealthCheckStatusDetailsListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class HealthCheckStatusDetailsListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[] Value { get => this._value; } /// Creates an new instance. public HealthCheckStatusDetailsListResult() @@ -57,8 +57,8 @@ public partial interface IHealthCheckStatusDetailsListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[] Value { get; } } /// Result of the network health check list operation. @@ -68,7 +68,7 @@ internal partial interface IHealthCheckStatusDetailsListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.json.cs index cff5e22a9fe0..96605e9750d4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthCheckStatusDetailsListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new HealthCheckStatusDetailsListResult(json) : null; } @@ -77,7 +77,7 @@ internal HealthCheckStatusDetailsListResult(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheckStatusDetails.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckStatusDetails.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.PowerShell.cs new file mode 100644 index 000000000000..d9218472027a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.PowerShell.cs @@ -0,0 +1,164 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Health Check properties. + [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsPropertiesTypeConverter))] + public partial class HealthCheckStatusDetailsProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HealthCheckStatusDetailsProperties(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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HealthCheckStatusDetailsProperties(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.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HealthCheckStatusDetailsProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StartDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HealthCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HealthCheckStatusDetailsProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StartDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime = (global::System.DateTime?) content.GetValueForProperty("StartDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).StartDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndDateTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime = (global::System.DateTime?) content.GetValueForProperty("EndDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).EndDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HealthCheck")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[]) content.GetValueForProperty("HealthCheck",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal)this).HealthCheck, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheckTypeConverter.ConvertFrom)); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Health Check properties. + [System.ComponentModel.TypeConverter(typeof(HealthCheckStatusDetailsPropertiesTypeConverter))] + public partial interface IHealthCheckStatusDetailsProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.TypeConverter.cs index a27ef9854ce9..2d9148a21234 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.cs index 7d5ea355a516..fe81135a8027 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Health Check properties. public partial class HealthCheckStatusDetailsProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal { /// Backing field for property. @@ -21,20 +21,20 @@ public partial class HealthCheckStatusDetailsProperties : public global::System.DateTime? EndDateTime { get => this._endDateTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] _healthCheck; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] _healthCheck; /// Details for each health check item. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get => this._healthCheck; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get => this._healthCheck; } /// Internal Acessors for EndDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal.EndDateTime { get => this._endDateTime; set { {_endDateTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal.EndDateTime { get => this._endDateTime; set { {_endDateTime = value;} } } /// Internal Acessors for HealthCheck - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal.HealthCheck { get => this._healthCheck; set { {_healthCheck = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal.HealthCheck { get => this._healthCheck; set { {_healthCheck = value;} } } /// Internal Acessors for StartDateTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsPropertiesInternal.StartDateTime { get => this._startDateTime; set { {_startDateTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsPropertiesInternal.StartDateTime { get => this._startDateTime; set { {_startDateTime = value;} } } /// Backing field for property. private global::System.DateTime? _startDateTime; @@ -67,8 +67,8 @@ public partial interface IHealthCheckStatusDetailsProperties : ReadOnly = true, Description = @"Details for each health check item.", SerializedName = @"healthChecks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get; } /// Start time of last execution of the health checks. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -86,7 +86,7 @@ internal partial interface IHealthCheckStatusDetailsPropertiesInternal /// End time of last execution of the health checks. global::System.DateTime? EndDateTime { get; set; } /// Details for each health check item. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheck[] HealthCheck { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheck[] HealthCheck { get; set; } /// Start time of last execution of the health checks. global::System.DateTime? StartDateTime { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.json.cs index 5eb091e05243..f5c4e884679d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthCheckStatusDetailsProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthCheckStatusDetailsProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthCheckStatusDetailsProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new HealthCheckStatusDetailsProperties(json) : null; } @@ -79,7 +79,7 @@ internal HealthCheckStatusDetailsProperties(Microsoft.Azure.PowerShell.Cmdlets.D } {_startDateTime = If( json?.PropertyT("startDateTime"), out var __jsonStartDateTime) ? global::System.DateTime.TryParse((string)__jsonStartDateTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartDateTimeValue) ? __jsonStartDateTimeValue : StartDateTime : StartDateTime;} {_endDateTime = If( json?.PropertyT("endDateTime"), out var __jsonEndDateTime) ? global::System.DateTime.TryParse((string)__jsonEndDateTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndDateTimeValue) ? __jsonEndDateTimeValue : EndDateTime : EndDateTime;} - {_healthCheck = If( json?.PropertyT("healthChecks"), out var __jsonHealthChecks) ? If( __jsonHealthChecks as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthCheck) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthCheck.FromJson(__u) )) ))() : null : HealthCheck;} + {_healthCheck = If( json?.PropertyT("healthChecks"), out var __jsonHealthChecks) ? If( __jsonHealthChecks as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IHealthCheck) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthCheck.FromJson(__u) )) ))() : null : HealthCheck;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.PowerShell.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.PowerShell.cs index 77f3a7b82cf0..775f39e8ab30 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class HealthStatusDetail partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IHealthStatusDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HealthStatusDetail(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.DevCenter.Models.Api20230401.IHealthStatusDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HealthStatusDetail(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IH /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,17 +105,17 @@ internal HealthStatusDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)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. @@ -128,11 +130,11 @@ internal HealthStatusDetail(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.TypeConverter.cs index 043421a5ee2a..72562de1083e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthStatusDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.cs index e482ad8f67a2..ec40178fb439 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Pool health status detail. public partial class HealthStatusDetail : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal { /// Backing field for property. @@ -30,10 +30,10 @@ public partial class HealthStatusDetail : public string Message { get => this._message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetailInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetailInternal.Message { get => this._message; set { {_message = value;} } } /// Creates an new instance. public HealthStatusDetail() diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.json.cs index 919e6f5bba0c..fcc43c91a580 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/HealthStatusDetail.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/HealthStatusDetail.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HealthStatusDetail partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthStatusDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new HealthStatusDetail(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.PowerShell.cs new file mode 100644 index 000000000000..3711443d8fc9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.PowerShell.cs @@ -0,0 +1,328 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents an image. + [System.ComponentModel.TypeConverter(typeof(ImageTypeConverter))] + public partial class Image + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IImage DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Image(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.DevCenter.Models.Api20231001Preview.IImage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Image(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.DevCenter.Models.Api20231001Preview.IImage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Image(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImagePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("RecommendedMachineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Publisher")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Publisher, global::System.Convert.ToString); + } + if (content.Contains("Offer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Offer, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("RecommendedMachineConfigurationMemory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("RecommendedMachineConfigurationVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Image(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImagePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("RecommendedMachineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Publisher")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Publisher, global::System.Convert.ToString); + } + if (content.Contains("Offer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Offer, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("RecommendedMachineConfigurationMemory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("RecommendedMachineConfigurationVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents an image. + [System.ComponentModel.TypeConverter(typeof(ImageTypeConverter))] + public partial interface IImage + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.TypeConverter.cs index 4e880f6583b7..8240aa2e696a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImage ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.cs index b95d1cb97462..7c5fe88f9291 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents an image. public partial class Image : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -20,14 +20,14 @@ public partial class Image : /// The description of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Description; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Description; } /// /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out /// more see https://aka.ms/devbox/hibernate /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).HibernateSupport; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).HibernateSupport; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -37,53 +37,53 @@ public partial class Image : /// Maximum value. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMax; } + public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMax; } /// Minimum value. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMin; } + public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMin; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Description = value; } /// Internal Acessors for HibernateSupport - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).HibernateSupport = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.HibernateSupport { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).HibernateSupport; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).HibernateSupport = value; } /// Internal Acessors for MemoryMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMax = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMax = value; } /// Internal Acessors for MemoryMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).MemoryMin = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).MemoryMin = value; } /// Internal Acessors for Offer - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.Offer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Offer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Offer = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.Offer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Offer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Offer = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Publisher - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Publisher = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Publisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Publisher = value; } /// Internal Acessors for RecommendedMachineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.RecommendedMachineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.RecommendedMachineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfiguration = value; } /// Internal Acessors for RecommendedMachineConfigurationMemory - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.RecommendedMachineConfigurationMemory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfigurationMemory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfigurationMemory = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.RecommendedMachineConfigurationMemory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfigurationMemory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfigurationMemory = value; } /// Internal Acessors for RecommendedMachineConfigurationVCpUs - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.RecommendedMachineConfigurationVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfigurationVCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).RecommendedMachineConfigurationVCpUs = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.RecommendedMachineConfigurationVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfigurationVCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).RecommendedMachineConfigurationVCpUs = value; } /// Internal Acessors for Sku - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Sku = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Sku = value; } /// Internal Acessors for VCpUsMax - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMax = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMax = value; } /// Internal Acessors for VCpUsMin - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMin = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMin = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -103,26 +103,26 @@ public partial class Image : /// The name of the image offer. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Offer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Offer; } + public string Offer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Offer; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties _property; /// Image properties. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).ProvisioningState; } /// The publisher of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Publisher; } + public string Publisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Publisher; } /// The SKU name for the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).Sku; } + public string Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).Sku; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -162,11 +162,11 @@ public partial class Image : /// Maximum value. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMax; } + public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMax; } /// Minimum value. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImagePropertiesInternal)Property).VCpUsMin; } + public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)Property).VCpUsMin; } /// Creates an new instance. public Image() @@ -294,17 +294,17 @@ internal partial interface IImageInternal : /// The name of the image offer. string Offer { get; set; } /// Image properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// The publisher of the image. string Publisher { get; set; } /// The recommended machine configuration to use with the image. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get; set; } /// Recommended memory range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange RecommendedMachineConfigurationMemory { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange RecommendedMachineConfigurationMemory { get; set; } /// Recommended vCPU range. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange RecommendedMachineConfigurationVCpUs { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange RecommendedMachineConfigurationVCpUs { get; set; } /// The SKU name for the image. string Sku { get; set; } /// Maximum value. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.json.cs index 40b93dd09cfe..89de70755d19 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Image.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Image.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Image partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Image(json) : null; } @@ -78,7 +78,7 @@ internal Image(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObj return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.PowerShell.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.PowerShell.cs index d8621b23f586..f0bc50168ad7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ImageListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IImageListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImageListResult(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.DevCenter.Models.Api20230401.IImageListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImageListResult(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.II /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,17 +103,17 @@ internal ImageListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)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. @@ -128,11 +128,11 @@ internal ImageListResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.TypeConverter.cs index b03881cbeb10..828a4fbb0b2e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.cs index a87da0db8461..7486d1f35689 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the image list operation. public partial class ImageListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class ImageListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[] Value { get => this._value; } /// Creates an new instance. public ImageListResult() @@ -57,8 +57,8 @@ public partial interface IImageListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[] Value { get; } } /// Results of the image list operation. @@ -68,7 +68,7 @@ internal partial interface IImageListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.json.cs index 81a3b2f540b2..a376d6523bbb 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageListResult(json) : null; } @@ -77,7 +77,7 @@ internal ImageListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImage) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Image.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IImage) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Image.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.PowerShell.cs new file mode 100644 index 000000000000..5bcdbe5b4b62 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.PowerShell.cs @@ -0,0 +1,240 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an image. + [System.ComponentModel.TypeConverter(typeof(ImagePropertiesTypeConverter))] + public partial class ImageProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IImageProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImageProperties(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.DevCenter.Models.Api20231001Preview.IImageProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImageProperties(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.DevCenter.Models.Api20231001Preview.IImageProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ImageProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecommendedMachineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Publisher")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Publisher, global::System.Convert.ToString); + } + if (content.Contains("Offer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Offer, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("RecommendedMachineConfigurationMemory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("RecommendedMachineConfigurationVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ImageProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RecommendedMachineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration) content.GetValueForProperty("RecommendedMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Publisher")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Publisher, global::System.Convert.ToString); + } + if (content.Contains("Offer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Offer, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("RecommendedMachineConfigurationMemory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationMemory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationMemory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("RecommendedMachineConfigurationVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("RecommendedMachineConfigurationVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).RecommendedMachineConfigurationVCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an image. + [System.ComponentModel.TypeConverter(typeof(ImagePropertiesTypeConverter))] + public partial interface IImageProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.TypeConverter.cs index 92b115e1b5f7..c7bc01fc21a6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.cs new file mode 100644 index 000000000000..d1e805f27bf9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.cs @@ -0,0 +1,253 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of an image. + public partial class ImageProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal + { + + /// Backing field for property. + private string _description; + + /// The description of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? _hibernateSupport; + + /// + /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out + /// more see https://aka.ms/devbox/hibernate + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; } + + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax; } + + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for HibernateSupport + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.HibernateSupport { get => this._hibernateSupport; set { {_hibernateSupport = value;} } } + + /// Internal Acessors for MemoryMax + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMax = value; } + + /// Internal Acessors for MemoryMin + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).MemoryMin = value; } + + /// Internal Acessors for Offer + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.Offer { get => this._offer; set { {_offer = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for Publisher + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.Publisher { get => this._publisher; set { {_publisher = value;} } } + + /// Internal Acessors for RecommendedMachineConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.RecommendedMachineConfiguration { get => (this._recommendedMachineConfiguration = this._recommendedMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfiguration()); set { {_recommendedMachineConfiguration = value;} } } + + /// Internal Acessors for RecommendedMachineConfigurationMemory + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.RecommendedMachineConfigurationMemory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).Memory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).Memory = value; } + + /// Internal Acessors for RecommendedMachineConfigurationVCpUs + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.RecommendedMachineConfigurationVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUs = value; } + + /// Internal Acessors for Sku + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.Sku { get => this._sku; set { {_sku = value;} } } + + /// Internal Acessors for VCpUsMax + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax = value; } + + /// Internal Acessors for VCpUsMin + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImagePropertiesInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin = value; } + + /// Backing field for property. + private string _offer; + + /// The name of the image offer. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Offer { get => this._offer; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _publisher; + + /// The publisher of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Publisher { get => this._publisher; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration _recommendedMachineConfiguration; + + /// The recommended machine configuration to use with the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get => (this._recommendedMachineConfiguration = this._recommendedMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfiguration()); } + + /// Backing field for property. + private string _sku; + + /// The SKU name for the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Sku { get => this._sku; } + + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMax; } + + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)RecommendedMachineConfiguration).VCpUsMin; } + + /// Creates an new instance. + public ImageProperties() + { + + } + } + /// Properties of an image. + public partial interface IImageProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// The description of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The description of the image.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// + /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out + /// more see https://aka.ms/devbox/hibernate + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate", + SerializedName = @"hibernateSupport", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; } + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum value.", + SerializedName = @"max", + PossibleTypes = new [] { typeof(int) })] + int? MemoryMax { get; } + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Minimum value.", + SerializedName = @"min", + PossibleTypes = new [] { typeof(int) })] + int? MemoryMin { get; } + /// The name of the image offer. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the image offer.", + SerializedName = @"offer", + PossibleTypes = new [] { typeof(string) })] + string Offer { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// The publisher of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The publisher of the image.", + SerializedName = @"publisher", + PossibleTypes = new [] { typeof(string) })] + string Publisher { get; } + /// The SKU name for the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The SKU name for the image.", + SerializedName = @"sku", + PossibleTypes = new [] { typeof(string) })] + string Sku { get; } + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum value.", + SerializedName = @"max", + PossibleTypes = new [] { typeof(int) })] + int? VCpUsMax { get; } + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Minimum value.", + SerializedName = @"min", + PossibleTypes = new [] { typeof(int) })] + int? VCpUsMin { get; } + + } + /// Properties of an image. + internal partial interface IImagePropertiesInternal + + { + /// The description of the image. + string Description { get; set; } + /// + /// Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To find out + /// more see https://aka.ms/devbox/hibernate + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HibernateSupport? HibernateSupport { get; set; } + /// Maximum value. + int? MemoryMax { get; set; } + /// Minimum value. + int? MemoryMin { get; set; } + /// The name of the image offer. + string Offer { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// The publisher of the image. + string Publisher { get; set; } + /// The recommended machine configuration to use with the image. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration RecommendedMachineConfiguration { get; set; } + /// Recommended memory range. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange RecommendedMachineConfigurationMemory { get; set; } + /// Recommended vCPU range. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange RecommendedMachineConfigurationVCpUs { get; set; } + /// The SKU name for the image. + string Sku { get; set; } + /// Maximum value. + int? VCpUsMax { get; set; } + /// Minimum value. + int? VCpUsMin { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.json.cs index 02b060500e73..84ca6df4b70d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageProperties(json) : null; } @@ -77,7 +77,7 @@ internal ImageProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Js { return; } - {_recommendedMachineConfiguration = If( json?.PropertyT("recommendedMachineConfiguration"), out var __jsonRecommendedMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.RecommendedMachineConfiguration.FromJson(__jsonRecommendedMachineConfiguration) : RecommendedMachineConfiguration;} + {_recommendedMachineConfiguration = If( json?.PropertyT("recommendedMachineConfiguration"), out var __jsonRecommendedMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.RecommendedMachineConfiguration.FromJson(__jsonRecommendedMachineConfiguration) : RecommendedMachineConfiguration;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_publisher = If( json?.PropertyT("publisher"), out var __jsonPublisher) ? (string)__jsonPublisher : (string)Publisher;} {_offer = If( json?.PropertyT("offer"), out var __jsonOffer) ? (string)__jsonOffer : (string)Offer;} diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs new file mode 100644 index 000000000000..e77edd5a72b2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Image reference information + [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] + public partial class ImageReference + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImageReference(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.DevCenter.Models.Api20231001Preview.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImageReference(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.DevCenter.Models.Api20231001Preview.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ImageReference(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("ExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).ExactVersion = (string) content.GetValueForProperty("ExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).ExactVersion, 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 ImageReference(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("ExactVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).ExactVersion = (string) content.GetValueForProperty("ExactVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal)this).ExactVersion, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Image reference information + [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] + public partial interface IImageReference + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs new file mode 100644 index 000000000000..6a7c6232fd60 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ImageReferenceTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IImageReference ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ImageReference.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ImageReference.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ImageReference.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs new file mode 100644 index 000000000000..839f8d9ac2e0 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs @@ -0,0 +1,86 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Image reference information + public partial class ImageReference : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal + { + + /// Backing field for property. + private string _exactVersion; + + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string ExactVersion { get => this._exactVersion; } + + /// Backing field for property. + private string _id; + + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Internal Acessors for ExactVersion + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReferenceInternal.ExactVersion { get => this._exactVersion; set { {_exactVersion = value;} } } + + /// Creates an new instance. + public ImageReference() + { + + } + } + /// Image reference information + public partial interface IImageReference : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual version in use.", + SerializedName = @"exactVersion", + PossibleTypes = new [] { typeof(string) })] + string ExactVersion { get; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Image ID, or Image version ID. When Image ID is provided, its latest version will be used.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + + } + /// Image reference information + internal partial interface IImageReferenceInternal + + { + /// + /// The actual version of the image after use. When id references a gallery image latest version, this will indicate the actual + /// version in use. + /// + string ExactVersion { get; set; } + /// + /// Image ID, or Image version ID. When Image ID is provided, its latest version will be used. + /// + string Id { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.cs new file mode 100644 index 000000000000..89c86b3fd5e7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Image reference information + public partial class ImageReference + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageReference(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal ImageReference(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_exactVersion = If( json?.PropertyT("exactVersion"), out var __jsonExactVersion) ? (string)__jsonExactVersion : (string)ExactVersion;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._exactVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._exactVersion.ToString()) : null, "exactVersion" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.PowerShell.cs similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.PowerShell.cs index 2d8caab35173..57b790fca1aa 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ImageValidationErrorDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IImageValidationErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImageValidationErrorDetails(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.DevCenter.Models.Api20230401.IImageValidationErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImageValidationErrorDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.II /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -105,17 +105,17 @@ internal ImageValidationErrorDetails(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)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. @@ -130,11 +130,11 @@ internal ImageValidationErrorDetails(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.TypeConverter.cs index ff0f52782800..55379190e1b4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageValidationErrorDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.cs index 0826a1d5cca2..bbfdefbf5f54 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Image validation error details public partial class ImageValidationErrorDetails : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetailsInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.json.cs index 4a9f00607288..c004ed3c8bad 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageValidationErrorDetails.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageValidationErrorDetails.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageValidationErrorDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageValidationErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageValidationErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageValidationErrorDetails(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.PowerShell.cs similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.PowerShell.cs index 20f1dfccf861..2e51c974c11a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ImageVersion partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IImageVersion DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImageVersion(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.DevCenter.Models.Api20230401.IImageVersion DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImageVersion(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.II /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,7 +103,7 @@ internal ImageVersion(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -147,29 +147,29 @@ internal ImageVersion(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("PropertiesName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PropertiesName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PropertiesName, global::System.Convert.ToString); } if (content.Contains("PublishedDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExcludeFromLatest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("OSDiskImageSizeInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } 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. @@ -184,7 +184,7 @@ internal ImageVersion(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -228,23 +228,23 @@ internal ImageVersion(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); } if (content.Contains("PropertiesName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PropertiesName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PropertiesName = (string) content.GetValueForProperty("PropertiesName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PropertiesName, global::System.Convert.ToString); } if (content.Contains("PublishedDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExcludeFromLatest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("OSDiskImageSizeInGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.TypeConverter.cs index cf54c35558da..badb8003f7d9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageVersion ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.cs index 2e0f341f4b1e..55504330a9e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents an image version. public partial class ImageVersion : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -20,7 +20,7 @@ public partial class ImageVersion : /// If the version should be excluded from being treated as the latest version. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public bool? ExcludeFromLatest { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ExcludeFromLatest; } + public bool? ExcludeFromLatest { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ExcludeFromLatest; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -29,22 +29,22 @@ public partial class ImageVersion : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } /// Internal Acessors for ExcludeFromLatest - bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.ExcludeFromLatest { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ExcludeFromLatest; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ExcludeFromLatest = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.ExcludeFromLatest { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ExcludeFromLatest; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ExcludeFromLatest = value; } /// Internal Acessors for OSDiskImageSizeInGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.OSDiskImageSizeInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.OSDiskImageSizeInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb = value; } /// Internal Acessors for PropertiesName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).Name = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for PublishedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionInternal.PublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).PublishedDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionInternal.PublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).PublishedDate = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -64,26 +64,26 @@ public partial class ImageVersion : /// The size of the OS disk image, in GB. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public int? OSDiskImageSizeInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb; } + public int? OSDiskImageSizeInGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).OSDiskImageSizeInGb; } /// The semantic version string. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).Name; } + public string PropertiesName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties _property; /// Image version properties. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).ProvisioningState; } /// The datetime that the backing image version was published. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public global::System.DateTime? PublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal)Property).PublishedDate; } + public global::System.DateTime? PublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)Property).PublishedDate; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -197,7 +197,7 @@ internal partial interface IImageVersionInternal : /// The semantic version string. string PropertiesName { get; set; } /// Image version properties. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// The datetime that the backing image version was published. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.json.cs index cfd693b03334..6c97373aa6d1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersion.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersion.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageVersion partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageVersion(json) : null; } @@ -78,7 +78,7 @@ internal ImageVersion(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json. return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.PowerShell.cs new file mode 100644 index 000000000000..bc8e0bb9636c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the image version list operation. + [System.ComponentModel.TypeConverter(typeof(ImageVersionListResultTypeConverter))] + public partial class ImageVersionListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IImageVersionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImageVersionListResult(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.DevCenter.Models.Api20231001Preview.IImageVersionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImageVersionListResult(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.DevCenter.Models.Api20231001Preview.IImageVersionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ImageVersionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).NextLink, 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 ImageVersionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the image version list operation. + [System.ComponentModel.TypeConverter(typeof(ImageVersionListResultTypeConverter))] + public partial interface IImageVersionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.TypeConverter.cs index a91467a41336..14694765b348 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageVersionListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.cs index 0b7c3e1afc05..d01a1d1124fc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the image version list operation. public partial class ImageVersionListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class ImageVersionListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[] Value { get => this._value; } /// Creates an new instance. public ImageVersionListResult() @@ -57,8 +57,8 @@ public partial interface IImageVersionListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[] Value { get; } } /// Results of the image version list operation. @@ -68,7 +68,7 @@ internal partial interface IImageVersionListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.json.cs index bc1527228cb7..fb0677ce9bd7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageVersionListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageVersionListResult(json) : null; } @@ -77,7 +77,7 @@ internal ImageVersionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Run { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageVersion) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ImageVersion.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IImageVersion) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ImageVersion.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.PowerShell.cs new file mode 100644 index 000000000000..77bfb8c7acbc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of an image version. + [System.ComponentModel.TypeConverter(typeof(ImageVersionPropertiesTypeConverter))] + public partial class ImageVersionProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IImageVersionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImageVersionProperties(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.DevCenter.Models.Api20231001Preview.IImageVersionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImageVersionProperties(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.DevCenter.Models.Api20231001Preview.IImageVersionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ImageVersionProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("PublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ExcludeFromLatest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OSDiskImageSizeInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ImageVersionProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("PublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).PublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ExcludeFromLatest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ExcludeFromLatest = (bool?) content.GetValueForProperty("ExcludeFromLatest",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ExcludeFromLatest, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OSDiskImageSizeInGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb = (int?) content.GetValueForProperty("OSDiskImageSizeInGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).OSDiskImageSizeInGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an image version. + [System.ComponentModel.TypeConverter(typeof(ImageVersionPropertiesTypeConverter))] + public partial interface IImageVersionProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.TypeConverter.cs index de7b9458c8d8..176e7a11943a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageVersionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.cs similarity index 89% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.cs index 246b28d1b0e0..f0a322bf68e2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Properties of an image version. public partial class ImageVersionProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal { /// Backing field for property. @@ -21,19 +21,19 @@ public partial class ImageVersionProperties : public bool? ExcludeFromLatest { get => this._excludeFromLatest; } /// Internal Acessors for ExcludeFromLatest - bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal.ExcludeFromLatest { get => this._excludeFromLatest; set { {_excludeFromLatest = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal.ExcludeFromLatest { get => this._excludeFromLatest; set { {_excludeFromLatest = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for OSDiskImageSizeInGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal.OSDiskImageSizeInGb { get => this._oSDiskImageSizeInGb; set { {_oSDiskImageSizeInGb = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal.OSDiskImageSizeInGb { get => this._oSDiskImageSizeInGb; set { {_oSDiskImageSizeInGb = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for PublishedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionPropertiesInternal.PublishedDate { get => this._publishedDate; set { {_publishedDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionPropertiesInternal.PublishedDate { get => this._publishedDate; set { {_publishedDate = value;} } } /// Backing field for property. private string _name; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.json.cs index 597105c65540..8b0baa956259 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ImageVersionProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ImageVersionProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImageVersionProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ImageVersionProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.PowerShell.cs new file mode 100644 index 000000000000..10d73d88ba29 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// List of Core Usages. + [System.ComponentModel.TypeConverter(typeof(ListUsagesResultTypeConverter))] + public partial class ListUsagesResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IListUsagesResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ListUsagesResult(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.DevCenter.Models.Api20231001Preview.IListUsagesResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ListUsagesResult(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.DevCenter.Models.Api20231001Preview.IListUsagesResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ListUsagesResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).NextLink, 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 ListUsagesResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// List of Core Usages. + [System.ComponentModel.TypeConverter(typeof(ListUsagesResultTypeConverter))] + public partial interface IListUsagesResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.TypeConverter.cs index b2c35f69a3e5..046a1897ad7c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IListUsagesResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.cs index 9f812a08f6ff..ab2622bf7f1a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// List of Core Usages. public partial class ListUsagesResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class ListUsagesResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[] _value; /// The array page of Usages. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[] Value { get => this._value; } /// Creates an new instance. public ListUsagesResult() @@ -57,8 +57,8 @@ public partial interface IListUsagesResult : ReadOnly = true, Description = @"The array page of Usages.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[] Value { get; } } /// List of Core Usages. @@ -68,7 +68,7 @@ internal partial interface IListUsagesResultInternal /// The link to get the next page of Usage result. string NextLink { get; set; } /// The array page of Usages. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.json.cs index 9a4e3b82272b..4d939ae8744f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ListUsagesResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ListUsagesResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ListUsagesResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IListUsagesResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ListUsagesResult(json) : null; } @@ -77,7 +77,7 @@ internal ListUsagesResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.J { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IUsage) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Usage.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IUsage) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Usage.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.PowerShell.cs new file mode 100644 index 000000000000..b876b65b5a80 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.PowerShell.cs @@ -0,0 +1,312 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Network related settings + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionTypeConverter))] + public partial class NetworkConnection + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.INetworkConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkConnection(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.DevCenter.Models.Api20231001Preview.INetworkConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkConnection(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.DevCenter.Models.Api20231001Preview.INetworkConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkConnection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainPassword, global::System.Convert.ToString); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("NetworkingResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal NetworkConnection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainPassword, global::System.Convert.ToString); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("NetworkingResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network related settings + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionTypeConverter))] + public partial interface INetworkConnection + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.TypeConverter.cs index 5c6587949bdb..b10ddc0544ba 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.cs similarity index 84% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.cs index 11fe18ae85c1..cbf3a477bbb6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Network related settings public partial class NetworkConnection : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -21,29 +21,29 @@ public partial class NetworkConnection : /// AAD Join type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).DomainJoinType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).DomainJoinType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType? DomainJoinType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).DomainJoinType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).DomainJoinType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType)""); } /// Active Directory domain name [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainName = value ?? null; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainName = value ?? null; } /// The password for the account used to join domain [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword = value ?? null; } + public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword = value ?? null; } /// /// The username of an Active Directory account (user or service account) that has permissions to create computer objects /// in Active Directory. Required format: admin@contoso.com. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername = value ?? null; } + public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername = value ?? null; } /// /// Overall health status of the network connection. Health checks are run on creation, update, and periodically to validate /// the network connection. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).HealthCheckStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).HealthCheckStatus; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -56,13 +56,13 @@ public partial class NetworkConnection : public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for HealthCheckStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal.HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).HealthCheckStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).HealthCheckStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal.HealthCheckStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).HealthCheckStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).HealthCheckStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } @@ -82,26 +82,26 @@ public partial class NetworkConnection : /// The name for resource group where NICs will be placed. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NetworkingResourceGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).NetworkingResourceGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).NetworkingResourceGroupName = value ?? null; } + public string NetworkingResourceGroupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).NetworkingResourceGroupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).NetworkingResourceGroupName = value ?? null; } /// Active Directory domain Organization Unit (OU) [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit = value ?? null; } + public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties _property; /// Properties of a Network Connection [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)Property).ProvisioningState; } /// The subnet to attach Virtual Machines to [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId = value ?? null; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -271,7 +271,7 @@ internal partial interface INetworkConnectionInternal : /// Active Directory domain Organization Unit (OU) string OrganizationUnit { get; set; } /// Properties of a Network Connection - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// The subnet to attach Virtual Machines to diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.json.cs index da179568f45c..9d4416357fe3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnection.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkConnection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new NetworkConnection(json) : null; } @@ -78,7 +78,7 @@ internal NetworkConnection(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.PowerShell.cs new file mode 100644 index 000000000000..ea06759d4725 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the network connection list operation. + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionListResultTypeConverter))] + public partial class NetworkConnectionListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkConnectionListResult(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.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkConnectionListResult(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.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkConnectionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).NextLink, 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 NetworkConnectionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the network connection list operation. + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionListResultTypeConverter))] + public partial interface INetworkConnectionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.TypeConverter.cs index 80994c1606e7..0cbe42ae074f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnectionListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.cs similarity index 81% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.cs index 7c75421658f6..20179fe325db 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Result of the network connection list operation. public partial class NetworkConnectionListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class NetworkConnectionListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[] Value { get => this._value; } /// Creates an new instance. public NetworkConnectionListResult() @@ -57,8 +57,8 @@ public partial interface INetworkConnectionListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[] Value { get; } } /// Result of the network connection list operation. @@ -68,7 +68,7 @@ internal partial interface INetworkConnectionListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.json.cs index f9a348d6098b..6c36103aafde 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkConnectionListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new NetworkConnectionListResult(json) : null; } @@ -77,7 +77,7 @@ internal NetworkConnectionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCente { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnection) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.INetworkConnection) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.PowerShell.cs new file mode 100644 index 000000000000..b44a3e35a013 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.PowerShell.cs @@ -0,0 +1,204 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The network connection properties for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdateTypeConverter))] + public partial class NetworkConnectionUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkConnectionUpdate(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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkConnectionUpdate(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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkConnectionUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainPassword, 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 NetworkConnectionUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The network connection properties for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdateTypeConverter))] + public partial interface INetworkConnectionUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.TypeConverter.cs index 8f402eaa3af2..4efb2d9a0b50 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnectionUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.cs new file mode 100644 index 000000000000..e7afe87a71dc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The network connection properties for partial update. Properties not provided in the update request will not be changed. + /// + public partial class NetworkConnectionUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// Active Directory domain name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainName = value ?? null; } + + /// The password for the account used to join domain + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainPassword = value ?? null; } + + /// + /// The username of an Active Directory account (user or service account) that has permissions to create computer objects + /// in Active Directory. Required format: admin@contoso.com. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).DomainUsername = value ?? null; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties()); set { {_property = value;} } } + + /// Active Directory domain Organization Unit (OU) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).OrganizationUnit = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties _property; + + /// Properties of a network connection resource to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties()); set => this._property = value; } + + /// The subnet to attach Virtual Machines to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)Property).SubnetId = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// Creates an new instance. + public NetworkConnectionUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// The network connection properties for partial update. Properties not provided in the update request will not be changed. + public partial interface INetworkConnectionUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// Active Directory domain name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Active Directory domain name", + SerializedName = @"domainName", + PossibleTypes = new [] { typeof(string) })] + string DomainName { get; set; } + /// The password for the account used to join domain + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The password for the account used to join domain", + SerializedName = @"domainPassword", + PossibleTypes = new [] { typeof(string) })] + string DomainPassword { get; set; } + /// + /// The username of an Active Directory account (user or service account) that has permissions to create computer objects + /// in Active Directory. Required format: admin@contoso.com. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.", + SerializedName = @"domainUsername", + PossibleTypes = new [] { typeof(string) })] + string DomainUsername { get; set; } + /// Active Directory domain Organization Unit (OU) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Active Directory domain Organization Unit (OU)", + SerializedName = @"organizationUnit", + PossibleTypes = new [] { typeof(string) })] + string OrganizationUnit { get; set; } + /// The subnet to attach Virtual Machines to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The subnet to attach Virtual Machines to", + SerializedName = @"subnetId", + PossibleTypes = new [] { typeof(string) })] + string SubnetId { get; set; } + + } + /// The network connection properties for partial update. Properties not provided in the update request will not be changed. + internal partial interface INetworkConnectionUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// Active Directory domain name + string DomainName { get; set; } + /// The password for the account used to join domain + string DomainPassword { get; set; } + /// + /// The username of an Active Directory account (user or service account) that has permissions to create computer objects + /// in Active Directory. Required format: admin@contoso.com. + /// + string DomainUsername { get; set; } + /// Active Directory domain Organization Unit (OU) + string OrganizationUnit { get; set; } + /// Properties of a network connection resource to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties Property { get; set; } + /// The subnet to attach Virtual Machines to + string SubnetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.json.cs index 9aac506d7501..7a0b7971f9b0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class NetworkConnectionUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new NetworkConnectionUpdate(json) : null; } @@ -79,8 +79,8 @@ internal NetworkConnectionUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Ru { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..e9aeb6cb3524 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.PowerShell.cs @@ -0,0 +1,182 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of network connection. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdatePropertiesTypeConverter))] + public partial class NetworkConnectionUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkConnectionUpdateProperties(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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkConnectionUpdateProperties(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.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkConnectionUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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 NetworkConnectionUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of network connection. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(NetworkConnectionUpdatePropertiesTypeConverter))] + public partial interface INetworkConnectionUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.TypeConverter.cs index 23fb65b717af..8d56dbbc4be8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.cs similarity index 98% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.cs index 7fe6d3efb0c2..daf6cd648121 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// Properties of network connection. These properties can be updated after the resource has been created. /// public partial class NetworkConnectionUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.json.cs index 14f1e7caec36..0e35ac5f9352 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkConnectionUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkConnectionUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class NetworkConnectionUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new NetworkConnectionUpdateProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.PowerShell.cs new file mode 100644 index 000000000000..299f89b35b60 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Network properties + [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] + public partial class NetworkProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.INetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new NetworkProperties(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.DevCenter.Models.Api20231001Preview.INetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new NetworkProperties(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.DevCenter.Models.Api20231001Preview.INetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal NetworkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("NetworkingResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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 NetworkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("HealthCheckStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).HealthCheckStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus?) content.GetValueForProperty("HealthCheckStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).HealthCheckStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus.CreateFrom); + } + if (content.Contains("NetworkingResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).NetworkingResourceGroupName = (string) content.GetValueForProperty("NetworkingResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).NetworkingResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainJoinType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).DomainJoinType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType) content.GetValueForProperty("DomainJoinType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal)this).DomainJoinType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType.CreateFrom); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("OrganizationUnit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit = (string) content.GetValueForProperty("OrganizationUnit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).OrganizationUnit, global::System.Convert.ToString); + } + if (content.Contains("DomainUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername = (string) content.GetValueForProperty("DomainUsername",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainUsername, global::System.Convert.ToString); + } + if (content.Contains("DomainPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword = (string) content.GetValueForProperty("DomainPassword",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)this).DomainPassword, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Network properties + [System.ComponentModel.TypeConverter(typeof(NetworkPropertiesTypeConverter))] + public partial interface INetworkProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.TypeConverter.cs index 80d456c57ade..e6a677d4b6f6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.cs index 5c0e3d3e3fe8..54ae9152a4b1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Network properties public partial class NetworkProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties __networkConnectionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties __networkConnectionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType _domainJoinType; @@ -28,18 +28,18 @@ public partial class NetworkProperties : /// Active Directory domain name [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainName = value ?? null; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainName = value ?? null; } /// The password for the account used to join domain [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainPassword = value ?? null; } + public string DomainPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainPassword = value ?? null; } /// /// The username of an Active Directory account (user or service account) that has permissions to create computer objects /// in Active Directory. Required format: admin@contoso.com. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainUsername = value ?? null; } + public string DomainUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).DomainUsername = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? _healthCheckStatus; @@ -52,10 +52,10 @@ public partial class NetworkProperties : public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? HealthCheckStatus { get => this._healthCheckStatus; } /// Internal Acessors for HealthCheckStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal.HealthCheckStatus { get => this._healthCheckStatus; set { {_healthCheckStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthCheckStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal.HealthCheckStatus { get => this._healthCheckStatus; set { {_healthCheckStatus = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _networkingResourceGroupName; @@ -66,7 +66,7 @@ public partial class NetworkProperties : /// Active Directory domain Organization Unit (OU) [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).OrganizationUnit = value ?? null; } + public string OrganizationUnit { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).OrganizationUnit; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).OrganizationUnit = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; @@ -77,7 +77,7 @@ public partial class NetworkProperties : /// The subnet to attach Virtual Machines to [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).SubnetId = value ?? null; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal)__networkConnectionUpdateProperties).SubnetId = value ?? null; } /// Creates an new instance. public NetworkProperties() @@ -100,7 +100,7 @@ public NetworkProperties() /// Network properties public partial interface INetworkProperties : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdateProperties { /// AAD Join type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( @@ -141,7 +141,7 @@ public partial interface INetworkProperties : } /// Network properties internal partial interface INetworkPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdatePropertiesInternal { /// AAD Join type. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.DomainJoinType DomainJoinType { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.json.cs index cc3ad0f1d861..1a44fa77cde2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/NetworkProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/NetworkProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NetworkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new NetworkProperties(json) : null; } @@ -77,7 +77,7 @@ internal NetworkProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. { return; } - __networkConnectionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdateProperties(json); + __networkConnectionUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_healthCheckStatus = If( json?.PropertyT("healthCheckStatus"), out var __jsonHealthCheckStatus) ? (string)__jsonHealthCheckStatus : (string)HealthCheckStatus;} {_networkingResourceGroupName = If( json?.PropertyT("networkingResourceGroupName"), out var __jsonNetworkingResourceGroupName) ? (string)__jsonNetworkingResourceGroupName : (string)NetworkingResourceGroupName;} diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs new file mode 100644 index 000000000000..5145928b8ca4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// The current status of an async operation + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial class OperationStatus + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationStatus(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.DevCenter.Models.Api20231001Preview.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationStatus(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.DevCenter.Models.Api20231001Preview.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationStatus(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Operation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResultTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OperationStatus(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Operation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResultTypeConverter.ConvertFrom)); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The current status of an async operation + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial interface IOperationStatus + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.TypeConverter.cs new file mode 100644 index 000000000000..05d29e4e65cc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationStatusTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IOperationStatus ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationStatus.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationStatus.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationStatus.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs new file mode 100644 index 000000000000..905df9b1e691 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs @@ -0,0 +1,160 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// The current status of an async operation + public partial class OperationStatus : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult __operationStatusResult = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResult(); + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail; } + + /// The end time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).EndTime = value ?? default(global::System.DateTime); } + + /// If present, details of the operation error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Error = value ?? null /* model class */; } + + /// Fully qualified ID for the async operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Id = value ?? null; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any()); set { {_property = value;} } } + + /// Internal Acessors for ResourceId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatusInternal.ResourceId { get => this._resourceId; set { {_resourceId = value;} } } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Code = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Detail = value; } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target = value; } + + /// Name of the async operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Name = value ?? null; } + + /// The operations list. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult[] Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Operation = value ?? null /* arrayOf */; } + + /// Percent of the operation that is complete. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public float? PercentComplete { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).PercentComplete; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).PercentComplete = value ?? default(float); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny _property; + + /// Custom operation properties, populated only for a successful operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any()); } + + /// Backing field for property. + private string _resourceId; + + /// The id of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string ResourceId { get => this._resourceId; } + + /// The start time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).StartTime = value ?? default(global::System.DateTime); } + + /// Operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Status = value ; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal)__operationStatusResult).Target; } + + /// Creates an new instance. + public OperationStatus() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__operationStatusResult), __operationStatusResult); + await eventListener.AssertObjectIsValid(nameof(__operationStatusResult), __operationStatusResult); + } + } + /// The current status of an async operation + public partial interface IOperationStatus : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResult + { + /// Custom operation properties, populated only for a successful operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Custom operation properties, populated only for a successful operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get; } + /// The id of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The id of the resource.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string ResourceId { get; } + + } + /// The current status of an async operation + internal partial interface IOperationStatusInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperationStatusResultInternal + { + /// Custom operation properties, populated only for a successful operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IAny Property { get; set; } + /// The id of the resource. + string ResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs new file mode 100644 index 000000000000..911beb386333 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// The current status of an async operation + public partial class OperationStatus + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new OperationStatus(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal OperationStatus(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __operationStatusResult = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.OperationStatusResult(json); + {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Any.FromJson(__jsonProperties) : Property;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __operationStatusResult?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._resourceId.ToString()) : null, "resourceId" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.PowerShell.cs new file mode 100644 index 000000000000..e23aae2c8f4c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A collection of related endpoints from the same service for which the agent requires outbound access. + /// + [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointTypeConverter))] + public partial class OutboundEnvironmentEndpoint + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OutboundEnvironmentEndpoint(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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OutboundEnvironmentEndpoint(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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OutboundEnvironmentEndpoint(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Category, global::System.Convert.ToString); + } + if (content.Contains("Endpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[]) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Endpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDependencyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal OutboundEnvironmentEndpoint(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Category")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Category, global::System.Convert.ToString); + } + if (content.Contains("Endpoint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[]) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal)this).Endpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDependencyTypeConverter.ConvertFrom)); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A collection of related endpoints from the same service for which the agent requires outbound access. + [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointTypeConverter))] + public partial interface IOutboundEnvironmentEndpoint + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.TypeConverter.cs index 92d8ddf70a47..3f78bbd10aa6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.cs index 5177da66a95f..341cb7306de6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// A collection of related endpoints from the same service for which the agent requires outbound access. /// public partial class OutboundEnvironmentEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal { /// Backing field for property. @@ -23,17 +23,17 @@ public partial class OutboundEnvironmentEndpoint : public string Category { get => this._category; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[] _endpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[] _endpoint; /// The endpoints for this service for which the agent requires outbound access. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[] Endpoint { get => this._endpoint; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[] Endpoint { get => this._endpoint; } /// Internal Acessors for Category - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal.Category { get => this._category; set { {_category = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal.Category { get => this._category; set { {_category = value;} } } /// Internal Acessors for Endpoint - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointInternal.Endpoint { get => this._endpoint; set { {_endpoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointInternal.Endpoint { get => this._endpoint; set { {_endpoint = value;} } } /// Creates an new instance. public OutboundEnvironmentEndpoint() @@ -59,8 +59,8 @@ public partial interface IOutboundEnvironmentEndpoint : ReadOnly = true, Description = @"The endpoints for this service for which the agent requires outbound access.", SerializedName = @"endpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[] Endpoint { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[] Endpoint { get; } } /// A collection of related endpoints from the same service for which the agent requires outbound access. @@ -70,7 +70,7 @@ internal partial interface IOutboundEnvironmentEndpointInternal /// The type of service that the agent connects to. string Category { get; set; } /// The endpoints for this service for which the agent requires outbound access. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEndpointDependency[] Endpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEndpointDependency[] Endpoint { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.json.cs index 30783fd687bb..e4b9799ec30a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpoint.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpoint.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class OutboundEnvironmentEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new OutboundEnvironmentEndpoint(json) : null; } @@ -80,7 +80,7 @@ internal OutboundEnvironmentEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DevCente return; } {_category = If( json?.PropertyT("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)Category;} - {_endpoint = If( json?.PropertyT("endpoints"), out var __jsonEndpoints) ? If( __jsonEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEndpointDependency) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EndpointDependency.FromJson(__u) )) ))() : null : Endpoint;} + {_endpoint = If( json?.PropertyT("endpoints"), out var __jsonEndpoints) ? If( __jsonEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IEndpointDependency) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EndpointDependency.FromJson(__u) )) ))() : null : Endpoint;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.PowerShell.cs new file mode 100644 index 000000000000..ffb4e35c2fd2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Values returned by the List operation. + [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointCollectionTypeConverter))] + public partial class OutboundEnvironmentEndpointCollection + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OutboundEnvironmentEndpointCollection(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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OutboundEnvironmentEndpointCollection(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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OutboundEnvironmentEndpointCollection(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink, 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 OutboundEnvironmentEndpointCollection(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpointTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Values returned by the List operation. + [System.ComponentModel.TypeConverter(typeof(OutboundEnvironmentEndpointCollectionTypeConverter))] + public partial interface IOutboundEnvironmentEndpointCollection + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.TypeConverter.cs index b6a494739b34..9e7baf3cae9c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.cs index 1c3836be1f37..ff2e6323b953 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.cs @@ -3,18 +3,18 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Values returned by the List operation. public partial class OutboundEnvironmentEndpointCollection : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal { /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollectionInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollectionInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -24,13 +24,13 @@ public partial class OutboundEnvironmentEndpointCollection : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[] _value; /// /// The collection of outbound network dependency endpoints returned by the listing operation. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[] Value { get => this._value; } /// Creates an new instance. public OutboundEnvironmentEndpointCollection() @@ -58,8 +58,8 @@ public partial interface IOutboundEnvironmentEndpointCollection : ReadOnly = true, Description = @"The collection of outbound network dependency endpoints returned by the listing operation.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[] Value { get; } } /// Values returned by the List operation. @@ -71,7 +71,7 @@ internal partial interface IOutboundEnvironmentEndpointCollectionInternal /// /// The collection of outbound network dependency endpoints returned by the listing operation. /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.json.cs index 7a76189ea1b3..60902a5ea835 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/OutboundEnvironmentEndpointCollection.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/OutboundEnvironmentEndpointCollection.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEnvironmentEndpointCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new OutboundEnvironmentEndpointCollection(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEnvironmentEndpointCollection(Microsoft.Azure.PowerShell.Cmdlet { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.OutboundEnvironmentEndpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.OutboundEnvironmentEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs new file mode 100644 index 000000000000..fd5df2f5417d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs @@ -0,0 +1,360 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// A pool of Virtual Machines. + [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] + public partial class Pool + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IPool DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Pool(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.DevCenter.Models.Api20231001Preview.IPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Pool(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.DevCenter.Models.Api20231001Preview.IPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Pool(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("DevBoxCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxCount = (int?) content.GetValueForProperty("DevBoxCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Pool(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("HealthStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("DevBoxCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxCount = (int?) content.GetValueForProperty("DevBoxCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).DevBoxCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A pool of Virtual Machines. + [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] + public partial interface IPool + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs new file mode 100644 index 000000000000..59d6e93cb00d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PoolTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IPool ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Pool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Pool.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Pool.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs new file mode 100644 index 000000000000..643ffd656db5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs @@ -0,0 +1,404 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// A pool of Virtual Machines. + public partial class Pool : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); + + /// Indicates the number of provisioned Dev Boxes in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? DevBoxCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).DevBoxCount; } + + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName = value ?? null; } + + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatus; } + + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatusDetail; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } + + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } + + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string[] ManagedVirtualNetworkRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).ManagedVirtualNetworkRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).ManagedVirtualNetworkRegion = value ?? null /* arrayOf */; } + + /// Internal Acessors for DevBoxCount + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.DevBoxCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).DevBoxCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).DevBoxCount = value; } + + /// Internal Acessors for HealthStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.HealthStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatus = value; } + + /// Internal Acessors for HealthStatusDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.HealthStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).HealthStatusDetail = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for StopOnDisconnect + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolInternal.StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } + + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties _property; + + /// Pool properties + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)Property).ProvisioningState; } + + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).SingleSignOnStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).SingleSignOnStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); } + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute = value ?? default(int); } + + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).VirtualNetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).VirtualNetworkType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); } + + /// Creates an new instance. + public Pool() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// A pool of Virtual Machines. + public partial interface IPool : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource + { + /// Indicates the number of provisioned Dev Boxes in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Indicates the number of provisioned Dev Boxes in this pool.", + SerializedName = @"devBoxCount", + PossibleTypes = new [] { typeof(int) })] + int? DevBoxCount { get; } + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Dev Box definition in parent Project of this Pool", + SerializedName = @"devBoxDefinitionName", + PossibleTypes = new [] { typeof(string) })] + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", + SerializedName = @"healthStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; } + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", + SerializedName = @"healthStatusDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", + SerializedName = @"localAdministrator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Network Connection in parent Project of this Pool", + SerializedName = @"networkConnectionName", + PossibleTypes = new [] { typeof(string) })] + string NetworkConnectionName { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } + /// A pool of Virtual Machines. + internal partial interface IPoolInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal + { + /// Indicates the number of provisioned Dev Boxes in this pool. + int? DevBoxCount { get; set; } + /// Name of a Dev Box definition in parent Project of this Pool + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + string DisplayName { get; set; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; set; } + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get; set; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + string NetworkConnectionName { get; set; } + /// Pool properties + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.json.cs new file mode 100644 index 000000000000..0b59dc0b2f31 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Pool.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// A pool of Virtual Machines. + public partial class Pool + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Pool(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal Pool(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolProperties.FromJson(__jsonProperties) : Property;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs new file mode 100644 index 000000000000..4bffd1e6a34b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the machine pool list operation. + [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] + public partial class PoolListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PoolListResult(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.DevCenter.Models.Api20231001Preview.IPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PoolListResult(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.DevCenter.Models.Api20231001Preview.IPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PoolListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink, 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 PoolListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the machine pool list operation. + [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] + public partial interface IPoolListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.TypeConverter.cs new file mode 100644 index 000000000000..89e8277941b0 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PoolListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IPoolListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PoolListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PoolListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs new file mode 100644 index 000000000000..16f3d0ebadba --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the machine pool list operation. + public partial class PoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[] Value { get => this._value; } + + /// Creates an new instance. + public PoolListResult() + { + + } + } + /// Results of the machine pool list operation. + public partial interface IPoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[] Value { get; } + + } + /// Results of the machine pool list operation. + internal partial interface IPoolListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs new file mode 100644 index 000000000000..5f4cd2f9ff71 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the machine pool list operation. + public partial class PoolListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal PoolListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IPool) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.PowerShell.cs new file mode 100644 index 000000000000..8ee15e76b340 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.PowerShell.cs @@ -0,0 +1,256 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a Pool + [System.ComponentModel.TypeConverter(typeof(PoolPropertiesTypeConverter))] + public partial class PoolProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IPoolProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PoolProperties(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.DevCenter.Models.Api20231001Preview.IPoolProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PoolProperties(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.DevCenter.Models.Api20231001Preview.IPoolProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PoolProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); + } + if (content.Contains("HealthStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("DevBoxCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).DevBoxCount = (int?) content.GetValueForProperty("DevBoxCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).DevBoxCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, 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 PoolProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus?) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus.CreateFrom); + } + if (content.Contains("HealthStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[]) content.GetValueForProperty("HealthStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).HealthStatusDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("DevBoxCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).DevBoxCount = (int?) content.GetValueForProperty("DevBoxCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).DevBoxCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a Pool + [System.ComponentModel.TypeConverter(typeof(PoolPropertiesTypeConverter))] + public partial interface IPoolProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.TypeConverter.cs index cf9913a1779c..dc48522c3b09 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPoolProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.cs new file mode 100644 index 000000000000..73ceb343d4f3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.cs @@ -0,0 +1,207 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a Pool + public partial class PoolProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties __poolUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties(); + + /// Backing field for property. + private int? _devBoxCount; + + /// Indicates the number of provisioned Dev Boxes in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? DevBoxCount { get => this._devBoxCount; } + + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DevBoxDefinitionName = value ?? null; } + + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).DisplayName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? _healthStatus; + + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get => this._healthStatus; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] _healthStatusDetail; + + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get => this._healthStatusDetail; } + + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } + + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } + + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string[] ManagedVirtualNetworkRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).ManagedVirtualNetworkRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).ManagedVirtualNetworkRegion = value ?? null /* arrayOf */; } + + /// Internal Acessors for DevBoxCount + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal.DevBoxCount { get => this._devBoxCount; set { {_devBoxCount = value;} } } + + /// Internal Acessors for HealthStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal.HealthStatus { get => this._healthStatus; set { {_healthStatus = value;} } } + + /// Internal Acessors for HealthStatusDetail + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal.HealthStatusDetail { get => this._healthStatusDetail; set { {_healthStatusDetail = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).NetworkConnectionName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).SingleSignOnStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).SingleSignOnStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); } + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnect = value ?? null /* model class */; } + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectGracePeriodMinute = value ?? default(int); } + + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).VirtualNetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)__poolUpdateProperties).VirtualNetworkType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); } + + /// Creates an new instance. + public PoolProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__poolUpdateProperties), __poolUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__poolUpdateProperties), __poolUpdateProperties); + } + } + /// Properties of a Pool + public partial interface IPoolProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties + { + /// Indicates the number of provisioned Dev Boxes in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Indicates the number of provisioned Dev Boxes in this pool.", + SerializedName = @"devBoxCount", + PossibleTypes = new [] { typeof(int) })] + int? DevBoxCount { get; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", + SerializedName = @"healthStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; } + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state", + SerializedName = @"healthStatusDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of a Pool + internal partial interface IPoolPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal + { + /// Indicates the number of provisioned Dev Boxes in this pool. + int? DevBoxCount { get; set; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.HealthStatus? HealthStatus { get; set; } + /// + /// Details on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool + /// is in a non-healthy state + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthStatusDetail[] HealthStatusDetail { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.json.cs similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.json.cs index a9ce7d83913f..b3c0cee2c3e5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PoolProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolProperties(json) : null; } @@ -77,9 +77,10 @@ internal PoolProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Jso { return; } - __poolUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties(json); + __poolUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties(json); {_healthStatus = If( json?.PropertyT("healthStatus"), out var __jsonHealthStatus) ? (string)__jsonHealthStatus : (string)HealthStatus;} - {_healthStatusDetail = If( json?.PropertyT("healthStatusDetails"), out var __jsonHealthStatusDetails) ? If( __jsonHealthStatusDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IHealthStatusDetail) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.HealthStatusDetail.FromJson(__u) )) ))() : null : HealthStatusDetail;} + {_healthStatusDetail = If( json?.PropertyT("healthStatusDetails"), out var __jsonHealthStatusDetails) ? If( __jsonHealthStatusDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IHealthStatusDetail) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.HealthStatusDetail.FromJson(__u) )) ))() : null : HealthStatusDetail;} + {_devBoxCount = If( json?.PropertyT("devBoxCount"), out var __jsonDevBoxCount) ? (int?)__jsonDevBoxCount : DevBoxCount;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } @@ -121,6 +122,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson } } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._devBoxCount ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._devBoxCount) : null, "devBoxCount" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.PowerShell.cs new file mode 100644 index 000000000000..be02b9109cc7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.PowerShell.cs @@ -0,0 +1,250 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The pool properties for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(PoolUpdateTypeConverter))] + public partial class PoolUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IPoolUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PoolUpdate(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.DevCenter.Models.Api20231001Preview.IPoolUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PoolUpdate(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.DevCenter.Models.Api20231001Preview.IPoolUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PoolUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PoolUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The pool properties for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(PoolUpdateTypeConverter))] + public partial interface IPoolUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.TypeConverter.cs index 6a6629481aae..3a5ad1e9dd62 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPoolUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.cs new file mode 100644 index 000000000000..33f847038ffd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.cs @@ -0,0 +1,265 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The pool properties for partial update. Properties not provided in the update request will not be changed. + /// + public partial class PoolUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DevBoxDefinitionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DevBoxDefinitionName = value ?? null; } + + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LicenseType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LicenseType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType)""); } + + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LocalAdministrator; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).LocalAdministrator = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus)""); } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string[] ManagedVirtualNetworkRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).ManagedVirtualNetworkRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).ManagedVirtualNetworkRegion = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties()); set { {_property = value;} } } + + /// Internal Acessors for StopOnDisconnect + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateInternal.StopOnDisconnect { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnect = value; } + + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string NetworkConnectionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).NetworkConnectionName = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties _property; + + /// Properties of a pool to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties()); set => this._property = value; } + + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).SingleSignOnStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).SingleSignOnStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); } + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectGracePeriodMinute = value ?? default(int); } + + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).StopOnDisconnectStatus = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).VirtualNetworkType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)Property).VirtualNetworkType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); } + + /// Creates an new instance. + public PoolUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// The pool properties for partial update. Properties not provided in the update request will not be changed. + public partial interface IPoolUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Dev Box definition in parent Project of this Pool", + SerializedName = @"devBoxDefinitionName", + PossibleTypes = new [] { typeof(string) })] + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", + SerializedName = @"localAdministrator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Network Connection in parent Project of this Pool", + SerializedName = @"networkConnectionName", + PossibleTypes = new [] { typeof(string) })] + string NetworkConnectionName { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } + /// The pool properties for partial update. Properties not provided in the update request will not be changed. + internal partial interface IPoolUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// Name of a Dev Box definition in parent Project of this Pool + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + string DisplayName { get; set; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + string NetworkConnectionName { get; set; } + /// Properties of a pool to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties Property { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.json.cs index 0edadd0d2187..6da564584ff2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class PoolUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolUpdate(json) : null; } @@ -79,8 +79,8 @@ internal PoolUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.Js { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdateProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..fe1a9ca57214 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.PowerShell.cs @@ -0,0 +1,228 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of a Pool. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(PoolUpdatePropertiesTypeConverter))] + public partial class PoolUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PoolUpdateProperties(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.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PoolUpdateProperties(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.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PoolUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PoolUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("DevBoxDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName = (string) content.GetValueForProperty("DevBoxDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DevBoxDefinitionName, global::System.Convert.ToString); + } + if (content.Contains("NetworkConnectionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName = (string) content.GetValueForProperty("NetworkConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).NetworkConnectionName, global::System.Convert.ToString); + } + if (content.Contains("LicenseType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType?) content.GetValueForProperty("LicenseType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LicenseType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("SingleSignOnStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus?) content.GetValueForProperty("SingleSignOnStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).SingleSignOnStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("VirtualNetworkType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType?) content.GetValueForProperty("VirtualNetworkType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).VirtualNetworkType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType.CreateFrom); + } + if (content.Contains("ManagedVirtualNetworkRegion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion = (string[]) content.GetValueForProperty("ManagedVirtualNetworkRegion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).ManagedVirtualNetworkRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a Pool. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(PoolUpdatePropertiesTypeConverter))] + public partial interface IPoolUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.TypeConverter.cs index 7ae8b55466c1..642cbed413d3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/PoolUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPoolUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.cs new file mode 100644 index 000000000000..3c08b5c34f15 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.cs @@ -0,0 +1,257 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of a Pool. These properties can be updated after the resource has been created. + /// + public partial class PoolUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal + { + + /// Backing field for property. + private string _devBoxDefinitionName; + + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DevBoxDefinitionName { get => this._devBoxDefinitionName; set => this._devBoxDefinitionName = value; } + + /// Backing field for property. + private string _displayName; + + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? _licenseType; + + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get => this._licenseType; set => this._licenseType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? _localAdministrator; + + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get => this._localAdministrator; set => this._localAdministrator = value; } + + /// Backing field for property. + private string[] _managedVirtualNetworkRegion; + + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string[] ManagedVirtualNetworkRegion { get => this._managedVirtualNetworkRegion; set => this._managedVirtualNetworkRegion = value; } + + /// Internal Acessors for StopOnDisconnect + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdatePropertiesInternal.StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfiguration()); set { {_stopOnDisconnect = value;} } } + + /// Backing field for property. + private string _networkConnectionName; + + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NetworkConnectionName { get => this._networkConnectionName; set => this._networkConnectionName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? _singleSignOnStatus; + + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get => this._singleSignOnStatus; set => this._singleSignOnStatus = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration _stopOnDisconnect; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfiguration()); set => this._stopOnDisconnect = value; } + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute = value ?? default(int); } + + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? _virtualNetworkType; + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get => this._virtualNetworkType; set => this._virtualNetworkType = value; } + + /// Creates an new instance. + public PoolUpdateProperties() + { + + } + } + /// Properties of a Pool. These properties can be updated after the resource has been created. + public partial interface IPoolUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Name of a Dev Box definition in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Dev Box definition in parent Project of this Pool", + SerializedName = @"devBoxDefinitionName", + PossibleTypes = new [] { typeof(string) })] + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.", + SerializedName = @"licenseType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.", + SerializedName = @"localAdministrator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of a Network Connection in parent Project of this Pool", + SerializedName = @"networkConnectionName", + PossibleTypes = new [] { typeof(string) })] + string NetworkConnectionName { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } + /// Properties of a Pool. These properties can be updated after the resource has been created. + internal partial interface IPoolUpdatePropertiesInternal + + { + /// Name of a Dev Box definition in parent Project of this Pool + string DevBoxDefinitionName { get; set; } + /// The display name of the pool. + string DisplayName { get; set; } + /// + /// Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LicenseType? LicenseType { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + string[] ManagedVirtualNetworkRegion { get; set; } + /// Name of a Network Connection in parent Project of this Pool + string NetworkConnectionName { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus? SingleSignOnStatus { get; set; } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType? VirtualNetworkType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.json.cs new file mode 100644 index 000000000000..cfd39f925afe --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/PoolUpdateProperties.json.cs @@ -0,0 +1,134 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of a Pool. These properties can be updated after the resource has been created. + /// + public partial class PoolUpdateProperties + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new PoolUpdateProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal PoolUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_stopOnDisconnect = If( json?.PropertyT("stopOnDisconnect"), out var __jsonStopOnDisconnect) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.StopOnDisconnectConfiguration.FromJson(__jsonStopOnDisconnect) : StopOnDisconnect;} + {_devBoxDefinitionName = If( json?.PropertyT("devBoxDefinitionName"), out var __jsonDevBoxDefinitionName) ? (string)__jsonDevBoxDefinitionName : (string)DevBoxDefinitionName;} + {_networkConnectionName = If( json?.PropertyT("networkConnectionName"), out var __jsonNetworkConnectionName) ? (string)__jsonNetworkConnectionName : (string)NetworkConnectionName;} + {_licenseType = If( json?.PropertyT("licenseType"), out var __jsonLicenseType) ? (string)__jsonLicenseType : (string)LicenseType;} + {_localAdministrator = If( json?.PropertyT("localAdministrator"), out var __jsonLocalAdministrator) ? (string)__jsonLocalAdministrator : (string)LocalAdministrator;} + {_singleSignOnStatus = If( json?.PropertyT("singleSignOnStatus"), out var __jsonSingleSignOnStatus) ? (string)__jsonSingleSignOnStatus : (string)SingleSignOnStatus;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + {_virtualNetworkType = If( json?.PropertyT("virtualNetworkType"), out var __jsonVirtualNetworkType) ? (string)__jsonVirtualNetworkType : (string)VirtualNetworkType;} + {_managedVirtualNetworkRegion = If( json?.PropertyT("managedVirtualNetworkRegions"), out var __jsonManagedVirtualNetworkRegions) ? If( __jsonManagedVirtualNetworkRegions as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : ManagedVirtualNetworkRegion;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._stopOnDisconnect ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._stopOnDisconnect.ToJson(null,serializationMode) : null, "stopOnDisconnect" ,container.Add ); + AddIf( null != (((object)this._devBoxDefinitionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._devBoxDefinitionName.ToString()) : null, "devBoxDefinitionName" ,container.Add ); + AddIf( null != (((object)this._networkConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._networkConnectionName.ToString()) : null, "networkConnectionName" ,container.Add ); + AddIf( null != (((object)this._licenseType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._licenseType.ToString()) : null, "licenseType" ,container.Add ); + AddIf( null != (((object)this._localAdministrator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._localAdministrator.ToString()) : null, "localAdministrator" ,container.Add ); + AddIf( null != (((object)this._singleSignOnStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._singleSignOnStatus.ToString()) : null, "singleSignOnStatus" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AddIf( null != (((object)this._virtualNetworkType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._virtualNetworkType.ToString()) : null, "virtualNetworkType" ,container.Add ); + if (null != this._managedVirtualNetworkRegion) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._managedVirtualNetworkRegion ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("managedVirtualNetworkRegions",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.cs new file mode 100644 index 000000000000..90faf725f55f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.cs @@ -0,0 +1,288 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a project resource. + [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] + public partial class Project + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Project(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.DevCenter.Models.Api20231001Preview.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Project(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.DevCenter.Models.Api20231001Preview.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Project(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterUri, 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 Project(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal)this).DevCenterUri, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a project resource. + [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] + public partial interface IProject + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs new file mode 100644 index 000000000000..7787ac1f7f71 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProjectTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IProject ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Project.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Project.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Project.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.cs new file mode 100644 index 000000000000..29def44b1dd6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a project resource. + public partial class Project : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(); + + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } + + /// Resource Id of an associated DevCenter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DevCenterId = value ?? null; } + + /// The URI of the Dev Center resource this project is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DevCenterUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).DevCenterUri; } + + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser = value ?? default(int); } + + /// Internal Acessors for DevCenterUri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal.DevCenterUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).DevCenterUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).DevCenterUri = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties _property; + + /// Properties of a project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public Project() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Represents a project resource. + public partial interface IProject : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResource + { + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the project.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Resource Id of an associated DevCenter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id of an associated DevCenter", + SerializedName = @"devCenterId", + PossibleTypes = new [] { typeof(string) })] + string DevCenterId { get; set; } + /// The URI of the Dev Center resource this project is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The URI of the Dev Center resource this project is associated with.", + SerializedName = @"devCenterUri", + PossibleTypes = new [] { typeof(string) })] + string DevCenterUri { get; } + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.", + SerializedName = @"maxDevBoxesPerUser", + PossibleTypes = new [] { typeof(int) })] + int? MaxDevBoxesPerUser { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Represents a project resource. + internal partial interface IProjectInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceInternal + { + /// Description of the project. + string Description { get; set; } + /// Resource Id of an associated DevCenter + string DevCenterId { get; set; } + /// The URI of the Dev Center resource this project is associated with. + string DevCenterUri { get; set; } + /// The display name of the project. + string DisplayName { get; set; } + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + int? MaxDevBoxesPerUser { get; set; } + /// Properties of a project. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.json.cs new file mode 100644 index 000000000000..2d9d35970c8d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Project.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a project resource. + public partial class Project + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Project(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal Project(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectProperties.FromJson(__jsonProperties) : Property;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.PowerShell.cs new file mode 100644 index 000000000000..8c6fbf601955 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.PowerShell.cs @@ -0,0 +1,346 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents an environment type. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeTypeConverter))] + public partial class ProjectEnvironmentType + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectEnvironmentType(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectEnvironmentType(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectEnvironmentType(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).EnvironmentCount = (int?) content.GetValueForProperty("EnvironmentCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).EnvironmentCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProjectEnvironmentType(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).EnvironmentCount = (int?) content.GetValueForProperty("EnvironmentCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).EnvironmentCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents an environment type. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeTypeConverter))] + public partial interface IProjectEnvironmentType + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.TypeConverter.cs index f228cceb9a78..a5cd5b6bd401 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentType ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.cs similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.cs index c02956c39aaa..4754e28ba14d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Represents an environment type. public partial class ProjectEnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates { /// @@ -20,14 +20,22 @@ public partial class ProjectEnvironmentType : /// A map of roles to assign to the environment creator. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole = value ?? null /* model class */; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId = value ?? null; } + public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId = value ?? null; } + + /// The display name of the project environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).DisplayName = value ?? null; } + + /// The number of environments of this type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? EnvironmentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).EnvironmentCount; } /// /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} @@ -76,22 +84,25 @@ public partial class ProjectEnvironmentType : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for CreatorRoleAssignment - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment = value; } + + /// Internal Acessors for EnvironmentCount + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.EnvironmentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).EnvironmentCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).EnvironmentCount = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } @@ -110,19 +121,19 @@ public partial class ProjectEnvironmentType : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties _property; /// Properties of an environment type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeProperties()); set => this._property = value; } /// The provisioning state of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)Property).ProvisioningState; } /// Defines whether this Environment Type can be used in this Project. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -155,11 +166,11 @@ public partial class ProjectEnvironmentType : public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags()); set => this._tag = value; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -172,7 +183,7 @@ public partial class ProjectEnvironmentType : /// definition IDs. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment = value ?? null /* model class */; } /// Creates an new instance. public ProjectEnvironmentType() @@ -203,8 +214,8 @@ public partial interface IProjectEnvironmentType : ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. @@ -216,6 +227,22 @@ public partial interface IProjectEnvironmentType : SerializedName = @"deploymentTargetId", PossibleTypes = new [] { typeof(string) })] string DeploymentTargetId { get; set; } + /// The display name of the project environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// The number of environments of this type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The number of environments of this type.", + SerializedName = @"environmentCount", + PossibleTypes = new [] { typeof(int) })] + int? EnvironmentCount { get; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// @@ -288,8 +315,8 @@ public partial interface IProjectEnvironmentType : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role /// definition IDs. @@ -299,8 +326,8 @@ public partial interface IProjectEnvironmentType : ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } } /// Represents an environment type. @@ -308,14 +335,18 @@ internal partial interface IProjectEnvironmentTypeInternal : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal { /// The role definition assigned to the environment creator on backing resources. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } /// A map of roles to assign to the environment creator. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. /// string DeploymentTargetId { get; set; } + /// The display name of the project environment type. + string DisplayName { get; set; } + /// The number of environments of this type. + int? EnvironmentCount { get; set; } /// Managed identity properties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Identity { get; set; } /// @@ -339,18 +370,18 @@ internal partial interface IProjectEnvironmentTypeInternal : /// The geo-location for the environment type string Location { get; set; } /// Properties of an environment type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties Property { get; set; } /// The provisioning state of the resource. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } /// Defines whether this Environment Type can be used in this Project. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role /// definition IDs. /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.json.cs index 1eb0c10ae33e..d7d3a32ca0af 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentType.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentType.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectEnvironmentType partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentType(json) : null; } @@ -78,9 +78,9 @@ internal ProjectEnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Run return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeProperties.FromJson(__jsonProperties) : Property;} {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.PowerShell.cs new file mode 100644 index 000000000000..17f4343e6799 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the project environment type list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeListResultTypeConverter))] + public partial class ProjectEnvironmentTypeListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectEnvironmentTypeListResult(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectEnvironmentTypeListResult(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectEnvironmentTypeListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).NextLink, 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 ProjectEnvironmentTypeListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the project environment type list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeListResultTypeConverter))] + public partial interface IProjectEnvironmentTypeListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.TypeConverter.cs index a31801c93b06..20548d5bf8ac 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.cs similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.cs index 8702413f6035..2bbbf51dce4f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Result of the project environment type list operation. public partial class ProjectEnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class ProjectEnvironmentTypeListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[] Value { get => this._value; } /// Creates an new instance. public ProjectEnvironmentTypeListResult() @@ -57,8 +57,8 @@ public partial interface IProjectEnvironmentTypeListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[] Value { get; } } /// Result of the project environment type list operation. @@ -68,7 +68,7 @@ internal partial interface IProjectEnvironmentTypeListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.json.cs index 4ba9247c64d4..44e18aea69e8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectEnvironmentTypeListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeListResult(json) : null; } @@ -77,7 +77,7 @@ internal ProjectEnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.Dev { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.PowerShell.cs new file mode 100644 index 000000000000..3581c4d0aff2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a project environment type. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypePropertiesTypeConverter))] + public partial class ProjectEnvironmentTypeProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectEnvironmentTypeProperties(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectEnvironmentTypeProperties(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectEnvironmentTypeProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).EnvironmentCount = (int?) content.GetValueForProperty("EnvironmentCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).EnvironmentCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProjectEnvironmentTypeProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).EnvironmentCount = (int?) content.GetValueForProperty("EnvironmentCount",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal)this).EnvironmentCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a project environment type. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypePropertiesTypeConverter))] + public partial interface IProjectEnvironmentTypeProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.TypeConverter.cs index 99a0c2716334..0bdbc84e69cd 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.cs new file mode 100644 index 000000000000..beefebee7692 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.cs @@ -0,0 +1,136 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a project environment type. + public partial class ProjectEnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties __projectEnvironmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties(); + + /// The role definition assigned to the environment creator on backing resources. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignment = value ?? null /* model class */; } + + /// A map of roles to assign to the environment creator. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).CreatorRoleAssignmentRole = value ?? null /* model class */; } + + /// + /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this + /// subscription. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).DeploymentTargetId = value ?? null; } + + /// Backing field for property. + private string _displayName; + + /// The display name of the project environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private int? _environmentCount; + + /// The number of environments of this type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? EnvironmentCount { get => this._environmentCount; } + + /// Internal Acessors for EnvironmentCount + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal.EnvironmentCount { get => this._environmentCount; set { {_environmentCount = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Defines whether this Environment Type can be used in this Project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } + + /// + /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role + /// definition IDs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)__projectEnvironmentTypeUpdateProperties).UserRoleAssignment = value ?? null /* model class */; } + + /// Creates an new instance. + public ProjectEnvironmentTypeProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__projectEnvironmentTypeUpdateProperties), __projectEnvironmentTypeUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__projectEnvironmentTypeUpdateProperties), __projectEnvironmentTypeUpdateProperties); + } + } + /// Properties of a project environment type. + public partial interface IProjectEnvironmentTypeProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties + { + /// The display name of the project environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// The number of environments of this type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The number of environments of this type.", + SerializedName = @"environmentCount", + PossibleTypes = new [] { typeof(int) })] + int? EnvironmentCount { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of a project environment type. + internal partial interface IProjectEnvironmentTypePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal + { + /// The display name of the project environment type. + string DisplayName { get; set; } + /// The number of environments of this type. + int? EnvironmentCount { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.json.cs similarity index 81% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.json.cs index 7c11b45df43e..4c728a83eec6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectEnvironmentTypeProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeProperties(json) : null; } @@ -77,8 +77,10 @@ internal ProjectEnvironmentTypeProperties(Microsoft.Azure.PowerShell.Cmdlets.Dev { return; } - __projectEnvironmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties(json); + __projectEnvironmentTypeUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + {_environmentCount = If( json?.PropertyT("environmentCount"), out var __jsonEnvironmentCount) ? (int?)__jsonEnvironmentCount : EnvironmentCount;} AfterFromJson(json); } @@ -106,6 +108,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._environmentCount ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._environmentCount) : null, "environmentCount" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.PowerShell.cs new file mode 100644 index 000000000000..caec4e8bbc1a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.PowerShell.cs @@ -0,0 +1,236 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The project environment type for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdateTypeConverter))] + public partial class ProjectEnvironmentTypeUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectEnvironmentTypeUpdate(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectEnvironmentTypeUpdate(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectEnvironmentTypeUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProjectEnvironmentTypeUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.UserAssignedIdentitiesTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The project environment type for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdateTypeConverter))] + public partial interface IProjectEnvironmentTypeUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.TypeConverter.cs index 21aadbeec78e..0127728c37bb 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.cs similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.cs index 63d5171c4c5b..e64778a2a656 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -11,20 +11,20 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// The project environment type for partial update. Properties not provided in the update request will not be changed. /// public partial class ProjectEnvironmentTypeUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal { /// A map of roles to assign to the environment creator. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignmentRole = value ?? null /* model class */; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId = value ?? null; } + public string DeploymentTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).DeploymentTargetId = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity _identity; @@ -60,44 +60,44 @@ public partial class ProjectEnvironmentTypeUpdate : public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for CreatorRoleAssignment - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal.CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal.CreatorRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).CreatorRoleAssignment = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IManagedServiceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties _property; /// Properties to configure an environment type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties()); set => this._property = value; } /// Defines whether this Environment Type can be used in this Project. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags()); set => this._tag = value; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role /// definition IDs. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)Property).UserRoleAssignment = value ?? null /* model class */; } /// Creates an new instance. public ProjectEnvironmentTypeUpdate() @@ -115,8 +115,8 @@ public partial interface IProjectEnvironmentTypeUpdate : ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. @@ -184,8 +184,8 @@ public partial interface IProjectEnvironmentTypeUpdate : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role /// definition IDs. @@ -195,8 +195,8 @@ public partial interface IProjectEnvironmentTypeUpdate : ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } } /// The project environment type for partial update. Properties not provided in the update request will not be changed. @@ -204,9 +204,9 @@ internal partial interface IProjectEnvironmentTypeUpdateInternal { /// The role definition assigned to the environment creator on backing resources. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } /// A map of roles to assign to the environment creator. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } /// /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this /// subscription. @@ -233,16 +233,16 @@ internal partial interface IProjectEnvironmentTypeUpdateInternal /// Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Properties to configure an environment type. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties Property { get; set; } /// Defines whether this Environment Type can be used in this Project. Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role /// definition IDs. /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.json.cs index aa05a034ca97..01b278234cee 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProjectEnvironmentTypeUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeUpdate(json) : null; } @@ -79,9 +79,9 @@ internal ProjectEnvironmentTypeUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCent { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdateProperties.FromJson(__jsonProperties) : Property;} {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ManagedServiceIdentity.FromJson(__jsonIdentity) : Identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..078c817dd22b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.PowerShell.cs @@ -0,0 +1,183 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of a project environment type. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdatePropertiesTypeConverter))] + public partial class ProjectEnvironmentTypeUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectEnvironmentTypeUpdateProperties(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectEnvironmentTypeUpdateProperties(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.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectEnvironmentTypeUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProjectEnvironmentTypeUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CreatorRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment) content.GetValueForProperty("CreatorRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentTypeConverter.ConvertFrom); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("UserRoleAssignment")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) content.GetValueForProperty("UserRoleAssignment",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).UserRoleAssignment, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsTypeConverter.ConvertFrom); + } + if (content.Contains("CreatorRoleAssignmentRole")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("CreatorRoleAssignmentRole",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal)this).CreatorRoleAssignmentRole, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a project environment type. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(ProjectEnvironmentTypeUpdatePropertiesTypeConverter))] + public partial interface IProjectEnvironmentTypeUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.TypeConverter.cs index 45a6bad8387a..f21b45a43de2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.cs new file mode 100644 index 000000000000..c2b8d7b6a68b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// Properties of a project environment type. These properties can be updated after the resource has been created. + /// + public partial class ProjectEnvironmentTypeUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment _creatorRoleAssignment; + + /// The role definition assigned to the environment creator on backing resources. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get => (this._creatorRoleAssignment = this._creatorRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment()); set => this._creatorRoleAssignment = value; } + + /// A map of roles to assign to the environment creator. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)CreatorRoleAssignment).Role; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)CreatorRoleAssignment).Role = value ?? null /* model class */; } + + /// Backing field for property. + private string _deploymentTargetId; + + /// + /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this + /// subscription. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DeploymentTargetId { get => this._deploymentTargetId; set => this._deploymentTargetId = value; } + + /// Internal Acessors for CreatorRoleAssignment + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesInternal.CreatorRoleAssignment { get => (this._creatorRoleAssignment = this._creatorRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment()); set { {_creatorRoleAssignment = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? _status; + + /// Defines whether this Environment Type can be used in this Project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get => this._status; set => this._status = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments _userRoleAssignment; + + /// + /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role + /// definition IDs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => (this._userRoleAssignment = this._userRoleAssignment ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments()); set => this._userRoleAssignment = value; } + + /// Creates an new instance. + public ProjectEnvironmentTypeUpdateProperties() + { + + } + } + /// Properties of a project environment type. These properties can be updated after the resource has been created. + public partial interface IProjectEnvironmentTypeUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// A map of roles to assign to the environment creator. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A map of roles to assign to the environment creator.", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + /// + /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this + /// subscription. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.", + SerializedName = @"deploymentTargetId", + PossibleTypes = new [] { typeof(string) })] + string DeploymentTargetId { get; set; } + /// Defines whether this Environment Type can be used in this Project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Defines whether this Environment Type can be used in this Project.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } + /// + /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role + /// definition IDs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", + SerializedName = @"userRoleAssignments", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + + } + /// Properties of a project environment type. These properties can be updated after the resource has been created. + internal partial interface IProjectEnvironmentTypeUpdatePropertiesInternal + + { + /// The role definition assigned to the environment creator on backing resources. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment CreatorRoleAssignment { get; set; } + /// A map of roles to assign to the environment creator. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get; set; } + /// + /// Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this + /// subscription. + /// + string DeploymentTargetId { get; set; } + /// Defines whether this Environment Type can be used in this Project. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.EnvironmentTypeEnableStatus? Status { get; set; } + /// + /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role + /// definition IDs. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.json.cs index e7336274e7e9..b7b562340f35 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProjectEnvironmentTypeUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeUpdateProperties(json) : null; } @@ -79,10 +79,10 @@ internal ProjectEnvironmentTypeUpdateProperties(Microsoft.Azure.PowerShell.Cmdle { return; } - {_creatorRoleAssignment = If( json?.PropertyT("creatorRoleAssignment"), out var __jsonCreatorRoleAssignment) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.FromJson(__jsonCreatorRoleAssignment) : CreatorRoleAssignment;} + {_creatorRoleAssignment = If( json?.PropertyT("creatorRoleAssignment"), out var __jsonCreatorRoleAssignment) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.FromJson(__jsonCreatorRoleAssignment) : CreatorRoleAssignment;} {_deploymentTargetId = If( json?.PropertyT("deploymentTargetId"), out var __jsonDeploymentTargetId) ? (string)__jsonDeploymentTargetId : (string)DeploymentTargetId;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_userRoleAssignment = If( json?.PropertyT("userRoleAssignments"), out var __jsonUserRoleAssignments) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.FromJson(__jsonUserRoleAssignments) : UserRoleAssignment;} + {_userRoleAssignment = If( json?.PropertyT("userRoleAssignments"), out var __jsonUserRoleAssignments) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.FromJson(__jsonUserRoleAssignments) : UserRoleAssignment;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.PowerShell.cs similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.PowerShell.cs index 953f9174c710..51c3d7acd5ee 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IP /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -108,13 +108,13 @@ internal ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(global::Sys // actually deserialize if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.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,7 +129,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(global::Sys // actually deserialize if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.TypeConverter.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.TypeConverter.cs index 458363789fe7..49bc379d226a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs new file mode 100644 index 000000000000..cd062db2e552 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.cs @@ -0,0 +1,53 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// The role definition assigned to the environment creator on backing resources. + public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles _role; + + /// A map of roles to assign to the environment creator. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get => (this._role = this._role ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles()); set => this._role = value; } + + /// + /// Creates an new instance. + /// + public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment() + { + + } + } + /// The role definition assigned to the environment creator on backing resources. + public partial interface IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// A map of roles to assign to the environment creator. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A map of roles to assign to the environment creator.", + SerializedName = @"roles", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get; set; } + + } + /// The role definition assigned to the environment creator on backing resources. + internal partial interface IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentInternal + + { + /// A map of roles to assign to the environment creator. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles Role { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.json.cs index 295b6c64f928..595cd49ac3f9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(json) : null; } @@ -78,7 +78,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment(Microsoft.A { return; } - {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.FromJson(__jsonRoles) : Role;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.FromJson(__jsonRoles) : Role;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.PowerShell.cs similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.PowerShell.cs index 9fba41104b0c..a3697d39bc47 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IP /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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,7 +112,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles(global } /// - /// 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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.TypeConverter.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.TypeConverter.cs index 8918f788c683..b6231dfb5cb1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.cs similarity index 87% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.cs index 05f86fbf34fb..c439e865f5f9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// A map of roles to assign to the environment creator. public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRolesInternal { /// @@ -24,7 +24,7 @@ public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles() /// A map of roles to assign to the environment creator. public partial interface IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray { } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs new file mode 100644 index 000000000000..2b00a13b3374 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.json.cs similarity index 90% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.json.cs index 60cb0b07c1cd..8f09850a4ab9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles(json) : null; } @@ -79,7 +79,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles(Micros { return; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentRole.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentRole.FromJson(j) ,exclusions ); AfterFromJson(json); } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.PowerShell.cs similarity index 87% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.PowerShell.cs index 538ee6d63c8d..478b17416311 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -58,29 +58,29 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments(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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments(content); } @@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IP /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -115,7 +115,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments(global::Syste } /// - /// 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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.TypeConverter.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.TypeConverter.cs index b535bfed3749..7b23f30c94eb 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.cs similarity index 89% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.cs index 51c55d73935d..69a0a2427ec2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// definition IDs. /// public partial class ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignmentsInternal { /// @@ -28,7 +28,7 @@ public ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments() /// definition IDs. public partial interface IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray { } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs new file mode 100644 index 000000000000..96d3b7454cbf --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.json.cs similarity index 90% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.json.cs index 4aebff7a3f58..6bef8331a635 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments(json) : null; } @@ -82,7 +82,7 @@ internal ProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments(Microsoft.Azu { return; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentValue.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentValue.FromJson(j) ,exclusions ); AfterFromJson(json); } @@ -107,7 +107,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs new file mode 100644 index 000000000000..54112096a052 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Results of the project list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] + public partial class ProjectListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectListResult(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.DevCenter.Models.Api20231001Preview.IProjectListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectListResult(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.DevCenter.Models.Api20231001Preview.IProjectListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink, 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 ProjectListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the project list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] + public partial interface IProjectListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.TypeConverter.cs new file mode 100644 index 000000000000..9669b7304219 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProjectListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IProjectListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ProjectListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ProjectListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ProjectListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs new file mode 100644 index 000000000000..d6818cfde29a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the project list operation. + public partial class ProjectListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[] Value { get => this._value; } + + /// Creates an new instance. + public ProjectListResult() + { + + } + } + /// Results of the project list operation. + public partial interface IProjectListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[] Value { get; } + + } + /// Results of the project list operation. + internal partial interface IProjectListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs new file mode 100644 index 000000000000..b36554d086eb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Results of the project list operation. + public partial class ProjectListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal ProjectListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IProject) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.PowerShell.cs new file mode 100644 index 000000000000..577446ffd4dd --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties of a project. + [System.ComponentModel.TypeConverter(typeof(ProjectPropertiesTypeConverter))] + public partial class ProjectProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectProperties(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.DevCenter.Models.Api20231001Preview.IProjectProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectProperties(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.DevCenter.Models.Api20231001Preview.IProjectProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName, 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 ProjectProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DevCenterUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).DevCenterUri = (string) content.GetValueForProperty("DevCenterUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal)this).DevCenterUri, global::System.Convert.ToString); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a project. + [System.ComponentModel.TypeConverter(typeof(ProjectPropertiesTypeConverter))] + public partial interface IProjectProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.TypeConverter.cs index 51c0f64400a1..bf0fa8085548 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.cs new file mode 100644 index 000000000000..e3c465332629 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties of a project. + public partial class ProjectProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties __projectUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties(); + + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).Description = value ?? null; } + + /// Resource Id of an associated DevCenter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DevCenterId = value ?? null; } + + /// Backing field for property. + private string _devCenterUri; + + /// The URI of the Dev Center resource this project is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DevCenterUri { get => this._devCenterUri; } + + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).DisplayName = value ?? null; } + + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)__projectUpdateProperties).MaxDevBoxesPerUser = value ?? default(int); } + + /// Internal Acessors for DevCenterUri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal.DevCenterUri { get => this._devCenterUri; set { {_devCenterUri = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public ProjectProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__projectUpdateProperties), __projectUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__projectUpdateProperties), __projectUpdateProperties); + } + } + /// Properties of a project. + public partial interface IProjectProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties + { + /// The URI of the Dev Center resource this project is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The URI of the Dev Center resource this project is associated with.", + SerializedName = @"devCenterUri", + PossibleTypes = new [] { typeof(string) })] + string DevCenterUri { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Properties of a project. + internal partial interface IProjectPropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal + { + /// The URI of the Dev Center resource this project is associated with. + string DevCenterUri { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectProperties.json.cs index c23a9b10acb3..09ef297e7db0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ProjectProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectProperties(json) : null; } @@ -77,7 +77,7 @@ internal ProjectProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. { return; } - __projectUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties(json); + __projectUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_devCenterUri = If( json?.PropertyT("devCenterUri"), out var __jsonDevCenterUri) ? (string)__jsonDevCenterUri : (string)DevCenterUri;} AfterFromJson(json); diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.PowerShell.cs new file mode 100644 index 000000000000..11392d5a9001 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.PowerShell.cs @@ -0,0 +1,194 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The project properties for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(ProjectUpdateTypeConverter))] + public partial class ProjectUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectUpdate(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.DevCenter.Models.Api20231001Preview.IProjectUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectUpdate(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.DevCenter.Models.Api20231001Preview.IProjectUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DisplayName, 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 ProjectUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal)this).DisplayName, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The project properties for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(ProjectUpdateTypeConverter))] + public partial interface IProjectUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.TypeConverter.cs index cb0d5d11b83b..261f014ae7fc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.cs new file mode 100644 index 000000000000..013b2a8133c7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.cs @@ -0,0 +1,140 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The project properties for partial update. Properties not provided in the update request will not be changed. + /// + public partial class ProjectUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).Description = value ?? null; } + + /// Resource Id of an associated DevCenter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DevCenterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DevCenterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DevCenterId = value ?? null; } + + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).DisplayName = value ?? null; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MaxDevBoxesPerUser { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)Property).MaxDevBoxesPerUser = value ?? default(int); } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties _property; + + /// Properties of a project to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties()); set => this._property = value; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// Creates an new instance. + public ProjectUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// The project properties for partial update. Properties not provided in the update request will not be changed. + public partial interface IProjectUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the project.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Resource Id of an associated DevCenter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Id of an associated DevCenter", + SerializedName = @"devCenterId", + PossibleTypes = new [] { typeof(string) })] + string DevCenterId { get; set; } + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.", + SerializedName = @"maxDevBoxesPerUser", + PossibleTypes = new [] { typeof(int) })] + int? MaxDevBoxesPerUser { get; set; } + + } + /// The project properties for partial update. Properties not provided in the update request will not be changed. + internal partial interface IProjectUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// Description of the project. + string Description { get; set; } + /// Resource Id of an associated DevCenter + string DevCenterId { get; set; } + /// The display name of the project. + string DisplayName { get; set; } + /// + /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This + /// will have no effect on existing Dev Boxes when reduced. + /// + int? MaxDevBoxesPerUser { get; set; } + /// Properties of a project to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties Property { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.json.cs index d49a5af7b85d..107e3b17130f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProjectUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectUpdate(json) : null; } @@ -79,8 +79,8 @@ internal ProjectUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..2b55f548a4ad --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.PowerShell.cs @@ -0,0 +1,172 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// Properties of a project. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(ProjectUpdatePropertiesTypeConverter))] + public partial class ProjectUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectUpdateProperties(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.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectUpdateProperties(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.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName, 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 ProjectUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DevCenterId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId = (string) content.GetValueForProperty("DevCenterId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DevCenterId, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal)this).DisplayName, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of a project. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(ProjectUpdatePropertiesTypeConverter))] + public partial interface IProjectUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.TypeConverter.cs index 578f77cc19fb..644bade62171 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.cs similarity index 82% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.cs index 29929686dc4c..193cfa24ce70 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401 /// Properties of a project. These properties can be updated after the resource has been created. /// public partial class ProjectUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdatePropertiesInternal { /// Backing field for property. @@ -29,6 +29,13 @@ public partial class ProjectUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] public string DevCenterId { get => this._devCenterId; set => this._devCenterId = value; } + /// Backing field for property. + private string _displayName; + + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + /// Backing field for property. private int? _maxDevBoxesPerUser; @@ -65,6 +72,14 @@ public partial interface IProjectUpdateProperties : SerializedName = @"devCenterId", PossibleTypes = new [] { typeof(string) })] string DevCenterId { get; set; } + /// The display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } /// /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This /// will have no effect on existing Dev Boxes when reduced. @@ -86,6 +101,8 @@ internal partial interface IProjectUpdatePropertiesInternal string Description { get; set; } /// Resource Id of an associated DevCenter string DevCenterId { get; set; } + /// The display name of the project. + string DisplayName { get; set; } /// /// When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This /// will have no effect on existing Dev Boxes when reduced. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.json.cs similarity index 90% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ProjectUpdateProperties.json.cs index fcc4c844ffe6..826616991806 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ProjectUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProjectUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ProjectUpdateProperties(json) : null; } @@ -82,6 +82,7 @@ internal ProjectUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Ru {_devCenterId = If( json?.PropertyT("devCenterId"), out var __jsonDevCenterId) ? (string)__jsonDevCenterId : (string)DevCenterId;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} {_maxDevBoxesPerUser = If( json?.PropertyT("maxDevBoxesPerUser"), out var __jsonMaxDevBoxesPerUser) ? (int?)__jsonMaxDevBoxesPerUser : MaxDevBoxesPerUser;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} AfterFromJson(json); } @@ -107,6 +108,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson AddIf( null != (((object)this._devCenterId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._devCenterId.ToString()) : null, "devCenterId" ,container.Add ); AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); AddIf( null != this._maxDevBoxesPerUser ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._maxDevBoxesPerUser) : null, "maxDevBoxesPerUser" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.PowerShell.cs new file mode 100644 index 000000000000..89b7de7afdf1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Properties for a recommended machine configuration. + [System.ComponentModel.TypeConverter(typeof(RecommendedMachineConfigurationTypeConverter))] + public partial class RecommendedMachineConfiguration + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new RecommendedMachineConfiguration(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.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new RecommendedMachineConfiguration(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.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal RecommendedMachineConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Memory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).Memory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("Memory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).Memory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("VCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal RecommendedMachineConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Memory")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).Memory = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("Memory",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).Memory, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("VCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUs = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUs, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRangeTypeConverter.ConvertFrom); + } + if (content.Contains("MemoryMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMin = (int?) content.GetValueForProperty("MemoryMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMax = (int?) content.GetValueForProperty("MemoryMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).MemoryMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMin = (int?) content.GetValueForProperty("VCpUsMin",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMin, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("VCpUsMax")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMax = (int?) content.GetValueForProperty("VCpUsMax",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal)this).VCpUsMax, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties for a recommended machine configuration. + [System.ComponentModel.TypeConverter(typeof(RecommendedMachineConfigurationTypeConverter))] + public partial interface IRecommendedMachineConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.TypeConverter.cs index d1f7f5a3602c..f2ed30213c57 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.cs new file mode 100644 index 000000000000..25a2870dffa3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.cs @@ -0,0 +1,126 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Properties for a recommended machine configuration. + public partial class RecommendedMachineConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange _memory; + + /// Recommended memory range. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Memory { get => (this._memory = this._memory ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange()); } + + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Max; } + + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Min; } + + /// Internal Acessors for Memory + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.Memory { get => (this._memory = this._memory ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange()); set { {_memory = value;} } } + + /// Internal Acessors for MemoryMax + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.MemoryMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Max; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Max = value; } + + /// Internal Acessors for MemoryMin + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.MemoryMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Min; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)Memory).Min = value; } + + /// Internal Acessors for VCpUs + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.VCpUs { get => (this._vCpUs = this._vCpUs ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange()); set { {_vCpUs = value;} } } + + /// Internal Acessors for VCpUsMax + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Max; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Max = value; } + + /// Internal Acessors for VCpUsMin + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfigurationInternal.VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Min; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Min = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange _vCpUs; + + /// Recommended vCPU range. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange VCpUs { get => (this._vCpUs = this._vCpUs ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange()); } + + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? VCpUsMax { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Max; } + + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public int? VCpUsMin { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)VCpUs).Min; } + + /// Creates an new instance. + public RecommendedMachineConfiguration() + { + + } + } + /// Properties for a recommended machine configuration. + public partial interface IRecommendedMachineConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum value.", + SerializedName = @"max", + PossibleTypes = new [] { typeof(int) })] + int? MemoryMax { get; } + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Minimum value.", + SerializedName = @"min", + PossibleTypes = new [] { typeof(int) })] + int? MemoryMin { get; } + /// Maximum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum value.", + SerializedName = @"max", + PossibleTypes = new [] { typeof(int) })] + int? VCpUsMax { get; } + /// Minimum value. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Minimum value.", + SerializedName = @"min", + PossibleTypes = new [] { typeof(int) })] + int? VCpUsMin { get; } + + } + /// Properties for a recommended machine configuration. + internal partial interface IRecommendedMachineConfigurationInternal + + { + /// Recommended memory range. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange Memory { get; set; } + /// Maximum value. + int? MemoryMax { get; set; } + /// Minimum value. + int? MemoryMin { get; set; } + /// Recommended vCPU range. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange VCpUs { get; set; } + /// Maximum value. + int? VCpUsMax { get; set; } + /// Minimum value. + int? VCpUsMin { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.json.cs index ff80d534c3ae..47b72fc63df3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/RecommendedMachineConfiguration.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/RecommendedMachineConfiguration.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RecommendedMachineConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IRecommendedMachineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IRecommendedMachineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new RecommendedMachineConfiguration(json) : null; } @@ -77,8 +77,8 @@ internal RecommendedMachineConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DevC { return; } - {_memory = If( json?.PropertyT("memory"), out var __jsonMemory) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange.FromJson(__jsonMemory) : Memory;} - {_vCpUs = If( json?.PropertyT("vCPUs"), out var __jsonVCpUs) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ResourceRange.FromJson(__jsonVCpUs) : VCpUs;} + {_memory = If( json?.PropertyT("memory"), out var __jsonMemory) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange.FromJson(__jsonMemory) : Memory;} + {_vCpUs = If( json?.PropertyT("vCPUs"), out var __jsonVCpUs) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ResourceRange.FromJson(__jsonVCpUs) : VCpUs;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.PowerShell.cs similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.PowerShell.cs index 2d7aab3de649..d0d45264f049 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResourceRange partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IResourceRange DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceRange(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.DevCenter.Models.Api20230401.IResourceRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceRange(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IR /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,17 +103,17 @@ internal ResourceRange(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Min")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Min = (int?) content.GetValueForProperty("Min",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Min, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Min = (int?) content.GetValueForProperty("Min",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Min, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Max")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Max = (int?) content.GetValueForProperty("Max",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Max, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Max = (int?) content.GetValueForProperty("Max",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Max, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } 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. @@ -128,11 +128,11 @@ internal ResourceRange(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Min")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Min = (int?) content.GetValueForProperty("Min",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Min, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Min = (int?) content.GetValueForProperty("Min",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Min, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Max")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Max = (int?) content.GetValueForProperty("Max",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal)this).Max, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Max = (int?) content.GetValueForProperty("Max",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal)this).Max, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.TypeConverter.cs index 5efe416af5fb..8465e6ec3cb0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IResourceRange ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.cs index bb58ab6b6198..c6d901e7229b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Properties for a range of values. public partial class ResourceRange : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ResourceRange : public int? Max { get => this._max; } /// Internal Acessors for Max - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal.Max { get => this._max; set { {_max = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal.Max { get => this._max; set { {_max = value;} } } /// Internal Acessors for Min - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRangeInternal.Min { get => this._min; set { {_min = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRangeInternal.Min { get => this._min; set { {_min = value;} } } /// Backing field for property. private int? _min; diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.json.cs index 503fc969d187..9ede1975dd4d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ResourceRange.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ResourceRange.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceRange partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IResourceRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IResourceRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ResourceRange(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs new file mode 100644 index 000000000000..a1587df7d6a4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs @@ -0,0 +1,272 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Represents a Schedule to execute a task. + [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] + public partial class Schedule + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ISchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Schedule(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.DevCenter.Models.Api20231001Preview.ISchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Schedule(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.DevCenter.Models.Api20231001Preview.ISchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Schedule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SchedulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("PropertiesType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).PropertiesType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).PropertiesType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Schedule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.SchedulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("PropertiesType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).PropertiesType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("PropertiesType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).PropertiesType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a Schedule to execute a task. + [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] + public partial interface ISchedule + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs new file mode 100644 index 000000000000..4b021b239b9d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ScheduleTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ISchedule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Schedule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Schedule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Schedule.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs new file mode 100644 index 000000000000..aa635a8af640 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs @@ -0,0 +1,209 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a Schedule to execute a task. + public partial class Schedule : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(); + + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } + + /// + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Name; } + + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties _property; + + /// Properties of a Schedule resource + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)Property).ProvisioningState; } + + /// Indicates whether or not this scheduled task is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CreatedByType)""); } + + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Time = value ?? null; } + + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).TimeZone = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public Schedule() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// Represents a Schedule to execute a task. + public partial interface ISchedule : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResource + { + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The frequency of this scheduled task.", + SerializedName = @"frequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Supported type this scheduled task represents.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + /// Indicates whether or not this scheduled task is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether or not this scheduled task is enabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target time to trigger the action. The format is HH:MM.", + SerializedName = @"time", + PossibleTypes = new [] { typeof(string) })] + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IANA timezone id at which the schedule should execute.", + SerializedName = @"timeZone", + PossibleTypes = new [] { typeof(string) })] + string TimeZone { get; set; } + + } + /// Represents a Schedule to execute a task. + internal partial interface IScheduleInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IResourceInternal + { + /// The frequency of this scheduled task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } + /// Supported type this scheduled task represents. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? PropertiesType { get; set; } + /// Properties of a Schedule resource + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties Property { get; set; } + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + /// Indicates whether or not this scheduled task is enabled. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } + /// The target time to trigger the action. The format is HH:MM. + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + string TimeZone { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.json.cs new file mode 100644 index 000000000000..b959ee71c14c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Schedule.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Represents a Schedule to execute a task. + public partial class Schedule + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Schedule(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal Schedule(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleProperties.FromJson(__jsonProperties) : Property;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __resource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs new file mode 100644 index 000000000000..4e6382750675 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Result of the schedule list operation. + [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] + public partial class ScheduleListResult + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IScheduleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleListResult(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.DevCenter.Models.Api20231001Preview.IScheduleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleListResult(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.DevCenter.Models.Api20231001Preview.IScheduleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink, 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 ScheduleListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the schedule list operation. + [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] + public partial interface IScheduleListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.TypeConverter.cs new file mode 100644 index 000000000000..f13237b967a5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ScheduleListResultTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IScheduleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ScheduleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ScheduleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ScheduleListResult.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs new file mode 100644 index 000000000000..0bddf1e0141b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs @@ -0,0 +1,74 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Result of the schedule list operation. + public partial class ScheduleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Internal Acessors for Value + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResultInternal.Value { get => this._value; set { {_value = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[] Value { get => this._value; } + + /// Creates an new instance. + public ScheduleListResult() + { + + } + } + /// Result of the schedule list operation. + public partial interface IScheduleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[] Value { get; } + + } + /// Result of the schedule list operation. + internal partial interface IScheduleListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs new file mode 100644 index 000000000000..250314ab8411 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Result of the schedule list operation. + public partial class ScheduleListResult + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ScheduleListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal ScheduleListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ISchedule) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.PowerShell.cs new file mode 100644 index 000000000000..a6ba8162a9c5 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// The Schedule properties defining when and what to execute. + [System.ComponentModel.TypeConverter(typeof(SchedulePropertiesTypeConverter))] + public partial class ScheduleProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IScheduleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleProperties(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.DevCenter.Models.Api20231001Preview.IScheduleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleProperties(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.DevCenter.Models.Api20231001Preview.IScheduleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ScheduleProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Schedule properties defining when and what to execute. + [System.ComponentModel.TypeConverter(typeof(SchedulePropertiesTypeConverter))] + public partial interface IScheduleProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.TypeConverter.cs index 3ab6498fd76b..73ab8db96a38 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IScheduleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.cs new file mode 100644 index 000000000000..cc262335136a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.cs @@ -0,0 +1,93 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// The Schedule properties defining when and what to execute. + public partial class ScheduleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties __scheduleUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties(); + + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Indicates whether or not this scheduled task is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } + + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Time = value ?? null; } + + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).TimeZone = value ?? null; } + + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)__scheduleUpdateProperties).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } + + /// Creates an new instance. + public ScheduleProperties() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__scheduleUpdateProperties), __scheduleUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__scheduleUpdateProperties), __scheduleUpdateProperties); + } + } + /// The Schedule properties defining when and what to execute. + public partial interface IScheduleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties + { + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; } + + } + /// The Schedule properties defining when and what to execute. + internal partial interface ISchedulePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal + { + /// The provisioning state of the resource. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.json.cs index 1ebde069d92f..f82f845d512f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ScheduleProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ScheduleProperties(json) : null; } @@ -77,7 +77,7 @@ internal ScheduleProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime { return; } - __scheduleUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties(json); + __scheduleUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties(json); {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.PowerShell.cs new file mode 100644 index 000000000000..5ee4b2ec201e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// The schedule properties for partial update. Properties not provided in the update request will not be changed. + /// + [System.ComponentModel.TypeConverter(typeof(ScheduleUpdateTypeConverter))] + public partial class ScheduleUpdate + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IScheduleUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleUpdate(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.DevCenter.Models.Api20231001Preview.IScheduleUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleUpdate(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.DevCenter.Models.Api20231001Preview.IScheduleUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ScheduleUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdatePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The schedule properties for partial update. Properties not provided in the update request will not be changed. + [System.ComponentModel.TypeConverter(typeof(ScheduleUpdateTypeConverter))] + public partial interface IScheduleUpdate + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.TypeConverter.cs index dc7571c56201..de5d34887024 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IScheduleUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.cs new file mode 100644 index 000000000000..eb96de339c0a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.cs @@ -0,0 +1,145 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// The schedule properties for partial update. Properties not provided in the update request will not be changed. + /// + public partial class ScheduleUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(); + + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Frequency; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Frequency = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency)""); } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Location = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties _property; + + /// Properties of a schedule resource to be updated. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties()); set => this._property = value; } + + /// Indicates whether or not this scheduled task is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)__trackedResourceUpdate).Tag = value ?? null /* model class */; } + + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string Time { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Time; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Time = value ?? null; } + + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string TimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).TimeZone = value ?? null; } + + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)Property).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType)""); } + + /// Creates an new instance. + public ScheduleUpdate() + { + + } + + /// 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.DevCenter.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + await eventListener.AssertObjectIsValid(nameof(__trackedResourceUpdate), __trackedResourceUpdate); + } + } + /// The schedule properties for partial update. Properties not provided in the update request will not be changed. + public partial interface IScheduleUpdate : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate + { + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The frequency of this scheduled task.", + SerializedName = @"frequency", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } + /// Indicates whether or not this scheduled task is enabled. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether or not this scheduled task is enabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target time to trigger the action. The format is HH:MM.", + SerializedName = @"time", + PossibleTypes = new [] { typeof(string) })] + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The IANA timezone id at which the schedule should execute.", + SerializedName = @"timeZone", + PossibleTypes = new [] { typeof(string) })] + string TimeZone { get; set; } + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Supported type this scheduled task represents.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get; set; } + + } + /// The schedule properties for partial update. Properties not provided in the update request will not be changed. + internal partial interface IScheduleUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal + { + /// The frequency of this scheduled task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency? Frequency { get; set; } + /// Properties of a schedule resource to be updated. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties Property { get; set; } + /// Indicates whether or not this scheduled task is enabled. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus? State { get; set; } + /// The target time to trigger the action. The format is HH:MM. + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + string TimeZone { get; set; } + /// Supported type this scheduled task represents. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType? Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.json.cs similarity index 93% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.json.cs index 2e6cf71e3f2c..52b3ea203f6f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ScheduleUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ScheduleUpdate(json) : null; } @@ -79,8 +79,8 @@ internal ScheduleUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Jso { return; } - __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TrackedResourceUpdate(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdateProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceUpdate = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TrackedResourceUpdate(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdateProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..14eddf2ceea1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Updatable properties of a Schedule. + [System.ComponentModel.TypeConverter(typeof(ScheduleUpdatePropertiesTypeConverter))] + public partial class ScheduleUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleUpdateProperties(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.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleUpdateProperties(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.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ScheduleUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledType.CreateFrom); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency?) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Frequency, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduledFrequency.CreateFrom); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).TimeZone, global::System.Convert.ToString); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ScheduleEnableStatus.CreateFrom); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Updatable properties of a Schedule. + [System.ComponentModel.TypeConverter(typeof(ScheduleUpdatePropertiesTypeConverter))] + public partial interface IScheduleUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.TypeConverter.cs index 321084bbb528..ac102906b53d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IScheduleUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.cs similarity index 98% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.cs index 8e234ec994e4..f381656fbf18 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Updatable properties of a Schedule. public partial class ScheduleUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdatePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdatePropertiesInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.json.cs index 826d3dc6e2ae..9f10929eaaf7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/ScheduleUpdateProperties.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/ScheduleUpdateProperties.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ScheduleUpdateProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new ScheduleUpdateProperties(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.PowerShell.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.PowerShell.cs index 30ad832670e5..181d72224d0b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SkuListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.ISkuListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuListResult(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.DevCenter.Models.Api20230401.ISkuListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuListResult(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IS /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -103,17 +103,17 @@ internal SkuListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterSkuTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterSkuTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)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. @@ -128,11 +128,11 @@ internal SkuListResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterSkuTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterSkuTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.TypeConverter.cs index c7a4c1f639f9..a4930985b0df 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ISkuListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.cs similarity index 83% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.cs index ba095fba8362..03ba28bd687e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.cs @@ -3,21 +3,21 @@ // 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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Results of the Microsoft.DevCenter SKU list operation. public partial class SkuListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -27,11 +27,11 @@ public partial class SkuListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[] Value { get => this._value; } /// Creates an new instance. public SkuListResult() @@ -57,8 +57,8 @@ public partial interface ISkuListResult : ReadOnly = true, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[] Value { get; } } /// Results of the Microsoft.DevCenter SKU list operation. @@ -68,7 +68,7 @@ internal partial interface ISkuListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.json.cs index 8aa4ee8902a1..3d3c8688078c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/SkuListResult.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SkuListResult.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISkuListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new SkuListResult(json) : null; } @@ -77,7 +77,7 @@ internal SkuListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenterSku) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterSku.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IDevCenterSku) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterSku.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs new file mode 100644 index 000000000000..8c1805c05c5b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] + public partial class StopOnDisconnectConfiguration + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StopOnDisconnectConfiguration(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.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StopOnDisconnectConfiguration(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.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StopOnDisconnectConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("GracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StopOnDisconnectConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("GracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] + public partial interface IStopOnDisconnectConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..1e6090409cb6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StopOnDisconnectConfigurationTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StopOnDisconnectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StopOnDisconnectConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StopOnDisconnectConfiguration.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs new file mode 100644 index 000000000000..5b7b341af81e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs @@ -0,0 +1,80 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial class StopOnDisconnectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal + { + + /// Backing field for property. + private int? _gracePeriodMinute; + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? GracePeriodMinute { get => this._gracePeriodMinute; set => this._gracePeriodMinute = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? _status; + + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get => this._status; set => this._status = value; } + + /// Creates an new instance. + public StopOnDisconnectConfiguration() + { + + } + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial interface IStopOnDisconnectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? GracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get; set; } + + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + internal partial interface IStopOnDisconnectConfigurationInternal + + { + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? GracePeriodMinute { get; set; } + /// + /// Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus? Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.json.cs new file mode 100644 index 000000000000..50041c182045 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial class StopOnDisconnectConfiguration + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IStopOnDisconnectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new StopOnDisconnectConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal StopOnDisconnectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_gracePeriodMinute = If( json?.PropertyT("gracePeriodMinutes"), out var __jsonGracePeriodMinutes) ? (int?)__jsonGracePeriodMinutes : GracePeriodMinute;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != this._gracePeriodMinute ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._gracePeriodMinute) : null, "gracePeriodMinutes" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..7098fe38f512 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.PowerShell.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Synchronization error details. + [System.ComponentModel.TypeConverter(typeof(SyncErrorDetailsTypeConverter))] + public partial class SyncErrorDetails + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SyncErrorDetails(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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SyncErrorDetails(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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SyncErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OperationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationError = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) content.GetValueForProperty("OperationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationError, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Conflict")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Conflict = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[]) content.GetValueForProperty("Conflict",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Conflict, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogConflictErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogSyncErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorCode = (string) content.GetValueForProperty("OperationErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorCode, global::System.Convert.ToString); + } + if (content.Contains("OperationErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorMessage = (string) content.GetValueForProperty("OperationErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorMessage, 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 SyncErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("OperationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationError = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails) content.GetValueForProperty("OperationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationError, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Conflict")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Conflict = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[]) content.GetValueForProperty("Conflict",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Conflict, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogConflictErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogSyncErrorTypeConverter.ConvertFrom)); + } + if (content.Contains("OperationErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorCode = (string) content.GetValueForProperty("OperationErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorCode, global::System.Convert.ToString); + } + if (content.Contains("OperationErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorMessage = (string) content.GetValueForProperty("OperationErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal)this).OperationErrorMessage, 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Synchronization error details. + [System.ComponentModel.TypeConverter(typeof(SyncErrorDetailsTypeConverter))] + public partial interface ISyncErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..b5913f12930a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SyncErrorDetailsTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SyncErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SyncErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SyncErrorDetails.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.cs new file mode 100644 index 000000000000..d88a8f5883e1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Synchronization error details. + public partial class SyncErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[] _conflict; + + /// Catalog items that have conflicting names. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[] Conflict { get => this._conflict; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[] _error; + + /// Errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[] Error { get => this._error; } + + /// Internal Acessors for Conflict + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal.Conflict { get => this._conflict; set { {_conflict = value;} } } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[] Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal.Error { get => this._error; set { {_error = value;} } } + + /// Internal Acessors for OperationError + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetailsInternal.OperationError { get => (this._operationError = this._operationError ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails()); set { {_operationError = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails _operationError; + + /// Error information for the overall synchronization operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails OperationError { get => (this._operationError = this._operationError ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails()); } + + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string OperationErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)OperationError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)OperationError).Code = value ?? null; } + + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string OperationErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)OperationError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetailsInternal)OperationError).Message = value ?? null; } + + /// Creates an new instance. + public SyncErrorDetails() + { + + } + } + /// Synchronization error details. + public partial interface ISyncErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Catalog items that have conflicting names. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Catalog items that have conflicting names.", + SerializedName = @"conflicts", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[] Conflict { get; } + /// Errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Errors that occured during synchronization.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[] Error { get; } + /// An identifier for the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string OperationErrorCode { get; set; } + /// A message describing the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string OperationErrorMessage { get; set; } + + } + /// Synchronization error details. + internal partial interface ISyncErrorDetailsInternal + + { + /// Catalog items that have conflicting names. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogConflictError[] Conflict { get; set; } + /// Errors that occured during synchronization. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogSyncError[] Error { get; set; } + /// Error information for the overall synchronization operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails OperationError { get; set; } + /// An identifier for the error. + string OperationErrorCode { get; set; } + /// A message describing the error. + string OperationErrorMessage { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.json.cs new file mode 100644 index 000000000000..ec94ca397972 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncErrorDetails.json.cs @@ -0,0 +1,137 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Synchronization error details. + public partial class SyncErrorDetails + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new SyncErrorDetails(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal SyncErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_operationError = If( json?.PropertyT("operationError"), out var __jsonOperationError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogErrorDetails.FromJson(__jsonOperationError) : OperationError;} + {_conflict = If( json?.PropertyT("conflicts"), out var __jsonConflicts) ? If( __jsonConflicts as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogConflictError) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogConflictError.FromJson(__u) )) ))() : null : Conflict;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ICatalogSyncError) (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogSyncError.FromJson(__p) )) ))() : null : Error;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._operationError ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._operationError.ToJson(null,serializationMode) : null, "operationError" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._conflict) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __x in this._conflict ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("conflicts",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._error) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.XNodeArray(); + foreach( var __s in this._error ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("errors",__r); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.PowerShell.cs new file mode 100644 index 000000000000..f7ca909beaed --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.PowerShell.cs @@ -0,0 +1,184 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// Stats of the synchronization. + [System.ComponentModel.TypeConverter(typeof(SyncStatsTypeConverter))] + public partial class SyncStats + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ISyncStats DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SyncStats(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.DevCenter.Models.Api20231001Preview.ISyncStats DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SyncStats(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.DevCenter.Models.Api20231001Preview.ISyncStats FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SyncStats(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Added")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Added = (int?) content.GetValueForProperty("Added",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Added, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Updated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Updated = (int?) content.GetValueForProperty("Updated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Updated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Unchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Unchanged = (int?) content.GetValueForProperty("Unchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Unchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Removed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Removed = (int?) content.GetValueForProperty("Removed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Removed, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).ValidationError = (int?) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).ValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).SynchronizationError = (int?) content.GetValueForProperty("SynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).SynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SyncStats(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Added")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Added = (int?) content.GetValueForProperty("Added",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Added, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Updated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Updated = (int?) content.GetValueForProperty("Updated",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Updated, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Unchanged")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Unchanged = (int?) content.GetValueForProperty("Unchanged",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Unchanged, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("Removed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Removed = (int?) content.GetValueForProperty("Removed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).Removed, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ValidationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).ValidationError = (int?) content.GetValueForProperty("ValidationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).ValidationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SynchronizationError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).SynchronizationError = (int?) content.GetValueForProperty("SynchronizationError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal)this).SynchronizationError, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Stats of the synchronization. + [System.ComponentModel.TypeConverter(typeof(SyncStatsTypeConverter))] + public partial interface ISyncStats + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.TypeConverter.cs new file mode 100644 index 000000000000..06e1fa1fcba9 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SyncStatsTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20231001Preview.ISyncStats ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SyncStats.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SyncStats.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SyncStats.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.cs new file mode 100644 index 000000000000..eb6d4ee9a095 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.cs @@ -0,0 +1,154 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Stats of the synchronization. + public partial class SyncStats : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal + { + + /// Backing field for property. + private int? _added; + + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? Added { get => this._added; } + + /// Internal Acessors for Added + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.Added { get => this._added; set { {_added = value;} } } + + /// Internal Acessors for Removed + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.Removed { get => this._removed; set { {_removed = value;} } } + + /// Internal Acessors for SynchronizationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.SynchronizationError { get => this._synchronizationError; set { {_synchronizationError = value;} } } + + /// Internal Acessors for Unchanged + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.Unchanged { get => this._unchanged; set { {_unchanged = value;} } } + + /// Internal Acessors for Updated + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.Updated { get => this._updated; set { {_updated = value;} } } + + /// Internal Acessors for ValidationError + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStatsInternal.ValidationError { get => this._validationError; set { {_validationError = value;} } } + + /// Backing field for property. + private int? _removed; + + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? Removed { get => this._removed; } + + /// Backing field for property. + private int? _synchronizationError; + + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? SynchronizationError { get => this._synchronizationError; } + + /// Backing field for property. + private int? _unchanged; + + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? Unchanged { get => this._unchanged; } + + /// Backing field for property. + private int? _updated; + + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? Updated { get => this._updated; } + + /// Backing field for property. + private int? _validationError; + + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public int? ValidationError { get => this._validationError; } + + /// Creates an new instance. + public SyncStats() + { + + } + } + /// Stats of the synchronization. + public partial interface ISyncStats : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// Count of catalog items added during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items added during synchronization.", + SerializedName = @"added", + PossibleTypes = new [] { typeof(int) })] + int? Added { get; } + /// Count of catalog items removed during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items removed during synchronization.", + SerializedName = @"removed", + PossibleTypes = new [] { typeof(int) })] + int? Removed { get; } + /// Count of synchronization errors that occured during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of synchronization errors that occured during synchronization.", + SerializedName = @"synchronizationErrors", + PossibleTypes = new [] { typeof(int) })] + int? SynchronizationError { get; } + /// Count of catalog items that were unchanged during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that were unchanged during synchronization.", + SerializedName = @"unchanged", + PossibleTypes = new [] { typeof(int) })] + int? Unchanged { get; } + /// Count of catalog items updated during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items updated during synchronization.", + SerializedName = @"updated", + PossibleTypes = new [] { typeof(int) })] + int? Updated { get; } + /// Count of catalog items that had validation errors during synchronization. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Count of catalog items that had validation errors during synchronization.", + SerializedName = @"validationErrors", + PossibleTypes = new [] { typeof(int) })] + int? ValidationError { get; } + + } + /// Stats of the synchronization. + internal partial interface ISyncStatsInternal + + { + /// Count of catalog items added during synchronization. + int? Added { get; set; } + /// Count of catalog items removed during synchronization. + int? Removed { get; set; } + /// Count of synchronization errors that occured during synchronization. + int? SynchronizationError { get; set; } + /// Count of catalog items that were unchanged during synchronization. + int? Unchanged { get; set; } + /// Count of catalog items updated during synchronization. + int? Updated { get; set; } + /// Count of catalog items that had validation errors during synchronization. + int? ValidationError { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.json.cs new file mode 100644 index 000000000000..5a20b5b60536 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/SyncStats.json.cs @@ -0,0 +1,136 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// Stats of the synchronization. + public partial class SyncStats + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncStats FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new SyncStats(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal SyncStats(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_added = If( json?.PropertyT("added"), out var __jsonAdded) ? (int?)__jsonAdded : Added;} + {_updated = If( json?.PropertyT("updated"), out var __jsonUpdated) ? (int?)__jsonUpdated : Updated;} + {_unchanged = If( json?.PropertyT("unchanged"), out var __jsonUnchanged) ? (int?)__jsonUnchanged : Unchanged;} + {_removed = If( json?.PropertyT("removed"), out var __jsonRemoved) ? (int?)__jsonRemoved : Removed;} + {_validationError = If( json?.PropertyT("validationErrors"), out var __jsonValidationErrors) ? (int?)__jsonValidationErrors : ValidationError;} + {_synchronizationError = If( json?.PropertyT("synchronizationErrors"), out var __jsonSynchronizationErrors) ? (int?)__jsonSynchronizationErrors : SynchronizationError;} + 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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._added ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._added) : null, "added" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._updated ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._updated) : null, "updated" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._unchanged ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._unchanged) : null, "unchanged" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._removed ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._removed) : null, "removed" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._validationError ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._validationError) : null, "validationErrors" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._synchronizationError ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((int)this._synchronizationError) : null, "synchronizationErrors" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.PowerShell.cs similarity index 89% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.PowerShell.cs index c897ecbecbfb..1c86580dc053 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Tags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.ITags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Tags(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.DevCenter.Models.Api20230401.ITags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Tags(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IT /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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. @@ -107,7 +107,7 @@ internal Tags(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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.TypeConverter.cs similarity index 98% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.TypeConverter.cs index f0bd8f8b0e7d..21855a393c73 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ITags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.cs index 2867510a6888..8b7ccd00e36f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Resource tags. public partial class Tags : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITagsInternal { /// Creates an new instance. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.dictionary.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.dictionary.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.dictionary.cs index ec52ce016a4d..1936c3c9e9cb 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.dictionary.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.Tags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.json.cs index 646b29e5b583..6cbcec1435fe 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Tags.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Tags.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Tags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Tags(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.PowerShell.cs similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.PowerShell.cs index f2d3229cdb44..e76caa187dea 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class TrackedResourceUpdate partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.ITrackedResourceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceUpdate(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.DevCenter.Models.Api20230401.ITrackedResourceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceUpdate(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IT /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IT public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +110,17 @@ internal TrackedResourceUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, 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. @@ -133,11 +135,11 @@ internal TrackedResourceUpdate(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.TagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.TagsTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal)this).Location, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.TypeConverter.cs index 7fdee58b9d3d..33217fe7fbc3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ITrackedResourceUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.cs similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.cs index b2a46d4ef4a6..7405b7e66cdc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Base tracked resource type for PATCH updates public partial class TrackedResourceUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdateInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class TrackedResourceUpdate : public string Location { get => this._location; set => this._location = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags _tag; /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags()); set => this._tag = value; } /// Creates an new instance. public TrackedResourceUpdate() @@ -51,8 +51,8 @@ public partial interface ITrackedResourceUpdate : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } } /// Base tracked resource type for PATCH updates @@ -62,7 +62,7 @@ internal partial interface ITrackedResourceUpdateInternal /// The geo-location where the resource lives string Location { get; set; } /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.json.cs similarity index 95% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.json.cs index 9fbd994b0d85..8aea520f26cc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/TrackedResourceUpdate.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/TrackedResourceUpdate.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITrackedResourceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITrackedResourceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new TrackedResourceUpdate(json) : null; } @@ -102,7 +102,7 @@ internal TrackedResourceUpdate(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runt { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Tags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Tags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.PowerShell.cs new file mode 100644 index 000000000000..b25930da6e33 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.PowerShell.cs @@ -0,0 +1,192 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// The core usage details. + [System.ComponentModel.TypeConverter(typeof(UsageTypeConverter))] + public partial class Usage + { + + /// + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IUsage DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Usage(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.DevCenter.Models.Api20231001Preview.IUsage DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Usage(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.DevCenter.Models.Api20231001Preview.IUsage FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Usage(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageNameTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).CurrentValue = (long?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).CurrentValue, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Limit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Limit = (long?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Limit, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Unit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Unit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit?) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Unit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit.CreateFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("NameLocalizedValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); + } + if (content.Contains("NameValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameValue, 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 Usage(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageNameTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).CurrentValue = (long?) content.GetValueForProperty("CurrentValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).CurrentValue, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Limit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Limit = (long?) content.GetValueForProperty("Limit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Limit, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("Unit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Unit = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit?) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Unit, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit.CreateFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("NameLocalizedValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameLocalizedValue = (string) content.GetValueForProperty("NameLocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameLocalizedValue, global::System.Convert.ToString); + } + if (content.Contains("NameValue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameValue = (string) content.GetValueForProperty("NameValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal)this).NameValue, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The core usage details. + [System.ComponentModel.TypeConverter(typeof(UsageTypeConverter))] + public partial interface IUsage + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.TypeConverter.cs index 2c018bb1f37d..ac83a927b120 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IUsage ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.cs similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.cs index 1dcf4674e052..4cb101bce9de 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// The core usage details. public partial class Usage : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal { /// Backing field for property. @@ -20,6 +20,13 @@ public partial class Usage : [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] public long? CurrentValue { get => this._currentValue; set => this._currentValue = value; } + /// Backing field for property. + private string _id; + + /// The fully qualified arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. private long? _limit; @@ -28,22 +35,22 @@ public partial class Usage : public long? Limit { get => this._limit; set => this._limit = value; } /// Internal Acessors for Name - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageName()); set { {_name = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageInternal.Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageName()); set { {_name = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName _name; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName _name; /// The name. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageName()); set => this._name = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName Name { get => (this._name = this._name ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageName()); set => this._name = value; } /// The localized name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)Name).LocalizedValue = value ?? null; } + public string NameLocalizedValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)Name).LocalizedValue; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)Name).LocalizedValue = value ?? null; } /// The name of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] - public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)Name).Value = value ?? null; } + public string NameValue { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)Name).Value; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)Name).Value = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.UsageUnit? _unit; @@ -70,6 +77,14 @@ public partial interface IUsage : SerializedName = @"currentValue", PossibleTypes = new [] { typeof(long) })] long? CurrentValue { get; set; } + /// The fully qualified arm resource id. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The fully qualified arm resource id.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } /// The limit integer. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -110,10 +125,12 @@ internal partial interface IUsageInternal { /// The current usage. long? CurrentValue { get; set; } + /// The fully qualified arm resource id. + string Id { get; set; } /// The limit integer. long? Limit { get; set; } /// The name. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName Name { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName Name { get; set; } /// The localized name of the resource. string NameLocalizedValue { get; set; } /// The name of the resource. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.json.cs index f39b7135edd5..d2f7d0d14759 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/Usage.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/Usage.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Usage partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new Usage(json) : null; } @@ -88,6 +88,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson AddIf( null != this._currentValue ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((long)this._currentValue) : null, "currentValue" ,container.Add ); AddIf( null != this._limit ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNumber((long)this._limit) : null, "limit" ,container.Add ); AddIf( null != (((object)this._unit)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._unit.ToString()) : null, "unit" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; } @@ -104,10 +105,11 @@ internal Usage(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObj { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UsageName.FromJson(__jsonName) : Name;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UsageName.FromJson(__jsonName) : Name;} {_currentValue = If( json?.PropertyT("currentValue"), out var __jsonCurrentValue) ? (long?)__jsonCurrentValue : CurrentValue;} {_limit = If( json?.PropertyT("limit"), out var __jsonLimit) ? (long?)__jsonLimit : Limit;} {_unit = If( json?.PropertyT("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)Unit;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.PowerShell.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.PowerShell.cs index 9654ae3b6e88..3e4f1a6cfc70 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UsageName partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IUsageName DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UsageName(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.DevCenter.Models.Api20230401.IUsageName DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UsageName(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal UsageName(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("LocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).Value, 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. @@ -133,11 +133,11 @@ internal UsageName(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("LocalizedValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).LocalizedValue = (string) content.GetValueForProperty("LocalizedValue",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).LocalizedValue, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal)this).Value, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.TypeConverter.cs index 551b8f292ff5..5d6ed32bdd5c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IUsageName ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.cs index a15d31db4499..f518f164c65e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// The Usage Names. public partial class UsageName : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageNameInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageNameInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.json.cs similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.json.cs index b7937498c51f..9dff8805505f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UsageName.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UsageName.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UsageName partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsageName FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsageName FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new UsageName(json) : null; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.PowerShell.cs similarity index 88% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.PowerShell.cs index dd9b5f2248eb..6ff4f5925aea 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class UserRoleAssignmentRoles partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserRoleAssignmentRoles(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.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserRoleAssignmentRoles(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +114,7 @@ internal UserRoleAssignmentRoles(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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.TypeConverter.cs index be2c975435da..f8b2d54bf13b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.cs similarity index 90% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.cs index dd67376cc939..56e195ef385f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// A map of roles to assign to the parent user. public partial class UserRoleAssignmentRoles : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRolesInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRolesInternal { /// Creates an new instance. @@ -22,7 +22,7 @@ public UserRoleAssignmentRoles() /// A map of roles to assign to the parent user. public partial interface IUserRoleAssignmentRoles : Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray { } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.dictionary.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.dictionary.cs new file mode 100644 index 000000000000..5e81f723a396 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenter.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + public partial class UserRoleAssignmentRoles : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentRole value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentRoles source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.json.cs similarity index 91% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.json.cs index 54b8f7751d89..8ddd599c9312 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentRoles.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentRoles.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UserRoleAssignmentRoles partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new UserRoleAssignmentRoles(json) : null; } @@ -84,7 +84,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } @@ -102,7 +102,7 @@ internal UserRoleAssignmentRoles(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Ru { return; } - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentRole.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentRole.FromJson(j) ,exclusions ); AfterFromJson(json); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.PowerShell.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.PowerShell.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.PowerShell.cs index 52adabd24472..2486f4ab9080 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class UserRoleAssignmentValue partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenter.Models.Api20230401.IUserRoleAssignmentValue DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserRoleAssignmentValue(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.DevCenter.Models.Api20230401.IUserRoleAssignmentValue DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserRoleAssignmentValue(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IU public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,13 +110,13 @@ internal UserRoleAssignmentValue(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValueInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValueInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentRolesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValueInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValueInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentRolesTypeConverter.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,7 +131,7 @@ internal UserRoleAssignmentValue(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Role")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValueInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValueInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentRolesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValueInternal)this).Role = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValueInternal)this).Role, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentRolesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.TypeConverter.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.TypeConverter.cs index a90334586fc1..e3f5054864bd 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IUserRoleAssignmentValue ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.cs similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.cs index 060ba2a2dc51..328eb1bbe3d4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; /// Mapping of user object ID to role assignments. public partial class UserRoleAssignmentValue : - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue, - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValueInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValueInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles _role; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles _role; /// A map of roles to assign to the parent user. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles Role { get => (this._role = this._role ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentRoles()); set => this._role = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles Role { get => (this._role = this._role ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentRoles()); set => this._role = value; } /// Creates an new instance. public UserRoleAssignmentValue() @@ -36,8 +36,8 @@ public partial interface IUserRoleAssignmentValue : ReadOnly = false, Description = @"A map of roles to assign to the parent user.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles Role { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles Role { get; set; } } /// Mapping of user object ID to role assignments. @@ -45,7 +45,7 @@ internal partial interface IUserRoleAssignmentValueInternal { /// A map of roles to assign to the parent user. - Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentRoles Role { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentRoles Role { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.json.cs similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.json.cs rename to src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.json.cs index a2b5d3a16888..3219d070380e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20230401/UserRoleAssignmentValue.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api20231001Preview/UserRoleAssignmentValue.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.DevCenter.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UserRoleAssignmentValue partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUserRoleAssignmentValue FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUserRoleAssignmentValue FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new UserRoleAssignmentValue(json) : null; } @@ -101,7 +101,7 @@ internal UserRoleAssignmentValue(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Ru { return; } - {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.UserRoleAssignmentRoles.FromJson(__jsonRoles) : Role;} + {_role = If( json?.PropertyT("roles"), out var __jsonRoles) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.UserRoleAssignmentRoles.FromJson(__jsonRoles) : Role;} AfterFromJson(json); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.PowerShell.cs new file mode 100644 index 000000000000..6f294b6d8ac6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.PowerShell.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.DevCenter.Models.Api40 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// All Customer-managed key encryption properties for the resource. + [System.ComponentModel.TypeConverter(typeof(CustomerManagedKeyEncryptionTypeConverter))] + public partial class CustomerManagedKeyEncryption + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomerManagedKeyEncryption(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("KeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("KeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyUrl = (string) content.GetValueForProperty("KeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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 CustomerManagedKeyEncryption(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("KeyEncryptionKeyIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity) content.GetValueForProperty("KeyEncryptionKeyIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentity, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("KeyEncryptionKeyUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyUrl = (string) content.GetValueForProperty("KeyEncryptionKeyUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("KeyEncryptionKeyIdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityUserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityUserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("KeyEncryptionKeyIdentityDelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId = (string) content.GetValueForProperty("KeyEncryptionKeyIdentityDelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal)this).KeyEncryptionKeyIdentityDelegatedIdentityClientId, 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.DevCenter.Models.Api40.ICustomerManagedKeyEncryption DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomerManagedKeyEncryption(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.DevCenter.Models.Api40.ICustomerManagedKeyEncryption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomerManagedKeyEncryption(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.DevCenter.Models.Api40.ICustomerManagedKeyEncryption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// All Customer-managed key encryption properties for the resource. + [System.ComponentModel.TypeConverter(typeof(CustomerManagedKeyEncryptionTypeConverter))] + public partial interface ICustomerManagedKeyEncryption + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.TypeConverter.cs new file mode 100644 index 000000000000..9c9cba7a9522 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.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.DevCenter.Models.Api40 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomerManagedKeyEncryptionTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api40.ICustomerManagedKeyEncryption ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomerManagedKeyEncryption.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomerManagedKeyEncryption.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomerManagedKeyEncryption.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.cs new file mode 100644 index 000000000000..b1c2268baf38 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.cs @@ -0,0 +1,142 @@ +// 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.DevCenter.Models.Api40 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// All Customer-managed key encryption properties for the resource. + public partial class CustomerManagedKeyEncryption : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity _keyEncryptionKeyIdentity; + + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity KeyEncryptionKeyIdentity { get => (this._keyEncryptionKeyIdentity = this._keyEncryptionKeyIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentity()); set => this._keyEncryptionKeyIdentity = value; } + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).DelegatedIdentityClientId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).DelegatedIdentityClientId = value ?? null; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Inlined)] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).UserAssignedIdentityResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)KeyEncryptionKeyIdentity).UserAssignedIdentityResourceId = value ?? null; } + + /// Backing field for property. + private string _keyEncryptionKeyUrl; + + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string KeyEncryptionKeyUrl { get => this._keyEncryptionKeyUrl; set => this._keyEncryptionKeyUrl = value; } + + /// Internal Acessors for KeyEncryptionKeyIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionInternal.KeyEncryptionKeyIdentity { get => (this._keyEncryptionKeyIdentity = this._keyEncryptionKeyIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentity()); set { {_keyEncryptionKeyIdentity = value;} } } + + /// Creates an new instance. + public CustomerManagedKeyEncryption() + { + + } + } + /// All Customer-managed key encryption properties for the resource. + public partial interface ICustomerManagedKeyEncryption : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + string KeyEncryptionKeyUrl { get; set; } + + } + /// All Customer-managed key encryption properties for the resource. + internal partial interface ICustomerManagedKeyEncryptionInternal + + { + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity KeyEncryptionKeyIdentity { get; set; } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? KeyEncryptionKeyIdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get; set; } + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + string KeyEncryptionKeyUrl { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.json.cs new file mode 100644 index 000000000000..f931f5bdd5c3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryption.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.DevCenter.Models.Api40 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// All Customer-managed key encryption properties for the resource. + public partial class CustomerManagedKeyEncryption + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomerManagedKeyEncryption(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_keyEncryptionKeyIdentity = If( json?.PropertyT("keyEncryptionKeyIdentity"), out var __jsonKeyEncryptionKeyIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.CustomerManagedKeyEncryptionKeyIdentity.FromJson(__jsonKeyEncryptionKeyIdentity) : KeyEncryptionKeyIdentity;} + {_keyEncryptionKeyUrl = If( json?.PropertyT("keyEncryptionKeyUrl"), out var __jsonKeyEncryptionKeyUrl) ? (string)__jsonKeyEncryptionKeyUrl : (string)KeyEncryptionKeyUrl;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomerManagedKeyEncryption(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._keyEncryptionKeyIdentity ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) this._keyEncryptionKeyIdentity.ToJson(null,serializationMode) : null, "keyEncryptionKeyIdentity" ,container.Add ); + AddIf( null != (((object)this._keyEncryptionKeyUrl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._keyEncryptionKeyUrl.ToString()) : null, "keyEncryptionKeyUrl" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.PowerShell.cs new file mode 100644 index 000000000000..f7accb83f606 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.PowerShell.cs @@ -0,0 +1,167 @@ +// 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.DevCenter.Models.Api40 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + [System.ComponentModel.TypeConverter(typeof(CustomerManagedKeyEncryptionKeyIdentityTypeConverter))] + public partial class CustomerManagedKeyEncryptionKeyIdentity + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomerManagedKeyEncryptionKeyIdentity(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("UserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).UserAssignedIdentityResourceId = (string) content.GetValueForProperty("UserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).UserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("DelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).DelegatedIdentityClientId = (string) content.GetValueForProperty("DelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).DelegatedIdentityClientId, 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 CustomerManagedKeyEncryptionKeyIdentity(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType.CreateFrom); + } + if (content.Contains("UserAssignedIdentityResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).UserAssignedIdentityResourceId = (string) content.GetValueForProperty("UserAssignedIdentityResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).UserAssignedIdentityResourceId, global::System.Convert.ToString); + } + if (content.Contains("DelegatedIdentityClientId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).DelegatedIdentityClientId = (string) content.GetValueForProperty("DelegatedIdentityClientId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal)this).DelegatedIdentityClientId, 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.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomerManagedKeyEncryptionKeyIdentity(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.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomerManagedKeyEncryptionKeyIdentity(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.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + [System.ComponentModel.TypeConverter(typeof(CustomerManagedKeyEncryptionKeyIdentityTypeConverter))] + public partial interface ICustomerManagedKeyEncryptionKeyIdentity + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.TypeConverter.cs new file mode 100644 index 000000000000..4cfcc341f61e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.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.DevCenter.Models.Api40 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomerManagedKeyEncryptionKeyIdentityTypeConverter : 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.DevCenter.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomerManagedKeyEncryptionKeyIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomerManagedKeyEncryptionKeyIdentity.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomerManagedKeyEncryptionKeyIdentity.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/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.cs new file mode 100644 index 000000000000..4b68eb707b77 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.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.DevCenter.Models.Api40 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + public partial class CustomerManagedKeyEncryptionKeyIdentity : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentityInternal + { + + /// Backing field for property. + private string _delegatedIdentityClientId; + + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string DelegatedIdentityClientId { get => this._delegatedIdentityClientId; set => this._delegatedIdentityClientId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? _identityType; + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? IdentityType { get => this._identityType; set => this._identityType = value; } + + /// Backing field for property. + private string _userAssignedIdentityResourceId; + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string UserAssignedIdentityResourceId { get => this._userAssignedIdentityResourceId; set => this._userAssignedIdentityResourceId = value; } + + /// Creates an new instance. + public CustomerManagedKeyEncryptionKeyIdentity() + { + + } + } + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + public partial interface ICustomerManagedKeyEncryptionKeyIdentity : + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IJsonSerializable + { + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + string DelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? IdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + string UserAssignedIdentityResourceId { get; set; } + + } + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + internal partial interface ICustomerManagedKeyEncryptionKeyIdentityInternal + + { + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + string DelegatedIdentityClientId { get; set; } + /// Values can be systemAssignedIdentity or userAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType? IdentityType { get; set; } + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + string UserAssignedIdentityResourceId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.json.cs new file mode 100644 index 000000000000..12f30f7a084d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/Api40/CustomerManagedKeyEncryptionKeyIdentity.json.cs @@ -0,0 +1,116 @@ +// 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.DevCenter.Models.Api40 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + + /// + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// + public partial class CustomerManagedKeyEncryptionKeyIdentity + { + + /// + /// 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject instance to deserialize from. + internal CustomerManagedKeyEncryptionKeyIdentity(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_identityType = If( json?.PropertyT("identityType"), out var __jsonIdentityType) ? (string)__jsonIdentityType : (string)IdentityType;} + {_userAssignedIdentityResourceId = If( json?.PropertyT("userAssignedIdentityResourceId"), out var __jsonUserAssignedIdentityResourceId) ? (string)__jsonUserAssignedIdentityResourceId : (string)UserAssignedIdentityResourceId;} + {_delegatedIdentityClientId = If( json?.PropertyT("delegatedIdentityClientId"), out var __jsonDelegatedIdentityClientId) ? (string)__jsonDelegatedIdentityClientId : (string)DelegatedIdentityClientId;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api40.ICustomerManagedKeyEncryptionKeyIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject json ? new CustomerManagedKeyEncryptionKeyIdentity(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.DevCenter.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._identityType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._identityType.ToString()) : null, "identityType" ,container.Add ); + AddIf( null != (((object)this._userAssignedIdentityResourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._userAssignedIdentityResourceId.ToString()) : null, "userAssignedIdentityResourceId" ,container.Add ); + AddIf( null != (((object)this._delegatedIdentityClientId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._delegatedIdentityClientId.ToString()) : null, "delegatedIdentityClientId" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.PowerShell.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.PowerShell.cs index ae591af05de1..9793c5f547c6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.PowerShell.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.PowerShell.cs @@ -145,6 +145,14 @@ internal DevCenterIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).OperationId, global::System.Convert.ToString); } + if (content.Contains("TaskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).TaskName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).EnvironmentDefinitionName = (string) content.GetValueForProperty("EnvironmentDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).EnvironmentDefinitionName, global::System.Convert.ToString); + } if (content.Contains("PoolName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).PoolName, global::System.Convert.ToString); @@ -230,6 +238,14 @@ internal DevCenterIdentity(global::System.Management.Automation.PSObject content { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).OperationId, global::System.Convert.ToString); } + if (content.Contains("TaskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).TaskName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentDefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).EnvironmentDefinitionName = (string) content.GetValueForProperty("EnvironmentDefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).EnvironmentDefinitionName, global::System.Convert.ToString); + } if (content.Contains("PoolName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentityInternal)this).PoolName, global::System.Convert.ToString); diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.cs index 719da5d412f8..d24e0a9a31ab 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.cs @@ -40,6 +40,13 @@ public partial class DevCenterIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + /// Backing field for property. + private string _environmentDefinitionName; + + /// The name of the Environment Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string EnvironmentDefinitionName { get => this._environmentDefinitionName; set => this._environmentDefinitionName = value; } + /// Backing field for property. private string _environmentTypeName; @@ -124,6 +131,13 @@ public partial class DevCenterIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Backing field for property. + private string _taskName; + + /// The name of the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.PropertyOrigin.Owned)] + public string TaskName { get => this._taskName; set => this._taskName = value; } + /// Backing field for property. private string _versionName; @@ -172,6 +186,14 @@ public partial interface IDevCenterIdentity : SerializedName = @"devCenterName", PossibleTypes = new [] { typeof(string) })] string DevCenterName { get; set; } + /// The name of the Environment Definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Environment Definition.", + SerializedName = @"environmentDefinitionName", + PossibleTypes = new [] { typeof(string) })] + string EnvironmentDefinitionName { get; set; } /// The name of the environment type. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -268,6 +290,14 @@ public partial interface IDevCenterIdentity : SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } + /// The name of the Task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the Task.", + SerializedName = @"taskName", + PossibleTypes = new [] { typeof(string) })] + string TaskName { get; set; } /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( Required = false, @@ -289,6 +319,8 @@ internal partial interface IDevCenterIdentityInternal string DevBoxDefinitionName { get; set; } /// The name of the devcenter. string DevCenterName { get; set; } + /// The name of the Environment Definition. + string EnvironmentDefinitionName { get; set; } /// The name of the environment type. string EnvironmentTypeName { get; set; } /// The name of the gallery. @@ -313,6 +345,8 @@ internal partial interface IDevCenterIdentityInternal string ScheduleName { get; set; } /// The ID of the target subscription. string SubscriptionId { get; set; } + /// The name of the Task. + string TaskName { get; set; } /// The version of the image. string VersionName { get; set; } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.json.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.json.cs index 69e9013bc6ef..f9ce44d55db5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.json.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Models/DevCenterIdentity.json.cs @@ -77,6 +77,8 @@ internal DevCenterIdentity(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime. {_devBoxDefinitionName = If( json?.PropertyT("devBoxDefinitionName"), out var __jsonDevBoxDefinitionName) ? (string)__jsonDevBoxDefinitionName : (string)DevBoxDefinitionName;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} + {_taskName = If( json?.PropertyT("taskName"), out var __jsonTaskName) ? (string)__jsonTaskName : (string)TaskName;} + {_environmentDefinitionName = If( json?.PropertyT("environmentDefinitionName"), out var __jsonEnvironmentDefinitionName) ? (string)__jsonEnvironmentDefinitionName : (string)EnvironmentDefinitionName;} {_poolName = If( json?.PropertyT("poolName"), out var __jsonPoolName) ? (string)__jsonPoolName : (string)PoolName;} {_scheduleName = If( json?.PropertyT("scheduleName"), out var __jsonScheduleName) ? (string)__jsonScheduleName : (string)ScheduleName;} {_networkConnectionName = If( json?.PropertyT("networkConnectionName"), out var __jsonNetworkConnectionName) ? (string)__jsonNetworkConnectionName : (string)NetworkConnectionName;} @@ -128,6 +130,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode ToJson AddIf( null != (((object)this._devBoxDefinitionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._devBoxDefinitionName.ToString()) : null, "devBoxDefinitionName" ,container.Add ); AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); + AddIf( null != (((object)this._taskName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._taskName.ToString()) : null, "taskName" ,container.Add ); + AddIf( null != (((object)this._environmentDefinitionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._environmentDefinitionName.ToString()) : null, "environmentDefinitionName" ,container.Add ); AddIf( null != (((object)this._poolName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._poolName.ToString()) : null, "poolName" ,container.Add ); AddIf( null != (((object)this._scheduleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._scheduleName.ToString()) : null, "scheduleName" ,container.Add ); AddIf( null != (((object)this._networkConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Json.JsonString(this._networkConnectionName.ToString()) : null, "networkConnectionName" ,container.Add ); diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.Completer.cs new file mode 100644 index 000000000000..181a1c41da99 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.Completer.cs @@ -0,0 +1,39 @@ +// 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.DevCenter.Support +{ + + /// The connection state of the catalog. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionStateTypeConverter))] + public partial struct CatalogConnectionState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Connected".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Connected'", "Connected", global::System.Management.Automation.CompletionResultType.ParameterValue, "Connected"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disconnected".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disconnected'", "Disconnected", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disconnected"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.TypeConverter.cs new file mode 100644 index 000000000000..b1b0fb0d7748 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// The connection state of the catalog. + public partial class CatalogConnectionStateTypeConverter : + 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) => true; + + /// + /// 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 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) => CatalogConnectionState.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.cs new file mode 100644 index 000000000000..d2685c6d5f4f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogConnectionState.cs @@ -0,0 +1,98 @@ +// 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.DevCenter.Support +{ + + /// The connection state of the catalog. + public partial struct CatalogConnectionState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState Connected = @"Connected"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState Disconnected = @"Disconnected"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private CatalogConnectionState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to CatalogConnectionState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CatalogConnectionState(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type CatalogConnectionState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CatalogConnectionState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CatalogConnectionState && Equals((CatalogConnectionState)obj); + } + + /// Returns hashCode for enum CatalogConnectionState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CatalogConnectionState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CatalogConnectionState + /// the value to convert to an instance of . + + public static implicit operator CatalogConnectionState(string value) + { + return new CatalogConnectionState(value); + } + + /// Implicit operator to convert CatalogConnectionState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e) + { + return e._value; + } + + /// Overriding != operator for enum CatalogConnectionState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CatalogConnectionState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogConnectionState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.Completer.cs new file mode 100644 index 000000000000..e155a0e1617c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.Completer.cs @@ -0,0 +1,47 @@ +// 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.DevCenter.Support +{ + + /// Catalog resource validation status + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatusTypeConverter))] + public partial struct CatalogResourceValidationStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Unknown".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Unknown'", "Unknown", global::System.Management.Automation.CompletionResultType.ParameterValue, "Unknown"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Pending".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Pending'", "Pending", global::System.Management.Automation.CompletionResultType.ParameterValue, "Pending"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.TypeConverter.cs new file mode 100644 index 000000000000..6aa937b9f623 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// Catalog resource validation status + public partial class CatalogResourceValidationStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => CatalogResourceValidationStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.cs new file mode 100644 index 000000000000..c174260e67e7 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogResourceValidationStatus.cs @@ -0,0 +1,108 @@ +// 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.DevCenter.Support +{ + + /// Catalog resource validation status + public partial struct CatalogResourceValidationStatus : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus Failed = @"Failed"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus Pending = @"Pending"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus Succeeded = @"Succeeded"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus Unknown = @"Unknown"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private CatalogResourceValidationStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to CatalogResourceValidationStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CatalogResourceValidationStatus(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type CatalogResourceValidationStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type CatalogResourceValidationStatus (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CatalogResourceValidationStatus && Equals((CatalogResourceValidationStatus)obj); + } + + /// Returns hashCode for enum CatalogResourceValidationStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CatalogResourceValidationStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CatalogResourceValidationStatus + /// the value to convert to an instance of . + + public static implicit operator CatalogResourceValidationStatus(string value) + { + return new CatalogResourceValidationStatus(value); + } + + /// Implicit operator to convert CatalogResourceValidationStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e) + { + return e._value; + } + + /// Overriding != operator for enum CatalogResourceValidationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CatalogResourceValidationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogResourceValidationStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.Completer.cs new file mode 100644 index 000000000000..af124513b1a6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.Completer.cs @@ -0,0 +1,39 @@ +// 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.DevCenter.Support +{ + + /// Indicates the type of sync that is configured for the catalog. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncTypeTypeConverter))] + public partial struct CatalogSyncType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Manual".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Manual'", "Manual", global::System.Management.Automation.CompletionResultType.ParameterValue, "Manual"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Scheduled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Scheduled'", "Scheduled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Scheduled"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.TypeConverter.cs new file mode 100644 index 000000000000..a1e25c15b5c6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// Indicates the type of sync that is configured for the catalog. + public partial class CatalogSyncTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => CatalogSyncType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.cs new file mode 100644 index 000000000000..415808adc08f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CatalogSyncType.cs @@ -0,0 +1,98 @@ +// 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.DevCenter.Support +{ + + /// Indicates the type of sync that is configured for the catalog. + public partial struct CatalogSyncType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType Manual = @"Manual"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType Scheduled = @"Scheduled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private CatalogSyncType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to CatalogSyncType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CatalogSyncType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type CatalogSyncType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CatalogSyncType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CatalogSyncType && Equals((CatalogSyncType)obj); + } + + /// Returns hashCode for enum CatalogSyncType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CatalogSyncType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CatalogSyncType + /// the value to convert to an instance of . + + public static implicit operator CatalogSyncType(string value) + { + return new CatalogSyncType(value); + } + + /// Implicit operator to convert CatalogSyncType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e) + { + return e._value; + } + + /// Overriding != operator for enum CatalogSyncType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CatalogSyncType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.Completer.cs new file mode 100644 index 000000000000..7409994e854b --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.Completer.cs @@ -0,0 +1,43 @@ +// 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.DevCenter.Support +{ + + /// Type of the input. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputTypeTypeConverter))] + public partial struct CustomizationTaskInputType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "string".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'string'", "string", global::System.Management.Automation.CompletionResultType.ParameterValue, "string"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "number".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'number'", "number", global::System.Management.Automation.CompletionResultType.ParameterValue, "number"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "boolean".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'boolean'", "boolean", global::System.Management.Automation.CompletionResultType.ParameterValue, "boolean"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.TypeConverter.cs new file mode 100644 index 000000000000..138ba89be162 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// Type of the input. + public partial class CustomizationTaskInputTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => CustomizationTaskInputType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.cs new file mode 100644 index 000000000000..ac551d07b2a4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/CustomizationTaskInputType.cs @@ -0,0 +1,102 @@ +// 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.DevCenter.Support +{ + + /// Type of the input. + public partial struct CustomizationTaskInputType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType Boolean = @"boolean"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType Number = @"number"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType String = @"string"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to CustomizationTaskInputType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CustomizationTaskInputType(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private CustomizationTaskInputType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CustomizationTaskInputType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CustomizationTaskInputType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CustomizationTaskInputType && Equals((CustomizationTaskInputType)obj); + } + + /// Returns hashCode for enum CustomizationTaskInputType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CustomizationTaskInputType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CustomizationTaskInputType + /// the value to convert to an instance of . + + public static implicit operator CustomizationTaskInputType(string value) + { + return new CustomizationTaskInputType(value); + } + + /// Implicit operator to convert CustomizationTaskInputType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e) + { + return e._value; + } + + /// Overriding != operator for enum CustomizationTaskInputType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CustomizationTaskInputType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CustomizationTaskInputType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.Completer.cs new file mode 100644 index 000000000000..c06abbff8a6c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.Completer.cs @@ -0,0 +1,43 @@ +// 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.DevCenter.Support +{ + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityTypeTypeConverter))] + public partial struct IdentityType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "systemAssignedIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'systemAssignedIdentity'", "systemAssignedIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "systemAssignedIdentity"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "userAssignedIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'userAssignedIdentity'", "userAssignedIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "userAssignedIdentity"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "delegatedResourceIdentity".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'delegatedResourceIdentity'", "delegatedResourceIdentity", global::System.Management.Automation.CompletionResultType.ParameterValue, "delegatedResourceIdentity"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.TypeConverter.cs new file mode 100644 index 000000000000..354e2dbaa43f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// Values can be systemAssignedIdentity or userAssignedIdentity + public partial class IdentityTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => IdentityType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.cs new file mode 100644 index 000000000000..658a40018750 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/IdentityType.cs @@ -0,0 +1,100 @@ +// 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.DevCenter.Support +{ + + /// Values can be systemAssignedIdentity or userAssignedIdentity + public partial struct IdentityType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType DelegatedResourceIdentity = @"delegatedResourceIdentity"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType SystemAssignedIdentity = @"systemAssignedIdentity"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType UserAssignedIdentity = @"userAssignedIdentity"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to IdentityType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new IdentityType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type IdentityType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type IdentityType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is IdentityType && Equals((IdentityType)obj); + } + + /// Returns hashCode for enum IdentityType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private IdentityType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for IdentityType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to IdentityType + /// the value to convert to an instance of . + + public static implicit operator IdentityType(string value) + { + return new IdentityType(value); + } + + /// Implicit operator to convert IdentityType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e) + { + return e._value; + } + + /// Overriding != operator for enum IdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum IdentityType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.Completer.cs index 7b288c4c96b7..68288c34b7ae 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.Completer.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.Completer.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support { - /// Argument completer implementation for LocalAdminStatus. + /// + /// Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators + /// on the Dev Box. + /// [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatusTypeConverter))] public partial struct LocalAdminStatus : System.Management.Automation.IArgumentCompleter diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.TypeConverter.cs index b429b229ad7a..3353d85a12d4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.TypeConverter.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.TypeConverter.cs @@ -6,7 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support { - /// TypeConverter implementation for LocalAdminStatus. + /// + /// Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators + /// on the Dev Box. + /// public partial class LocalAdminStatusTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.cs index 858f10305baa..f96935f9d2a8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/LocalAdminStatus.cs @@ -6,6 +6,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support { + /// + /// Local Administrator enable or disable status. Indicates whether owners of Dev Boxes are added as local administrators + /// on the Dev Box. + /// public partial struct LocalAdminStatus : System.IEquatable { diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.Completer.cs new file mode 100644 index 000000000000..42ed0aa6e362 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.Completer.cs @@ -0,0 +1,55 @@ +// 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.DevCenter.Support +{ + + /// The type of data a parameter accepts. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterTypeTypeConverter))] + public partial struct ParameterType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "array".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'array'", "array", global::System.Management.Automation.CompletionResultType.ParameterValue, "array"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "boolean".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'boolean'", "boolean", global::System.Management.Automation.CompletionResultType.ParameterValue, "boolean"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "integer".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'integer'", "integer", global::System.Management.Automation.CompletionResultType.ParameterValue, "integer"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "number".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'number'", "number", global::System.Management.Automation.CompletionResultType.ParameterValue, "number"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "object".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'object'", "object", global::System.Management.Automation.CompletionResultType.ParameterValue, "object"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "string".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'string'", "string", global::System.Management.Automation.CompletionResultType.ParameterValue, "string"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.TypeConverter.cs new file mode 100644 index 000000000000..a09f1d9188aa --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenter.Support +{ + + /// The type of data a parameter accepts. + public partial class ParameterTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => ParameterType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.cs new file mode 100644 index 000000000000..50955d1eaedb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/ParameterType.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.DevCenter.Support +{ + + /// The type of data a parameter accepts. + public partial struct ParameterType : + System.IEquatable + { + /// The parameter accepts an array of values. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType Array = @"array"; + + /// The parameter accepts a boolean value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType Boolean = @"boolean"; + + /// The parameter accepts an integer value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType Integer = @"integer"; + + /// The parameter accepts a number value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType Number = @"number"; + + /// The parameter accepts an object value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType Object = @"object"; + + /// The parameter accepts a string value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType String = @"string"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ParameterType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ParameterType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ParameterType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ParameterType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ParameterType && Equals((ParameterType)obj); + } + + /// Returns hashCode for enum ParameterType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ParameterType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ParameterType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ParameterType + /// the value to convert to an instance of . + + public static implicit operator ParameterType(string value) + { + return new ParameterType(value); + } + + /// Implicit operator to convert ParameterType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e) + { + return e._value; + } + + /// Overriding != operator for enum ParameterType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ParameterType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ParameterType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.Completer.cs new file mode 100644 index 000000000000..b64465fcde00 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.Completer.cs @@ -0,0 +1,41 @@ +// 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.DevCenter.Support +{ + + /// + /// SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled. + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatusTypeConverter))] + public partial struct SingleSignOnStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.TypeConverter.cs new file mode 100644 index 000000000000..a5541d400a9f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.TypeConverter.cs @@ -0,0 +1,61 @@ +// 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.DevCenter.Support +{ + + /// + /// SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled. + /// + public partial class SingleSignOnStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => SingleSignOnStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.cs new file mode 100644 index 000000000000..3ae355f2a5d2 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/SingleSignOnStatus.cs @@ -0,0 +1,100 @@ +// 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.DevCenter.Support +{ + + /// + /// SingleSignOn (SSO) enable or disable status. Indicates whether Dev Boxes in the Pool will have SSO enabled or disabled. + /// + public partial struct SingleSignOnStatus : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus Enabled = @"Enabled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to SingleSignOnStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new SingleSignOnStatus(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type SingleSignOnStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type SingleSignOnStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is SingleSignOnStatus && Equals((SingleSignOnStatus)obj); + } + + /// Returns hashCode for enum SingleSignOnStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private SingleSignOnStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for SingleSignOnStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to SingleSignOnStatus + /// the value to convert to an instance of . + + public static implicit operator SingleSignOnStatus(string value) + { + return new SingleSignOnStatus(value); + } + + /// Implicit operator to convert SingleSignOnStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e) + { + return e._value; + } + + /// Overriding != operator for enum SingleSignOnStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum SingleSignOnStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.Completer.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.Completer.cs new file mode 100644 index 000000000000..177ece6f5f10 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.Completer.cs @@ -0,0 +1,41 @@ +// 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.DevCenter.Support +{ + + /// + /// Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged). + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkTypeTypeConverter))] + public partial struct VirtualNetworkType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Managed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Managed'", "Managed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Managed"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Unmanaged".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Unmanaged'", "Unmanaged", global::System.Management.Automation.CompletionResultType.ParameterValue, "Unmanaged"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.TypeConverter.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.TypeConverter.cs new file mode 100644 index 000000000000..775a16da4f23 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.TypeConverter.cs @@ -0,0 +1,61 @@ +// 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.DevCenter.Support +{ + + /// + /// Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged). + /// + public partial class VirtualNetworkTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => VirtualNetworkType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.cs b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.cs new file mode 100644 index 000000000000..d41297c5e345 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/api/Support/VirtualNetworkType.cs @@ -0,0 +1,100 @@ +// 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.DevCenter.Support +{ + + /// + /// Indicates a pool uses a Virtual Network managed by Microsoft (Managed), or a customer provided Network (Unmanaged). + /// + public partial struct VirtualNetworkType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType Managed = @"Managed"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType Unmanaged = @"Unmanaged"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to VirtualNetworkType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new VirtualNetworkType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type VirtualNetworkType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type VirtualNetworkType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is VirtualNetworkType && Equals((VirtualNetworkType)obj); + } + + /// Returns hashCode for enum VirtualNetworkType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for VirtualNetworkType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private VirtualNetworkType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Implicit operator to convert string to VirtualNetworkType + /// the value to convert to an instance of . + + public static implicit operator VirtualNetworkType(string value) + { + return new VirtualNetworkType(value); + } + + /// Implicit operator to convert VirtualNetworkType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e) + { + return e._value; + } + + /// Overriding != operator for enum VirtualNetworkType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum VirtualNetworkType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_Connect.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_Connect.cs new file mode 100644 index 000000000000..d2eaf5237274 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_Connect.cs @@ -0,0 +1,452 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Connects a catalog to enable syncing. + /// + /// [OpenAPI] Connect=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Connect, @"AzDevCenterAdminCatalog_Connect", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Connects a catalog to enable syncing.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect", ApiVersion = "2023-10-01-preview")] + public partial class ConnectAzDevCenterAdminCatalog_Connect : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("CatalogName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of ConnectAzDevCenterAdminCatalog_Connect + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets.ConnectAzDevCenterAdminCatalog_Connect Clone() + { + var clone = new ConnectAzDevCenterAdminCatalog_Connect(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DevCenterName = this.DevCenterName; + clone.Name = this.Name; + return clone; + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public ConnectAzDevCenterAdminCatalog_Connect() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogsConnect' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogsConnect(SubscriptionId, ResourceGroupName, DevCenterName, Name, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_ConnectViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_ConnectViaIdentity.cs new file mode 100644 index 000000000000..b9e4f685925c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/ConnectAzDevCenterAdminCatalog_ConnectViaIdentity.cs @@ -0,0 +1,419 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Connects a catalog to enable syncing. + /// + /// [OpenAPI] Connect=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Connect, @"AzDevCenterAdminCatalog_ConnectViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Connects a catalog to enable syncing.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect", ApiVersion = "2023-10-01-preview")] + public partial class ConnectAzDevCenterAdminCatalog_ConnectViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of ConnectAzDevCenterAdminCatalog_ConnectViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets.ConnectAzDevCenterAdminCatalog_ConnectViaIdentity Clone() + { + var clone = new ConnectAzDevCenterAdminCatalog_ConnectViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public ConnectAzDevCenterAdminCatalog_ConnectViaIdentity() + { + + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogsConnect' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CatalogsConnectViaIdentity(InputObject.Id, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CatalogsConnect(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get.cs index 82bd48e80c93..2066982b0080 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] GetByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminAttachedNetwork_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an attached NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminAttachedNetwork_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminAttachedNetwork_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, ConnectionName=ConnectionName }) { 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get1.cs index 6918b7412ff9..34e2856aa8d8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_Get1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] GetByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminAttachedNetwork_Get1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an attached NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminAttachedNetwork_Get1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminAttachedNetwork_Get1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, ConnectionName=ConnectionName }) { 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_GetViaIdentity.cs index f80dda8a6488..e708f172b780 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] GetByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminAttachedNetwork_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an attached NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminAttachedNetwork_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminAttachedNetwork_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List.cs index ee413c1507a3..be44cf345fab 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminAttachedNetwork_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists the attached NetworkConnections for a Project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/attachednetworks", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminAttachedNetwork_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminAttachedNetwork_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IAttachedNetworkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List1.cs index d4902b7ba39a..769a212f88d3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminAttachedNetwork_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminAttachedNetwork_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists the attached NetworkConnections for a DevCenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminAttachedNetwork_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminAttachedNetwork_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IAttachedNetworkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get.cs new file mode 100644 index 000000000000..73560163a6ae --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get.cs @@ -0,0 +1,438 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Catalog Devbox Definition error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}/getErrorDetails" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Catalog Devbox Definition error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxDefinitionName; + + /// The name of the Dev Box definition. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Dev Box definition.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Dev Box definition.", + SerializedName = @"devBoxDefinitionName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevBoxDefinitionName { get => this._devBoxDefinitionName; set => this._devBoxDefinitionName = value; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogDevBoxDefinitionsGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogDevBoxDefinitionsGetErrorDetails(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, DevBoxDefinitionName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,DevBoxDefinitionName=DevBoxDefinitionName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, DevBoxDefinitionName=DevBoxDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, DevBoxDefinitionName=DevBoxDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity.cs new file mode 100644 index 000000000000..b308af041679 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity.cs @@ -0,0 +1,398 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Catalog Devbox Definition error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}/getErrorDetails" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Catalog Devbox Definition error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public GetAzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogDevBoxDefinitionsGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CatalogDevBoxDefinitionsGetErrorDetailsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxDefinitionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxDefinitionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CatalogDevBoxDefinitionsGetErrorDetails(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.DevBoxDefinitionName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_Get.cs new file mode 100644 index 000000000000..ce4aff112fd8 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_Get.cs @@ -0,0 +1,434 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets a Dev Box definition from the catalog + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogDevBoxDefinition_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Dev Box definition from the catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogDevBoxDefinition_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxDefinitionName; + + /// The name of the Dev Box definition. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Dev Box definition.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Dev Box definition.", + SerializedName = @"devBoxDefinitionName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevBoxDefinitionName { get => this._devBoxDefinitionName; set => this._devBoxDefinitionName = value; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogDevBoxDefinition_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogDevBoxDefinitionsGet(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, DevBoxDefinitionName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,DevBoxDefinitionName=DevBoxDefinitionName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, DevBoxDefinitionName=DevBoxDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, DevBoxDefinitionName=DevBoxDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity.cs new file mode 100644 index 000000000000..10673539e6ca --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity.cs @@ -0,0 +1,393 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets a Dev Box definition from the catalog + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Dev Box definition from the catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CatalogDevBoxDefinitionsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxDefinitionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxDefinitionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CatalogDevBoxDefinitionsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.DevBoxDefinitionName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_List.cs new file mode 100644 index 000000000000..5b5c4864b20d --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogDevBoxDefinition_List.cs @@ -0,0 +1,459 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// List Dev Box definitions in the catalog. + /// + /// [OpenAPI] ListByCatalog=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogDevBoxDefinition_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"List Dev Box definitions in the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/devboxdefinitions", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogDevBoxDefinition_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: '$top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: '$top=10'.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogDevBoxDefinition_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogDevBoxDefinitionsListByCatalog(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogDevBoxDefinitionsListByCatalog_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_Get.cs new file mode 100644 index 000000000000..cf226fc457c0 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_Get.cs @@ -0,0 +1,422 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets catalog synchronization error details + /// + /// [OpenAPI] GetSyncErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogSyncErrorDetail_Get", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets catalog synchronization error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogSyncErrorDetail_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogSyncErrorDetail_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogsGetSyncErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CatalogsGetSyncErrorDetails(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity.cs new file mode 100644 index 000000000000..4d5d21619381 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity.cs @@ -0,0 +1,391 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets catalog synchronization error details + /// + /// [OpenAPI] GetSyncErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets catalog synchronization error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCatalogSyncErrorDetail_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CatalogsGetSyncErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CatalogsGetSyncErrorDetailsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CatalogsGetSyncErrorDetails(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_Get.cs index d2ecb202d52d..90c52ce9bd11 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalog_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminCatalog_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminCatalog_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_GetViaIdentity.cs index d41968ed2b7c..41a155e7268d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalog_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a catalog")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminCatalog_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminCatalog_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_List.cs index 8c8de2fa0bf1..5dfd4ad3840b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCatalog_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCatalog_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists catalogs for a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminCatalog_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminCatalog_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalogListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.ICatalogListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_Get.cs new file mode 100644 index 000000000000..5bec520e6989 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_Get.cs @@ -0,0 +1,438 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Customization Task error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCustomizationTaskErrorDetail_Get", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Customization Task error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCustomizationTaskErrorDetail_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _taskName; + + /// The name of the Task. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Task.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Task.", + SerializedName = @"taskName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string TaskName { get => this._taskName; set => this._taskName = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCustomizationTaskErrorDetail_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CustomizationTasksGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CustomizationTasksGetErrorDetails(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, TaskName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,TaskName=TaskName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity.cs new file mode 100644 index 000000000000..ad3e3d8876ba --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity.cs @@ -0,0 +1,398 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Customization Task error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Customization Task error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public GetAzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'CustomizationTasksGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CustomizationTasksGetErrorDetailsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TaskName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TaskName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CustomizationTasksGetErrorDetails(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.TaskName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_Get.cs new file mode 100644 index 000000000000..c320882bf386 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_Get.cs @@ -0,0 +1,434 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets a Task from the catalog + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCustomizationTask_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Task from the catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCustomizationTask_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _taskName; + + /// The name of the Task. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Task.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Task.", + SerializedName = @"taskName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string TaskName { get => this._taskName; set => this._taskName = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTask + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCustomizationTask_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CustomizationTasksGet(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, TaskName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,TaskName=TaskName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTask + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_GetViaIdentity.cs new file mode 100644 index 000000000000..f64dfd4a6eb6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_GetViaIdentity.cs @@ -0,0 +1,393 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets a Task from the catalog + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCustomizationTask_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Task from the catalog")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks/{taskName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCustomizationTask_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTask + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCustomizationTask_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.CustomizationTasksGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TaskName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TaskName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.CustomizationTasksGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.TaskName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTask + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_List.cs new file mode 100644 index 000000000000..756410307be8 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminCustomizationTask_List.cs @@ -0,0 +1,459 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// List Tasks in the catalog. + /// + /// [OpenAPI] ListByCatalog=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminCustomizationTask_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"List Tasks in the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/tasks", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminCustomizationTask_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: '$top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: '$top=10'.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminCustomizationTask_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CustomizationTasksListByCatalog(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICustomizationTaskListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.CustomizationTasksListByCatalog_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get.cs index 91dcb00dca0b..4b2390bcbb10 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevBoxDefinition_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Dev Box definition")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevBoxDefinition_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminDevBoxDefinition_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get1.cs index 4686993604ae..1291366d46a1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_Get1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] GetByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevBoxDefinition_Get1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Dev Box definition configured for a project")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevBoxDefinition_Get1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminDevBoxDefinition_Get1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity.cs index 0ce7af45e3b1..06eb2b269aa6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevBoxDefinition_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a Dev Box definition")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminDevBoxDefinition_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List.cs index 12ae5824bf06..1d0b8f4bf763 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevBoxDefinition_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"List Dev Box definitions for a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevBoxDefinition_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminDevBoxDefinition_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List1.cs index ad78fb30b475..20414b398da5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevBoxDefinition_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevBoxDefinition_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"List Dev Box definitions configured for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/devboxdefinitions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevBoxDefinition_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminDevBoxDefinition_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IDevBoxDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_Get.cs index caf76756f17d..8633743f83a7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevCenter_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevCenter_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -147,24 +148,24 @@ public partial class GetAzDevCenterAdminDevCenter_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_GetViaIdentity.cs index b178b91254f1..1b2fede4e631 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevCenter_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevCenter_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminDevCenter_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List.cs index 6f6918fee410..2b237729690b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevCenter_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists all devcenters in a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/devcenters", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevCenter_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -141,24 +142,24 @@ public partial class GetAzDevCenterAdminDevCenter_List : global::System.Manageme /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenterListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult /// 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) @@ -334,12 +335,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -356,7 +357,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -374,12 +375,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.DevCenter.Models.Api20230401.IDevCenterListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List1.cs index fd90fa5255f0..bf09d2789595 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminDevCenter_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminDevCenter_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists all devcenters in a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminDevCenter_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -155,24 +156,24 @@ public partial class GetAzDevCenterAdminDevCenter_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenterListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult /// 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) @@ -348,12 +349,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -370,7 +371,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -388,12 +389,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.DevCenter.Models.Api20230401.IDevCenterListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_Get.cs new file mode 100644 index 000000000000..3bd8e29e332a --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_Get.cs @@ -0,0 +1,437 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Environment Definition error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentDefinitionErrorDetail_Get", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Environment Definition error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// Backing field for property. + private string _environmentDefinitionName; + + /// The name of the Environment Definition. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Environment Definition.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Environment Definition.", + SerializedName = @"environmentDefinitionName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string EnvironmentDefinitionName { get => this._environmentDefinitionName; set => this._environmentDefinitionName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentDefinitionsGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentDefinitionsGetErrorDetails(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, EnvironmentDefinitionName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,EnvironmentDefinitionName=EnvironmentDefinitionName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, EnvironmentDefinitionName=EnvironmentDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, EnvironmentDefinitionName=EnvironmentDefinitionName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity.cs new file mode 100644 index 000000000000..051ea583a40e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity.cs @@ -0,0 +1,397 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets Environment Definition error details + /// + /// [OpenAPI] GetErrorDetails=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets Environment Definition error details")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}/getErrorDetails", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public GetAzDevCenterAdminEnvironmentDefinitionErrorDetail_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentDefinitionsGetErrorDetails' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentDefinitionsGetErrorDetailsViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentDefinitionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentDefinitionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentDefinitionsGetErrorDetails(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.EnvironmentDefinitionName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.ICatalogResourceValidationErrorDetails + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // nested-array / errors / + WriteObject((await response).Error, true); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_Get.cs new file mode 100644 index 000000000000..02c6e4196ac4 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_Get.cs @@ -0,0 +1,434 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets an environment definition from the catalog. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentDefinition_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an environment definition from the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminEnvironmentDefinition_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the Environment Definition. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Environment Definition.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Environment Definition.", + SerializedName = @"environmentDefinitionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("EnvironmentDefinitionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminEnvironmentDefinition_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentDefinitionsGet(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_GetViaIdentity.cs new file mode 100644 index 000000000000..de99980c8ab3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_GetViaIdentity.cs @@ -0,0 +1,392 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// Gets an environment definition from the catalog. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentDefinition_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an environment definition from the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions/{environmentDefinitionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminEnvironmentDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminEnvironmentDefinition_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentDefinitionsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevCenterName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevCenterName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentDefinitionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentDefinitionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentDefinitionsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DevCenterName ?? null, InputObject.CatalogName ?? null, InputObject.EnvironmentDefinitionName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_List.cs new file mode 100644 index 000000000000..c3f29b7f1957 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentDefinition_List.cs @@ -0,0 +1,458 @@ +// 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.DevCenter.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Extensions; + using System; + + /// List environment definitions in the catalog. + /// + /// [OpenAPI] ListByCatalog=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentDefinition_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"List environment definitions in the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/environmentDefinitions", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterAdminEnvironmentDefinition_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the Catalog. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Catalog.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the Catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devCenterName; + + /// The name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the devcenter.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the devcenter.", + SerializedName = @"devCenterName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: '$top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: '$top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: '$top=10'.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterAdminEnvironmentDefinition_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentDefinitionsListByCatalog(SubscriptionId, ResourceGroupName, DevCenterName, CatalogName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DevCenterName=DevCenterName,CatalogName=CatalogName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Cancel(); + base.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.DevCenter.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DevCenterName=DevCenterName, CatalogName=CatalogName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenter.Models.Api20231001Preview.IEnvironmentDefinitionListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentDefinitionsListByCatalog_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_Get.cs index 998f8294eb65..3b765846881c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentType_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminEnvironmentType_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminEnvironmentType_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_GetViaIdentity.cs index 2145d99868e4..6f293f69d5ed 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentType_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminEnvironmentType_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminEnvironmentType_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_List.cs index 2a7bbfb9c11a..d174b11e860f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminEnvironmentType_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminEnvironmentType_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists environment types for the devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminEnvironmentType_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminEnvironmentType_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_Get.cs index a74d2001bdc9..fb754de4de53 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminGallery_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a gallery")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminGallery_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminGallery_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, 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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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.DevCenter.Models.Api20230401.IGallery + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_GetViaIdentity.cs index 876f4a52f3e9..95f75eff8772 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminGallery_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a gallery")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminGallery_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminGallery_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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.DevCenter.Models.Api20230401.IGallery + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_List.cs index 924e5f03e991..b1e4691a211d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminGallery_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminGallery_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists galleries for a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminGallery_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminGallery_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IGalleryListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IGalleryListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGalleryListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_Get.cs index e0d3d8e770f8..9cb0e815dcd2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImageVersion_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an image version.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImageVersion_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -188,24 +189,24 @@ public partial class GetAzDevCenterAdminImageVersion_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImageVersion + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion /// 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) @@ -381,12 +382,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -403,7 +404,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, GalleryName=GalleryName, ImageName=ImageName, VersionName=VersionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -421,12 +422,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.DevCenter.Models.Api20230401.IImageVersion + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion /// 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 ) { @@ -438,7 +439,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_GetViaIdentity.cs index 348d00d9b4f3..db89e8ea9175 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImageVersion_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an image version.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions/{versionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImageVersion_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminImageVersion_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImageVersion + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImageVersion + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion /// 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.DevCenter.Models.Api20230401.IImageVersion + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_List.cs index e67ddd57e0d2..91ac25ce1c1e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImageVersion_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByImage=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImageVersion_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists versions for an image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}/versions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImageVersion_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -180,24 +181,24 @@ public partial class GetAzDevCenterAdminImageVersion_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImageVersionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, GalleryName=GalleryName, ImageName=ImageName }) { 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.DevCenter.Models.Api20230401.IImageVersionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersionListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_Get.cs index 8b0e80ac159d..bb9238c79c22 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImage_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a gallery image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImage_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -175,24 +176,24 @@ public partial class GetAzDevCenterAdminImage_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImage + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, GalleryName=GalleryName, 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.DevCenter.Models.Api20230401.IImage + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage /// 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.DevCenter.Models.Api20230401.IImage + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_GetViaIdentity.cs index 9599af394e66..6628b3ffe8bc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImage_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a gallery image.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images/{imageName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImage_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminImage_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImage + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IImage + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage /// 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.DevCenter.Models.Api20230401.IImage + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List.cs index 8316580e38c7..d0bef52d8a4c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByDevCenter=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImage_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists images for a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/images", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminImage_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IImageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List1.cs index 3fe6b80e046a..f00ea9f89049 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminImage_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByGallery=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminImage_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists images for a gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}/images", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminImage_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -183,24 +184,24 @@ public partial class GetAzDevCenterAdminImage_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IImageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult /// 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) @@ -376,12 +377,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -398,7 +399,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, GalleryName=GalleryName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -416,12 +417,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.DevCenter.Models.Api20230401.IImageListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity.cs index a0d0614c9229..205c3c5887cf 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] GetHealthDetails=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets health check status details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks/latest", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminNetworkConnectionHealthDetail_GetViaIden /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails /// 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) @@ -319,12 +320,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -341,7 +342,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } @@ -359,12 +360,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.DevCenter.Models.Api20230401.IHealthCheckStatusDetails + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails /// 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 ) { @@ -376,7 +377,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_List.cs index 8bd61358f671..7041478e5421 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionHealthDetail_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListHealthDetails=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnectionHealthDetail_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IHealthCheckStatusDetails))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists health check status details")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/healthChecks", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnectionHealthDetail_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminNetworkConnectionHealthDetail_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), NetworkConnectionName=NetworkConnectionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IHealthCheckStatusDetailsListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetailsListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List.cs index e35c30ef77f5..873c73dbe71f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List.cs @@ -16,9 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListOutboundNetworkDependenciesEndpoints=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/outboundNetworkDependenciesEndpoints", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -172,24 +173,24 @@ public partial class GetAzDevCenterAdminNetworkConnectionOutboundNetworkDependen /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection /// 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) @@ -366,12 +367,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -388,7 +389,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), NetworkConnectionName=NetworkConnectionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +407,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.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpointCollection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpointCollection /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_Get.cs index 7286e292be44..0768654e44c8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnection_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a network connection resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnection_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -147,24 +148,24 @@ public partial class GetAzDevCenterAdminNetworkConnection_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_GetViaIdentity.cs index 18a6041ec5ca..58fefb6ed5ad 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnection_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a network connection resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnection_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminNetworkConnection_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List.cs index bcecdb5803f8..d763ba119776 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnection_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists network connections in a subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/networkConnections", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnection_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -141,24 +142,24 @@ public partial class GetAzDevCenterAdminNetworkConnection_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnectionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult /// 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) @@ -334,12 +335,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -356,7 +357,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -374,12 +375,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.DevCenter.Models.Api20230401.INetworkConnectionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List1.cs index c5f8c18ac8ae..597ef904db34 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminNetworkConnection_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminNetworkConnection_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists network connections in a resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminNetworkConnection_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -155,24 +156,24 @@ public partial class GetAzDevCenterAdminNetworkConnection_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnectionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult /// 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) @@ -348,12 +349,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -370,7 +371,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -388,12 +389,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.DevCenter.Models.Api20230401.INetworkConnectionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_Get.cs index 8eb89ce0002c..37bbd0b04255 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminOperationStatus_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets the current status of an async operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminOperationStatus_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -146,36 +147,36 @@ public partial class GetAzDevCenterAdminOperationStatus_Get : 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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// from the remote call /// /// Determines if the rest of the onAccepted method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// 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 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 202 (Accepted). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -366,7 +367,7 @@ protected override void StopProcessing() return ; } // onAccepted - response for 202 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } @@ -375,12 +376,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -397,7 +398,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location, OperationId=OperationId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -415,12 +416,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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -432,7 +433,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_GetViaIdentity.cs index d20b4e968232..8514f32b807e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperationStatus_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminOperationStatus_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets the current status of an async operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/operationStatuses/{operationId}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminOperationStatus_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,36 +109,36 @@ public partial class GetAzDevCenterAdminOperationStatus_GetViaIdentity : 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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// from the remote call /// /// Determines if the rest of the onAccepted method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// 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) @@ -328,12 +329,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 202 (Accepted). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onAccepted(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -345,7 +346,7 @@ protected override void StopProcessing() return ; } // onAccepted - response for 202 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } @@ -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.DevCenter.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus /// 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.DevCenter.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperation_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperation_List.cs index 6abe3da5406f..8a2f361e585c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperation_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminOperation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists all of the available resource provider operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/providers/Microsoft.DevCenter/operations", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -107,12 +108,12 @@ public partial class GetAzDevCenterAdminOperation_List : global::System.Manageme /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_Get.cs index d8e021460d4c..83716ab2c84a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminPool_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminPool_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -161,24 +162,24 @@ public partial class GetAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_GetViaIdentity.cs index 66978e850bda..fb4933314584 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminPool_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminPool_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_List.cs index dc0845afaf22..e842298dd4ad 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminPool_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByProject=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminPool_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists pools for a project")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminPool_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPoolListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IPoolListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_Get.cs index ad7d3fc2acd6..4ade7b701615 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectAllowedEnvironmentType_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an allowed environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -160,24 +161,24 @@ public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_Get : glob /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAllowedEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType /// 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) @@ -353,12 +354,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -375,7 +376,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, EnvironmentTypeName=EnvironmentTypeName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -393,12 +394,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.DevCenter.Models.Api20230401.IAllowedEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType /// 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 ) { @@ -410,7 +411,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity.cs index 0c332c7a7071..3c9449fef234 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets an allowed environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_GetViaIden /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAllowedEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType /// 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) @@ -323,12 +324,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -345,7 +346,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 } @@ -363,12 +364,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.DevCenter.Models.Api20230401.IAllowedEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType /// 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 ) { @@ -380,7 +381,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_List.cs index 2e306ce06242..f5519ce5cac8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectAllowedEnvironmentType_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectAllowedEnvironmentType_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAllowedEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists allowed environment types for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/allowedEnvironmentTypes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminProjectAllowedEnvironmentType_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IAllowedEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentTypeListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_Get.cs index c95a27e401a7..447236d7696b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectEnvironmentType_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectEnvironmentType_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -160,24 +161,24 @@ public partial class GetAzDevCenterAdminProjectEnvironmentType_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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) @@ -353,12 +354,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -375,7 +376,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, EnvironmentTypeName=EnvironmentTypeName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -393,12 +394,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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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 ) { @@ -410,7 +411,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity.cs index befa372e6c57..c42dbf290554 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectEnvironmentType_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminProjectEnvironmentType_GetViaIdentity : /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_List.cs index f3faf2b12edd..c2574f11e53b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProjectEnvironmentType_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProjectEnvironmentType_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists environment types for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProjectEnvironmentType_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterAdminProjectEnvironmentType_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult /// 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) @@ -362,12 +363,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -384,7 +385,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -402,12 +403,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.DevCenter.Models.Api20230401.IProjectEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_Get.cs index 303a9080697a..f550323ba924 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_Get.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProject_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a specific project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProject_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -147,24 +148,24 @@ public partial class GetAzDevCenterAdminProject_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 @@ 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_GetViaIdentity.cs index 7aa6a18635ad..da416ca1d7da 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_GetViaIdentity.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProject_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a specific project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProject_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -108,24 +109,24 @@ public partial class GetAzDevCenterAdminProject_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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) @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 ) { @@ -375,7 +376,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List.cs index 9cac6c852794..869d92b80bb7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProject_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists all projects in the subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/projects", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProject_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -141,24 +142,24 @@ public partial class GetAzDevCenterAdminProject_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult /// 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) @@ -334,12 +335,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -356,7 +357,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -374,12 +375,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.DevCenter.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List1.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List1.cs index 2da6861daf7a..79d2e13fbaed 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List1.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminProject_List1.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminProject_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists all projects in the resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminProject_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -155,24 +156,24 @@ public partial class GetAzDevCenterAdminProject_List1 : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult /// 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) @@ -348,12 +349,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -370,7 +371,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -388,12 +389,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.DevCenter.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_Get.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_Get.cs index 815a21778dd1..ba7ed7584608 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_Get.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminSchedule_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a schedule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminSchedule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -198,24 +199,24 @@ public partial class GetAzDevCenterAdminSchedule_Get : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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) @@ -391,12 +392,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -413,7 +414,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName, Name=Name, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -431,12 +432,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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -448,7 +449,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_GetViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_GetViaIdentity.cs index 5c1ba4e22d9b..b76d68e521bf 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_GetViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminSchedule_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Gets a schedule resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminSchedule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -126,24 +127,24 @@ public partial class GetAzDevCenterAdminSchedule_GetViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 @@ 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -384,12 +385,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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_List.cs index dbc0a6c26db3..87ffa37f1b9b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSchedule_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminSchedule_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists schedules for a pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminSchedule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -184,24 +185,24 @@ public partial class GetAzDevCenterAdminSchedule_List : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IScheduleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult /// 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) @@ -377,12 +378,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -399,7 +400,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -417,12 +418,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.DevCenter.Models.Api20230401.IScheduleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSku_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSku_List.cs index 0a3a1362086e..f38a9358b467 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSku_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminSku_List.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminSku_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists the Microsoft.DevCenter SKUs available in a subscription")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/skus", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminSku_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -141,24 +142,24 @@ public partial class GetAzDevCenterAdminSku_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISkuListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult /// 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) @@ -334,12 +335,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -356,7 +357,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -374,12 +375,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.DevCenter.Models.Api20230401.ISkuListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISkuListResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminUsage_List.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminUsage_List.cs index 7b5ad9dd078f..8b59e9f5079d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminUsage_List.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/GetAzDevCenterAdminUsage_List.cs @@ -15,9 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] ListByLocation=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterAdminUsage_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Lists the current usages and limits in this location for the provided subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterAdminUsage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -140,24 +141,24 @@ public partial class GetAzDevCenterAdminUsage_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IListUsagesResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult /// 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) @@ -333,12 +334,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Location=Location }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenter.Models.Api20230401.IListUsagesResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IListUsagesResult /// 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/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteExpanded.cs index 5eadfa5165ac..12d474129ea0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteViaIdentityExpanded.cs index 578397285901..9e9fd885c24f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityResponse))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Check the availability of name for resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterAdminExecuteCheckNameAvailability_ExecuteViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateExpanded.cs index 1ae1504b887c..2c5736b59953 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminAttachedNetwork_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates an attached NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminAttachedNetwork_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminAttachedNetwork_CreateExpanded : global: private string __processRecordId; /// Represents an attached NetworkConnection. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection(); /// /// The for this operation. @@ -189,24 +190,24 @@ public partial class NewAzDevCenterAdminAttachedNetwork_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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) @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, ConnectionName=ConnectionName, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -477,12 +478,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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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 ) { @@ -494,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded.cs index a794ce2b4913..fd0b56cdf7d8 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates an attached NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpande private string __processRecordId; /// Represents an attached NetworkConnection. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.AttachedNetworkConnection(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.AttachedNetworkConnection(); /// /// The for this operation. @@ -136,24 +137,24 @@ public partial class NewAzDevCenterAdminAttachedNetwork_CreateViaIdentityExpande /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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) @@ -406,12 +407,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -428,7 +429,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -446,12 +447,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.DevCenter.Models.Api20230401.IAttachedNetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection /// 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 ) { @@ -463,7 +464,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateExpanded.cs index 5bde25ce6808..a0f7fabd5d52 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminCatalog_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminCatalog_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminCatalog_CreateExpanded : global::System. private string __processRecordId; /// Represents a catalog. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog(); /// /// The for this operation. @@ -265,29 +266,41 @@ public partial class NewAzDevCenterAdminCatalog_CreateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Indicates the type of sync that is configured for the catalog. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates the type of sync that is configured for the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType SyncType { get => _body.SyncType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); set => _body.SyncType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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) @@ -518,12 +531,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -540,7 +553,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -558,12 +571,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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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 ) { @@ -575,7 +588,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded.cs index 09f58490ec50..946d79c8964d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminCatalog_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded : glob private string __processRecordId; /// Represents a catalog. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Catalog(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Catalog(); /// /// The for this operation. @@ -212,29 +213,41 @@ public partial class NewAzDevCenterAdminCatalog_CreateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Indicates the type of sync that is configured for the catalog. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates the type of sync that is configured for the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType SyncType { get => _body.SyncType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); set => _body.SyncType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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) @@ -485,12 +498,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -507,7 +520,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -525,12 +538,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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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 ) { @@ -542,7 +555,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateExpanded.cs index 2cf2c9755b8d..e5e9cdbcc84d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminDevBoxDefinition_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Dev Box definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminDevBoxDefinition_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminDevBoxDefinition_CreateExpanded : global private string __processRecordId; /// Represents a definition for a Developer Machine. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition(); /// /// The for this operation. @@ -308,24 +309,24 @@ public partial class NewAzDevCenterAdminDevBoxDefinition_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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) @@ -556,12 +557,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -578,7 +579,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -596,12 +597,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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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 ) { @@ -613,7 +614,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded.cs index 4b3275367a35..55b0b65a2635 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Dev Box definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpand private string __processRecordId; /// Represents a definition for a Developer Machine. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinition(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinition(); /// /// The for this operation. @@ -255,24 +256,24 @@ public partial class NewAzDevCenterAdminDevBoxDefinition_CreateViaIdentityExpand /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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) @@ -525,12 +526,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -547,7 +548,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -565,12 +566,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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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 ) { @@ -582,7 +583,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateExpanded.cs index de0471d9f219..690bd3915c90 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminDevCenter_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a devcenter resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : global::Syste private string __processRecordId; /// Represents a devcenter resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter(); /// /// The for this operation. @@ -49,6 +50,21 @@ public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : global::Syste /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string CustomerManagedKeyEncryptionKeyUrl { get => _body.CustomerManagedKeyEncryptionKeyUrl ?? null; set => _body.CustomerManagedKeyEncryptionKeyUrl = value; } + /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet /// against a different subscription @@ -59,6 +75,17 @@ public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the devcenter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -104,6 +131,51 @@ public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : global::Syste /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId ?? null; set => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId = value; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Values can be systemAssignedIdentity or userAssignedIdentity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType KeyEncryptionKeyIdentityType { get => _body.KeyEncryptionKeyIdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); set => _body.KeyEncryptionKeyIdentityType = value; } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId ?? null; set => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value; } + /// The geo-location where the resource lives [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] @@ -216,24 +288,24 @@ public partial class NewAzDevCenterAdminDevCenter_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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) @@ -463,12 +535,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -485,7 +557,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -503,12 +575,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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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 ) { @@ -520,7 +592,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded.cs index 6154af03902f..70da81257c89 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminDevCenter_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a devcenter resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : gl private string __processRecordId; /// Represents a devcenter resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenter(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenter(); /// /// The for this operation. @@ -49,6 +50,21 @@ public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : gl /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string CustomerManagedKeyEncryptionKeyUrl { get => _body.CustomerManagedKeyEncryptionKeyUrl ?? null; set => _body.CustomerManagedKeyEncryptionKeyUrl = value; } + /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet /// against a different subscription @@ -59,6 +75,17 @@ public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the devcenter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -112,6 +139,51 @@ public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : gl /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId ?? null; set => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId = value; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Values can be systemAssignedIdentity or userAssignedIdentity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType KeyEncryptionKeyIdentityType { get => _body.KeyEncryptionKeyIdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); set => _body.KeyEncryptionKeyIdentityType = value; } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId ?? null; set => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value; } + /// The geo-location where the resource lives [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] @@ -177,24 +249,24 @@ public partial class NewAzDevCenterAdminDevCenter_CreateViaIdentityExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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) @@ -441,12 +513,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -463,7 +535,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -481,12 +553,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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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 ) { @@ -498,7 +570,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateExpanded.cs index 3ebf91f70960..2aa81e4b3238 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminEnvironmentType_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminEnvironmentType_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateExpanded : global: private string __processRecordId; /// Represents an environment type. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType(); /// /// The for this operation. @@ -68,6 +69,17 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateExpanded : global: [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + /// The display name of the environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -168,32 +180,32 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateExpanded : global: ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 +381,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 +403,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -409,12 +421,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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 +438,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded.cs index 38ece1224227..26cae3945d48 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpande private string __processRecordId; /// Represents an environment type. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentType(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentType(); /// /// The for this operation. @@ -54,6 +55,17 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpande [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -115,32 +127,32 @@ public partial class NewAzDevCenterAdminEnvironmentType_CreateViaIdentityExpande ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 +352,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 +374,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -380,12 +392,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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateExpanded.cs index d681bbf1b83c..bd6d523cd116 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminGallery_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminGallery_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminGallery_CreateExpanded : global::System. private string __processRecordId; /// Represents a gallery. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery(); /// /// The for this operation. @@ -189,24 +190,24 @@ public partial class NewAzDevCenterAdminGallery_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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) @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -477,12 +478,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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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 ) { @@ -494,7 +495,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateViaIdentityExpanded.cs index b5fdae1c8e4a..8502f6701e50 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminGallery_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminGallery_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a gallery.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminGallery_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminGallery_CreateViaIdentityExpanded : glob private string __processRecordId; /// Represents a gallery. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Gallery(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Gallery(); /// /// The for this operation. @@ -136,24 +137,24 @@ public partial class NewAzDevCenterAdminGallery_CreateViaIdentityExpanded : glob /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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) @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -444,12 +445,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.DevCenter.Models.Api20230401.IGallery + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery /// 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 ) { @@ -461,7 +462,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateExpanded.cs index fcf9c3fe7af4..ec3c5648fee5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminNetworkConnection_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Network Connections resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminNetworkConnection_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminNetworkConnection_CreateExpanded : globa private string __processRecordId; /// Network related settings - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection(); /// /// The for this operation. @@ -268,24 +269,24 @@ public partial class NewAzDevCenterAdminNetworkConnection_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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) @@ -515,12 +516,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -537,7 +538,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -555,12 +556,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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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 ) { @@ -572,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded.cs index 8e5ad44f6729..ce4b5d606325 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Network Connections resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpan private string __processRecordId; /// Network related settings - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnection(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnection(); /// /// The for this operation. @@ -229,24 +230,24 @@ public partial class NewAzDevCenterAdminNetworkConnection_CreateViaIdentityExpan /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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) @@ -496,12 +497,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -518,7 +519,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -536,12 +537,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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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 ) { @@ -553,7 +554,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateExpanded.cs index 52eb1fbc549c..479c9d813b87 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminPool_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Man private string __processRecordId; /// A pool of Virtual Machines. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool(); /// /// The for this operation. @@ -71,6 +72,17 @@ public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(string) })] public string DevBoxDefinitionName { get => _body.DevBoxDefinitionName ?? null; set => _body.DevBoxDefinitionName = value; } + /// The display name of the pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the pool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -130,6 +142,20 @@ public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(string) })] public string Location { get => _body.Location ?? null; set => _body.Location = value; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The regions of the managed virtual network (required when managedNetworkType is Managed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + public string[] ManagedVirtualNetworkRegion { get => _body.ManagedVirtualNetworkRegion ?? null /* arrayOf */; set => _body.ManagedVirtualNetworkRegion = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -221,6 +247,21 @@ public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus SingleSignOnStatus { get => _body.SingleSignOnStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); set => _body.SingleSignOnStatus = value; } + /// /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. /// @@ -278,29 +319,43 @@ public partial class NewAzDevCenterAdminPool_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType VirtualNetworkType { get => _body.VirtualNetworkType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); set => _body.VirtualNetworkType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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) @@ -531,12 +586,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -553,7 +608,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -571,12 +626,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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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 ) { @@ -588,7 +643,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateViaIdentityExpanded.cs index 09952a2ca02e..00e33b80917f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminPool_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminPool_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global: private string __processRecordId; /// A pool of Virtual Machines. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Pool(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Pool(); /// /// The for this operation. @@ -71,6 +72,17 @@ public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global: PossibleTypes = new [] { typeof(string) })] public string DevBoxDefinitionName { get => _body.DevBoxDefinitionName ?? null; set => _body.DevBoxDefinitionName = value; } + /// The display name of the pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the pool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -138,6 +150,20 @@ public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global: PossibleTypes = new [] { typeof(string) })] public string Location { get => _body.Location ?? null; set => _body.Location = value; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The regions of the managed virtual network (required when managedNetworkType is Managed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + public string[] ManagedVirtualNetworkRegion { get => _body.ManagedVirtualNetworkRegion ?? null /* arrayOf */; set => _body.ManagedVirtualNetworkRegion = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -186,6 +212,21 @@ public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global: [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus SingleSignOnStatus { get => _body.SingleSignOnStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); set => _body.SingleSignOnStatus = value; } + /// /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. /// @@ -225,29 +266,43 @@ public partial class NewAzDevCenterAdminPool_CreateViaIdentityExpanded : global: PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags) })] public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ITrackedResourceTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType VirtualNetworkType { get => _body.VirtualNetworkType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); set => _body.VirtualNetworkType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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) @@ -498,12 +553,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -520,7 +575,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -538,12 +593,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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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 ) { @@ -555,7 +610,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded.cs index 1d145673695d..cc6d257ba31f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminProjectEnvironmentType_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : private string __processRecordId; /// Represents an environment type. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType(); /// /// The for this operation. @@ -54,8 +55,8 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet @@ -81,6 +82,17 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : PossibleTypes = new [] { typeof(string) })] public string DeploymentTargetId { get => _body.DeploymentTargetId ?? null; set => _body.DeploymentTargetId = value; } + /// The display name of the project environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// Backing field for property. private string _environmentTypeName; @@ -247,8 +259,8 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role @@ -262,32 +274,32 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateExpanded : ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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) @@ -463,12 +475,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -485,7 +497,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, EnvironmentTypeName=EnvironmentTypeName, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -503,12 +515,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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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 ) { @@ -520,7 +532,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded.cs index 66de5a62d6f3..1aba8c5bce91 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentity private string __processRecordId; /// Represents an environment type. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentType(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentType(); /// /// The for this operation. @@ -54,8 +55,8 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentity ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet @@ -81,6 +82,17 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentity PossibleTypes = new [] { typeof(string) })] public string DeploymentTargetId { get => _body.DeploymentTargetId ?? null; set => _body.DeploymentTargetId = value; } + /// The display name of the project environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -195,8 +207,8 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentity ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role @@ -210,32 +222,32 @@ public partial class NewAzDevCenterAdminProjectEnvironmentType_CreateViaIdentity ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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) @@ -436,12 +448,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 +470,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -476,12 +488,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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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 ) { @@ -493,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateExpanded.cs index a283b5e380e2..75082f8695de 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminProject_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminProject_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminProject_CreateExpanded : global::System. private string __processRecordId; /// Represents a project resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project(); /// /// The for this operation. @@ -82,6 +83,17 @@ public partial class NewAzDevCenterAdminProject_CreateExpanded : global::System. PossibleTypes = new [] { typeof(string) })] public string DevCenterId { get => _body.DevCenterId ?? null; set => _body.DevCenterId = value; } + /// The display name of the project. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -223,24 +235,24 @@ public partial class NewAzDevCenterAdminProject_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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) @@ -470,12 +482,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -492,7 +504,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -510,12 +522,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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 ) { @@ -527,7 +539,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateViaIdentityExpanded.cs index e329570561c5..6440db0e17de 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminProject_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminProject_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminProject_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminProject_CreateViaIdentityExpanded : glob private string __processRecordId; /// Represents a project resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Project(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Project(); /// /// The for this operation. @@ -82,6 +83,17 @@ public partial class NewAzDevCenterAdminProject_CreateViaIdentityExpanded : glob PossibleTypes = new [] { typeof(string) })] public string DevCenterId { get => _body.DevCenterId ?? null; set => _body.DevCenterId = value; } + /// The display name of the project. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -184,24 +196,24 @@ public partial class NewAzDevCenterAdminProject_CreateViaIdentityExpanded : glob /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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) @@ -448,12 +460,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -470,7 +482,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -488,12 +500,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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 ) { @@ -505,7 +517,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateExpanded.cs index 208398952cbb..1f138af25b03 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminSchedule_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminSchedule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminSchedule_CreateExpanded : global::System private string __processRecordId; /// Represents a Schedule to execute a task. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule(); /// /// The for this operation. @@ -282,24 +283,24 @@ public partial class NewAzDevCenterAdminSchedule_CreateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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) @@ -532,12 +533,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -554,7 +555,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName, Name=Name, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -572,12 +573,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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -589,7 +590,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded.cs index bfb578a0adbb..34f03d34e9d6 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterAdminSchedule_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Creates or updates a Schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded : glo private string __processRecordId; /// Represents a Schedule to execute a task. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.Schedule(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.Schedule(); /// /// The for this operation. @@ -210,24 +211,24 @@ public partial class NewAzDevCenterAdminSchedule_CreateViaIdentityExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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) @@ -483,12 +484,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -505,7 +506,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -523,12 +524,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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -540,7 +541,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_Delete.cs index e06e6d82d6d7..3fc0bd7109c9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Un-attach a NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminAttachedNetwork_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzDevCenterAdminAttachedNetwork_Delete : global::Syst /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, ConnectionName=ConnectionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity.cs index a3db85eea45f..dc532caa2f04 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Un-attach a NetworkConnection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/attachednetworks/{attachedNetworkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminAttachedNetwork_DeleteViaIdentity : g /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_Delete.cs index 5f3d059b5906..9ba1082c615a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a catalog resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminCatalog_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzDevCenterAdminCatalog_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_DeleteViaIdentity.cs index 5a6594bbc2f2..362217713b00 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminCatalog_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a catalog resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminCatalog_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminCatalog_DeleteViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_Delete.cs index 87ddd0aa08de..d64dabad0ee7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Dev Box definition")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminDevBoxDefinition_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzDevCenterAdminDevBoxDefinition_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity.cs index e01ba232a969..11f73c92c72b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Dev Box definition")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminDevBoxDefinition_DeleteViaIdentity : /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -405,12 +406,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -427,7 +428,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_Delete.cs index 9d291399f021..a2e8f48131a5 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a devcenter")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminDevCenter_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -167,12 +168,12 @@ public partial class RemoveAzDevCenterAdminDevCenter_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -421,12 +422,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -443,7 +444,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity.cs index 10ffdb5a7285..f3e09fdd08c0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a devcenter")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminDevCenter_DeleteViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -399,12 +400,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -421,7 +422,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_Delete.cs index e5365c7031ef..7e7823bba2b4 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminEnvironmentType_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -168,12 +169,12 @@ public partial class RemoveAzDevCenterAdminEnvironmentType_Delete : global::Syst /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity.cs index 50099841b4d4..c77c1f3def71 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -115,12 +116,12 @@ public partial class RemoveAzDevCenterAdminEnvironmentType_DeleteViaIdentity : g /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_Delete.cs index d6c1e9bec0f4..38617069e965 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a gallery resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminGallery_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzDevCenterAdminGallery_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_DeleteViaIdentity.cs index 4242f1b1da25..cc0940d87291 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminGallery_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a gallery resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/galleries/{galleryName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminGallery_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminGallery_DeleteViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_Delete.cs index ea3f5ba61d43..279de910f369 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Network Connections resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminNetworkConnection_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -167,12 +168,12 @@ public partial class RemoveAzDevCenterAdminNetworkConnection_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -421,12 +422,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -443,7 +444,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity.cs index 83ae16700e78..09d6659f1754 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Network Connections resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminNetworkConnection_DeleteViaIdentity : /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -401,12 +402,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -423,7 +424,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_Delete.cs index b468f93eef06..725986eb85d7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminPool_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class RemoveAzDevCenterAdminPool_Delete : global::System.Manageme /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_DeleteViaIdentity.cs index ea8e6c84ad44..06be81d56254 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminPool_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminPool_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminPool_DeleteViaIdentity : global::Syst /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_Delete.cs index 9d0054ae2656..ef9bab825bff 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminProjectEnvironmentType_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -167,12 +168,12 @@ public partial class RemoveAzDevCenterAdminProjectEnvironmentType_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, EnvironmentTypeName=EnvironmentTypeName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity.cs index ce95d71c3640..3bc2f549b3a3 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -115,12 +116,12 @@ public partial class RemoveAzDevCenterAdminProjectEnvironmentType_DeleteViaIdent /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -341,12 +342,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ 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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_Delete.cs index dd4da46b062a..1c432cc5d49d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminProject_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -167,12 +168,12 @@ public partial class RemoveAzDevCenterAdminProject_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -421,12 +422,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -443,7 +444,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_DeleteViaIdentity.cs index 2274e049a1c3..4fe3a86cd01e 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminProject_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminProject_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class RemoveAzDevCenterAdminProject_DeleteViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -399,12 +400,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -421,7 +422,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_Delete.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_Delete.cs index 2a0eeb025e30..9a4c69062fa9 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_Delete.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_Delete.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Scheduled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminSchedule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -218,12 +219,12 @@ public partial class RemoveAzDevCenterAdminSchedule_Delete : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -475,12 +476,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -497,7 +498,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName, Name=Name, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_DeleteViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_DeleteViaIdentity.cs index 9a1c7880710a..1ec6816d3767 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/RemoveAzDevCenterAdminSchedule_DeleteViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Deletes a Scheduled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterAdminSchedule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -146,12 +147,12 @@ public partial class RemoveAzDevCenterAdminSchedule_DeleteViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -426,12 +427,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -448,7 +449,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_Run.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_Run.cs index 61fe5d4b8da1..4a5c04d1a3d7 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_Run.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_Run.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterAdminNetworkConnectionHealthCheck_Run : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -169,12 +170,12 @@ public partial class StartAzDevCenterAdminNetworkConnectionHealthCheck_Run : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -413,12 +414,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -435,7 +436,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, NetworkConnectionName=NetworkConnectionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity.cs index 090d09f2b903..f9cecaf2a5d2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}/runHealthChecks", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -131,12 +132,12 @@ public partial class StartAzDevCenterAdminNetworkConnectionHealthCheck_RunViaIde /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -395,12 +396,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -417,7 +418,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_Run.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_Run.cs index c575d2ab1640..a065b3535efc 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_Run.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_Run.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// /// [OpenAPI] RunHealthChecks=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks" /// - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDevCenterAdminPoolHealthCheck_Run", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Triggers a refresh of the pool status.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterAdminPoolHealthCheck_Run : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class StartAzDevCenterAdminPoolHealthCheck_Run : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -426,12 +426,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -448,7 +448,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity.cs index 6a5b8dfeef51..5a2397d3e8af 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// /// [OpenAPI] RunHealthChecks=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks" /// - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDevCenterAdminPoolHealthCheck_RunViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Triggers a refresh of the pool status.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/runHealthChecks", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -129,12 +129,12 @@ public partial class StartAzDevCenterAdminPoolHealthCheck_RunViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -394,12 +394,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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -416,7 +416,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.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_Sync.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_Sync.cs index c184fe59162f..419b31d07c81 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_Sync.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_Sync.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Syncs templates for a template source.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync", ApiVersion = "2023-10-01-preview")] public partial class SyncAzDevCenterAdminCatalog_Sync : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -181,12 +182,12 @@ public partial class SyncAzDevCenterAdminCatalog_Sync : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -426,12 +427,12 @@ public SyncAzDevCenterAdminCatalog_Sync() /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -448,7 +449,7 @@ public SyncAzDevCenterAdminCatalog_Sync() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_SyncViaIdentity.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_SyncViaIdentity.cs index 3b5647017806..38edc6a1b56f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_SyncViaIdentity.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/SyncAzDevCenterAdminCatalog_SyncViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Syncs templates for a template source.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync", ApiVersion = "2023-10-01-preview")] public partial class SyncAzDevCenterAdminCatalog_SyncViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -128,12 +129,12 @@ public partial class SyncAzDevCenterAdminCatalog_SyncViaIdentity : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 @@ -393,12 +394,12 @@ public SyncAzDevCenterAdminCatalog_SyncViaIdentity() /// 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -415,7 +416,7 @@ public SyncAzDevCenterAdminCatalog_SyncViaIdentity() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateExpanded.cs index fa35b8b1b618..bb1312ec8598 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminCatalog_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminCatalog_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateExpanded : global::Syst /// /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdate(); /// /// The for this operation. @@ -266,6 +267,18 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Indicates the type of sync that is configured for the catalog. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates the type of sync that is configured for the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType SyncType { get => _body.SyncType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); set => _body.SyncType = value; } + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] @@ -275,32 +288,32 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateExpanded : global::Syst ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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) @@ -531,12 +544,12 @@ public UpdateAzDevCenterAdminCatalog_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -553,7 +566,7 @@ public UpdateAzDevCenterAdminCatalog_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -571,12 +584,12 @@ public UpdateAzDevCenterAdminCatalog_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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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 ) { @@ -588,7 +601,7 @@ public UpdateAzDevCenterAdminCatalog_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded.cs index 469dc4b69d6a..ebbc905fdabe 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminCatalog_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded : g /// /// The catalog's properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.CatalogUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.CatalogUpdate(); /// /// The for this operation. @@ -213,6 +214,18 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded : g [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Indicates the type of sync that is configured for the catalog. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates the type of sync that is configured for the catalog.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates the type of sync that is configured for the catalog.", + SerializedName = @"syncType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType SyncType { get => _body.SyncType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType)""); set => _body.SyncType = value; } + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] @@ -222,32 +235,32 @@ public partial class UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded : g ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalogUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogUpdateTags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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) @@ -498,12 +511,12 @@ public UpdateAzDevCenterAdminCatalog_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -520,7 +533,7 @@ public UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -538,12 +551,12 @@ public UpdateAzDevCenterAdminCatalog_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.DevCenter.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog /// 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 ) { @@ -555,7 +568,7 @@ public UpdateAzDevCenterAdminCatalog_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded.cs index 0df50c2723e6..7953077866c2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminDevBoxDefinition_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Dev Box definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded : glo private string __processRecordId; /// Partial update of a Dev Box definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdate(); /// /// The for this operation. @@ -300,32 +301,32 @@ public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded : glo ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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) @@ -556,12 +557,12 @@ public UpdateAzDevCenterAdminDevBoxDefinition_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -578,7 +579,7 @@ public UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -596,12 +597,12 @@ public UpdateAzDevCenterAdminDevBoxDefinition_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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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 ) { @@ -613,7 +614,7 @@ public UpdateAzDevCenterAdminDevBoxDefinition_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded.cs index a8a0dd33fc11..970be487692a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Dev Box definition.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/devboxdefinitions/{devBoxDefinitionName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -29,7 +30,7 @@ public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExp private string __processRecordId; /// Partial update of a Dev Box definition resource. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinitionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevBoxDefinitionUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinitionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevBoxDefinitionUpdate(); /// /// The for this operation. @@ -247,32 +248,32 @@ public partial class UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExp ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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) @@ -526,12 +527,12 @@ public UpdateAzDevCenterAdminDevBoxDefinition_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -548,7 +549,7 @@ public UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -566,12 +567,12 @@ public UpdateAzDevCenterAdminDevBoxDefinition_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.DevCenter.Models.Api20230401.IDevBoxDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition /// 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 ) { @@ -583,7 +584,7 @@ public UpdateAzDevCenterAdminDevBoxDefinition_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateExpanded.cs index b1b8a4d64769..c26e7cc387aa 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminDevCenter_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::Sy /// /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdate(); /// /// The for this operation. @@ -51,6 +52,21 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::Sy /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string CustomerManagedKeyEncryptionKeyUrl { get => _body.CustomerManagedKeyEncryptionKeyUrl ?? null; set => _body.CustomerManagedKeyEncryptionKeyUrl = value; } + /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet /// against a different subscription @@ -61,6 +77,17 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::Sy [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the devcenter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -106,6 +133,51 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::Sy /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId ?? null; set => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId = value; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Values can be systemAssignedIdentity or userAssignedIdentity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType KeyEncryptionKeyIdentityType { get => _body.KeyEncryptionKeyIdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); set => _body.KeyEncryptionKeyIdentityType = value; } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId ?? null; set => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value; } + /// The geo-location where the resource lives [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] @@ -211,32 +283,32 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateExpanded : global::Sy ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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) @@ -466,12 +538,12 @@ public UpdateAzDevCenterAdminDevCenter_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -488,7 +560,7 @@ public UpdateAzDevCenterAdminDevCenter_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -506,12 +578,12 @@ public UpdateAzDevCenterAdminDevCenter_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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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 ) { @@ -523,7 +595,7 @@ public UpdateAzDevCenterAdminDevCenter_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded.cs index 669b80545415..19f38411beec 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminDevCenter_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a devcenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : /// /// The devcenter resource for partial updates. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.DevCenterUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.DevCenterUpdate(); /// /// The for this operation. @@ -51,6 +52,21 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DevCenter Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Module.Instance.ClientAPI; + /// + /// key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 + /// or https://contosovault.vault.azure.net/keys/contosokek. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.", + SerializedName = @"keyEncryptionKeyUrl", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string CustomerManagedKeyEncryptionKeyUrl { get => _body.CustomerManagedKeyEncryptionKeyUrl ?? null; set => _body.CustomerManagedKeyEncryptionKeyUrl = value; } + /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet /// against a different subscription @@ -61,6 +77,17 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the devcenter. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the devcenter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the devcenter.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -114,6 +141,51 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + /// + /// delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and userAssignedIdentity - internal use only. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only.", + SerializedName = @"delegatedIdentityClientId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityDelegatedIdentityClientId { get => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId ?? null; set => _body.KeyEncryptionKeyIdentityDelegatedIdentityClientId = value; } + + /// Values can be systemAssignedIdentity or userAssignedIdentity + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Values can be systemAssignedIdentity or userAssignedIdentity")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Values can be systemAssignedIdentity or userAssignedIdentity", + SerializedName = @"identityType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType KeyEncryptionKeyIdentityType { get => _body.KeyEncryptionKeyIdentityType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.IdentityType)""); set => _body.KeyEncryptionKeyIdentityType = value; } + + /// + /// user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity + /// and delegatedResourceIdentity. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity.", + SerializedName = @"userAssignedIdentityResourceId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] + public string KeyEncryptionKeyIdentityUserAssignedIdentityResourceId { get => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId ?? null; set => _body.KeyEncryptionKeyIdentityUserAssignedIdentityResourceId = value; } + /// The geo-location where the resource lives [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] @@ -172,32 +244,32 @@ public partial class UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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) @@ -446,12 +518,12 @@ public UpdateAzDevCenterAdminDevCenter_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -468,7 +540,7 @@ public UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -486,12 +558,12 @@ public UpdateAzDevCenterAdminDevCenter_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.DevCenter.Models.Api20230401.IDevCenter + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter /// 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 ) { @@ -503,7 +575,7 @@ public UpdateAzDevCenterAdminDevCenter_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded.cs index 360b1ac2598a..fb1d5a7ac16d 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminEnvironmentType_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded : glob /// /// The environment type for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdate(); /// /// The for this operation. @@ -70,6 +71,17 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string DevCenterName { get => this._devCenterName; set => this._devCenterName = value; } + /// The display name of the environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -170,32 +182,32 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded : glob ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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) @@ -371,12 +383,12 @@ public UpdateAzDevCenterAdminEnvironmentType_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -393,7 +405,7 @@ public UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, DevCenterName=DevCenterName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -411,12 +423,12 @@ public UpdateAzDevCenterAdminEnvironmentType_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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 ) { @@ -428,7 +440,7 @@ public UpdateAzDevCenterAdminEnvironmentType_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded.cs index 4cdc4e1b52b2..18debaa9165b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates an environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpa /// /// The environment type for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.EnvironmentTypeUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.EnvironmentTypeUpdate(); /// /// The for this operation. @@ -56,6 +57,17 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpa [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The display name of the environment type. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the environment type.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -117,32 +129,32 @@ public partial class UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpa ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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) @@ -343,12 +355,12 @@ public UpdateAzDevCenterAdminEnvironmentType_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -365,7 +377,7 @@ public UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -383,12 +395,12 @@ public UpdateAzDevCenterAdminEnvironmentType_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.DevCenter.Models.Api20230401.IEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType /// 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 ) { @@ -400,7 +412,7 @@ public UpdateAzDevCenterAdminEnvironmentType_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded.cs index 358f041be84c..e2a07c1578e0 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminNetworkConnection_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Network Connection")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded : gl /// /// The network connection properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdate(); /// /// The for this operation. @@ -239,32 +240,32 @@ public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded : gl ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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) @@ -494,12 +495,12 @@ public UpdateAzDevCenterAdminNetworkConnection_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -516,7 +517,7 @@ public UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -534,12 +535,12 @@ public UpdateAzDevCenterAdminNetworkConnection_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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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 ) { @@ -551,7 +552,7 @@ public UpdateAzDevCenterAdminNetworkConnection_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded.cs index 85eadc141416..5b6ec3ec201f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Network Connection")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/networkConnections/{networkConnectionName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityEx /// /// The network connection properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnectionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.NetworkConnectionUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnectionUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.NetworkConnectionUpdate(); /// /// The for this operation. @@ -200,32 +201,32 @@ public partial class UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityEx ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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) @@ -475,12 +476,12 @@ public UpdateAzDevCenterAdminNetworkConnection_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -497,7 +498,7 @@ public UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -515,12 +516,12 @@ public UpdateAzDevCenterAdminNetworkConnection_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.DevCenter.Models.Api20230401.INetworkConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection /// 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 ) { @@ -532,7 +533,7 @@ public UpdateAzDevCenterAdminNetworkConnection_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateExpanded.cs index 5b32ffb5e5f4..7e31a6d1162b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminPool_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System. /// /// The pool properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdate(); /// /// The for this operation. @@ -72,6 +73,17 @@ public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System. PossibleTypes = new [] { typeof(string) })] public string DevBoxDefinitionName { get => _body.DevBoxDefinitionName ?? null; set => _body.DevBoxDefinitionName = value; } + /// The display name of the pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the pool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -132,6 +144,20 @@ public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] public string Location { get => _body.Location ?? null; set => _body.Location = value; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The regions of the managed virtual network (required when managedNetworkType is Managed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + public string[] ManagedVirtualNetworkRegion { get => _body.ManagedVirtualNetworkRegion ?? null /* arrayOf */; set => _body.ManagedVirtualNetworkRegion = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -223,6 +249,21 @@ public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus SingleSignOnStatus { get => _body.SingleSignOnStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); set => _body.SingleSignOnStatus = value; } + /// /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. /// @@ -277,32 +318,46 @@ public partial class UpdateAzDevCenterAdminPool_UpdateExpanded : global::System. ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType VirtualNetworkType { get => _body.VirtualNetworkType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); set => _body.VirtualNetworkType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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) @@ -533,12 +588,12 @@ public UpdateAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -555,7 +610,7 @@ public UpdateAzDevCenterAdminPool_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -573,12 +628,12 @@ public UpdateAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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 ) { @@ -590,7 +645,7 @@ public UpdateAzDevCenterAdminPool_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded.cs index e19f1ebcf484..6d05955bda91 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminPool_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a machine pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : glob /// /// The pool properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPoolUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.PoolUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPoolUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.PoolUpdate(); /// /// The for this operation. @@ -72,6 +73,17 @@ public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : glob PossibleTypes = new [] { typeof(string) })] public string DevBoxDefinitionName { get => _body.DevBoxDefinitionName ?? null; set => _body.DevBoxDefinitionName = value; } + /// The display name of the pool. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the pool.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -140,6 +152,20 @@ public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] public string Location { get => _body.Location ?? null; set => _body.Location = value; } + /// + /// The regions of the managed virtual network (required when managedNetworkType is Managed). + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The regions of the managed virtual network (required when managedNetworkType is Managed).")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The regions of the managed virtual network (required when managedNetworkType is Managed).", + SerializedName = @"managedVirtualNetworkRegions", + PossibleTypes = new [] { typeof(string) })] + public string[] ManagedVirtualNetworkRegion { get => _body.ManagedVirtualNetworkRegion ?? null /* arrayOf */; set => _body.ManagedVirtualNetworkRegion = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -188,6 +214,21 @@ public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on + /// be enabled on the tenant. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant.", + SerializedName = @"singleSignOnStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus SingleSignOnStatus { get => _body.SingleSignOnStatus ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus)""); set => _body.SingleSignOnStatus = value; } + /// /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. /// @@ -224,32 +265,46 @@ public partial class UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded : glob ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + + /// + /// Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network.", + SerializedName = @"virtualNetworkType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType VirtualNetworkType { get => _body.VirtualNetworkType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType)""); set => _body.VirtualNetworkType = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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) @@ -500,12 +555,12 @@ public UpdateAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -522,7 +577,7 @@ public UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -540,12 +595,12 @@ public UpdateAzDevCenterAdminPool_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.DevCenter.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool /// 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 ) { @@ -557,7 +612,7 @@ public UpdateAzDevCenterAdminPool_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded.cs index dc027300fffc..da1f24331ff1 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminProjectEnvironmentType_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded /// /// The project environment type for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdate(); /// /// The for this operation. @@ -55,8 +56,8 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet @@ -237,8 +238,8 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role @@ -252,32 +253,32 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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) @@ -453,12 +454,12 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -475,7 +476,7 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, EnvironmentTypeName=EnvironmentTypeName, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -493,12 +494,12 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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 ) { @@ -510,7 +511,7 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded.cs index 253ebe5b0a7d..4778afa06550 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a project environment type.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/environmentTypes/{environmentTypeName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdent /// /// The project environment type for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectEnvironmentTypeUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectEnvironmentTypeUpdate(); /// /// The for this operation. @@ -55,8 +56,8 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdent ReadOnly = false, Description = @"A map of roles to assign to the environment creator.", SerializedName = @"roles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles CreatorRoleAssignmentRole { get => _body.CreatorRoleAssignmentRole ?? null /* object */; set => _body.CreatorRoleAssignmentRole = value; } /// /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet @@ -185,8 +186,8 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdent ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// /// Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role @@ -200,32 +201,32 @@ public partial class UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdent ReadOnly = false, Description = @"Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.", SerializedName = @"userRoleAssignments", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments UserRoleAssignment { get => _body.UserRoleAssignment ?? null /* object */; set => _body.UserRoleAssignment = 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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) @@ -426,12 +427,12 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -448,7 +449,7 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -466,12 +467,12 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_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.DevCenter.Models.Api20230401.IProjectEnvironmentType + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType /// 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 ) { @@ -483,7 +484,7 @@ public UpdateAzDevCenterAdminProjectEnvironmentType_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateExpanded.cs index 25d94ee19a7a..402a7ba840db 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminProject_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminProject_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminProject_UpdateExpanded : global::Syst /// /// The project properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdate(); /// /// The for this operation. @@ -84,6 +85,17 @@ public partial class UpdateAzDevCenterAdminProject_UpdateExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] public string DevCenterId { get => _body.DevCenterId ?? null; set => _body.DevCenterId = value; } + /// The display name of the project. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -218,32 +230,32 @@ public partial class UpdateAzDevCenterAdminProject_UpdateExpanded : global::Syst ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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) @@ -473,12 +485,12 @@ public UpdateAzDevCenterAdminProject_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -495,7 +507,7 @@ public UpdateAzDevCenterAdminProject_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +525,12 @@ public UpdateAzDevCenterAdminProject_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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 ) { @@ -530,7 +542,7 @@ public UpdateAzDevCenterAdminProject_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded.cs index d6ff0adef0c1..f878a69ddd2f 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded.cs @@ -13,9 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminProject_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -31,7 +32,7 @@ public partial class UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded : g /// /// The project properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ProjectUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ProjectUpdate(); /// /// The for this operation. @@ -84,6 +85,17 @@ public partial class UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded : g [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.DoNotExport] public string DevCenterId { get => _body.DevCenterId ?? null; set => _body.DevCenterId = value; } + /// The display name of the project. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The display name of the project.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + public string DisplayName { get => _body.DisplayName ?? null; set => _body.DisplayName = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -179,32 +191,32 @@ public partial class UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded : g ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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) @@ -451,12 +463,12 @@ public UpdateAzDevCenterAdminProject_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 +485,7 @@ public UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +503,12 @@ public UpdateAzDevCenterAdminProject_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.DevCenter.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 ) { @@ -508,7 +520,7 @@ public UpdateAzDevCenterAdminProject_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateExpanded.cs index 5cd082c9e43f..49caeaed0a8a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminSchedule_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Scheduled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminSchedule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -32,7 +33,7 @@ public partial class UpdateAzDevCenterAdminSchedule_UpdateExpanded : global::Sys /// /// The schedule properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdate(); /// /// The for this operation. @@ -244,8 +245,8 @@ public partial class UpdateAzDevCenterAdminSchedule_UpdateExpanded : global::Sys ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// The target time to trigger the action. The format is HH:MM. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The target time to trigger the action. The format is HH:MM.")] @@ -303,24 +304,24 @@ public partial class UpdateAzDevCenterAdminSchedule_UpdateExpanded : 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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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) @@ -553,12 +554,12 @@ public UpdateAzDevCenterAdminSchedule_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -575,7 +576,7 @@ public UpdateAzDevCenterAdminSchedule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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, ProjectName=ProjectName, PoolName=PoolName, Name=Name, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -593,12 +594,12 @@ public UpdateAzDevCenterAdminSchedule_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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -610,7 +611,7 @@ public UpdateAzDevCenterAdminSchedule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded.cs b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded.cs index 15cb8a1efe83..34b1c75ccb25 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/cmdlets/UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterAdminSchedule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Description(@"Partially updates a Scheduled.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenter.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.IEventListener { @@ -32,7 +33,7 @@ public partial class UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded : /// /// The schedule properties for partial update. Properties not provided in the update request will not be changed. /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IScheduleUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ScheduleUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IScheduleUpdate _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ScheduleUpdate(); /// /// The for this operation. @@ -172,8 +173,8 @@ public partial class UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded : ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags Tag { get => _body.Tag ?? null /* object */; set => _body.Tag = value; } /// The target time to trigger the action. The format is HH:MM. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The target time to trigger the action. The format is HH:MM.")] @@ -231,24 +232,24 @@ public partial class UpdateAzDevCenterAdminSchedule_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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) @@ -506,12 +507,12 @@ public UpdateAzDevCenterAdminSchedule_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.DevCenter.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -528,7 +529,7 @@ public UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +547,12 @@ public UpdateAzDevCenterAdminSchedule_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.DevCenter.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -563,7 +564,7 @@ public UpdateAzDevCenterAdminSchedule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 0a5ab35056b1..376edb94a8d2 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 49eb93b65a2d..da503e2485aa 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs index ad4a4e6bf670..59d161b3d57a 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 2828f6775e70..a0708e59734c 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/DevCenter/DevCenter.AutoRest/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.DevCenter.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.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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.DevCenter.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) diff --git a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/PsAttributes.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/PsAttributes.cs index ab420929256f..027e10c6b930 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttribute.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttribute.cs index 7eea042151d4..212398fbcfef 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttribute.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttribute.cs @@ -168,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; @@ -175,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) + { + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) { - psCmdlet.WriteWarning(this._message); + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) diff --git a/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttributeHelper.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttributeHelper.cs index 3c8aaa3cfedd..d18dada33903 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/MessageAttributeHelper.cs +++ b/src/DevCenter/DevCenter.AutoRest/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/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.Designer.cs b/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.Designer.cs index b7d1e82ffc67..6f544d57f28b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.Designer.cs @@ -3135,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 { diff --git a/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.resx b/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.resx index 613700a3a418..a08a2e50172b 100644 --- a/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.resx +++ b/src/DevCenter/DevCenter.AutoRest/generated/runtime/Properties/Resources.resx @@ -1736,7 +1736,10 @@ 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}' diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Az.DevCenter.md b/src/DevCenter/DevCenter.AutoRest/help/Az.DevCenter.md similarity index 92% rename from src/DevCenter/DevCenter.AutoRest/docs/Az.DevCenter.md rename to src/DevCenter/DevCenter.AutoRest/help/Az.DevCenter.md index d7235b33119f..2de52de9c599 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Az.DevCenter.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Az.DevCenter.md @@ -17,12 +17,21 @@ Gets an attached NetworkConnection. ### [Get-AzDevCenterAdminCatalog](Get-AzDevCenterAdminCatalog.md) Gets a catalog +### [Get-AzDevCenterAdminCatalogSyncErrorDetail](Get-AzDevCenterAdminCatalogSyncErrorDetail.md) +Gets catalog synchronization error details + ### [Get-AzDevCenterAdminDevBoxDefinition](Get-AzDevCenterAdminDevBoxDefinition.md) Gets a Dev Box definition ### [Get-AzDevCenterAdminDevCenter](Get-AzDevCenterAdminDevCenter.md) Gets a devcenter. +### [Get-AzDevCenterAdminEnvironmentDefinition](Get-AzDevCenterAdminEnvironmentDefinition.md) +Gets an environment definition from the catalog. + +### [Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail](Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md) +Gets Environment Definition error details + ### [Get-AzDevCenterAdminEnvironmentType](Get-AzDevCenterAdminEnvironmentType.md) Gets an environment type. @@ -142,6 +151,9 @@ Deletes a Scheduled. Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details +### [Start-AzDevCenterAdminPoolHealthCheck](Start-AzDevCenterAdminPoolHealthCheck.md) +Triggers a refresh of the pool status. + ### [Sync-AzDevCenterAdminCatalog](Sync-AzDevCenterAdminCatalog.md) Syncs templates for a template source. diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminAttachedNetwork.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminAttachedNetwork.md similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminAttachedNetwork.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminAttachedNetwork.md index f4a4591ba140..251c0358c90d 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminAttachedNetwork.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminAttachedNetwork.md @@ -194,35 +194,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalog.md new file mode 100644 index 000000000000..88b2e2213541 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalog.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalog +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminCatalog + +## SYNOPSIS +Gets a catalog + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminCatalog -DevCenterName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminCatalog -DevCenterName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminCatalog -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a catalog + +## EXAMPLES + +### Example 1: List catalogs in a dev center +```powershell +Get-AzDevCenterAdminCatalog -DevCenterName Contoso -ResourceGroupName testRg +``` + +This command lists the catalogs in the dev center "Contoso" under the resource group "testRg". + +### Example 2: Get a catalog +```powershell +Get-AzDevCenterAdminCatalog -DevCenterName Contoso -Name CentralCatalog -ResourceGroupName testRg +``` + +This command gets the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". + +### Example 3: Get a catalog using InputObject +```powershell +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalog = Get-AzDevCenterAdminCatalog -InputObject $catalog +``` + +This command gets the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Catalog. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: CatalogName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md new file mode 100644 index 000000000000..3f588de3e655 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md @@ -0,0 +1,188 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminCatalogSyncErrorDetail + +## SYNOPSIS +Gets catalog synchronization error details + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterAdminCatalogSyncErrorDetail -CatalogName -DevCenterName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets catalog synchronization error details + +## EXAMPLES + +### Example 1: Get the catalog sync error dteail +```powershell +Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` + +This command gets the sync error detail of the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". + +### Example 2: Get the catalog sync error detail using InputObject +```powershell +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalogErrorDetail = Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog +``` + +This command gets the sync error detail of the catalog named "CentralCatalog" in the dev center "Contoso" under the resource group "testRg". + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get +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: Get +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevBoxDefinition.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevBoxDefinition.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevBoxDefinition.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevBoxDefinition.md index df1d837678db..d86ac9b61860 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminDevBoxDefinition.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevBoxDefinition.md @@ -194,35 +194,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevCenter.md new file mode 100644 index 000000000000..ac1108ddf867 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminDevCenter.md @@ -0,0 +1,166 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmindevcenter +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminDevCenter + +## SYNOPSIS +Gets a devcenter. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminDevCenter [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminDevCenter -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminDevCenter -InputObject [-DefaultProfile ] + [] +``` + +### List1 +``` +Get-AzDevCenterAdminDevCenter -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a devcenter. + +## EXAMPLES + +### Example 1: List dev centers in a subscription +```powershell +Get-AzDevCenterAdminDevCenter +``` + +This command lists the dev centers in the current subscription. + +### Example 2: List dev centers in a resource group +```powershell +Get-AzDevCenterAdminDevCenter -ResourceGroupName testRg +``` + +This command lists the dev centers under the resource group "testRg". + +### Example 3: Get a dev center +```powershell +Get-AzDevCenterAdminDevCenter -ResourceGroupName testRg -Name Contoso +``` + +This command gets the dev center named "Contoso" under the resource group "testRg". + +### Example 4: Get a dev center using InputObject +```powershell +$devCenter = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminDevCenter -InputObject $devCenter +``` + +This command gets the dev center named "Contoso" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DevCenterName + +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: Get, List1 +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: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinition.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinition.md new file mode 100644 index 000000000000..bd61eb0db3cb --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinition.md @@ -0,0 +1,184 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminEnvironmentDefinition + +## SYNOPSIS +Gets an environment definition from the catalog. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminEnvironmentDefinition -CatalogName -DevCenterName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminEnvironmentDefinition -CatalogName -DevCenterName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminEnvironmentDefinition -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets an environment definition from the catalog. + +## EXAMPLES + +### Example 1: List environment definitions in a catalog +```powershell +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` + +This command lists the environment definitions in a catalog + +### Example 2: Get environment definition +```powershell +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -Name envDefName +``` + +This command gets the environment definition "envDefName". + +### Example 3: Get environment definition using InputObject +```powershell +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinition = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $environmentDefinition +``` + +This command gets the environment definition "envDefName" using InputObject + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Environment Definition. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: EnvironmentDefinitionName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md new file mode 100644 index 000000000000..5b1fab68ba65 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md @@ -0,0 +1,203 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail + +## SYNOPSIS +Gets Environment Definition error details + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -CatalogName -DevCenterName + -EnvironmentDefinitionName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets Environment Definition error details + +## EXAMPLES + +### Example 1: Get environment definition error details +```powershell +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -EnvironmentDefinitionName envDefName +``` + +This command gets the environment definition "envDefName" error details + +### Example 3: Get environment definition error details using InputObject +```powershell +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinitionErrorDetail = Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject $environmentDefinition +``` + +This command gets the environment definition "envDefName" error details using InputObject + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentDefinitionName +The name of the Environment Definition. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get +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: Get +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentType.md new file mode 100644 index 000000000000..ee93d6944e3f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminEnvironmentType.md @@ -0,0 +1,175 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmenttype +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminEnvironmentType + +## SYNOPSIS +Gets an environment type. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminEnvironmentType -DevCenterName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminEnvironmentType -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets an environment type. + +## EXAMPLES + +### Example 1: List environment types in a dev center +```powershell +Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Contoso +``` + +This command lists the environment types in the dev center "Contoso" under the resource group "testRg". + +### Example 2: Get a dev center environment type +```powershell + +``` + +```powershell + Get-AzDevCenterAdminEnvironmentType -ResourceGroupName testRg -DevCenterName Contoso -Name DevTest + ``` +This command gets the environment type named "DevTest" in the dev center "Contoso" under the resource group "testRg". + +### Example 3: Get a dev center environment type using InputObject +```powershell + +``` + +```powershell +$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminEnvironmentType -InputObject $envType + ``` +This command gets the environment type named "DevTest" in the dev center "Contoso" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the environment type. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: EnvironmentTypeName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminGallery.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminGallery.md new file mode 100644 index 000000000000..7009acf14068 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminGallery.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmingallery +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminGallery + +## SYNOPSIS +Gets a gallery + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminGallery -DevCenterName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminGallery -DevCenterName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminGallery -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a gallery + +## EXAMPLES + +### Example 1: List galleries in a dev center +```powershell +Get-AzDevCenterAdminGallery -ResourceGroupName testRg -DevCenterName Contoso +``` + +This command lists the galleries in the dev center "Contoso" under the resource group "testRg". + +### Example 2: Get a gallery +```powershell +Get-AzDevCenterAdminGallery -ResourceGroupName testRg -DevCenterName Contoso -Name StandardGallery +``` + +This command gets the gallery named "StandardGallery" in the dev center "Contoso" under the resource group "testRg". + +### Example 3: Get a gallery using InputObject +```powershell +$gallery = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "GalleryName" = "StandardGallery"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminGallery -InputObject $gallery +``` + +This command gets the gallery named "StandardGallery" in the dev center "Contoso" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the gallery. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: GalleryName + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImage.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImage.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImage.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImage.md index a4179855c541..609bf00c6ef2 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImage.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImage.md @@ -188,35 +188,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImage +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImage ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImageVersion.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImageVersion.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImageVersion.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImageVersion.md index 324b25cba629..09d26a446444 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminImageVersion.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminImageVersion.md @@ -192,35 +192,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IImageVersion +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IImageVersion ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnection.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnection.md new file mode 100644 index 000000000000..38400982c4bc --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnection.md @@ -0,0 +1,167 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnection +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminNetworkConnection + +## SYNOPSIS +Gets a network connection resource + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminNetworkConnection [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDevCenterAdminNetworkConnection -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminNetworkConnection -InputObject [-DefaultProfile ] + [] +``` + +### List1 +``` +Get-AzDevCenterAdminNetworkConnection -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a network connection resource + +## EXAMPLES + +### Example 1: List network connections in a subscription +```powershell +Get-AzDevCenterAdminNetworkConnection +``` + +This command lists network connections in the current subscription. + +### Example 2: List network connections in a resource group +```powershell +Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg +``` + +This command lists the network connections under the resource group "testRg". + +### Example 3: Get a network connection +```powershell +Get-AzDevCenterAdminNetworkConnection -ResourceGroupName testRg -Name eastusNetwork +``` + +This command gets the network connection named "eastusNetwork" under the resource group "testRg". + +### Example 4: Get a network connection using InputObject +```powershell +$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminNetworkConnection -InputObject $networkConnection +``` + +This command gets the network connection named "eastusNetwork" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Network Connection that can be applied to a Pool. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: NetworkConnectionName + +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: Get, List1 +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: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md new file mode 100644 index 000000000000..3702d615bbde --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionHealthDetail.md @@ -0,0 +1,141 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminnetworkconnectionhealthdetail +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminNetworkConnectionHealthDetail + +## SYNOPSIS +Gets health check status details. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets health check status details. + +## EXAMPLES + +### Example 1: List the health check details of a network connection +```powershell +Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName eastusNetwork -ResourceGroupName testRg +``` + +This command lists the health check details of the network connection "eastusNetwork" under the resource group "testRg". + +### Example 2: List the health check details of a network connection using InputObject +```powershell +$networkConnection = @{"ResourceGroupName" = "testRg"; "NetworkConnectionName" = "eastusNetwork"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminNetworkConnectionHealthDetail -InputObject $networkConnection +``` + +This command lists the health check details of the network connection "eastusNetwork" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkConnectionName +Name of the Network Connection that can be applied to a Pool. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +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: List +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: List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IHealthCheckStatusDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md index 6ff5574c62f9..2e67e4760a91 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.md @@ -102,11 +102,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IOutboundEnvironmentEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOutboundEnvironmentEndpoint ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminOperationStatus.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminOperationStatus.md new file mode 100644 index 000000000000..b3e2ecf939ec --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminOperationStatus.md @@ -0,0 +1,140 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminoperationstatus +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminOperationStatus + +## SYNOPSIS +Gets the current status of an async operation. + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterAdminOperationStatus -Location -OperationId [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminOperationStatus -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets the current status of an async operation. + +## EXAMPLES + +### Example 1: Get an operation +```powershell +Get-AzDevCenterAdminOperationStatus -Location "eastus" -OperationId "7e9e1394-dad0-4414-8160-21c592e880ef*4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614" +``` + +This command gets the operation. + +### Example 2: Get an operatio using InputObject +```powershell +$operation = @{"Location" = "eastus"; "OperationId" = "7e9e1394-dad0-4414-8160-21c592e880ef*4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminOperationStatus -InputObject $operation +``` + +This command gets the operation. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +The Azure region + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OperationId +The ID of an ongoing async operation + +```yaml +Type: System.String +Parameter Sets: Get +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: Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IOperationStatus + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminPool.md new file mode 100644 index 000000000000..5d3ef9d66f39 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminPool.md @@ -0,0 +1,168 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminpool +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminPool + +## SYNOPSIS +Gets a machine pool + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminPool -ProjectName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminPool -InputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a machine pool + +## EXAMPLES + +### Example 1: List pools in a project +```powershell +Get-AzDevCenterAdminPool -ResourceGroupName testRg -ProjectName DevProject +``` + +This command lists the pools in the project "DevProject" under the resource group "testRg". + +### Example 2: Get a pool +```powershell +Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject +``` + +This command gets the pool named "DevPool" in the project "DevProject" under the resource group "testRg". + +### Example 3: Get a pool using InputObject +```powershell +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminPool -InputObject $pool +``` + +This command gets the pool named "DevPool" in the project "DevProject" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the pool. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: PoolName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProject.md new file mode 100644 index 000000000000..88ef193fa531 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProject.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminproject +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminProject + +## SYNOPSIS +Gets a specific project. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminProject [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminProject -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminProject -InputObject [-DefaultProfile ] + [] +``` + +### List1 +``` +Get-AzDevCenterAdminProject -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a specific project. + +## EXAMPLES + +### Example 1: List projects in a subscription +```powershell + +``` + +```powershell +Get-AzDevCenterAdminProject + ``` +This command lists the projects in the current subscription. + +### Example 2: List projects in a resource group +```powershell +Get-AzDevCenterAdminProject -ResourceGroupName testRg +``` + +This command lists the projects under the resource group "testRg". + +### Example 3: Get a project +```powershell +Get-AzDevCenterAdminProject -ResourceGroupName testRg -Name DevProject +``` + +This command gets the project named "DevProject" under the resource group "testRg". + +### Example 4: Get a project using InputObject +```powershell +$project = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminProject -InputObject $project +``` + +This command gets the project named "DevProject" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the project. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ProjectName + +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: Get, List1 +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: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md new file mode 100644 index 000000000000..705caa4cf095 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectAllowedEnvironmentType.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectallowedenvironmenttype +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminProjectAllowedEnvironmentType + +## SYNOPSIS +Gets an allowed environment type. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminProjectAllowedEnvironmentType -EnvironmentTypeName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an allowed environment type. + +## EXAMPLES + +### Example 1: List project allowed environment types +```powershell +Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName DevProject -ResourceGroupName testRg +``` + +This command lists the allowed environment types in the project "DevProject" under the resource group "testRg". + +### Example 2: Get a project allowed environment type +```powershell +Get-AzDevCenterAdminProjectAllowedEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest +``` + +This command gets the allowed environment type named "DevTest" in the project "DevProject" under the resource group "testRg". + +### Example 3: Get a project allowed environment type using InputObject +```powershell +$envType = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminProjectAllowedEnvironmentType -InputObject $envType +``` + +This command gets the allowed environment type named "DevTest" in the project "DevProject" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -EnvironmentTypeName +The name of the environment type. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAllowedEnvironmentType + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectEnvironmentType.md new file mode 100644 index 000000000000..820fe808b4c6 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminProjectEnvironmentType.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminprojectenvironmenttype +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminProjectEnvironmentType + +## SYNOPSIS +Gets a project environment type. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminProjectEnvironmentType -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminProjectEnvironmentType -EnvironmentTypeName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminProjectEnvironmentType -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a project environment type. + +## EXAMPLES + +### Example 1: List project environment types +```powershell +Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg +``` + +This command lists the environment types in the project "DevProject" under the resource group "testRg". + +### Example 2: Get a project environment type +```powershell +Get-AzDevCenterAdminProjectEnvironmentType -ProjectName DevProject -ResourceGroupName testRg -EnvironmentTypeName DevTest +``` + +This command gets the environment type named "DevTest" in the project "DevProject" under the resource group "testRg". + +### Example 3: Get a project environment type using InputObject +```powershell +$envType = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminProjectEnvironmentType -InputObject $envType +``` + +This command gets the environment type named "DevTest" in the project "DevProject" under the resource group "testRg". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -EnvironmentTypeName +The name of the environment type. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +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: Get, List +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: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSchedule.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSchedule.md new file mode 100644 index 000000000000..716412dcdad3 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSchedule.md @@ -0,0 +1,156 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminSchedule + +## SYNOPSIS +Gets a schedule resource. + +## SYNTAX + +### GetWithDefault (Default) +``` +Get-AzDevCenterAdminSchedule -PoolName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminSchedule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a schedule resource. + +## EXAMPLES + +### Example 1: Get a schedule in a pool +```powershell +Get-AzDevCenterAdminSchedule -PoolName DevPool -ProjectName DevProject -ResourceGroupName testRg +``` + +This command gets a schedule in a pool "DevPool" under the project "DevProject. + +### Example 2: Get a schedule in a pool using InputObject +```powershell +$schedule = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Get-AzDevCenterAdminSchedule -InputObject $schedule +``` + +This command gets a schedule in a pool "DevPool" under the project "DevProject. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PoolName +Name of the pool. + +```yaml +Type: System.String +Parameter Sets: GetWithDefault +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: GetWithDefault +Aliases: + +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: GetWithDefault +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: GetWithDefault +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSku.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSku.md similarity index 94% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSku.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSku.md index 6aa283273729..78ed83751427 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminSku.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminSku.md @@ -68,11 +68,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenterSku +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenterSku ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminUsage.md b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminUsage.md similarity index 96% rename from src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminUsage.md rename to src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminUsage.md index ddd6413ef37d..1957fd14fed2 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Get-AzDevCenterAdminUsage.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Get-AzDevCenterAdminUsage.md @@ -84,11 +84,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IUsage +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IUsage ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md b/src/DevCenter/DevCenter.AutoRest/help/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md new file mode 100644 index 000000000000..c5c3a5fc17e1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.md @@ -0,0 +1,163 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteradminexecutechecknameavailability +schema: 2.0.0 +--- + +# Invoke-AzDevCenterAdminExecuteCheckNameAvailability + +## SYNOPSIS +Check the availability of name for resource + +## SYNTAX + +### ExecuteExpanded (Default) +``` +Invoke-AzDevCenterAdminExecuteCheckNameAvailability [-SubscriptionId ] [-Name ] + [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### ExecuteViaIdentityExpanded +``` +Invoke-AzDevCenterAdminExecuteCheckNameAvailability -InputObject [-Name ] + [-Type ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Check the availability of name for resource + +## EXAMPLES + +### Example 1: Check name availability +```powershell +Invoke-AzDevCenterAdminExecuteCheckNameAvailability -Name "Contoso" -Type "Microsoft.Devcenter/devcenters" +``` + +This command checks the name availability of "Contoso" with a resource type of "Microsoft.Devcenter/devcenters" + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: ExecuteViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the resource for which availability needs to be checked. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +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: ExecuteExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +The resource type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api30.ICheckNameAvailabilityResponse + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminAttachedNetwork.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminAttachedNetwork.md similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminAttachedNetwork.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminAttachedNetwork.md index 5044d184e2d2..87c654a53c93 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminAttachedNetwork.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminAttachedNetwork.md @@ -225,35 +225,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminCatalog.md similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminCatalog.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminCatalog.md index ba2ff53f8afe..2dc911a77b51 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminCatalog.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminCatalog.md @@ -362,35 +362,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevBoxDefinition.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevBoxDefinition.md similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevBoxDefinition.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevBoxDefinition.md index 407f67c5d5ce..5a1dc043dc27 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevBoxDefinition.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevBoxDefinition.md @@ -371,35 +371,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevCenter.md similarity index 81% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevCenter.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevCenter.md index 23c1c5a9b62d..41bfb761e55f 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminDevCenter.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminDevCenter.md @@ -15,14 +15,14 @@ Creates or updates a devcenter resource ### CreateExpanded (Default) ``` New-AzDevCenterAdminDevCenter -Name -ResourceGroupName -Location - [-SubscriptionId ] [-IdentityType ] + [-SubscriptionId ] [-DisplayName ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` -New-AzDevCenterAdminDevCenter -InputObject -Location +New-AzDevCenterAdminDevCenter -InputObject -Location [-DisplayName ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -96,6 +96,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityType Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). @@ -275,35 +290,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminEnvironmentType.md new file mode 100644 index 000000000000..f99bbe54182e --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminEnvironmentType.md @@ -0,0 +1,220 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminenvironmenttype +schema: 2.0.0 +--- + +# New-AzDevCenterAdminEnvironmentType + +## SYNOPSIS +Creates or updates an environment type. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName + [-SubscriptionId ] [-DisplayName ] [-Tag ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzDevCenterAdminEnvironmentType -InputObject [-DisplayName ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates an environment type. + +## EXAMPLES + +### Example 1: Create an environment type +```powershell +$tags = @{"dev" ="test"} +New-AzDevCenterAdminEnvironmentType -DevCenterName Contoso -Name DevTest -ResourceGroupName testRg -Tag $tags +``` + +This command creates an environment type named "DevTest" in the dev center "Contoso". + +### Example 2: Create an environment type using InputObject +```powershell +$tags = @{"dev" ="test"} +$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +New-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags +``` + +This command creates an environment type named "DevTest" in the dev center "Contoso". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The display name of the environment type. + +```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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the environment type. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: EnvironmentTypeName + +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: CreateExpanded +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: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminGallery.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminGallery.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminGallery.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminGallery.md index c44e0ed760d1..ce0e76c9a076 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminGallery.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminGallery.md @@ -225,35 +225,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminNetworkConnection.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminNetworkConnection.md similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminNetworkConnection.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminNetworkConnection.md index 0659672f55f8..ebdcee39a5e7 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminNetworkConnection.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminNetworkConnection.md @@ -351,35 +351,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminPool.md similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminPool.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminPool.md index cb93b2cfb05d..4a295c1228c2 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminPool.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminPool.md @@ -16,15 +16,19 @@ Creates or updates a machine pool ``` New-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName -DevBoxDefinitionName -LocalAdministrator -Location - -NetworkConnectionName [-SubscriptionId ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -NetworkConnectionName [-SubscriptionId ] [-DisplayName ] + [-ManagedVirtualNetworkRegion ] [-SingleSignOnStatus ] [-Tag ] + [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterAdminPool -InputObject -DevBoxDefinitionName - -LocalAdministrator -Location -NetworkConnectionName [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -LocalAdministrator -Location -NetworkConnectionName + [-DisplayName ] [-ManagedVirtualNetworkRegion ] [-SingleSignOnStatus ] + [-Tag ] [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -95,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the pool. + +```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. @@ -141,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ManagedVirtualNetworkRegion +The regions of the managed virtual network (required when managedNetworkType is Managed). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the pool. @@ -217,6 +251,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SingleSignOnStatus +Indicates whether Dev Boxes in this pool are created with single sign on enabled. +The also requires that single sign on be enabled on the tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -247,6 +297,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VirtualNetworkType +Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -287,35 +352,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProject.md similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProject.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProject.md index e61a28a2eac1..232742b2320c 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProject.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProject.md @@ -15,15 +15,16 @@ Creates or updates a project. ### CreateExpanded (Default) ``` New-AzDevCenterAdminProject -Name -ResourceGroupName -DevCenterId - -Location [-SubscriptionId ] [-Description ] [-MaxDevBoxesPerUser ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -Location [-SubscriptionId ] [-Description ] [-DisplayName ] + [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterAdminProject -InputObject -DevCenterId -Location - [-Description ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-Description ] [-DisplayName ] [-MaxDevBoxesPerUser ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -109,6 +110,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the project. + +```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. @@ -272,35 +288,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProjectEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProjectEnvironmentType.md similarity index 86% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProjectEnvironmentType.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProjectEnvironmentType.md index 58327a8c9029..076d22fa4ccd 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminProjectEnvironmentType.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminProjectEnvironmentType.md @@ -332,35 +332,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminSchedule.md b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminSchedule.md similarity index 79% rename from src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminSchedule.md rename to src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminSchedule.md index 1d7ca7433829..26489c4bd653 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/New-AzDevCenterAdminSchedule.md +++ b/src/DevCenter/DevCenter.AutoRest/help/New-AzDevCenterAdminSchedule.md @@ -257,35 +257,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/README.md b/src/DevCenter/DevCenter.AutoRest/help/README.md similarity index 100% rename from src/DevCenter/DevCenter.AutoRest/docs/README.md rename to src/DevCenter/DevCenter.AutoRest/help/README.md diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminAttachedNetwork.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminAttachedNetwork.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminAttachedNetwork.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminAttachedNetwork.md index 53ca33d199af..c3ff841bedcc 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminAttachedNetwork.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminAttachedNetwork.md @@ -231,31 +231,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminCatalog.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminCatalog.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminCatalog.md index b170715b41bb..56dd25ed77ae 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminCatalog.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminCatalog.md @@ -229,31 +229,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevBoxDefinition.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevBoxDefinition.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevBoxDefinition.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevBoxDefinition.md index 39fc8bab9f32..20634f969114 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevBoxDefinition.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevBoxDefinition.md @@ -231,31 +231,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevCenter.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevCenter.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevCenter.md index e22ca39b66ca..4a46d197d76b 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminDevCenter.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminDevCenter.md @@ -214,31 +214,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminEnvironmentType.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminEnvironmentType.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminEnvironmentType.md index e4b5d7bdeae1..7657f277357f 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminEnvironmentType.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminEnvironmentType.md @@ -198,31 +198,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminGallery.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminGallery.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminGallery.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminGallery.md index 07caea9142dc..5ae0c1028dcd 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminGallery.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminGallery.md @@ -229,31 +229,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminNetworkConnection.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminNetworkConnection.md similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminNetworkConnection.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminNetworkConnection.md index 6758c2234135..1e3aed9a2685 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminNetworkConnection.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminNetworkConnection.md @@ -213,31 +213,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminPool.md similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminPool.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminPool.md index 9e314e4735e8..e5cd6ca6710d 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminPool.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminPool.md @@ -229,31 +229,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProject.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProject.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProject.md index 6950d766792f..2d5f57d85d4a 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProject.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProject.md @@ -213,31 +213,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProjectEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProjectEnvironmentType.md similarity index 76% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProjectEnvironmentType.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProjectEnvironmentType.md index bfb897c9919a..d24026c3bdf9 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminProjectEnvironmentType.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminProjectEnvironmentType.md @@ -199,31 +199,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminSchedule.md b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminSchedule.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminSchedule.md rename to src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminSchedule.md index f9b594d01c2c..d7b8c78c0b58 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Remove-AzDevCenterAdminSchedule.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Remove-AzDevCenterAdminSchedule.md @@ -229,31 +229,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md b/src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md rename to src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md index 48721c8539d5..28f3007755fb 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminNetworkConnectionHealthCheck.md @@ -216,31 +216,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminPoolHealthCheck.md b/src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminPoolHealthCheck.md new file mode 100644 index 000000000000..8754d0dfff4f --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Start-AzDevCenterAdminPoolHealthCheck.md @@ -0,0 +1,233 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck +schema: 2.0.0 +--- + +# Start-AzDevCenterAdminPoolHealthCheck + +## SYNOPSIS +Triggers a refresh of the pool status. + +## SYNTAX + +### Run (Default) +``` +Start-AzDevCenterAdminPoolHealthCheck -PoolName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RunViaIdentity +``` +Start-AzDevCenterAdminPoolHealthCheck -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Triggers a refresh of the pool status. + +## EXAMPLES + +### Example 1: Start a pool health check +```powershell +Start-AzDevCenterAdminPoolHealthCheck -ResourceGroupName testRg -PoolName DevPool -ProjectName DevProject +``` + +This command starts the health check for the pool named "DevPool" in the project "DevProject". + +### Example 2: Start a pool health check using InputObject +```powershell +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminPoolHealthCheck -InputObject $pool +``` + +This command start the health check of the pool named "DevPool" in the project "DevProject". + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +Parameter Sets: RunViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PoolName +Name of the pool. + +```yaml +Type: System.String +Parameter Sets: Run +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: Run +Aliases: + +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: Run +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: Run +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Sync-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/help/Sync-AzDevCenterAdminCatalog.md similarity index 78% rename from src/DevCenter/DevCenter.AutoRest/docs/Sync-AzDevCenterAdminCatalog.md rename to src/DevCenter/DevCenter.AutoRest/help/Sync-AzDevCenterAdminCatalog.md index 5dd864a38277..e616ff304ccc 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Sync-AzDevCenterAdminCatalog.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Sync-AzDevCenterAdminCatalog.md @@ -229,31 +229,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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminCatalog.md similarity index 80% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminCatalog.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminCatalog.md index a685accb9411..9591f6cb4a80 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminCatalog.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminCatalog.md @@ -17,16 +17,16 @@ Partially updates a catalog. Update-AzDevCenterAdminCatalog -DevCenterName -Name -ResourceGroupName [-SubscriptionId ] [-AdoGitBranch ] [-AdoGitPath ] [-AdoGitSecretIdentifier ] [-AdoGitUri ] [-GitHubBranch ] [-GitHubPath ] [-GitHubSecretIdentifier ] - [-GitHubUri ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-GitHubUri ] [-SyncType ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDevCenterAdminCatalog -InputObject [-AdoGitBranch ] [-AdoGitPath ] [-AdoGitSecretIdentifier ] [-AdoGitUri ] [-GitHubBranch ] - [-GitHubPath ] [-GitHubSecretIdentifier ] [-GitHubUri ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-GitHubPath ] [-GitHubSecretIdentifier ] [-GitHubUri ] [-SyncType ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -295,6 +295,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SyncType +Indicates the type of sync that is configured for the catalog. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag Resource tags. @@ -350,35 +365,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevBoxDefinition.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevBoxDefinition.md similarity index 85% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevBoxDefinition.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevBoxDefinition.md index 7f980eacafde..33d10aadb1c6 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevBoxDefinition.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevBoxDefinition.md @@ -364,35 +364,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevCenter.md similarity index 77% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevCenter.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevCenter.md index 4eda6cc2ff8b..964ecfeaf1f4 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminDevCenter.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminDevCenter.md @@ -15,13 +15,14 @@ Partially updates a devcenter. ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminDevCenter -Name -ResourceGroupName [-SubscriptionId ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DisplayName ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzDevCenterAdminDevCenter -InputObject +Update-AzDevCenterAdminDevCenter -InputObject [-DisplayName ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -80,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityType Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). @@ -244,35 +260,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevCenter +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevCenter ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminEnvironmentType.md new file mode 100644 index 000000000000..94ec347ef0b1 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminEnvironmentType.md @@ -0,0 +1,222 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminenvironmenttype +schema: 2.0.0 +--- + +# Update-AzDevCenterAdminEnvironmentType + +## SYNOPSIS +Partially updates an environment type. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName + [-SubscriptionId ] [-DisplayName ] [-Tag ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDevCenterAdminEnvironmentType -InputObject [-DisplayName ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Partially updates an environment type. + +## EXAMPLES + +### Example 1: Update an environment type +```powershell +$tags = @{"dev" = "test" } + +Update-AzDevCenterAdminEnvironmentType -DevCenterName Contoso -Name DevTest -ResourceGroupName testRg -Tag $tags +``` + +This command updates an environment type named "DevTest" in the dev center "Contoso". + +### Example 2: Update an environment type using InputObject +```powershell +$envType = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "EnvironmentTypeName" = "DevTest"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$tags = @{"dev" = "test" } + +Update-AzDevCenterAdminEnvironmentType -InputObject $envType -Tag $tags +``` + +This command updates an environment type named "DevTest" in the dev center "Contoso". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The display name of the environment type. + +```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.DevCenter.Models.IDevCenterIdentity +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 environment type. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: EnvironmentTypeName + +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 +``` + +### -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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentType + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminNetworkConnection.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminNetworkConnection.md similarity index 84% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminNetworkConnection.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminNetworkConnection.md index c2e05333c3c9..6d108f95bbe4 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminNetworkConnection.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminNetworkConnection.md @@ -303,35 +303,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminPool.md new file mode 100644 index 000000000000..be31a834f703 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminPool.md @@ -0,0 +1,378 @@ +--- +external help file: +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminpool +schema: 2.0.0 +--- + +# Update-AzDevCenterAdminPool + +## SYNOPSIS +Partially updates a machine pool + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DevBoxDefinitionName ] [-DisplayName ] + [-LocalAdministrator ] [-ManagedVirtualNetworkRegion ] + [-NetworkConnectionName ] [-SingleSignOnStatus ] + [-StopOnDisconnectGracePeriodMinute ] [-StopOnDisconnectStatus ] + [-Tag ] [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDevCenterAdminPool -InputObject [-DevBoxDefinitionName ] + [-DisplayName ] [-LocalAdministrator ] [-ManagedVirtualNetworkRegion ] + [-NetworkConnectionName ] [-SingleSignOnStatus ] + [-StopOnDisconnectGracePeriodMinute ] [-StopOnDisconnectStatus ] + [-Tag ] [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Partially updates a machine pool + +## EXAMPLES + +### Example 1: Update a pool +```powershell +Update-AzDevCenterAdminPool -Name DevPool -ProjectName DevProject -ResourceGroupName testRg -DevBoxDefinitionName WebDevBox -LocalAdministrator "Disabled" -NetworkConnectionName Network1westus2 +``` + +This command updates a pool named "DevPool" in the project "DevProject". + +### Example 2: Update a pool using InputObject +```powershell +Get-AzDevCenterAdminPool -ResourceGroupName testRg -Name DevPool -ProjectName DevProject +Update-AzDevCenterAdminPool -InputObject $poolInput -DevBoxDefinitionName WebDevBox -LocalAdministrator "Disabled" -NetworkConnectionName Network1westus2 + +``` + +This command updates a pool named "DevPool" in the project "DevProject". + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevBoxDefinitionName +Name of a Dev Box definition in parent Project of this Pool + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DisplayName +The display name of the pool. + +```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.DevCenter.Models.IDevCenterIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -LocalAdministrator +Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedVirtualNetworkRegion +The regions of the managed virtual network (required when managedNetworkType is Managed). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the pool. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: PoolName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkConnectionName +Name of a Network Connection in parent Project of this Pool + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +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 +``` + +### -SingleSignOnStatus +Indicates whether Dev Boxes in this pool are created with single sign on enabled. +The also requires that single sign on be enabled on the tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StopOnDisconnectGracePeriodMinute +The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StopOnDisconnectStatus +Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.StopOnDisconnectEnableStatus +Parameter Sets: (All) +Aliases: + +Required: False +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 +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkType +Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +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.DevCenter.Models.IDevCenterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProject.md similarity index 75% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProject.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProject.md index a283e4843b57..92bb36b822b7 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProject.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProject.md @@ -15,15 +15,15 @@ Partially updates a project. ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminProject -Name -ResourceGroupName [-SubscriptionId ] - [-Description ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-Description ] [-DisplayName ] [-MaxDevBoxesPerUser ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDevCenterAdminProject -InputObject [-Description ] - [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] + [-DisplayName ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -95,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the project. + +```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. @@ -243,35 +258,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProjectEnvironmentType.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProjectEnvironmentType.md similarity index 84% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProjectEnvironmentType.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProjectEnvironmentType.md index f1df98ac6bce..3a6b411e0157 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminProjectEnvironmentType.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminProjectEnvironmentType.md @@ -315,35 +315,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminSchedule.md b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminSchedule.md similarity index 81% rename from src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminSchedule.md rename to src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminSchedule.md index ce9b563b6a93..16b8efce2188 100644 --- a/src/DevCenter/DevCenter.AutoRest/docs/Update-AzDevCenterAdminSchedule.md +++ b/src/DevCenter/DevCenter.AutoRest/help/Update-AzDevCenterAdminSchedule.md @@ -289,35 +289,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule ## 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 - - `[AttachedNetworkConnectionName ]`: The name of the attached NetworkConnection. - - `[CatalogName ]`: The name of the Catalog. - - `[DevBoxDefinitionName ]`: The name of the Dev Box definition. - - `[DevCenterName ]`: The name of the devcenter. - - `[EnvironmentTypeName ]`: The name of the environment type. - - `[GalleryName ]`: The name of the gallery. - - `[Id ]`: Resource identity path - - `[ImageName ]`: The name of the image. - - `[Location ]`: The Azure region - - `[NetworkConnectionName ]`: Name of the Network Connection that can be applied to a Pool. - - `[OperationId ]`: The ID of an ongoing async operation - - `[PoolName ]`: Name of the pool. - - `[ProjectName ]`: The name of the project. - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[ScheduleName ]`: The name of the schedule that uniquely identifies it. - - `[SubscriptionId ]`: The ID of the target subscription. - - `[VersionName ]`: The version of the image. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Connect-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Connect-AzDevCenterAdminCatalog.ps1 new file mode 100644 index 000000000000..5c239c747689 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/internal/Connect-AzDevCenterAdminCatalog.ps1 @@ -0,0 +1,202 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Connects a catalog to enable syncing. +.Description +Connects a catalog to enable syncing. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/connect-azdevcenteradmincatalog +#> +function Connect-AzDevCenterAdminCatalog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Connect', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Connect', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Connect', Mandatory)] + [Alias('CatalogName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${Name}, + + [Parameter(ParameterSetName='Connect', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Connect')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ConnectViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Connect = 'Az.DevCenter.private\Connect-AzDevCenterAdminCatalog_Connect'; + ConnectViaIdentity = 'Az.DevCenter.private\Connect-AzDevCenterAdminCatalog_ConnectViaIdentity'; + } + if (('Connect') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinition.ps1 new file mode 100644 index 000000000000..e0b9f6cd560c --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinition.ps1 @@ -0,0 +1,200 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets a Dev Box definition from the catalog +.Description +Gets a Dev Box definition from the catalog +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogdevboxdefinition +#> +function Get-AzDevCenterAdminCatalogDevBoxDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Dev Box definition. + ${DevBoxDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail.ps1 new file mode 100644 index 000000000000..7b56148e2a21 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Catalog Devbox Definition error details +.Description +Gets Catalog Devbox Definition error details +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogdevboxdefinitionerrordetail +#> +function Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Dev Box definition. + ${DevBoxDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTask.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTask.ps1 new file mode 100644 index 000000000000..b885fe158704 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTask.ps1 @@ -0,0 +1,200 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets a Task from the catalog +.Description +Gets a Task from the catalog +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincustomizationtask +#> +function Get-AzDevCenterAdminCustomizationTask { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Task. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTaskErrorDetail.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTaskErrorDetail.ps1 new file mode 100644 index 000000000000..b9b27fdb9261 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminCustomizationTaskErrorDetail.ps1 @@ -0,0 +1,195 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Customization Task error details +.Description +Gets Customization Task error details +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincustomizationtaskerrordetail +#> +function Get-AzDevCenterAdminCustomizationTaskErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Task. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTaskErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminSchedule.ps1 index 311d04bde83a..216153805d30 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/Get-AzDevCenterAdminSchedule.ps1 @@ -28,7 +28,7 @@ Get-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule #> function Get-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminAttachedNetwork.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminAttachedNetwork.ps1 index 12ff1da197be..f285d5d023aa 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminAttachedNetwork.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminAttachedNetwork.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminAttachedNetwork -InputObject $attachedNetwork -NetworkConnec .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork #> function New-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminCatalog.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminCatalog.ps1 index 75ba4d04ff25..b968e2631c65 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminCatalog.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminCatalog.ps1 @@ -33,7 +33,7 @@ New-AzDevCenterAdminCatalog -InputObject $catalog -GitHubBranch main -GitHubPath .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -44,6 +44,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -56,12 +57,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog #> function New-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -146,6 +148,13 @@ param( # Git URI. ${GitHubUri}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType] + # Indicates the type of sync that is configured for the catalog. + ${SyncType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminDevBoxDefinition.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminDevBoxDefinition.ps1 index 17b656c35447..41ec505cd275 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminDevBoxDefinition.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminDevBoxDefinition.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinition -Location "w .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition #> function New-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminGallery.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminGallery.ps1 index bf77050ab103..cab543b9c847 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminGallery.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminGallery.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminGallery -InputObject $gallery -GalleryResourceId "/subscript .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery #> function New-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminNetworkConnection.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminNetworkConnection.ps1 index 455ecdc2a1f6..7b5a25cc8f93 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminNetworkConnection.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminNetworkConnection.ps1 @@ -34,7 +34,7 @@ New-AzDevCenterAdminNetworkConnection -InputObject $networkConnection -Location .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -45,6 +45,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -57,12 +58,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection #> function New-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminPool.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminPool.ps1 index 1ddaae9fadd0..0de63d14a4e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminPool.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminPool.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminPool -InputObject $pool -Location westus2 -DevBoxDefinitionN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminpool #> function New-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -105,6 +107,12 @@ param( # Name of a Dev Box definition in parent Project of this Pool ${DevBoxDefinitionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -112,12 +120,27 @@ param( # Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. ${LocalAdministrator}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -138,6 +161,13 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProject.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProject.ps1 index a06dd99890a1..ca0e7db3a67c 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProject.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProject.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminProject -InputObject $project -Location eastus -DevCenterId .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminproject #> function New-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -105,6 +107,12 @@ param( # Resource Id of an associated DevCenter ${DevCenterId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProjectEnvironmentType.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProjectEnvironmentType.ps1 index 3e46743918ce..5f1ed8f01575 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProjectEnvironmentType.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminProjectEnvironmentType.ps1 @@ -50,7 +50,7 @@ New-AzDevCenterAdminProjectEnvironmentType -InputObject $envType -CreatorRoleAss .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -61,6 +61,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -73,12 +74,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminprojectenvironmenttype #> function New-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -116,7 +118,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -128,6 +130,12 @@ param( # The environment's resources will be deployed into this subscription. ${DeploymentTargetId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project environment type. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -159,14 +167,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. diff --git a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminSchedule.ps1 index e2056f3ed4a5..058a389c6548 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/New-AzDevCenterAdminSchedule.ps1 @@ -28,7 +28,7 @@ New-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,12 +52,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminschedule #> function New-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] diff --git a/src/DevCenter/DevCenter.AutoRest/internal/ProxyCmdletDefinitions.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/ProxyCmdletDefinitions.ps1 index d742de7e086e..9cb0f94f2081 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/ProxyCmdletDefinitions.ps1 @@ -14,6 +14,923 @@ # is regenerated. # ---------------------------------------------------------------------------------- +<# +.Synopsis +Connects a catalog to enable syncing. +.Description +Connects a catalog to enable syncing. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/connect-azdevcenteradmincatalog +#> +function Connect-AzDevCenterAdminCatalog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Connect', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Connect', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Connect', Mandatory)] + [Alias('CatalogName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${Name}, + + [Parameter(ParameterSetName='Connect', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Connect')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='ConnectViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Connect = 'Az.DevCenter.private\Connect-AzDevCenterAdminCatalog_Connect'; + ConnectViaIdentity = 'Az.DevCenter.private\Connect-AzDevCenterAdminCatalog_ConnectViaIdentity'; + } + if (('Connect') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets Catalog Devbox Definition error details +.Description +Gets Catalog Devbox Definition error details +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogdevboxdefinitionerrordetail +#> +function Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Dev Box definition. + ${DevBoxDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinitionErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a Dev Box definition from the catalog +.Description +Gets a Dev Box definition from the catalog +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogdevboxdefinition +#> +function Get-AzDevCenterAdminCatalogDevBoxDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Dev Box definition. + ${DevBoxDefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminCatalogDevBoxDefinition_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets Customization Task error details +.Description +Gets Customization Task error details +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincustomizationtaskerrordetail +#> +function Get-AzDevCenterAdminCustomizationTaskErrorDetail { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Task. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTaskErrorDetail_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTaskErrorDetail_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a Task from the catalog +.Description +Gets a Task from the catalog +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask +.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 + [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. + [CatalogName ]: The name of the Catalog. + [DevBoxDefinitionName ]: The name of the Dev Box definition. + [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. + [EnvironmentTypeName ]: The name of the environment type. + [GalleryName ]: The name of the gallery. + [Id ]: Resource identity path + [ImageName ]: The name of the image. + [Location ]: The Azure region + [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. + [OperationId ]: The ID of an ongoing async operation + [PoolName ]: Name of the pool. + [ProjectName ]: The name of the project. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScheduleName ]: The name of the schedule that uniquely identifies it. + [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. + [VersionName ]: The version of the image. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincustomizationtask +#> +function Get-AzDevCenterAdminCustomizationTask { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICustomizationTask])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Catalog. + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the devcenter. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [System.String] + # The name of the Task. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] + # 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.DevCenter.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 + + $mapping = @{ + Get = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_Get'; + GetViaIdentity = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_GetViaIdentity'; + List = 'Az.DevCenter.private\Get-AzDevCenterAdminCustomizationTask_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + <# .Synopsis Lists all of the available resource provider operations. @@ -138,7 +1055,7 @@ Get-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -149,6 +1066,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -161,12 +1079,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminschedule #> function Get-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -319,7 +1238,7 @@ New-AzDevCenterAdminAttachedNetwork -InputObject $attachedNetwork -NetworkConnec .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -330,6 +1249,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -342,12 +1262,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminattachednetwork #> function New-AzDevCenterAdminAttachedNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IAttachedNetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IAttachedNetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -516,7 +1437,7 @@ New-AzDevCenterAdminCatalog -InputObject $catalog -GitHubBranch main -GitHubPath .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -527,6 +1448,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -539,12 +1461,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmincatalog #> function New-AzDevCenterAdminCatalog { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -629,6 +1552,13 @@ param( # Git URI. ${GitHubUri}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType] + # Indicates the type of sync that is configured for the catalog. + ${SyncType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -750,7 +1680,7 @@ New-AzDevCenterAdminDevBoxDefinition -InputObject $devBoxDefinition -Location "w .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -761,6 +1691,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -773,12 +1704,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmindevboxdefinition #> function New-AzDevCenterAdminDevBoxDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IDevBoxDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IDevBoxDefinition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -1006,7 +1938,7 @@ New-AzDevCenterAdminGallery -InputObject $gallery -GalleryResourceId "/subscript .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery .Notes COMPLEX PARAMETER PROPERTIES @@ -1017,6 +1949,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1029,12 +1962,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradmingallery #> function New-AzDevCenterAdminGallery { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IGallery])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IGallery])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -1204,7 +2138,7 @@ New-AzDevCenterAdminNetworkConnection -InputObject $networkConnection -Location .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -1215,6 +2149,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1227,12 +2162,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminnetworkconnection #> function New-AzDevCenterAdminNetworkConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.INetworkConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.INetworkConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -1441,7 +2377,7 @@ New-AzDevCenterAdminPool -InputObject $pool -Location westus2 -DevBoxDefinitionN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -1452,6 +2388,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1464,12 +2401,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminpool #> function New-AzDevCenterAdminPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -1518,6 +2456,12 @@ param( # Name of a Dev Box definition in parent Project of this Pool ${DevBoxDefinitionName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the pool. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.LocalAdminStatus])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -1525,12 +2469,27 @@ param( # Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. ${LocalAdministrator}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String[]] + # The regions of the managed virtual network (required when managedNetworkType is Managed). + ${ManagedVirtualNetworkRegion}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.String] # Name of a Network Connection in parent Project of this Pool ${NetworkConnectionName}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus] + # Indicates whether Dev Boxes in this pool are created with single sign on enabled. + # The also requires that single sign on be enabled on the tenant. + ${SingleSignOnStatus}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -1551,6 +2510,13 @@ param( # Resource tags. ${Tag}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType] + # Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + ${VirtualNetworkType}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1697,7 +2663,7 @@ New-AzDevCenterAdminProjectEnvironmentType -InputObject $envType -CreatorRoleAss .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType .Notes COMPLEX PARAMETER PROPERTIES @@ -1708,6 +2674,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1720,12 +2687,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminprojectenvironmenttype #> function New-AzDevCenterAdminProjectEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentType])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -1763,7 +2731,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignmentRoles]))] [System.Collections.Hashtable] # A map of roles to assign to the environment creator. ${CreatorRoleAssignmentRole}, @@ -1775,6 +2743,12 @@ param( # The environment's resources will be deployed into this subscription. ${DeploymentTargetId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project environment type. + ${DisplayName}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.ManagedServiceIdentityType])] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] @@ -1806,14 +2780,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProjectEnvironmentTypeUpdatePropertiesUserRoleAssignments]))] [System.Collections.Hashtable] # Role Assignments created on environment backing resources. # This is a mapping from a user object ID to an object of role definition IDs. @@ -1928,7 +2902,7 @@ New-AzDevCenterAdminProject -InputObject $project -Location eastus -DevCenterId .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -1939,6 +2913,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -1951,12 +2926,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminproject #> function New-AzDevCenterAdminProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -2005,6 +2981,12 @@ param( # Resource Id of an associated DevCenter ${DevCenterId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] + [System.String] + # The display name of the project. + ${DisplayName}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] [System.Int32] @@ -2140,7 +3122,7 @@ New-AzDevCenterAdminSchedule -InputObject $schedule .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -2151,6 +3133,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2163,12 +3146,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteradminschedule #> function New-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -2365,6 +3349,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2377,6 +3362,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminschedule @@ -2534,196 +3520,6 @@ end { } } -<# -.Synopsis -Triggers a refresh of the pool status. -.Description -Triggers a refresh of the pool status. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -.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 - [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. - [CatalogName ]: The name of the Catalog. - [DevBoxDefinitionName ]: The name of the Dev Box definition. - [DevCenterName ]: The name of the devcenter. - [EnvironmentTypeName ]: The name of the environment type. - [GalleryName ]: The name of the gallery. - [Id ]: Resource identity path - [ImageName ]: The name of the image. - [Location ]: The Azure region - [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. - [OperationId ]: The ID of an ongoing async operation - [PoolName ]: Name of the pool. - [ProjectName ]: The name of the project. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScheduleName ]: The name of the schedule that uniquely identifies it. - [SubscriptionId ]: The ID of the target subscription. - [VersionName ]: The version of the image. -.Link -https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck -#> -function Start-AzDevCenterAdminPoolHealthCheck { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Run', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # Name of the pool. - ${PoolName}, - - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the project. - ${ProjectName}, - - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Run')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='RunViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] - # 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.DevCenter.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 - - $mapping = @{ - Run = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_Run'; - RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity'; - } - if (('Run') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} - <# .Synopsis Partially updates a Scheduled. @@ -2739,7 +3535,7 @@ New-AzDevCenterAdminSchedule -InputObject $scheduleInput -State "Disabled" -Time .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -2750,6 +3546,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -2762,12 +3559,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminschedule #> function Update-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -2812,7 +3610,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Remove-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Remove-AzDevCenterAdminSchedule.ps1 index 8662e97382f9..7e8c3379a2b7 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/Remove-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/Remove-AzDevCenterAdminSchedule.ps1 @@ -39,6 +39,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -51,6 +52,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteradminschedule diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Start-AzDevCenterAdminPoolHealthCheck.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Start-AzDevCenterAdminPoolHealthCheck.ps1 deleted file mode 100644 index b4939defeb0b..000000000000 --- a/src/DevCenter/DevCenter.AutoRest/internal/Start-AzDevCenterAdminPoolHealthCheck.ps1 +++ /dev/null @@ -1,205 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# 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 -Triggers a refresh of the pool status. -.Description -Triggers a refresh of the pool status. -.Example -{{ Add code here }} -.Example -{{ Add code here }} - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity -.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 - [AttachedNetworkConnectionName ]: The name of the attached NetworkConnection. - [CatalogName ]: The name of the Catalog. - [DevBoxDefinitionName ]: The name of the Dev Box definition. - [DevCenterName ]: The name of the devcenter. - [EnvironmentTypeName ]: The name of the environment type. - [GalleryName ]: The name of the gallery. - [Id ]: Resource identity path - [ImageName ]: The name of the image. - [Location ]: The Azure region - [NetworkConnectionName ]: Name of the Network Connection that can be applied to a Pool. - [OperationId ]: The ID of an ongoing async operation - [PoolName ]: Name of the pool. - [ProjectName ]: The name of the project. - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScheduleName ]: The name of the schedule that uniquely identifies it. - [SubscriptionId ]: The ID of the target subscription. - [VersionName ]: The version of the image. -.Link -https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck -#> -function Start-AzDevCenterAdminPoolHealthCheck { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Run', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # Name of the pool. - ${PoolName}, - - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the project. - ${ProjectName}, - - [Parameter(ParameterSetName='Run', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='Run')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='RunViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity] - # 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.DevCenter.Category('Azure')] - [System.Management.Automation.PSObject] - # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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 - - $mapping = @{ - Run = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_Run'; - RunViaIdentity = 'Az.DevCenter.private\Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity'; - } - if (('Run') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - - throw - } - -} -end { - try { - $steppablePipeline.End() - - } catch { - - throw - } -} -} diff --git a/src/DevCenter/DevCenter.AutoRest/internal/Update-AzDevCenterAdminSchedule.ps1 b/src/DevCenter/DevCenter.AutoRest/internal/Update-AzDevCenterAdminSchedule.ps1 index bc52cd35a9fb..070993d39d0a 100644 --- a/src/DevCenter/DevCenter.AutoRest/internal/Update-AzDevCenterAdminSchedule.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/internal/Update-AzDevCenterAdminSchedule.ps1 @@ -29,7 +29,7 @@ New-AzDevCenterAdminSchedule -InputObject $scheduleInput -State "Disabled" -Time .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.IDevCenterIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -40,6 +40,7 @@ INPUTOBJECT : Identity Parameter [CatalogName ]: The name of the Catalog. [DevBoxDefinitionName ]: The name of the Dev Box definition. [DevCenterName ]: The name of the devcenter. + [EnvironmentDefinitionName ]: The name of the Environment Definition. [EnvironmentTypeName ]: The name of the environment type. [GalleryName ]: The name of the gallery. [Id ]: Resource identity path @@ -52,12 +53,13 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ScheduleName ]: The name of the schedule that uniquely identifies it. [SubscriptionId ]: The ID of the target subscription. + [TaskName ]: The name of the Task. [VersionName ]: The version of the image. .Link https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteradminschedule #> function Update-AzDevCenterAdminSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -102,7 +104,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20230401.ITags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ITags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminAttachedNetwork.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminAttachedNetwork.Recording.json index 54dc44daa006..f998732654a6 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminAttachedNetwork.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminAttachedNetwork.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+Get1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6naz5c?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+Get1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6naz5c?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6naz5c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6naz5c?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -85,10 +85,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks/6naz5c?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks/6naz5c?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks/6naz5c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/attachednetworks/6naz5c?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -129,10 +129,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminAttachedNetwork+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalog.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalog.Recording.json index 8e08056aca1b..32e683e0495a 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalog.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalog.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminCatalog+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminCatalog+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminCatalog+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminCatalog+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminCatalog+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminCatalog+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminCatalog+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminCatalog+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalogSyncErrorDetail.Tests.ps1 b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalogSyncErrorDetail.Tests.ps1 new file mode 100644 index 000000000000..8384468458ea --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminCatalogSyncErrorDetail.Tests.ps1 @@ -0,0 +1,26 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterAdminCatalogSyncErrorDetail')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterAdminCatalogSyncErrorDetail.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 'Get-AzDevCenterAdminCatalogSyncErrorDetail' { + It 'Get' -skip { + Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName $env.devCenterName10 -CatalogName $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + } + + It 'GetViaIdentity' -skip { + $catalog = Get-AzDevCenterAdminCatalog -DevCenterName $env.devCenterName10 -Name $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog + } +} diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevBoxDefinition.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevBoxDefinition.Recording.json index c134cd10a38c..6c9d54ad8b00 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevBoxDefinition.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevBoxDefinition.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/h3dpk9?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/h3dpk9?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/h3dpk9?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/h3dpk9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+Get1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions/h3dpk9?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+Get1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions/h3dpk9?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions/h3dpk9?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions/h3dpk9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevBoxDefinition+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/devboxdefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevCenter.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevCenter.Recording.json index 2d63a20b3875..a7ac0866a689 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevCenter.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminDevCenter.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminDevCenter+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/devcenters?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevCenter+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/devcenters?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/devcenters?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/devcenters?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevCenter+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevCenter+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevCenter+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevCenter+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevCenter+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminDevCenter+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -165,10 +165,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminDevCenter+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminDevCenter+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Recording.json new file mode 100644 index 000000000000..e730bf4ae556 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Recording.json @@ -0,0 +1,169 @@ +{ + "Get-AzDevCenterAdminEnvironmentDefinition+[NoContext]+List+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "67ab4643-b9ca-4417-b41d-c986d257bdc6" ], + "CommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition" ], + "FullCommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "9d9f1a8f-a469-416a-8dcb-dcc8b077e808" ], + "x-ms-correlation-request-id": [ "43699242-ab80-4a4f-bc53-00211d871798" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024251Z:43699242-ab80-4a4f-bc53-00211d871798" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:42:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2869" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/FunctionApp\",\"name\":\"FunctionApp\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7516787Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7516787Z\"},\"properties\":{\"description\":\"Deploys an Azure Function App, Storage Account, and Application Insights\",\"parameters\":[{\"id\":\"name\",\"name\":\"Name\",\"description\":\"Name of the Function App.\",\"type\":\"string\",\"readOnly\":false,\"required\":true},{\"id\":\"supportsHttpsTrafficOnly\",\"name\":\"Supports Https Traffic Only\",\"description\":\"Allows https traffic only to Storage Account and Functions App if set to true.\",\"type\":\"boolean\",\"readOnly\":false,\"required\":false},{\"id\":\"runtime\",\"name\":\"Runtime\",\"description\":\"The language worker runtime to load in the function app.\",\"type\":\"string\",\"readOnly\":false,\"required\":false}],\"templatePath\":\"Environments/FunctionApp/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}},{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox\",\"name\":\"Sandbox\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7519519Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7519519Z\"},\"properties\":{\"description\":\"Deploys an empty sandbox environment\",\"parameters\":[],\"templatePath\":\"Environments/Sandbox/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}},{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/WebApp\",\"name\":\"WebApp\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7964834Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7964834Z\"},\"properties\":{\"description\":\"Deploys an Azure Web App without a data store\",\"parameters\":[{\"id\":\"name\",\"name\":\"Name\",\"description\":\"Name of the Web App.\",\"type\":\"string\",\"readOnly\":false,\"required\":true}],\"templatePath\":\"Environments/WebApp/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}}]}", + "isContentBase64": false + } + }, + "Get-AzDevCenterAdminEnvironmentDefinition+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "5fe72a4b-d642-4dd0-b48d-496736c0bd3e" ], + "CommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition" ], + "FullCommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"21002882-0000-3400-0000-65518a430000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "3ee4cf24-982b-4065-aa9c-f5f8ac8ef42c" ], + "x-ms-correlation-request-id": [ "a817a0e3-9249-48c3-811f-96bb491ac4a3" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024251Z:a817a0e3-9249-48c3-811f-96bb491ac4a3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:42:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "732" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox\",\"name\":\"Sandbox\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7519519Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7519519Z\"},\"properties\":{\"description\":\"Deploys an empty sandbox environment\",\"parameters\":[],\"templatePath\":\"Environments/Sandbox/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Get-AzDevCenterAdminEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "4f3bf532-d39f-4a05-8ef8-fe57db5fca3a" ], + "CommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition" ], + "FullCommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"21002882-0000-3400-0000-65518a430000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "b2cd8b74-606e-4e01-9f94-aba41b6dbde5" ], + "x-ms-correlation-request-id": [ "f192a3e3-30d3-4d9b-8b01-3783f37a3afe" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024251Z:f192a3e3-30d3-4d9b-8b01-3783f37a3afe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:42:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "732" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox\",\"name\":\"Sandbox\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7519519Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7519519Z\"},\"properties\":{\"description\":\"Deploys an empty sandbox environment\",\"parameters\":[],\"templatePath\":\"Environments/Sandbox/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "Get-AzDevCenterAdminEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "28d59446-495a-4371-adf8-d7df21ef8b34" ], + "CommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition" ], + "FullCommandName": [ "Get-AzDevCenterAdminEnvironmentDefinition_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"21002882-0000-3400-0000-65518a430000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "0d0a98d3-b5aa-4f62-b59f-ceccb9862469" ], + "x-ms-correlation-request-id": [ "a907f311-589d-4f38-901a-66018265346d" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024252Z:a907f311-589d-4f38-901a-66018265346d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:42:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "732" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/devcenters/pwshTestDevCenter/catalogs/i29785/environmentDefinitions/Sandbox\",\"name\":\"Sandbox\",\"type\":\"microsoft.devcenter/devcenters/catalogs/environmentdefinitions\",\"systemData\":{\"createdBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"createdByType\":\"Application\",\"createdAt\":\"2023-11-13T02:30:26.7519519Z\",\"lastModifiedBy\":\"2dc3760b-4713-48b1-a383-1dfe3e449ec2\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-11-13T02:30:26.7519519Z\"},\"properties\":{\"description\":\"Deploys an empty sandbox environment\",\"parameters\":[],\"templatePath\":\"Environments/Sandbox/azuredeploy.json\",\"validationStatus\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Tests.ps1 b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Tests.ps1 new file mode 100644 index 000000000000..ea9c5e6e57ba --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinition.Tests.ps1 @@ -0,0 +1,32 @@ +if (($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterAdminEnvironmentDefinition')) { + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterAdminEnvironmentDefinition.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 'Get-AzDevCenterAdminEnvironmentDefinition' { + It 'List' { + $listOfEnvironmentDefinitions = Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName $env.devCenterName10 -CatalogName $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + $listOfEnvironmentDefinitions.Count | Should -BeGreaterOrEqual 1 + } + + It 'Get' { + $envDef = Get-AzDevCenterAdminEnvironmentDefinition -Name "Sandbox" -DevCenterName $env.devCenterName10 -CatalogName $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + $envDef.Name | Should -Be "Sandbox" + } + + It 'GetViaIdentity' { + $envDef = Get-AzDevCenterAdminEnvironmentDefinition -Name "Sandbox" -DevCenterName $env.devCenterName10 -CatalogName $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + $envDef = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $envDef + $envDef.Name | Should -Be "Sandbox" + } +} diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.Tests.ps1 b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.Tests.ps1 new file mode 100644 index 000000000000..da49765b31fe --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.Tests.ps1 @@ -0,0 +1,26 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.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 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail' { + It 'Get' -skip { + Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -EnvironmentDefinition "Sandbox" -DevCenterName $env.devCenterName10 -CatalogName $env.catalogName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 + } + + It 'GetViaIdentity' -skip { + Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject @{"EnvironmentDefinition" = "Sandbox"; "-DevCenterName" = $env.devCenterName10; "ResourceGroupName" = $env.resourceGroupName10; "CatalogName" = $env.catalogName; "SubscriptionId" = $env.SubscriptionId2} + + } +} diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentType.Recording.json index b4746e41de5b..0c32b0d6b741 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminGallery.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminGallery.Recording.json index 43078fd1ebc6..c865eb1ac993 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminGallery.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminGallery.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminGallery+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminGallery+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminGallery+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminGallery+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminGallery+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminGallery+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminGallery+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminGallery+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImage.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImage.Recording.json index 69af8a58e8bd..70f0e6f53bbf 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImage.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImage.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminImage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/images?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/images?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/images?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/images?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImage+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImage+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImage+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImage+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -131,10 +131,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImage+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImage+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -175,10 +175,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImage+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminImage+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImageVersion.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImageVersion.Recording.json index 5c63ff7ff566..d76eaf4ac509 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImageVersion.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminImageVersion.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminImageVersion+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImageVersion+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImageVersion+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImageVersion+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImageVersion+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminImageVersion+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -131,10 +131,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminImageVersion+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminImageVersion+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-os/versions/1.0.0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnection.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnection.Recording.json index c7cb0af032c2..3a048d02c519 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnection.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnection.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminNetworkConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/networkConnections?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/networkConnections?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/networkConnections?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/networkConnections?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminNetworkConnection+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnection+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminNetworkConnection+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnection+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminNetworkConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -165,10 +165,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminNetworkConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminNetworkConnection+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Recording.json index 4f552d542965..6958530b4b08 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Recording.json @@ -1,17 +1,17 @@ { - "Get-AzDevCenterAdminNetworkConnectionHealthDetail+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/healthChecks/latest?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnectionHealthDetail+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/amlim-rg/providers/Microsoft.DevCenter/networkConnections/amlim-nc2/healthChecks?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/healthChecks/latest?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/amlim-rg/providers/Microsoft.DevCenter/networkConnections/amlim-nc2/healthChecks?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "2268642d-0bcb-4a67-8c0a-9f7f22ce8672" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "d2571f54-3fac-41ff-a53a-8721c3ff78c3" ], "CommandName": [ "Get-AzDevCenterAdminNetworkConnectionHealthDetail" ], - "FullCommandName": [ "Get-AzDevCenterAdminNetworkConnectionHealthDetail_Get" ], + "FullCommandName": [ "Get-AzDevCenterAdminNetworkConnectionHealthDetail_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.11", "Az.DevCenter/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -22,24 +22,25 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11894" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], "x-ms-providerhub-traffic": [ "True" ], + "x-ms-correlation-request-id": [ "dd064a2e-4a3e-4391-9a16-4107cdfffab4" ], + "x-ms-client-request-id": [ "d2571f54-3fac-41ff-a53a-8721c3ff78c3" ], "X-Rate-Limit-Limit": [ "1m" ], - "X-Rate-Limit-Remaining": [ "295" ], - "X-Rate-Limit-Reset": [ "2023-06-23T00:10:53.9492420Z" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T02:56:50.5175077Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "d28c2f63-9f56-4b30-a343-8367c8c9862b" ], - "x-ms-correlation-request-id": [ "209cdb06-6b7d-47d3-a9ca-286c24ce47c1" ], - "x-ms-routing-request-id": [ "WESTUS:20230623T001005Z:209cdb06-6b7d-47d3-a9ca-286c24ce47c1" ], + "x-ms-request-id": [ "12ca2332-60fd-4a83-8954-f686f0fe4905" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T025550Z:dd064a2e-4a3e-4391-9a16-4107cdfffab4" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Fri, 23 Jun 2023 00:10:05 GMT" ] + "Date": [ "Mon, 13 Nov 2023 02:55:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1229" ], + "Content-Length": [ "1241" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"startDateTime\":\"2023-06-23T00:01:55.000000Z\",\"endDateTime\":\"2023-06-23T00:07:31.000000Z\",\"healthChecks\":[{\"status\":\"Passed\",\"displayName\":\"Azure tenant readiness\",\"startDateTime\":\"2023-06-23T00:01:56.470976Z\",\"endDateTime\":\"2023-06-23T00:02:41.034469Z\"},{\"status\":\"Passed\",\"displayName\":\"Azure virtual network readiness\",\"startDateTime\":\"2023-06-23T00:01:56.633663Z\",\"endDateTime\":\"2023-06-23T00:01:58.417032Z\"},{\"status\":\"Passed\",\"displayName\":\"Intune enrollment restrictions allow Windows enrollment\",\"startDateTime\":\"2023-06-23T00:01:56.852955Z\",\"endDateTime\":\"2023-06-23T00:01:58.100062Z\"},{\"status\":\"Passed\",\"displayName\":\"Azure subnet IP address usage\",\"startDateTime\":\"2023-06-23T00:01:58.602797Z\",\"endDateTime\":\"2023-06-23T00:01:58.762849Z\"},{\"status\":\"Passed\",\"displayName\":\"Endpoint connectivity\",\"startDateTime\":\"2023-06-23T00:06:55.000000Z\",\"endDateTime\":\"2023-06-23T00:07:11.000000Z\"},{\"status\":\"Passed\",\"displayName\":\"Localization language package readiness\",\"startDateTime\":\"2023-06-23T00:06:55.000000Z\",\"endDateTime\":\"2023-06-23T00:07:11.000000Z\"},{\"status\":\"Passed\",\"displayName\":\"UDP connection check\",\"startDateTime\":\"2023-06-23T00:07:13.000000Z\",\"endDateTime\":\"2023-06-23T00:07:14.000000Z\"}]}}", + "Content": "{\"value\":[{\"properties\":{\"startDateTime\":\"2023-10-18T21:22:04.000000Z\",\"endDateTime\":\"2023-10-18T21:28:39.000000Z\",\"healthChecks\":[{\"status\":\"Passed\",\"displayName\":\"Azure tenant readiness\",\"startDateTime\":\"2023-10-18T21:22:15.064349Z\",\"endDateTime\":\"2023-10-18T21:22:59.268217Z\"},{\"status\":\"Passed\",\"displayName\":\"Azure virtual network readiness\",\"startDateTime\":\"2023-10-18T21:22:15.169837Z\",\"endDateTime\":\"2023-10-18T21:22:16.539678Z\"},{\"status\":\"Passed\",\"displayName\":\"Intune enrollment restrictions allow Windows enrollment\",\"startDateTime\":\"2023-10-18T21:22:15.297235Z\",\"endDateTime\":\"2023-10-18T21:22:16.407281Z\"},{\"status\":\"Passed\",\"displayName\":\"Azure subnet IP address usage\",\"startDateTime\":\"2023-10-18T21:22:16.610045Z\",\"endDateTime\":\"2023-10-18T21:22:16.777764Z\"},{\"status\":\"Passed\",\"displayName\":\"Endpoint connectivity\",\"startDateTime\":\"2023-10-18T21:27:52.000000Z\",\"endDateTime\":\"2023-10-18T21:28:10.000000Z\"},{\"status\":\"Passed\",\"displayName\":\"Localization language package readiness\",\"startDateTime\":\"2023-10-18T21:27:52.000000Z\",\"endDateTime\":\"2023-10-18T21:28:10.000000Z\"},{\"status\":\"Passed\",\"displayName\":\"UDP connection check\",\"startDateTime\":\"2023-10-18T21:28:12.000000Z\",\"endDateTime\":\"2023-10-18T21:28:12.000000Z\"}]}}]}", "isContentBase64": false } } diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Tests.ps1 b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Tests.ps1 index d43fc95deac4..5aef9f73e86f 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Tests.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionHealthDetail.Tests.ps1 @@ -16,7 +16,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterAdminNetworkCo Describe 'Get-AzDevCenterAdminNetworkConnectionHealthDetail' { It 'Get' { - $healthDetail = Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName $env.networkConnectionName -ResourceGroupName $env.resourceGroup + $healthDetail = Get-AzDevCenterAdminNetworkConnectionHealthDetail -NetworkConnectionName $env.networkConnection10 -ResourceGroupName $env.rg10 -SubscriptionId $env.SubscriptionId2 $healthDetail.HealthCheck.Count | Should -Be 7 $healthDetail.HealthCheck[0].DisplayName | Should -Be "Azure tenant readiness" $healthDetail.HealthCheck[1].DisplayName | Should -Be "Azure virtual network readiness" diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.Recording.json index c173d5747ab1..415b4ea1672b 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/outboundNetworkDependenciesEndpoints?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminNetworkConnectionOutboundNetworkDependencyEndpoint+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/outboundNetworkDependenciesEndpoints?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/outboundNetworkDependenciesEndpoints?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/outboundNetworkDependenciesEndpoints?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminOperationStatus.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminOperationStatus.Recording.json index f7b96a698989..c338adf538dd 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminOperationStatus.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminOperationStatus.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminOperationStatus+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/OperationStatus/7e9e1394-dad0-4414-8160-21c592e880ef%2A4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminOperationStatus+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/operationStatuses/7e9e1394-dad0-4414-8160-21c592e880ef%2A4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/OperationStatus/7e9e1394-dad0-4414-8160-21c592e880ef%2A4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/operationStatuses/7e9e1394-dad0-4414-8160-21c592e880ef%2A4699EE32265F9FA5BF00FA169E7D9CF51755378796E32F2D1A198E080CC84614?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminPool.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminPool.Recording.json index a7d0a681efd6..dd969143f5cb 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminPool.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminPool.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminPool+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminPool+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminPool+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminPool+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminPool+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminPool+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminPool+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminPool+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProject.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProject.Recording.json index 8e7b7077c0b9..129820fe3a55 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProject.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProject.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminProject+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/projects?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProject+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/projects?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/projects?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/projects?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProject+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProject+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProject+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProject+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProject+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProject+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -165,10 +165,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProject+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminProject+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectAllowedEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectAllowedEnvironmentType.Recording.json index 54758b981cf2..73bb0e13bbd2 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectAllowedEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectAllowedEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -131,10 +131,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminProjectAllowedEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/allowedEnvironmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectEnvironmentType.Recording.json index 509324067169..ba1dafadf098 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminProjectEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminProjectEnvironmentType+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/dwejvk?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSchedule.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSchedule.Recording.json index 97e5ab5bfb8f..921255d45fbe 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSchedule.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSchedule.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminSchedule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminSchedule+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminSchedule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminSchedule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -83,10 +83,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterAdminSchedule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01+2": { + "Get-AzDevCenterAdminSchedule+[NoContext]+GetViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSku.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSku.Recording.json index 6cc075dfb617..8fe001acf664 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSku.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminSku.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminSku+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/skus?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminSku+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/skus?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/skus?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/skus?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminUsage.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminUsage.Recording.json index ca3481838b29..d8ecd306d0e1 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminUsage.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Get-AzDevCenterAdminUsage.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterAdminUsage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/usages?api-version=2023-04-01+1": { + "Get-AzDevCenterAdminUsage+[NoContext]+List+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/usages?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/usages?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/canadacentral/usages?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.Recording.json index 0bac03590024..7e7561ecc56a 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Invoke-AzDevCenterAdminExecuteCheckNameAvailability.Recording.json @@ -1,8 +1,8 @@ { - "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+ExecuteExpanded+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01+1": { + "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+ExecuteExpanded+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview", "Content": "{\r\n \"name\": \"pwshDchw2yeu\",\r\n \"type\": \"Microsoft.devcenter/devcenters\"\r\n}", "isContentBase64": false, "Headers": { @@ -38,10 +38,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+ExecuteExpanded+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01+2": { + "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+ExecuteExpanded+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview", "Content": "{\r\n \"name\": \"pwshDchw2yeu11\",\r\n \"type\": \"Microsoft.devcenter/devcenters\"\r\n}", "isContentBase64": false, "Headers": { @@ -77,10 +77,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+Execute+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01+1": { + "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+Execute+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview", "Content": "{\r\n \"name\": \"pwshDchw2yeu\",\r\n \"type\": \"Microsoft.devcenter/devcenters\"\r\n}", "isContentBase64": false, "Headers": { @@ -116,10 +116,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+Execute+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01+2": { + "Invoke-AzDevCenterAdminExecuteCheckNameAvailability+[NoContext]+Execute+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/checkNameAvailability?api-version=2023-10-01-preview", "Content": "{\r\n \"name\": \"pwshDchw2yeu11\",\r\n \"type\": \"Microsoft.devcenter/devcenters\"\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminAttachedNetwork.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminAttachedNetwork.Recording.json index 854faa617128..fe757fa2bf73 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminAttachedNetwork.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminAttachedNetwork.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-04-01+1": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"networkConnectionId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -24,7 +24,7 @@ "X-Rate-Limit-Remaining": [ "293" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:10:53.9492420Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "5085f79e-28b6-476a-898a-64f66ff6f23f" ], "x-ms-correlation-request-id": [ "351780d9-04c0-4627-9eaf-f7a95484261c" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001019Z:351780d9-04c0-4627-9eaf-f7a95484261c" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-04-01+2": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5085f79e-28b6-476a-898a-64f66ff6f23f*C1245C9BA2D575A283B1B7422C315BB8558BD32756FDEA5F4B9DD3BE5CF62752?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -81,10 +81,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-04-01+3": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/6ur5?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-04-01+1": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"networkConnectionId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -148,7 +148,7 @@ "X-Rate-Limit-Remaining": [ "292" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:10:53.9492420Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "6d461b67-5404-4bf0-8204-1e09b5bedfcb" ], "x-ms-correlation-request-id": [ "e87bf440-606e-46a2-b83d-754eae754722" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001051Z:e87bf440-606e-46a2-b83d-754eae754722" ], @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-04-01+2": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6d461b67-5404-4bf0-8204-1e09b5bedfcb*9A24C717E2BD0037883B876A0CB72DC4BF5C5371F7128B37EA66D94AF1D0BE09?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-04-01+3": { + "New-AzDevCenterAdminAttachedNetwork+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/2k1zg?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminCatalog.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminCatalog.Recording.json index f313a1557f86..b3e2ecb1e557 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminCatalog.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminCatalog.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-04-01+1": { + "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"uri\": \"https://github.com/fake/fake.git\",\r\n \"branch\": \"main\",\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"/Environments\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -24,7 +24,7 @@ "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:11:50.7324316Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "99788241-6975-4f98-a34e-1f35d2c9c9b9" ], "x-ms-correlation-request-id": [ "9468a903-46ce-4296-9caa-4db978442544" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001123Z:9468a903-46ce-4296-9caa-4db978442544" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-04-01+2": { + "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/99788241-6975-4f98-a34e-1f35d2c9c9b9*FC6B082640C029C1497C6C26C36D63612FF920139AD6889B40E2AA374F738487?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -81,10 +81,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-04-01+3": { + "New-AzDevCenterAdminCatalog+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/7284?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminCatalog+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-04-01+1": { + "New-AzDevCenterAdminCatalog+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"uri\": \"https://github.com/fake/fake.git\",\r\n \"branch\": \"main\",\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"/Environments\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -148,7 +148,7 @@ "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:12:54.2239531Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "2c3dcc47-8564-49fe-8c5a-e6d34a45fd75" ], "x-ms-correlation-request-id": [ "23976573-c496-4518-81e6-d3751ed92979" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001154Z:23976573-c496-4518-81e6-d3751ed92979" ], @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminCatalog+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-04-01+2": { + "New-AzDevCenterAdminCatalog+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2c3dcc47-8564-49fe-8c5a-e6d34a45fd75*CD5E6528CB30AA6265BB69B751634CF2621D0786CFC0F9F4DE594F4FDABF4DFA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminCatalog+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-04-01+3": { + "New-AzDevCenterAdminCatalog+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/h7dpb?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevBoxDefinition.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevBoxDefinition.Recording.json index d6b0c97ad472..d07ea451ad54 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevBoxDefinition.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevBoxDefinition.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-04-01+1": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os\"\r\n },\r\n \"sku\": {\r\n \"name\": \"general_a_8c32gb_v1\"\r\n },\r\n \"osStorageType\": \"ssd_1024gb\",\r\n \"hibernateSupport\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -25,7 +25,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:13:26.7202806Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"devBoxDefinitions\"},\"limit\":200,\"currentUsed\":22,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "0d47f145-c240-49c0-8dc8-f39e4111720f" ], "x-ms-correlation-request-id": [ "562ec6b8-d5ff-4fe9-9395-16aa76e49d8e" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001228Z:562ec6b8-d5ff-4fe9-9395-16aa76e49d8e" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-04-01+2": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0d47f145-c240-49c0-8dc8-f39e4111720f*538B26E601FC78F5524940D87CDD7218483F244FA857C6F4A4524BF90349D61B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-04-01+3": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/1nz9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-04-01+1": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os\"\r\n },\r\n \"sku\": {\r\n \"name\": \"general_a_8c32gb_v1\"\r\n },\r\n \"osStorageType\": \"ssd_1024gb\",\r\n \"hibernateSupport\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -150,7 +150,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:13:59.4848368Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"devBoxDefinitions\"},\"limit\":200,\"currentUsed\":23,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "ddfa15f8-6639-456c-bd61-9013c5c738e9" ], "x-ms-correlation-request-id": [ "6fe683a8-3f6f-4cbe-9560-1f38d1a202eb" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001300Z:6fe683a8-3f6f-4cbe-9560-1f38d1a202eb" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-04-01+2": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-04-01+3": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ddfa15f8-6639-456c-bd61-9013c5c738e9*B7359C43D888381746D757D055BD80E5B5FEB8655950F9BE1FA999820458986E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-04-01+4": { + "New-AzDevCenterAdminDevBoxDefinition+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/w4klh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevCenter.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevCenter.Recording.json index 10708b76f7ed..3db1d50c8487 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevCenter.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminDevCenter.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-04-01+1": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -25,7 +25,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:15:03.3227684Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"devCenters\"},\"limit\":100,\"currentUsed\":16,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "79df2778-fca9-447e-aeb1-b2cb899f4b23" ], "x-ms-correlation-request-id": [ "6ab62732-6744-4e3d-b094-7b7433ff7e5e" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001408Z:6ab62732-6744-4e3d-b094-7b7433ff7e5e" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01+2": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01+3": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01+4": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01+5": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/79df2778-fca9-447e-aeb1-b2cb899f4b23*7B434286521CA26EA2352B262B19E797D37C63D8772498B72179F21C02506AA6?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-04-01+6": { + "New-AzDevCenterAdminDevCenter+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/jym7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -247,10 +247,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-04-01+1": { + "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -273,7 +273,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:17:11.3013441Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"devCenters\"},\"limit\":100,\"currentUsed\":17,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "14d528f6-bb27-47d9-8cec-38b318cdd766" ], "x-ms-correlation-request-id": [ "5644c2a6-fb27-4e0b-b4ce-76c44c22223e" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001612Z:5644c2a6-fb27-4e0b-b4ce-76c44c22223e" ], @@ -289,10 +289,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01+2": { + "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -330,10 +330,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01+3": { + "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -371,10 +371,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01+4": { + "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/14d528f6-bb27-47d9-8cec-38b318cdd766*669147717BC66C8E305E4177EA98DADD7113A595C19DDBB4C30689AEFB0FE4EC?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -412,10 +412,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-04-01+5": { + "New-AzDevCenterAdminDevCenter+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/lukg7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminEnvironmentType.Recording.json index da5e96e2f849..fd31d40b38af 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminEnvironmentType+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/6d9ia?api-version=2023-04-01+1": { + "New-AzDevCenterAdminEnvironmentType+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/6d9ia?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/6d9ia?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/6d9ia?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev\": \"test\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminEnvironmentType+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/qnw9?api-version=2023-04-01+1": { + "New-AzDevCenterAdminEnvironmentType+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/qnw9?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/qnw9?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/qnw9?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev\": \"test\"\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminGallery.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminGallery.Recording.json index 0d2e82d8485c..1164058afb5a 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminGallery.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminGallery.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-04-01+1": { + "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"galleryResourceId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/u48phj\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -24,7 +24,7 @@ "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:18:44.6854968Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "2f9aedab-b5b6-4c26-8007-3352b564243b" ], "x-ms-correlation-request-id": [ "d31550f6-6d4e-4bc1-9371-6150d024a569" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001747Z:d31550f6-6d4e-4bc1-9371-6150d024a569" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-04-01+2": { + "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2f9aedab-b5b6-4c26-8007-3352b564243b*7AE19B2EF6B18AECF5D1CDBC448B79CBE8649137575FD6451CD93D9CBA92B019?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -81,10 +81,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-04-01+3": { + "New-AzDevCenterAdminGallery+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/8rb70?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminGallery+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-04-01+1": { + "New-AzDevCenterAdminGallery+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"galleryResourceId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/8pvrkx\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -148,7 +148,7 @@ "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:18:44.4094144Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "d6ac4684-5e81-4913-bd7c-3709dc931792" ], "x-ms-correlation-request-id": [ "94c17310-255a-4456-8ba9-d229a5586248" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001818Z:94c17310-255a-4456-8ba9-d229a5586248" ], @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminGallery+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-04-01+2": { + "New-AzDevCenterAdminGallery+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6ac4684-5e81-4913-bd7c-3709dc931792*C19D27681CA7EC8BE7879FE2950E4CC1209A5CFF45F61AAC3804734D3351D830?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminGallery+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-04-01+3": { + "New-AzDevCenterAdminGallery+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/4rj3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminNetworkConnection.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminNetworkConnection.Recording.json index 4e4c3ba8972d..9af570262c70 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminNetworkConnection.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminNetworkConnection.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-04-01+1": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"networkingResourceGroupName\": \"17e2m\",\r\n \"domainJoinType\": \"AzureADJoin\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -25,7 +25,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:19:50.9376751Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"networkConnections\"},\"limit\":20,\"currentUsed\":14,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0" ], "x-ms-correlation-request-id": [ "d689dbe4-a32e-4148-941f-5f43ec657ba1" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001852Z:d689dbe4-a32e-4148-941f-5f43ec657ba1" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-04-01+2": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9f82c9d1-736e-4dfd-898b-c36fc9b2a6d0*A9F897E28724AF109B2ACD475BD20939C5D7C9FA12F813068A674B7DC14FF905?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-04-01+3": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/2d3pl?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-04-01+4": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-10-01-preview+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\",\r\n \"domainPassword\": \"fakePassword\",\r\n \"networkingResourceGroupName\": \"24zgo\",\r\n \"domainJoinType\": \"HybridAzureADJoin\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -150,7 +150,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:19:50.9376751Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"networkConnections\"},\"limit\":20,\"currentUsed\":15,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "21e72cd4-be8e-4adf-923a-d328190e0d48" ], "x-ms-correlation-request-id": [ "087aaf76-4c94-47b6-8701-28430a4e9e67" ], "x-ms-routing-request-id": [ "WESTUS:20230623T001924Z:087aaf76-4c94-47b6-8701-28430a4e9e67" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-04-01+5": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-04-01+6": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/21e72cd4-be8e-4adf-923a-d328190e0d48*E5CB6D72BE8918CFE26482BBB35DFF205327678C0B31A2A89C750B82F744B564?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-04-01+7": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/th7uz?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -290,10 +290,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-04-01+1": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"networkingResourceGroupName\": \"3mcru\",\r\n \"domainJoinType\": \"AzureADJoin\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -316,7 +316,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:21:26.0350437Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"networkConnections\"},\"limit\":20,\"currentUsed\":16,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "0a7f4a84-fd4e-42a6-a5df-dd72bf874f66" ], "x-ms-correlation-request-id": [ "8008b634-d5c6-4ce6-ba61-7d99fd439812" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002027Z:8008b634-d5c6-4ce6-ba61-7d99fd439812" ], @@ -332,10 +332,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01+2": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -373,10 +373,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01+3": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -414,10 +414,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01+4": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0a7f4a84-fd4e-42a6-a5df-dd72bf874f66*B147F86833C6310971D323B404AB942B01C1E8CA96588CF47B8CF508A461CE9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -455,10 +455,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-04-01+5": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/m4jg?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -497,10 +497,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-04-01+6": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-10-01-preview+6": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\",\r\n \"domainPassword\": \"fakePassword\",\r\n \"networkingResourceGroupName\": \"4o5pz\",\r\n \"domainJoinType\": \"HybridAzureADJoin\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -523,7 +523,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:22:59.4183613Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"networkConnections\"},\"limit\":20,\"currentUsed\":17,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "083312bb-fdf2-47c2-9975-07a079c41072" ], "x-ms-correlation-request-id": [ "f59d06d3-5604-41e0-b484-ea9749b7d75d" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002200Z:f59d06d3-5604-41e0-b484-ea9749b7d75d" ], @@ -539,10 +539,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-04-01+7": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -580,10 +580,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-04-01+8": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/083312bb-fdf2-47c2-9975-07a079c41072*FBA25995C7D3F91B1CAEFB04DC3969FF7DAA528CB9645F9FE6D248A1BA600E83?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -621,10 +621,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-04-01+9": { + "New-AzDevCenterAdminNetworkConnection+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/spg7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminPool.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminPool.Recording.json index 207142526992..a2c0e33f70b3 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminPool.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminPool.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-04-01+1": { + "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"devBoxDefinitionName\": \"h3dpk9\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -25,7 +25,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:24:03.2422251Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"pools\"},\"limit\":500,\"currentUsed\":26,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "2d12e282-87bb-437c-a467-fb63b32992b6" ], "x-ms-correlation-request-id": [ "d9588cc2-4c3e-4896-a4bc-1931b5c54287" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002305Z:d9588cc2-4c3e-4896-a4bc-1931b5c54287" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01+2": { + "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01+3": { + "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01+4": { + "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/2d12e282-87bb-437c-a467-fb63b32992b6*309FB30B4B12B961889A3136F84D4C98D753D42F2FFA6999A1A0C7881F635DAF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-04-01+5": { + "New-AzDevCenterAdminPool+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/lt6s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,10 +206,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-04-01+1": { + "New-AzDevCenterAdminPool+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"stopOnDisconnect\": {\r\n \"status\": \"Enabled\",\r\n \"gracePeriodMinutes\": 60\r\n },\r\n \"devBoxDefinitionName\": \"h3dpk9\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -232,7 +232,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:25:37.2378132Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"pools\"},\"limit\":500,\"currentUsed\":27,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "23924c41-8dc3-484b-9bad-2b050cda3784" ], "x-ms-correlation-request-id": [ "d49e1e81-0f10-42e1-a400-ab2bedfdf113" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002439Z:d49e1e81-0f10-42e1-a400-ab2bedfdf113" ], @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-04-01+2": { + "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -289,10 +289,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-04-01+3": { + "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/23924c41-8dc3-484b-9bad-2b050cda3784*D16AC231236DC610D1C5481D084F3F2B7A025434AEB3D65E6C763D45A72811DB?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -330,10 +330,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-04-01+4": { + "New-AzDevCenterAdminPool+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/1knb7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProject.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProject.Recording.json index 25b3b582748c..17b4ca542c56 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProject.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProject.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-04-01+1": { + "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"devCenterId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu\",\r\n \"maxDevBoxesPerUser\": 3\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -25,7 +25,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:26:41.4320279Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"projects\"},\"limit\":500,\"currentUsed\":14,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "e429384c-d27f-429c-aab1-685baaec1b3e" ], "x-ms-correlation-request-id": [ "35569365-bd46-41e2-854c-c5f2e85b7f8a" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002543Z:35569365-bd46-41e2-854c-c5f2e85b7f8a" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-04-01+2": { + "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/e429384c-d27f-429c-aab1-685baaec1b3e*8240773BB4D2563328FBDACE306AE7716DBD67CE190F200DA325FD60E78DF20A?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-04-01+3": { + "New-AzDevCenterAdminProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/7xop?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProject+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-04-01+1": { + "New-AzDevCenterAdminProject+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-10-01-preview", "Content": "{\r\n \"location\": \"canadacentral\",\r\n \"properties\": {\r\n \"devCenterId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu\",\r\n \"maxDevBoxesPerUser\": 3\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -150,7 +150,7 @@ "X-Rate-Limit-Reset": [ "2023-06-23T00:26:41.4320279Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-quota": [ "{\"name\":{\"localizedValue\":null,\"value\":\"projects\"},\"limit\":500,\"currentUsed\":15,\"category\":\"Informational\",\"scope\":\"subscription\",\"target\":\"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/\",\"region\":\"canadacentral\"}" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "238afcb4-7105-41b7-a142-25ae40471098" ], "x-ms-correlation-request-id": [ "c295251f-a259-4a5e-9e55-7f1c29a5e7c2" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002615Z:c295251f-a259-4a5e-9e55-7f1c29a5e7c2" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProject+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-04-01+2": { + "New-AzDevCenterAdminProject+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/238afcb4-7105-41b7-a142-25ae40471098*975673117FBBC784F74301BA313276FC9BBAE7022E272CCCB4B84D9ADD907ECD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProject+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-04-01+3": { + "New-AzDevCenterAdminProject+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/falrb?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProjectEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProjectEnvironmentType.Recording.json index 6010bb46730c..d9644888f262 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProjectEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminProjectEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminProjectEnvironmentType+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/s0my?api-version=2023-04-01+1": { + "New-AzDevCenterAdminProjectEnvironmentType+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/s0my?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/s0my?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/s0my?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"8e3af657-a8ff-443c-a75c-2fe8c4bcb635\": {\r\n }\r\n }\r\n },\r\n \"deploymentTargetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454\",\r\n \"status\": \"Enabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned,UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n },\r\n \"location\": \"canadacentral\"\r\n}", "isContentBase64": false, "Headers": { @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/25gl?api-version=2023-04-01+1": { + "New-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/25gl?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/25gl?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/25gl?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"8e3af657-a8ff-443c-a75c-2fe8c4bcb635\": {\r\n }\r\n }\r\n },\r\n \"deploymentTargetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454\",\r\n \"status\": \"Enabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned,UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n },\r\n \"location\": \"canadacentral\"\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminSchedule.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminSchedule.Recording.json index 24dfde0a72cb..a9694b64cb85 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminSchedule.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/New-AzDevCenterAdminSchedule.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-04-01+1": { + "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"18:30\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -24,7 +24,7 @@ "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:27:47.4451423Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "63a4eba3-66ef-4705-91ba-ab51b9116b16" ], "x-ms-correlation-request-id": [ "3ace5eee-620d-43c8-add0-81252fe4da44" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002653Z:3ace5eee-620d-43c8-add0-81252fe4da44" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-04-01+2": { + "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/63a4eba3-66ef-4705-91ba-ab51b9116b16*EBF2835F40CEBD43CACF29771CC7F6DFF61C0F6648DA807524606761D9F232FF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -81,10 +81,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-04-01+3": { + "New-AzDevCenterAdminSchedule+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/60qks/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminSchedule+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-04-01+1": { + "New-AzDevCenterAdminSchedule+[NoContext]+Create+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"18:30\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -148,7 +148,7 @@ "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:27:47.4451423Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "1e650214-16ff-49b2-8dc7-f7a0c963def6" ], "x-ms-correlation-request-id": [ "cf047f58-b024-42ee-b6a2-7c169766e593" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002724Z:cf047f58-b024-42ee-b6a2-7c169766e593" ], @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminSchedule+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-04-01+2": { + "New-AzDevCenterAdminSchedule+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/1e650214-16ff-49b2-8dc7-f7a0c963def6*38F1B120AA3E9F1752D84F598A84E5F386E53804EDCB1FAAB4E6195BC0D32640?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -205,10 +205,10 @@ "isContentBase64": false } }, - "New-AzDevCenterAdminSchedule+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-04-01+3": { + "New-AzDevCenterAdminSchedule+[NoContext]+Create+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/c65i/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminAttachedNetwork.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminAttachedNetwork.Recording.json index 2266048a6adb..2bcdb9f5391d 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminAttachedNetwork.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminAttachedNetwork.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"290055fa-0000-0a00-0000-6494e70c0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:28:55.4560424Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "dabbca49-2996-4b14-8e79-beff74135e1d" ], "x-ms-correlation-request-id": [ "7669e279-7e2a-4a8c-ac86-04b39c227ad5" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002756Z:7669e279-7e2a-4a8c-ac86-04b39c227ad5" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/dabbca49-2996-4b14-8e79-beff74135e1d*AA2E4290CCD3B851E1669548E268F9BF6BA24131F0F4320A4F6653F713BBC9FE?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/92nl3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -170,10 +170,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/lw0ys2?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/lw0ys2?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/lw0ys2?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/attachednetworks/lw0ys2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -194,14 +194,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2900a1fa-0000-0a00-0000-6494e72c0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:28:55.5208094Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "d7842c27-e093-40ce-acb7-976ff22e7365" ], "x-ms-correlation-request-id": [ "8946f2ff-df4a-4a0f-bd1f-0eff4b16b061" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002828Z:8946f2ff-df4a-4a0f-bd1f-0eff4b16b061" ], @@ -217,10 +217,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -258,10 +258,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminAttachedNetwork+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7842c27-e093-40ce-acb7-976ff22e7365*4CEE012B6EEA5ED1B6D96591C2B281F6261D3AE67C2E393B75DA906F232EABFF?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminCatalog.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminCatalog.Recording.json index 89117647fea1..5767e63981a7 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminCatalog.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminCatalog.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,10 +23,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"84008d3b-0000-0a00-0000-6494e74b0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "797ce8ed-db9e-46b6-8764-9f46574708be" ], "x-ms-correlation-request-id": [ "a5c9579d-8570-48d7-966d-d0c31b5a3fd2" ], "x-ms-routing-request-id": [ "WESTUS:20230623T002859Z:a5c9579d-8570-48d7-966d-d0c31b5a3fd2" ], @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -84,10 +84,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -125,10 +125,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/797ce8ed-db9e-46b6-8764-9f46574708be*2C355D72BBE36B1EAA93EE5AD80704BC6F8F446FCF504A25765E673ABAC30C5D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/2t5u7q?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -315,10 +315,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8400093f-0000-0a00-0000-6494e7a70000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "4f559398-e198-4b7f-8bde-d009d0e134bc" ], "x-ms-correlation-request-id": [ "d64d12fd-713c-4272-a2fa-f2a27ae457ce" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003031Z:d64d12fd-713c-4272-a2fa-f2a27ae457ce" ], @@ -335,10 +335,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,10 +376,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -417,10 +417,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -458,10 +458,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4f559398-e198-4b7f-8bde-d009d0e134bc*3A9F6E4F577ACDBAC768BC1F7AD2853D8029807CDB0ACF05E664C7311490239F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -499,10 +499,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminCatalog+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/4kfnut?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevBoxDefinition.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevBoxDefinition.Recording.json index a083691a5826..c3f944950901 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevBoxDefinition.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevBoxDefinition.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d000e26-0000-0a00-0000-6494e8040000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:33:03.4807848Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "3594d446-e044-459d-9a2a-f8b01b71872d" ], "x-ms-correlation-request-id": [ "c1f7ea86-0493-40fc-ab9f-b3bbd16a90ab" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003204Z:c1f7ea86-0493-40fc-ab9f-b3bbd16a90ab" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3594d446-e044-459d-9a2a-f8b01b71872d*CC0A288A4F871207A419C38EA2D4FD1B69A985151E2E11DEE79FB1352F81F7A7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/vz9ibo?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -170,10 +170,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -194,14 +194,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d007a26-0000-0a00-0000-6494e8230000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:33:35.3644033Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "32444d5b-2c47-42a8-a312-2e381af3236e" ], "x-ms-correlation-request-id": [ "d9316f51-954d-4aec-ab85-bffe29a41242" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003235Z:d9316f51-954d-4aec-ab85-bffe29a41242" ], @@ -217,10 +217,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -258,10 +258,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/32444d5b-2c47-42a8-a312-2e381af3236e*3915FEFF731B9FD259797B0880013EC2AADCA04C89B66F6076187343C95EFF6D?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -299,10 +299,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminDevBoxDefinition+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/kxgqbo?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevCenter.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevCenter.Recording.json index 9b34fd76956e..bd166195e183 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevCenter.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminDevCenter.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8a00e3b0-0000-0a00-0000-6494e8430000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:34:06.6789175Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "0e1ccb62-755a-4576-9f3a-9648595a60ff" ], "x-ms-correlation-request-id": [ "610af0fb-50ee-450f-b275-dcec9ebe6c41" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003307Z:610af0fb-50ee-450f-b275-dcec9ebe6c41" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -251,10 +251,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0e1ccb62-755a-4576-9f3a-9648595a60ff*20F723DC75ED44205F70AE89DAC10D7255D4493DE16CB098E3045F151389856F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,10 +292,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDc2kgj0lq?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -332,10 +332,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -374,10 +374,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -398,14 +398,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8a0032c0-0000-0a00-0000-6494e8db0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14992" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:36:39.0896605Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "d6913bd2-acd8-4ebd-b124-dbf91122758a" ], "x-ms-correlation-request-id": [ "4a701d43-ac67-41a1-8079-cf7025c6891b" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003539Z:4a701d43-ac67-41a1-8079-cf7025c6891b" ], @@ -421,10 +421,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,10 +462,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,10 +503,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -544,10 +544,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -585,10 +585,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -626,10 +626,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d6913bd2-acd8-4ebd-b124-dbf91122758a*D282CA13220F3506D5F4EA994ADB2DDED1CB1AE92EBCC5DE20F03862CBA333CA?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -667,10 +667,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01+9": { + "Remove-AzDevCenterAdminDevCenter+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/zyv7hr?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminEnvironmentType.Recording.json index 06e5113aa8f6..293bb8a272a0 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -42,10 +42,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/1mu390?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -84,10 +84,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminEnvironmentType+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/w76xp1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminGallery.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminGallery.Recording.json index 6350b057bff4..0614da56b137 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminGallery.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminGallery.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"1902af30-0000-0a00-0000-6494e9770000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14989" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:39:14.7479752Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "510f8be8-29f6-4fd8-8c3f-02b0affe6104" ], "x-ms-correlation-request-id": [ "dcc34714-1a13-4a5d-88dc-d8b08a015def" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003815Z:dcc34714-1a13-4a5d-88dc-d8b08a015def" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/510f8be8-29f6-4fd8-8c3f-02b0affe6104*96A5E6294B8218156E86CE1932F2D63DF22D80C03778537D3DEB93BFD0CF5130?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminGallery+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/7omi64?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -170,10 +170,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -212,10 +212,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -236,14 +236,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"19028331-0000-0a00-0000-6494e9960000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14988" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:39:12.8641647Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f75e2a31-db9e-4965-8466-f305182b6a1d" ], "x-ms-correlation-request-id": [ "83f38be3-f9b3-4cec-a81f-551966dadee5" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003846Z:83f38be3-f9b3-4cec-a81f-551966dadee5" ], @@ -259,10 +259,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -300,10 +300,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f75e2a31-db9e-4965-8466-f305182b6a1d*2E67572715665B850A2A5F7E29E86126CAE4308A2341C1E2786B68FB794FAEAD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -341,10 +341,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminGallery+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/zfwrem?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminNetworkConnection.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminNetworkConnection.Recording.json index 543ee09c1647..a899bfc0df95 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminNetworkConnection.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminNetworkConnection.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00eb23-0000-0a00-0000-6494e9b60000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14987" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:40:18.1698085Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "346d8dcc-d7f3-40ba-9adb-61003350fd18" ], "x-ms-correlation-request-id": [ "11799fbe-3668-43a4-8f62-bfe38b0fa9cd" ], "x-ms-routing-request-id": [ "WESTUS:20230623T003918Z:11799fbe-3668-43a4-8f62-bfe38b0fa9cd" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/346d8dcc-d7f3-40ba-9adb-61003350fd18*67D8E33A80B95256871B19899A2F3FC53BCED921D6739D54268AF01BED372914?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/h0ukoj?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -250,10 +250,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,10 +292,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -316,14 +316,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a002a24-0000-0a00-0000-6494ea130000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14986" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:41:50.6084840Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "d92a8758-c561-4c58-a41b-a73a437f8f16" ], "x-ms-correlation-request-id": [ "c67b33bb-427c-4aa8-ae17-387904cf9734" ], "x-ms-routing-request-id": [ "WESTUS:20230623T004051Z:c67b33bb-427c-4aa8-ae17-387904cf9734" ], @@ -339,10 +339,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -421,10 +421,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,10 +462,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d92a8758-c561-4c58-a41b-a73a437f8f16*739B026B834664DC6294AF6C63225266D6064FDB3577BAD59BC337137E5EC219?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,10 +503,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminNetworkConnection+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/gezmtq?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminPool.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminPool.Recording.json index a0061615fa36..a7a6e9d2c40a 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminPool.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminPool.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,10 +23,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b009161-0000-0a00-0000-6494ea6f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14985" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "8eaea0a1-3e7b-48d4-9038-5e4ee3572082" ], "x-ms-correlation-request-id": [ "48f693e2-2eff-4657-810c-e630c421110c" ], "x-ms-routing-request-id": [ "WESTUS:20230623T004223Z:48f693e2-2eff-4657-810c-e630c421110c" ], @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -84,10 +84,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -125,10 +125,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8eaea0a1-3e7b-48d4-9038-5e4ee3572082*BFA3461EE6FCE58DAADD22BF3EE10BA035D5284016B21DB2EE6DDD4260A3B103?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -289,10 +289,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminPool+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/fzolg0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -329,10 +329,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -371,10 +371,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -395,10 +395,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b008965-0000-0a00-0000-6494eb070000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14984" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "5533dc50-3ddc-43f0-8165-c0583f7fcf40" ], "x-ms-correlation-request-id": [ "9c330639-743a-448e-8e70-8760a8ac839f" ], "x-ms-routing-request-id": [ "WESTUS:20230623T004455Z:9c330639-743a-448e-8e70-8760a8ac839f" ], @@ -415,10 +415,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -456,10 +456,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -497,10 +497,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -538,10 +538,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -579,10 +579,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -620,10 +620,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5533dc50-3ddc-43f0-8165-c0583f7fcf40*D7B721F15842FE7751B0455656DA8E1629B40D7EB886ECD6D351C593FE6D992F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -661,10 +661,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01+9": { + "Remove-AzDevCenterAdminPool+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/odspl1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProject.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProject.Recording.json index 807122215e83..1d0b9a9efa7c 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProject.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProject.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,14 +23,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"3d012105-0000-0a00-0000-6494eb9f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14983" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:48:27.5544731Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "179f829a-6de6-4fa4-a7f9-9e25772b8f5b" ], "x-ms-correlation-request-id": [ "b8d9d09a-6988-48ed-8bcc-a81d8303d6c2" ], "x-ms-routing-request-id": [ "WESTUS:20230623T004728Z:b8d9d09a-6988-48ed-8bcc-a81d8303d6c2" ], @@ -46,10 +46,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -87,10 +87,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -128,10 +128,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -210,10 +210,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/179f829a-6de6-4fa4-a7f9-9e25772b8f5b*723BD0BCD35A273FD4BE134F6717FDFE8245F6488C2CC8F06C8C42FC0AC37A9C?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -251,10 +251,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminProject+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshPro2og402n?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -333,10 +333,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -357,14 +357,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"3d019109-0000-0a00-0000-6494ec190000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14982" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T00:50:29.4641181Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f" ], "x-ms-correlation-request-id": [ "42c330fa-6eb0-4ef8-93e3-e28a23acb02e" ], "x-ms-routing-request-id": [ "WESTUS:20230623T004929Z:42c330fa-6eb0-4ef8-93e3-e28a23acb02e" ], @@ -380,10 +380,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -421,10 +421,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,10 +462,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,10 +503,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3aa2a1c9-4ffb-4284-ab60-3cc65ff7e87f*4857BD45D1C096EDD004160BE514FAA9D375B6BA57E17EF22DDA1716D40274A4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -544,10 +544,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminProject+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/vepyst?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProjectEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProjectEnvironmentType.Recording.json index 17584d012487..1c16cc5e4ae6 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProjectEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminProjectEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -42,10 +42,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/t9rqhz?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -84,10 +84,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -126,10 +126,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -169,10 +169,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminProjectEnvironmentType+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/tj7rw5?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminSchedule.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminSchedule.Recording.json index 5460662abd78..358272cd2e44 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminSchedule.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Remove-AzDevCenterAdminSchedule.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -23,10 +23,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b00786e-0000-0a00-0000-6494ec790000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14979" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "6e31db9e-962b-4cb0-a34a-942cfa28f5fb" ], "x-ms-correlation-request-id": [ "e176cc9b-9c08-416d-bed1-438435b50631" ], "x-ms-routing-request-id": [ "WESTUS:20230623T005105Z:e176cc9b-9c08-416d-bed1-438435b50631" ], @@ -43,10 +43,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -84,10 +84,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -125,10 +125,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6e31db9e-962b-4cb0-a34a-942cfa28f5fb*F85B5ECE96EA29256FB466FE81A520CBEA38D3B796E80A5B10E5A9DE2025FBE8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -289,10 +289,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+Delete+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/oy09qc/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -331,10 +331,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01+1": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -373,10 +373,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01+2": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -397,10 +397,10 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b00d471-0000-0a00-0000-6494ed120000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14978" ], "x-ms-providerhub-traffic": [ "True" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7" ], "x-ms-correlation-request-id": [ "6a4a716c-a370-4232-94d8-094ef194f6ff" ], "x-ms-routing-request-id": [ "WESTUS:20230623T005338Z:6a4a716c-a370-4232-94d8-094ef194f6ff" ], @@ -417,10 +417,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+3": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -458,10 +458,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+4": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -499,10 +499,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+5": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -540,10 +540,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+6": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -581,10 +581,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+7": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -622,10 +622,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01+8": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/ea6bc4f1-4ef4-4f49-b7e4-9594e02927c7*5E9C7DAE4199B43C6420A501F552538DD81EA7B3CBA1F6B844FC9A9C6C3B2872?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -663,10 +663,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01+9": { + "Remove-AzDevCenterAdminSchedule+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/5ypd7c/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminNetworkConnectionHealthCheck.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminNetworkConnectionHealthCheck.Recording.json index d83dfc71a78a..dab35efb49e9 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminNetworkConnectionHealthCheck.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminNetworkConnectionHealthCheck.Recording.json @@ -1,8 +1,8 @@ { - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-04-01+1": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,14 +22,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:18:30.1601636Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "eaede5e0-ef2a-4179-9f57-4da5f0c85c62" ], "x-ms-correlation-request-id": [ "45840cfb-7e06-4335-a6ec-74f4e89f191d" ], "x-ms-routing-request-id": [ "WESTUS:20230623T011730Z:45840cfb-7e06-4335-a6ec-74f4e89f191d" ], @@ -45,10 +45,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01+2": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -86,10 +86,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01+3": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eaede5e0-ef2a-4179-9f57-4da5f0c85c62*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -127,10 +127,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-04-01+1": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy/runHealthChecks?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -150,14 +150,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:19:01.1656340Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "a1951ecc-f7c4-4253-99fc-78adada935ae" ], "x-ms-correlation-request-id": [ "8876cb15-3e63-4179-8d36-42c4088ac21b" ], "x-ms-routing-request-id": [ "WESTUS:20230623T011801Z:8876cb15-3e63-4179-8d36-42c4088ac21b" ], @@ -173,10 +173,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01+2": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -214,10 +214,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01+3": { + "Start-AzDevCenterAdminNetworkConnectionHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/a1951ecc-f7c4-4253-99fc-78adada935ae*E5A287F15E730EEC5F0051B6390112DFBF7E51FD508D0445B4C2D2A258BD76A2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Recording.json new file mode 100644 index 000000000000..c09c3892e169 --- /dev/null +++ b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Recording.json @@ -0,0 +1,303 @@ +{ + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+Run+$POST+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/runHealthChecks?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/runHealthChecks?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "ebca59ff-84bb-429b-966c-64cd553ca492" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_Run" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-correlation-request-id": [ "e5415bf4-6516-439f-b787-5ac2d86906d2" ], + "x-ms-client-request-id": [ "ebca59ff-84bb-429b-966c-64cd553ca492" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T02:39:31.5437787Z" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY" ], + "x-ms-request-id": [ "6135e467-0b67-471b-ae7e-3f4871399fed" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T023831Z:e5415bf4-6516-439f-b787-5ac2d86906d2" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:38:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "ebca59ff-84bb-429b-966c-64cd553ca492" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_Run" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"05003336-0000-3400-0000-65518c440000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "x-ms-request-id": [ "d72c9bbb-2495-485c-b97b-64b7427fbc07" ], + "x-ms-correlation-request-id": [ "58ca418e-2c3a-4d3a-a897-1f95873add07" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T023901Z:58ca418e-2c3a-4d3a-a897-1f95873add07" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:39:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "631" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"name\":\"6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"resourceId\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o\",\"status\":\"Succeeded\",\"startTime\":\"2023-11-13T02:38:31.3696999Z\",\"endTime\":\"2023-11-13T02:39:00.7375198Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+Run+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399117024668\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=JJvjVJzwiHatxlh1zxZLv3RArFBS-z2mHPFvJK79EpahMtZdZhW_spChV2N2O5DDCnL5czMSASHwomIOlsHJrh1DUJmKPKH49kuJ8txiF-XbKIvqD6l6XC4kvcRnnX6cbprwksNf9Kra6ylBAyvN53VQn7J_opapCdPS6Lj0CukGCKTaOWOSnv045dQ9YHSJvvCGXydab5NvEbSMrtpQM_EIcKnCuuCn-mKdUYZJxMUv9q5vDKFeiWHe4r4_t9YnrR6Qei1MF7OUPSgFsRPTh8MD8YZ8VQZEdUCZMwtjxBVhWDPeBvVkRoO-Mil8fW4YY5WDFT3-7Xl7YvoKgamGPw\u0026h=bo0Ftj95JAp66w9z5aIC49UxqIJ67cWEQcb71BLSsqY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "ebca59ff-84bb-429b-966c-64cd553ca492" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_Run" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"05003336-0000-3400-0000-65518c440000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "x-ms-request-id": [ "96dd99aa-a956-4335-b695-094fa9ebac8c" ], + "x-ms-correlation-request-id": [ "1c8dc197-befc-4194-a83d-5b6f26d71c8f" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T023901Z:1c8dc197-befc-4194-a83d-5b6f26d71c8f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:39:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "631" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"name\":\"6135e467-0b67-471b-ae7e-3f4871399fed*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"resourceId\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o\",\"status\":\"Succeeded\",\"startTime\":\"2023-11-13T02:38:31.3696999Z\",\"endTime\":\"2023-11-13T02:39:00.7375198Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+RunViaIdentity+$POST+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/runHealthChecks?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o/runHealthChecks?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "6bba34c8-a2b7-4298-881d-5e1c58749ac7" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425788769\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=KDYm-_XEQBu8W-RH2O3aCn10HuumzECaePeP2V2d7R3JiOZ_Ml5ozklx0CQ8UGyxIMG9mA7mfdCRgdz9q_HGngA_OFtYAVG7WtWlJMChFyyRGDv6E5EsyE4uLBDFRk3cMBM7QbLDBU7VLtbfvc5yhQZmDbhPGEuKPAHPBxqJ6UhAFrxv444FryfSkCf-jiCC2un8yg7o3Ik-b51goCCxSY_EVPVLmWHSpLUvqUvhh_xFTUdC3DZGpfn4oKEqZmVHvarjN7PNR3WCu_D58eMtBtLaJ4jaTHRLSIGkdnVc-fDdMxS0UtJjhGwMgSs_aLlsSn0sh3m5V1Qsv4gJkcZ65g\u0026h=xjXhWGZ9TC4nuJhn3rg_zNYjN5wtNrYLMgLgLGNedzs" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-correlation-request-id": [ "d4bb3db3-bb8e-48b4-9256-a6a4690780db" ], + "x-ms-client-request-id": [ "6bba34c8-a2b7-4298-881d-5e1c58749ac7" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T02:40:02.3963133Z" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425632607\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=HcM5icV9O1d_H4-oqGyjHf-MrZ5OusVwBDRK4-tnjMxl_xUOyH3KyQ4MXLgdzKu7OlAaAUSFFlq8v9RxJe_8PxdL8lYkc0gLd64g07voljQba1DGKI9Z__piQvCEGT_-ReJ_3TQH3J-_E4DNo8SDOnC_qidi7Ol4oOmgxIDhHILcvU56nCErBtcRyg90cfgaH3eMgGlSHFwlWZ6hXEVayVcgmOzdzrFPuHLKyNJ5X5SbQFYXeT8wU4pV7ti8eZ4xF5o7lJhjNJLdORwHXSHK2AiM8iDdUGeB_jJvLejBYkIdYpjpEE_tvp-bcJqTz6I5KGjOni3Ccmp46ZwVH6rTCQ\u0026h=fvB4l12mf42dzNDw8_QsLzF_a-sBJt8wded_vfXMgTg" ], + "x-ms-request-id": [ "1875ad45-e499-4df2-b940-f25417f7ac46" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T023902Z:d4bb3db3-bb8e-48b4-9256-a6a4690780db" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:39:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425632607\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=HcM5icV9O1d_H4-oqGyjHf-MrZ5OusVwBDRK4-tnjMxl_xUOyH3KyQ4MXLgdzKu7OlAaAUSFFlq8v9RxJe_8PxdL8lYkc0gLd64g07voljQba1DGKI9Z__piQvCEGT_-ReJ_3TQH3J-_E4DNo8SDOnC_qidi7Ol4oOmgxIDhHILcvU56nCErBtcRyg90cfgaH3eMgGlSHFwlWZ6hXEVayVcgmOzdzrFPuHLKyNJ5X5SbQFYXeT8wU4pV7ti8eZ4xF5o7lJhjNJLdORwHXSHK2AiM8iDdUGeB_jJvLejBYkIdYpjpEE_tvp-bcJqTz6I5KGjOni3Ccmp46ZwVH6rTCQ\u0026h=fvB4l12mf42dzNDw8_QsLzF_a-sBJt8wded_vfXMgTg+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425632607\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=HcM5icV9O1d_H4-oqGyjHf-MrZ5OusVwBDRK4-tnjMxl_xUOyH3KyQ4MXLgdzKu7OlAaAUSFFlq8v9RxJe_8PxdL8lYkc0gLd64g07voljQba1DGKI9Z__piQvCEGT_-ReJ_3TQH3J-_E4DNo8SDOnC_qidi7Ol4oOmgxIDhHILcvU56nCErBtcRyg90cfgaH3eMgGlSHFwlWZ6hXEVayVcgmOzdzrFPuHLKyNJ5X5SbQFYXeT8wU4pV7ti8eZ4xF5o7lJhjNJLdORwHXSHK2AiM8iDdUGeB_jJvLejBYkIdYpjpEE_tvp-bcJqTz6I5KGjOni3Ccmp46ZwVH6rTCQ\u0026h=fvB4l12mf42dzNDw8_QsLzF_a-sBJt8wded_vfXMgTg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "6bba34c8-a2b7-4298-881d-5e1c58749ac7" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"05003636-0000-3400-0000-65518c460000\"" ], + "Location": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/centraluseuap/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399727208734\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=d2uUd95e4FM_UGlj8vu4Ol7fuGF2yT_1wMt2oLa1nr1Fk-BqeL8ZADsU2V03P5C8WmqTwHC3n4Kjq4UQDN0dn6NRUF1OKDgeSTRlSZqTezMCgqaEY1bIyEy6A5HxPw0a6joeMfPDPLS50Sq8mEiTeec6W75x9kAj95YejnoaoYn-FAnc6vLausZJ_AbfJ7OSYdDncUEC9GHgZaP3N8ps3QpgQyzSPJ0Z2ZNqC9cdgcW4rfXzcGFljglESMx5YdlcLj9kTy2tblevpSyTOdoy9M0lH54Ef6oEU7U-K_B4wVsisDgffyY8K59IozqH7ANyLKNI501uLaaLaMGRZcAcew\u0026h=joROjn7FORx1lg_sWtmM0uYpC3VTlkzQU7u-niK88wA" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/centraluseuap/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399727052482\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=H_7i0qQNSvxmrvxhIu6qcYfRZLEaB1x4eDxGcO3830DLBRhlACWG9zRXjQRyxWadiH9TdldxM4GZUL00kxQPz_UYHTprATk7kCHw0LszTrWML-RdQ8un7b0JIYu6JUoMFc_wQ7q5a-5PywKzfHHrF5GshKG4u9uJUC53Yq7jonbCrsqKQ1Z50UtECtxXvPMGjL3k9GgcKU9vdFB3ucfGP9z2nNTxtSKBOszgcDHOl6JCj10Gfm33nQFyAY1P5ZOP5-YY4zg-gSZFV8pEyIEzXg3kC-tji6SVlM7YSN15P0vINhOm7Ywk-tCKLlflQv1x1cMQ7-QFaIPrCS5OaVeHZA\u0026h=u-hsQvfbMLuSzOHrHO-Zb-_H7ap4jvZa0xSVXtYXxAw" ], + "x-ms-request-id": [ "d9eeca0a-5819-4df0-b203-11c34e47d4b9" ], + "x-ms-correlation-request-id": [ "8dc05a2c-e388-47b6-ab6d-33630e0ea7ab" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T023932Z:8dc05a2c-e388-47b6-ab6d-33630e0ea7ab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:39:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "571" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"name\":\"1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"resourceId\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o\",\"status\":\"Accepted\",\"startTime\":\"2023-11-13T02:39:02.3587569Z\"}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/centraluseuap/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399727052482\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=H_7i0qQNSvxmrvxhIu6qcYfRZLEaB1x4eDxGcO3830DLBRhlACWG9zRXjQRyxWadiH9TdldxM4GZUL00kxQPz_UYHTprATk7kCHw0LszTrWML-RdQ8un7b0JIYu6JUoMFc_wQ7q5a-5PywKzfHHrF5GshKG4u9uJUC53Yq7jonbCrsqKQ1Z50UtECtxXvPMGjL3k9GgcKU9vdFB3ucfGP9z2nNTxtSKBOszgcDHOl6JCj10Gfm33nQFyAY1P5ZOP5-YY4zg-gSZFV8pEyIEzXg3kC-tji6SVlM7YSN15P0vINhOm7Ywk-tCKLlflQv1x1cMQ7-QFaIPrCS5OaVeHZA\u0026h=u-hsQvfbMLuSzOHrHO-Zb-_H7ap4jvZa0xSVXtYXxAw+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/centraluseuap/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399727052482\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=H_7i0qQNSvxmrvxhIu6qcYfRZLEaB1x4eDxGcO3830DLBRhlACWG9zRXjQRyxWadiH9TdldxM4GZUL00kxQPz_UYHTprATk7kCHw0LszTrWML-RdQ8un7b0JIYu6JUoMFc_wQ7q5a-5PywKzfHHrF5GshKG4u9uJUC53Yq7jonbCrsqKQ1Z50UtECtxXvPMGjL3k9GgcKU9vdFB3ucfGP9z2nNTxtSKBOszgcDHOl6JCj10Gfm33nQFyAY1P5ZOP5-YY4zg-gSZFV8pEyIEzXg3kC-tji6SVlM7YSN15P0vINhOm7Ywk-tCKLlflQv1x1cMQ7-QFaIPrCS5OaVeHZA\u0026h=u-hsQvfbMLuSzOHrHO-Zb-_H7ap4jvZa0xSVXtYXxAw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "6bba34c8-a2b7-4298-881d-5e1c58749ac7" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"05007136-0000-3400-0000-65518c6c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "x-ms-request-id": [ "e5e97584-19d5-4466-a1ed-64cca04bd933" ], + "x-ms-correlation-request-id": [ "49c1711e-231a-462e-9765-46129ea71263" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024002Z:49c1711e-231a-462e-9765-46129ea71263" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:40:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "631" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/centraluseuap/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"name\":\"1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"resourceId\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o\",\"status\":\"Succeeded\",\"startTime\":\"2023-11-13T02:39:02.3587569Z\",\"endTime\":\"2023-11-13T02:39:40.0750289Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "Start-AzDevCenterAdminPoolHealthCheck+[NoContext]+RunViaIdentity+$GET+https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425632607\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=HcM5icV9O1d_H4-oqGyjHf-MrZ5OusVwBDRK4-tnjMxl_xUOyH3KyQ4MXLgdzKu7OlAaAUSFFlq8v9RxJe_8PxdL8lYkc0gLd64g07voljQba1DGKI9Z__piQvCEGT_-ReJ_3TQH3J-_E4DNo8SDOnC_qidi7Ol4oOmgxIDhHILcvU56nCErBtcRyg90cfgaH3eMgGlSHFwlWZ6hXEVayVcgmOzdzrFPuHLKyNJ5X5SbQFYXeT8wU4pV7ti8eZ4xF5o7lJhjNJLdORwHXSHK2AiM8iDdUGeB_jJvLejBYkIdYpjpEE_tvp-bcJqTz6I5KGjOni3Ccmp46ZwVH6rTCQ\u0026h=fvB4l12mf42dzNDw8_QsLzF_a-sBJt8wded_vfXMgTg+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B?api-version=2023-10-01-preview\u0026t=638354399425632607\u0026c=MIIHADCCBeigAwIBAgITfAQMTI1h2_N6jbL4IQAABAxMjTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjMxMTAyMDczOTIwWhcNMjQxMDI3MDczOTIwWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM5nVon0S6tEvS61NcnXsn2CcuOI1nSrtGbtGk9X6y4qeqVj1PU84XJVMmBK-wLCx9U9sQu4pCLiJzifhHlKpcopJy-Q0rQVcsNpaY-PH3IH89wLTdFbfdjBPrPJDPSVvdFWtRsQRR-rvAo-16n97xYsXYb-mCYxLAx9eFB7n0SHLhuR6IxKfxJD4z9WENmuA-7e9lMfTsAE6Q9yJuFGb0vwVf4uLL9xcC6SHP_Xx1gaFGgG0I6Wtez1ZLLWmi7uOG4ABf3gOxNim_EQkyvCRXOl4RrCM0Sqz3ouFZyQRj4qU4WGqIwPDRF6lcyY4U-fx5YIgXcf1-WU0b8mUsaIPd0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBTKawt4N6x8p9k75woYfzjrUqYBnjAOBgNVHQ8BAf8EBAMCBaAwggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGji_KAUv6_88OBryH9Tc2FnuhP6kw1_9qI_bxwwrpjNorAgFsoL8moQCmnBbzbyOqj3slb0GG_k2GSPLPKD0ttjidH0Ml3QQLsl7Qc8Qu_gw04U5XqOD3yYClOgb6YkZWZfqzG8nAxSAQ0x7vUYT2Er_MyfAPi0hcgO4JcAaLNLOWkVRWR99ARjrYeBXSmnFE7t8kJXN5jkwzRCtJ-hZOOWDHCAhqhV_cCtoXUvb3hOSe95ixjsi_0CPo62En_H6pHPMP4NXzmTUn18wmyCXunz_qG3UOi4uy3VxJOP1_V_SbZlqV5Bhk7SOeMl6i8oBeRjq3HIi9UXo1OhSEuQeT4\u0026s=HcM5icV9O1d_H4-oqGyjHf-MrZ5OusVwBDRK4-tnjMxl_xUOyH3KyQ4MXLgdzKu7OlAaAUSFFlq8v9RxJe_8PxdL8lYkc0gLd64g07voljQba1DGKI9Z__piQvCEGT_-ReJ_3TQH3J-_E4DNo8SDOnC_qidi7Ol4oOmgxIDhHILcvU56nCErBtcRyg90cfgaH3eMgGlSHFwlWZ6hXEVayVcgmOzdzrFPuHLKyNJ5X5SbQFYXeT8wU4pV7ti8eZ4xF5o7lJhjNJLdORwHXSHK2AiM8iDdUGeB_jJvLejBYkIdYpjpEE_tvp-bcJqTz6I5KGjOni3Ccmp46ZwVH6rTCQ\u0026h=fvB4l12mf42dzNDw8_QsLzF_a-sBJt8wded_vfXMgTg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "6bba34c8-a2b7-4298-881d-5e1c58749ac7" ], + "CommandName": [ "Start-AzDevCenterAdminPoolHealthCheck" ], + "FullCommandName": [ "Start-AzDevCenterAdminPoolHealthCheck_RunViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenter/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"05007136-0000-3400-0000-65518c6c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-request-id": [ "474bef30-9c56-4e69-82b1-f2bf595e6148" ], + "x-ms-correlation-request-id": [ "b4133086-c9c6-4bc8-b5bd-f80e2fb3c881" ], + "x-ms-routing-request-id": [ "WESTUS:20231113T024003Z:b4133086-c9c6-4bc8-b5bd-f80e2fb3c881" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Mon, 13 Nov 2023 02:40:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "631" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/providers/Microsoft.DevCenter/locations/CENTRALUSEUAP/operationStatuses/1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"name\":\"1875ad45-e499-4df2-b940-f25417f7ac46*1EC3CBABFB975FB6B466044BBE2FE09B74C6FF21349181A90685959F67D1879B\",\"resourceId\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshTestAmlim/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/vpa70o\",\"status\":\"Succeeded\",\"startTime\":\"2023-11-13T02:39:02.3587569Z\",\"endTime\":\"2023-11-13T02:39:40.0750289Z\",\"properties\":null}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Tests.ps1 b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Tests.ps1 index 5b9ce091e27f..17b567df79cb 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Tests.ps1 +++ b/src/DevCenter/DevCenter.AutoRest/test/Start-AzDevCenterAdminPoolHealthCheck.Tests.ps1 @@ -14,14 +14,12 @@ if(($null -eq $TestName) -or ($TestName -contains 'Start-AzDevCenterAdminPoolHea . ($mockingPath | Select-Object -First 1).FullName } -#API not available yet Describe 'Start-AzDevCenterAdminPoolHealthCheck' { - It 'Run' -skip { - Start-AzDevCenterAdminPoolHealthCheck -PoolName $env.poolName -ProjectName $env.projectName -ResourceGroupName $env.resourceGroup + It 'Run' { + Start-AzDevCenterAdminPoolHealthCheck -PoolName $env.poolName -ProjectName $env.projectName -ResourceGroupName $env.resourceGroupName10 -SubscriptionId $env.SubscriptionId2 } - It 'RunViaIdentity' -skip { - Start-AzDevCenterAdminPoolHealthCheck -InputObject @{"PoolName" = $env.poolName; "ProjectName" = $env.projectName; "ResourceGroupName" = $env.resourceGroup; "SubscriptionId" = $env.SubscriptionId} - + It 'RunViaIdentity' { + Start-AzDevCenterAdminPoolHealthCheck -InputObject @{"PoolName" = $env.poolName; "ProjectName" = $env.projectName; "ResourceGroupName" = $env.resourceGroupName10; "SubscriptionId" = $env.SubscriptionId2} } } diff --git a/src/DevCenter/DevCenter.AutoRest/test/Sync-AzDevCenterAdminCatalog.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Sync-AzDevCenterAdminCatalog.Recording.json index ee358be380d4..d582ed2f95a8 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Sync-AzDevCenterAdminCatalog.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Sync-AzDevCenterAdminCatalog.Recording.json @@ -1,8 +1,8 @@ { - "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-04-01+1": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,14 +22,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:19:33.1624720Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "3359d7b8-2a57-4f78-bf70-98686b51d39d" ], "x-ms-correlation-request-id": [ "794c0163-ab46-4b74-802d-06ef65bf7c1d" ], "x-ms-routing-request-id": [ "WESTUS:20230623T011833Z:794c0163-ab46-4b74-802d-06ef65bf7c1d" ], @@ -45,10 +45,10 @@ "isContentBase64": false } }, - "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01+2": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -86,10 +86,10 @@ "isContentBase64": false } }, - "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01+3": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+Sync+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3359d7b8-2a57-4f78-bf70-98686b51d39d*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -127,10 +127,10 @@ "isContentBase64": false } }, - "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-04-01+1": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$POST+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/i29785/sync?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -150,14 +150,14 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:20:04.7596844Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "5870ed2d-e19a-4e58-aa7f-c7fc642dde67" ], "x-ms-correlation-request-id": [ "c4da5d96-0b36-4b41-8a17-c641f196c5b6" ], "x-ms-routing-request-id": [ "WESTUS:20230623T011905Z:c4da5d96-0b36-4b41-8a17-c641f196c5b6" ], @@ -173,10 +173,10 @@ "isContentBase64": false } }, - "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01+2": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -214,10 +214,10 @@ "isContentBase64": false } }, - "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01+3": { + "Sync-AzDevCenterAdminCatalog+[NoContext]+SyncViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5870ed2d-e19a-4e58-aa7f-c7fc642dde67*EA3D1FCE53B529AC9CB55B4A10A3FBBA6788A5BF60CC09681066F5D83C2D4F4E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminCatalog.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminCatalog.Recording.json index 4c02af375e8b..d7ee3178b6cd 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminCatalog.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminCatalog.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"testpath\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,14 +18,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8400e9aa-0000-0a00-0000-6494f3280000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1162" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:20:04.7596844Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "8696a48d-a067-4897-8fb3-a865330d95e8" ], "x-ms-correlation-request-id": [ "f2745b1f-c6e5-49ef-8229-ff01a38f863f" ], "x-ms-routing-request-id": [ "WESTUS:20230623T011936Z:f2745b1f-c6e5-49ef-8229-ff01a38f863f" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8696a48d-a067-4897-8fb3-a865330d95e8*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"/Environments\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -143,14 +143,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"840060ac-0000-0a00-0000-6494f3470000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1168" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:21:07.6317157Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "8c8b5a7a-0be7-496e-af22-5712c537d377" ], "x-ms-correlation-request-id": [ "bcb7d11e-41fa-49e4-acd3-56ced00b7823" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012007Z:bcb7d11e-41fa-49e4-acd3-56ced00b7823" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8c8b5a7a-0be7-496e-af22-5712c537d377*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminCatalog+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"testpath\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -310,14 +310,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8400dfad-0000-0a00-0000-6494f3670000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1167" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:21:38.9857102Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "6c7958bd-3195-46a5-a59a-47b69285f53c" ], "x-ms-correlation-request-id": [ "3f658f07-0361-41ab-9f62-03bb15af071c" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012039Z:3f658f07-0361-41ab-9f62-03bb15af071c" ], @@ -333,10 +333,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/6c7958bd-3195-46a5-a59a-47b69285f53c*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -374,10 +374,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -416,10 +416,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -458,10 +458,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"gitHub\": {\r\n \"secretIdentifier\": \"https://dummyVault/dummy/00000000\",\r\n \"path\": \"/Environments\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -477,14 +477,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"84008baf-0000-0a00-0000-6494f3860000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1166" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:22:10.2217437Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "eef7eb04-8f84-45ae-a029-66b8f6fdb6cc" ], "x-ms-correlation-request-id": [ "1bcc79fc-bda9-4452-a8f7-a7b73c517112" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012110Z:1bcc79fc-bda9-4452-a8f7-a7b73c517112" ], @@ -500,10 +500,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/eef7eb04-8f84-45ae-a029-66b8f6fdb6cc*B4B07719AD1E397D4667D3EEEBD71CA52B39BE287695F7213AF239942B3FA367?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -541,10 +541,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminCatalog+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/catalogs/r4dg8z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevBoxDefinition.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevBoxDefinition.Recording.json index 470dafb50ba0..4de74b3c6105 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevBoxDefinition.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevBoxDefinition.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-pro-general-win10-m365-gen2\"\r\n },\r\n \"hibernateSupport\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,14 +18,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d00df6d-0000-0a00-0000-6494f3a60000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1165" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:22:41.7965748Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "7f9063e6-fb99-46f4-8059-1fc7b41565f7" ], "x-ms-correlation-request-id": [ "5e4b6cff-5f79-440e-9c74-4d90a7cb7398" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012142Z:5e4b6cff-5f79-440e-9c74-4d90a7cb7398" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7f9063e6-fb99-46f4-8059-1fc7b41565f7*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os\"\r\n },\r\n \"hibernateSupport\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -143,14 +143,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d00556e-0000-0a00-0000-6494f3c50000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1164" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:23:12.8398575Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "5507b3a7-5421-4b8e-bb39-b9fcaae650f2" ], "x-ms-correlation-request-id": [ "095c0950-29c6-4233-b694-2678d12949df" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012213Z:095c0950-29c6-4233-b694-2678d12949df" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5507b3a7-5421-4b8e-bb39-b9fcaae650f2*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -290,10 +290,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-pro-general-win10-m365-gen2\"\r\n },\r\n \"hibernateSupport\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -309,14 +309,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d00e16e-0000-0a00-0000-6494f4020000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1163" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:24:14.0410075Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "9d64341a-14b2-4741-89d1-0f88a67586f8" ], "x-ms-correlation-request-id": [ "39e38d5a-1438-4a09-8725-06cd4bd75642" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012314Z:39e38d5a-1438-4a09-8725-06cd4bd75642" ], @@ -332,10 +332,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/9d64341a-14b2-4741-89d1-0f88a67586f8*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -373,10 +373,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -415,10 +415,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"imageReference\": {\r\n \"id\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os\"\r\n },\r\n \"hibernateSupport\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -434,14 +434,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"4d00096f-0000-0a00-0000-6494f4210000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1162" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:24:44.8733873Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "49dd69f7-46c4-4578-9516-a903ee2afced" ], "x-ms-correlation-request-id": [ "c606d3de-878a-433a-a2c4-ad649496f9ca" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012345Z:c606d3de-878a-433a-a2c4-ad649496f9ca" ], @@ -457,10 +457,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/49dd69f7-46c4-4578-9516-a903ee2afced*F12A9EBBE86F77853A85C537CAF82B6A528E1A1B63219C27D048DC1A2884E02F?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -498,10 +498,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevBoxDefinition+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/devboxdefinitions/zyp7u0?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevCenter.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevCenter.Recording.json index a50e4fb30c5c..9f51fecbbf96 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevCenter.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminDevCenter.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,14 +18,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8c000b9a-0000-0a00-0000-6494f4420000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1161" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:25:17.3538314Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "7d3cfcaf-3d0a-4528-85da-da2192c432c5" ], "x-ms-correlation-request-id": [ "4f9f44b2-65e7-4243-8778-5da8213b1ec1" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012418Z:4f9f44b2-65e7-4243-8778-5da8213b1ec1" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -123,10 +123,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7d3cfcaf-3d0a-4528-85da-da2192c432c5*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -164,10 +164,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,10 +206,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": "{\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -225,14 +225,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8c00c7ae-0000-0a00-0000-6494f49f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1164" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:26:49.8965101Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f5d458f5-fd1e-4b2a-b9d4-0620759f68d3" ], "x-ms-correlation-request-id": [ "93f72924-5df7-4990-b097-69b13c553779" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012551Z:93f72924-5df7-4990-b097-69b13c553779" ], @@ -248,10 +248,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f5d458f5-fd1e-4b2a-b9d4-0620759f68d3*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -289,10 +289,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -331,10 +331,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -373,10 +373,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -392,14 +392,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8c0085b7-0000-0a00-0000-6494f4be0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1163" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:27:22.7390484Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "d7063dd6-4477-419e-b998-23d938f4cf33" ], "x-ms-correlation-request-id": [ "9284ca88-1c47-489a-99e0-f15ccbe83dc4" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012622Z:9284ca88-1c47-489a-99e0-f15ccbe83dc4" ], @@ -415,10 +415,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/d7063dd6-4477-419e-b998-23d938f4cf33*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -456,10 +456,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -498,10 +498,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -540,10 +540,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": "{\r\n \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -559,14 +559,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"8c000ec0-0000-0a00-0000-6494f4de0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1162" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:27:54.5503284Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "7bf1bde8-6376-48a5-b800-036bf7aa84ad" ], "x-ms-correlation-request-id": [ "40656119-3ca2-42af-ab3a-4beb5ecb5a71" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012655Z:40656119-3ca2-42af-ab3a-4beb5ecb5a71" ], @@ -582,10 +582,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/7bf1bde8-6376-48a5-b800-036bf7aa84ad*608398764BC736C785ABF8D891A06C3616D273E1109F8D2453291FDA322F6D43?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -623,10 +623,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminDevCenter+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/5rkqgw?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminEnvironmentType.Recording.json index 766ce3e81fdf..1d48bf40d098 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev\": \"test\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev1\": \"test1\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -79,10 +79,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev\": \"test\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -161,10 +161,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminEnvironmentType+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/environmentTypes/sf2b9c?api-version=2023-10-01-preview", "Content": "{\r\n \"tags\": {\r\n \"dev1\": \"test1\"\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminNetworkConnection.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminNetworkConnection.Recording.json index a123f7ac2a29..08c4353c02ec 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminNetworkConnection.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminNetworkConnection.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainPassword\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,14 +18,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00af3a-0000-0a00-0000-6494f5010000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1157" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:28:26.8650886Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f6fb409f-8864-4e77-bbae-3464fe996b93" ], "x-ms-correlation-request-id": [ "1ded47e2-5fa0-4db6-880d-de4ec8ce7838" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012729Z:1ded47e2-5fa0-4db6-880d-de4ec8ce7838" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f6fb409f-8864-4e77-bbae-3464fe996b93*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+4": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -143,14 +143,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a002d3b-0000-0a00-0000-6494f5200000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1156" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:29:00.3423959Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "3ebfcc0c-b8da-422a-a28f-c71e3aa43c35" ], "x-ms-correlation-request-id": [ "285a841c-4518-42d0-aedc-e9cf06b44e7d" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012800Z:285a841c-4518-42d0-aedc-e9cf06b44e7d" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/3ebfcc0c-b8da-422a-a28f-c71e3aa43c35*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainPassword\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -268,14 +268,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00c63b-0000-0a00-0000-6494f53f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1155" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:29:00.3423959Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "89a9e5a4-41f5-4ade-a00c-d66d70b7fb70" ], "x-ms-correlation-request-id": [ "2a4d7515-3897-41f9-8950-ee815e6e64d5" ], "x-ms-routing-request-id": [ "WESTUS:20230623T012831Z:2a4d7515-3897-41f9-8950-ee815e6e64d5" ], @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -332,10 +332,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -373,10 +373,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -414,10 +414,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -455,10 +455,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -496,10 +496,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+7": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -537,10 +537,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+8": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -578,10 +578,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+9": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -619,10 +619,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+10": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -660,10 +660,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+11": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -701,10 +701,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+12": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/89a9e5a4-41f5-4ade-a00c-d66d70b7fb70*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -742,10 +742,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+13": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -784,10 +784,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+14": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+14": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\",\r\n \"domainPassword\": \"fakePassword\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -803,14 +803,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00c744-0000-0a00-0000-6494f68d0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1160" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:35:04.2612516Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "0ec08842-65c8-4f26-a34f-04866e911903" ], "x-ms-correlation-request-id": [ "52012c27-a179-4dd8-ab4c-88c901366f27" ], "x-ms-routing-request-id": [ "WESTUS:20230623T013405Z:52012c27-a179-4dd8-ab4c-88c901366f27" ], @@ -826,10 +826,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+15": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -867,10 +867,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+16": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -908,10 +908,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+17": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -949,10 +949,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+18": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -990,10 +990,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+19": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1031,10 +1031,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+20": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/0ec08842-65c8-4f26-a34f-04866e911903*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1072,10 +1072,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+21": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1114,10 +1114,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1156,10 +1156,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainPassword\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -1175,14 +1175,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00944b-0000-0a00-0000-6494f7430000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1159" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:38:06.8880679Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "5b28b45e-fc61-4d86-8250-acb25363dce3" ], "x-ms-correlation-request-id": [ "301632c3-5ade-481d-9eb3-66e39177f2dd" ], "x-ms-routing-request-id": [ "WESTUS:20230623T013707Z:301632c3-5ade-481d-9eb3-66e39177f2dd" ], @@ -1198,10 +1198,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1239,10 +1239,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1280,10 +1280,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1321,10 +1321,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1362,10 +1362,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+7": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1403,10 +1403,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+8": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1444,10 +1444,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+9": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1485,10 +1485,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+10": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1526,10 +1526,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+11": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1567,10 +1567,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+12": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/5b28b45e-fc61-4d86-8250-acb25363dce3*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1608,10 +1608,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+13": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1650,10 +1650,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+14": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1692,10 +1692,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+15": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+15": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -1711,14 +1711,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00de54-0000-0a00-0000-6494f8720000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1158" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:43:10.4482107Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "8f1193da-7725-4444-a329-dbf221a37fa2" ], "x-ms-correlation-request-id": [ "90442b10-ee50-4209-b302-1dba063980d6" ], "x-ms-routing-request-id": [ "WESTUS:20230623T014210Z:90442b10-ee50-4209-b302-1dba063980d6" ], @@ -1734,10 +1734,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+16": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1775,10 +1775,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+17": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1816,10 +1816,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+18": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1857,10 +1857,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+19": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1898,10 +1898,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+20": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1939,10 +1939,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+21": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/8f1193da-7725-4444-a329-dbf221a37fa2*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1980,10 +1980,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+22": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2022,10 +2022,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2064,10 +2064,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainPassword\": \"\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -2083,14 +2083,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00b757-0000-0a00-0000-6494f9290000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1157" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:46:12.9900094Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "52ce47da-0e6d-4639-9d9e-812bb3ef8016" ], "x-ms-correlation-request-id": [ "66a37498-3693-4fca-a563-65b0928e46cd" ], "x-ms-routing-request-id": [ "WESTUS:20230623T014513Z:66a37498-3693-4fca-a563-65b0928e46cd" ], @@ -2106,10 +2106,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2147,10 +2147,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2188,10 +2188,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2229,10 +2229,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2270,10 +2270,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+7": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2311,10 +2311,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01+8": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/52ce47da-0e6d-4639-9d9e-812bb3ef8016*3356B00295FBC8D769AAF829DC2C7A992D0A430926D92ED5FBB12D753EAD7D2E?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2352,10 +2352,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01+9": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/u617o3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2394,10 +2394,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+10": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2436,10 +2436,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+11": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+11": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"subnetId\": \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default\",\r\n \"domainName\": \"fidalgoppe010.local\",\r\n \"domainUsername\": \"domainjoin@fidalgoppe010.local\",\r\n \"domainPassword\": \"fakePassword\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -2455,14 +2455,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"2a00a45c-0000-0a00-0000-6494f9df0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1156" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:49:15.4694395Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "11d0d036-64d4-4f65-b260-3ed8a963099b" ], "x-ms-correlation-request-id": [ "3b7aa50d-5df4-41df-b0a0-79d1bab142f7" ], "x-ms-routing-request-id": [ "WESTUS:20230623T014815Z:3b7aa50d-5df4-41df-b0a0-79d1bab142f7" ], @@ -2478,10 +2478,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+12": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2519,10 +2519,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+13": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2560,10 +2560,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+14": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2601,10 +2601,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+15": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2642,10 +2642,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+16": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2683,10 +2683,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+17": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2724,10 +2724,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+18": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2765,10 +2765,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+19": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2806,10 +2806,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+20": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2847,10 +2847,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01+21": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/11d0d036-64d4-4f65-b260-3ed8a963099b*11FB9A132C9B75B0F38EF1305EB4E309C3DF8BAEC583A434EE034BB608E5A3CD?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2888,10 +2888,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01+22": { + "Update-AzDevCenterAdminNetworkConnection+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/dgp80s?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminPool.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminPool.Recording.json index d7cfbec2f92f..40ee1b666718 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminPool.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminPool.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"devBoxDefinitionName\": \"l4a9fe\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -18,14 +18,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b00dddb-0000-0a00-0000-6494fb0f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1155" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:54:18.7651309Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "17f7281f-9e75-4e7c-8ed6-231cac49056d" ], "x-ms-correlation-request-id": [ "16516b31-5918-4536-9df4-01070b59662a" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015319Z:16516b31-5918-4536-9df4-01070b59662a" ], @@ -41,10 +41,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/17f7281f-9e75-4e7c-8ed6-231cac49056d*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -82,10 +82,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -124,10 +124,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminPool+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"stopOnDisconnect\": {\r\n \"status\": \"Enabled\",\r\n \"gracePeriodMinutes\": 60\r\n },\r\n \"devBoxDefinitionName\": \"h3dpk9\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -143,14 +143,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b0092dc-0000-0a00-0000-6494fb2f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1154" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:54:50.6089729Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "cc49792c-2dce-44ef-89a0-04a65ee0d578" ], "x-ms-correlation-request-id": [ "3559de2c-9e11-4b97-9277-10c9f3f3883f" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015351Z:3559de2c-9e11-4b97-9277-10c9f3f3883f" ], @@ -166,10 +166,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminPool+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/cc49792c-2dce-44ef-89a0-04a65ee0d578*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -207,10 +207,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminPool+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,10 +249,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -291,10 +291,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"stopOnDisconnect\": {\r\n \"status\": \"Disabled\",\r\n \"gracePeriodMinutes\": 80\r\n },\r\n \"devBoxDefinitionName\": \"l4a9fe\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -310,14 +310,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b00b3dd-0000-0a00-0000-6494fb4f0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1153" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:55:22.4184576Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f30496fa-7ce0-43b0-991b-558d6b2570fa" ], "x-ms-correlation-request-id": [ "16ae9a1b-a00c-4768-9d38-aa90551043e6" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015423Z:16ae9a1b-a00c-4768-9d38-aa90551043e6" ], @@ -333,10 +333,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -374,10 +374,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f30496fa-7ce0-43b0-991b-558d6b2570fa*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -415,10 +415,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -457,10 +457,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -499,10 +499,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"stopOnDisconnect\": {\r\n \"status\": \"Enabled\",\r\n \"gracePeriodMinutes\": 60\r\n },\r\n \"devBoxDefinitionName\": \"h3dpk9\",\r\n \"networkConnectionName\": \"6naz5c\",\r\n \"licenseType\": \"Windows_Client\",\r\n \"localAdministrator\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -518,14 +518,14 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "ETag": [ "\"6b00f6de-0000-0a00-0000-6494fb8d0000\"" ], - "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Location": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1152" ], "x-ms-providerhub-traffic": [ "True" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:56:24.7436248Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f1fe3cad-fc43-48e5-ac6d-2deff107e66b" ], "x-ms-correlation-request-id": [ "c401d370-68fa-4086-bae8-5fc69a088e2f" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015525Z:c401d370-68fa-4086-bae8-5fc69a088e2f" ], @@ -541,10 +541,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -582,10 +582,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -623,10 +623,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f1fe3cad-fc43-48e5-ac6d-2deff107e66b*EEF384694EE355DE345DAF26228566106F770707179AB7CB57CBA4EC8252E77B?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -664,10 +664,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminPool+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/b5ri3z?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProject.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProject.Recording.json index 30a7771cb73f..e6f1dc2feb9b 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProject.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProject.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminProject+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProject+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"maxDevBoxesPerUser\": 5\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProject+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProject+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"maxDevBoxesPerUser\": 3\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -79,10 +79,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"maxDevBoxesPerUser\": 5\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -161,10 +161,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminProject+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/jr05ay?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"maxDevBoxesPerUser\": 3\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProjectEnvironmentType.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProjectEnvironmentType.Recording.json index c4cde04b483a..6790eed48402 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProjectEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminProjectEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"b24988ac-6180-42a0-ab88-20f7382dd24c\": {\r\n }\r\n }\r\n },\r\n \"status\": \"Disabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+Update+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"8e3af657-a8ff-443c-a75c-2fe8c4bcb635\": {\r\n }\r\n }\r\n },\r\n \"status\": \"Enabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned,UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -79,10 +79,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"b24988ac-6180-42a0-ab88-20f7382dd24c\": {\r\n }\r\n }\r\n },\r\n \"status\": \"Disabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -161,10 +161,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminProjectEnvironmentType+[NoContext]+UpdateViaIdentity+$PATCH+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/environmentTypes/bucn8l?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"creatorRoleAssignment\": {\r\n \"roles\": {\r\n \"8e3af657-a8ff-443c-a75c-2fe8c4bcb635\": {\r\n }\r\n }\r\n },\r\n \"status\": \"Enabled\",\r\n \"userRoleAssignments\": {\r\n \"957f8e6c-d217-4285-a756-deac3e51375e\": {\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned,UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm\": {\r\n }\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminSchedule.Recording.json b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminSchedule.Recording.json index bd433e859a2a..dd0a4f314960 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminSchedule.Recording.json +++ b/src/DevCenter/DevCenter.AutoRest/test/Update-AzDevCenterAdminSchedule.Recording.json @@ -1,8 +1,8 @@ { - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"17:30\",\r\n \"timeZone\": \"America/New_York\",\r\n \"state\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -24,7 +24,7 @@ "X-Rate-Limit-Remaining": [ "294" ], "X-Rate-Limit-Reset": [ "2023-06-23T01:57:58.2963496Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "4805e389-4f4c-4f41-8fbb-3364c62824f8" ], "x-ms-correlation-request-id": [ "b2f3e234-e7bb-469b-a6a5-896646e9a664" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015711Z:b2f3e234-e7bb-469b-a6a5-896646e9a664" ], @@ -40,10 +40,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -81,10 +81,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,10 +122,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -163,10 +163,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/4805e389-4f4c-4f41-8fbb-3364c62824f8*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -204,10 +204,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -246,10 +246,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"18:30\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -271,7 +271,7 @@ "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T02:00:12.9963451Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "f150da63-258f-49b1-8fb4-21a8b6256cf5" ], "x-ms-correlation-request-id": [ "a65879a6-0034-46cb-ba4a-dc7523304cad" ], "x-ms-routing-request-id": [ "WESTUS:20230623T015913Z:a65879a6-0034-46cb-ba4a-dc7523304cad" ], @@ -287,10 +287,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -328,10 +328,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -369,10 +369,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -410,10 +410,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/f150da63-258f-49b1-8fb4-21a8b6256cf5*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -451,10 +451,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminSchedule+[NoContext]+Update+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -493,10 +493,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -535,10 +535,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"17:30\",\r\n \"timeZone\": \"America/New_York\",\r\n \"state\": \"Disabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -560,7 +560,7 @@ "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T02:02:15.3764089Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "b1c9e77f-9022-45f0-94d2-5b623bb7ac5b" ], "x-ms-correlation-request-id": [ "c05d9a5d-dbf0-4d69-9627-911f41970726" ], "x-ms-routing-request-id": [ "WESTUS:20230623T020118Z:c05d9a5d-dbf0-4d69-9627-911f41970726" ], @@ -576,10 +576,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -617,10 +617,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -658,10 +658,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -699,10 +699,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+6": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/b1c9e77f-9022-45f0-94d2-5b623bb7ac5b*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -740,10 +740,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+7": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -782,10 +782,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+1": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -824,10 +824,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+2": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$PUT+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": "{\r\n \"properties\": {\r\n \"type\": \"StopDevBox\",\r\n \"frequency\": \"Daily\",\r\n \"time\": \"18:30\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -849,7 +849,7 @@ "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-06-23T02:04:20.0752612Z" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview" ], "x-ms-request-id": [ "04c1e422-612e-4a85-9281-019f93735620" ], "x-ms-correlation-request-id": [ "acd8dec5-45a9-48d9-9090-63b0174a5b29" ], "x-ms-routing-request-id": [ "WESTUS:20230623T020320Z:acd8dec5-45a9-48d9-9090-63b0174a5b29" ], @@ -865,10 +865,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+3": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -906,10 +906,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01+4": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/providers/Microsoft.DevCenter/locations/CANADACENTRAL/operationStatuses/04c1e422-612e-4a85-9281-019f93735620*33E29C1BE7853E308C5FECA8135B93FABF3E4E1E6F99E838596EBEBA9E244524?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -947,10 +947,10 @@ "isContentBase64": false } }, - "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01+5": { + "Update-AzDevCenterAdminSchedule+[NoContext]+UpdateViaIdentity+$GET+https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-04-01", + "RequestUri": "https://management.azure.com/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/projects/pwshProj3stxlh/pools/ebsz6a/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenter.AutoRest/test/deploymentTemplates/template.json b/src/DevCenter/DevCenter.AutoRest/test/deploymentTemplates/template.json index b33d8917a4e2..877f84c878e0 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/deploymentTemplates/template.json +++ b/src/DevCenter/DevCenter.AutoRest/test/deploymentTemplates/template.json @@ -283,31 +283,31 @@ { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterNameDelete')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]" }, { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterNameDelete2')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]" }, { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterSet')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]" }, { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterUpdate')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]" }, { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionNameDelete')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -317,7 +317,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionNameDelete2')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -327,7 +327,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionSet')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -337,7 +337,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionUpdate')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -347,7 +347,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionHybridSet')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -360,7 +360,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionHybridUpdate')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -388,7 +388,7 @@ { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "identity": { "type": "UserAssigned", @@ -400,7 +400,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -414,7 +414,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectNameDelete')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -428,7 +428,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectNameDelete2')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -442,7 +442,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectSet')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -456,7 +456,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectUpdate')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -470,7 +470,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -642,7 +642,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName'), '/', parameters('catalogName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -655,7 +655,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName') ,'/', parameters('catalogNameDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -668,7 +668,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName') ,'/', parameters('catalogNameDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -681,7 +681,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName') ,'/', parameters('catalogSet'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -694,7 +694,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName') ,'/', parameters('catalogUpdate'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -707,7 +707,7 @@ { "type": "microsoft.devcenter/devcenters/attachednetworks", "name": "[concat(parameters('devCenterName'), '/', parameters('attachedNetworkName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "networkConnectionId": "[resourceId('Microsoft.DevCenter/networkConnections', parameters('networkConnectionName'))]" } @@ -715,7 +715,7 @@ { "type": "microsoft.devcenter/devcenters/attachednetworks", "name": "[concat(parameters('devCenterName'), '/', parameters('attachedNetworkNameDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "networkConnectionId": "[resourceId('Microsoft.DevCenter/networkConnections', parameters('networkConnectionName'))]" } @@ -723,7 +723,7 @@ { "type": "microsoft.devcenter/devcenters/attachednetworks", "name": "[concat(parameters('devCenterName'), '/', parameters('attachedNetworkNameDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "networkConnectionId": "[resourceId('Microsoft.DevCenter/networkConnections', parameters('networkConnectionName'))]" } @@ -732,7 +732,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionName'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -748,7 +748,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionNameDelete'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -764,7 +764,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionNameDelete2'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -780,7 +780,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionUpdate'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -796,7 +796,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionSet'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -811,62 +811,62 @@ { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeName'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeNameDelete'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeNameDelete2'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('projEnvironmentTypeNameDelete'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('projEnvironmentTypeNameDelete2'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('envForProjEnvTypeNew'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('envForProjEnvTypeNew2'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeSet'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeUpdate'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('projectEnvironmentTypeSet'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('projectEnvironmentTypeUpdate'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" }, { "type": "microsoft.devcenter/devcenters/galleries", "name": "[concat(parameters('devCenterName'), '/', parameters('galleryName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "galleryResourceId": "[parameters('sigId')]" } @@ -874,7 +874,7 @@ { "type": "microsoft.devcenter/devcenters/galleries", "name": "[concat(parameters('devCenterName'), '/', parameters('galleryNameDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "galleryResourceId": "[resourceId('Microsoft.Compute/galleries', parameters('sigName2'))]" } @@ -882,7 +882,7 @@ { "type": "microsoft.devcenter/devcenters/galleries", "name": "[concat(parameters('devCenterName'), '/', parameters('galleryNameDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "galleryResourceId": "[resourceId('Microsoft.Compute/galleries', parameters('sigName3'))]" } @@ -909,7 +909,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -926,7 +926,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolNameDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -943,7 +943,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolNameDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -960,7 +960,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleNew'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -977,7 +977,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleNew2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -994,7 +994,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1011,7 +1011,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1028,7 +1028,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolSet'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1045,7 +1045,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolUpdate'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1062,7 +1062,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('scheduleSet'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1079,7 +1079,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('scheduleUpdate'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -1096,7 +1096,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('environmentTypeName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -1123,7 +1123,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('projEnvironmentTypeNameDelete'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -1150,7 +1150,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('projEnvironmentTypeNameDelete2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -1177,7 +1177,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('projectEnvironmentTypeSet'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -1204,7 +1204,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('projectEnvironmentTypeUpdate'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -1231,7 +1231,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('poolName'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", @@ -1246,7 +1246,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleDelete'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", @@ -1261,7 +1261,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('poolForScheduleDelete2'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", @@ -1276,7 +1276,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('scheduleSet'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", @@ -1291,7 +1291,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('scheduleUpdate'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", diff --git a/src/DevCenter/DevCenter.AutoRest/test/env.json b/src/DevCenter/DevCenter.AutoRest/test/env.json index ddef3eb34a15..fa8f0880f72d 100644 --- a/src/DevCenter/DevCenter.AutoRest/test/env.json +++ b/src/DevCenter/DevCenter.AutoRest/test/env.json @@ -1,113 +1,117 @@ -{ - "projectNew": "7xop", - "imageName": "MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", - "networkConnectionHybridNew": "th7uz", - "projectEnvironmentTypeUpdate": "bucn8l", - "projectNameDelete2": "vepyst", - "devCenterNameDelete2": "zyv7hr", - "sigId5": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/8pvrkx", - "envForProjEnvTypeNew": "s0my", - "imageReferenceId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", - "environmentTypeNameDelete2": "w76xp1", - "aadJoinType": "AzureADJoin", - "networkConnectionSet": "wp3q5m", - "networkConnectionHybridUpdate": "dgp80s", - "devCenterNameDelete": "pwshDc2kgj0lq", - "projEnvironmentTypeNameDelete": "t9rqhz", - "catalogNameDelete": "2t5u7q", - "domainName": "fidalgoppe010.local", - "attachedNetworkName": "6naz5c", - "poolForScheduleNew": "60qks", - "devCenterSet": "bys8zj", - "hybridDomainJoinType": "HybridAzureADJoin", - "projectEnvironmentTypeSet": "kqa5px", - "domainUsername": "domainjoin@fidalgoppe010.local", - "gitHubUri": "https://github.com/fake/fake.git", - "galleryNameDelete2": "zfwrem", - "poolNew2": "1knb7", - "osStorageType": "ssd_1024gb", - "projectSet": "1yf8he", - "networkConnectionNameDelete": "h0ukoj", - "poolForScheduleDelete": "oy09qc", - "envTypeNew": "6d9ia", - "SubscriptionId": "f141e9f2-4778-45a4-9aa0-8b31e6469454", - "networkConnectionName": "7xsgmy", - "projectUpdate": "jr05ay", - "sigId3": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/uvhm7y", - "catalogUpdate": "r4dg8z", - "networkConnectionUpdate": "u617o3", - "catalogNameDelete2": "4kfnut", - "devBoxDefinitionNew": "1nz9", - "poolNew": "lt6s", - "gitHubSecretIdentifier2": "https://dummyVault/dummy/00000000", - "resourceGroup": "pwshRggm9tz2", - "managedIdentityName": "pwshMsilo1utm", - "gitHubPath": "/Environments", - "domainPassword": "fakePassword", - "poolName": "vpa70o", - "devBoxDefinitionNew2": "w4klh", - "poolSet": "b8lfax", - "devBoxDefinitionSet": "l4a9fe", - "Tenant": "003b06c3-d471-4452-9686-9e7f3ca85f0a", - "subnetId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default", - "skuName": "general_a_8c32gb_v1", - "devCenterNew2": "lukg7", - "catalogSet": "6q1cyh", - "projectNameDelete": "pwshPro2og402n", - "projectNew2": "falrb", - "networkingRgName2": "24zgo", - "timeZone": "America/Los_Angeles", - "gitHubBranch": "main", - "imageVersion": "1.0.0", - "projectName": "pwshProj3stxlh", - "networkingRgName1": "17e2m", - "devCenterId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu", - "identityPrincipalId": "957f8e6c-d217-4285-a756-deac3e51375e", - "gitHubSecretIdentifier": "https://dummyVault/dummy/00000000", - "devCenterName": "pwshDchw2yeu", - "identityId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm", - "galleryNew": "8rb70", - "networkConnectionId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy", - "sigId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Compute/galleries/amlim_pwsh_sig", - "poolUpdate": "b5ri3z", - "networkConnectionHybridNew2": "spg7", - "attachedNetworkNameDelete": "92nl3z", - "projEnvironmentTypeNameDelete2": "tj7rw5", - "galleryName": "leh6m0", - "catalogName": "i29785", - "envForProjEnvTypeNew2": "25gl", - "devBoxDefinitionUpdate": "zyp7u0", - "sigId4": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/u48phj", - "attachedNetworkNew2": "2k1zg", - "envTypeNew2": "qnw9", - "galleryNew2": "4rj3", - "attachedNetworkNew": "6ur5", - "devBoxDefinitionNameDelete": "vz9ibo", - "scheduleSet": "drbf0o", - "poolForScheduleNew2": "c65i", - "time": "18:30", - "scheduleUpdate": "ebsz6a", - "environmentTypeNameDelete": "1mu390", - "networkConnectionHybridSet": "16eso2", - "devBoxDefinitionName": "h3dpk9", - "networkConnectionNameDelete2": "gezmtq", - "location": "canadacentral", - "catalogNew": "7284", - "networkConnectionNew": "2d3pl", - "attachedNetworkNameDelete2": "lw0ys2", - "environmentTypeSet": "9mb28l", - "environmentTypeUpdate": "sf2b9c", - "networkingRgName4": "4o5pz", - "poolNameDelete2": "odspl1", - "networkingRgName3": "3mcru", - "poolForScheduleDelete2": "5ypd7c", - "sigId2": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/7un96r", - "catalogNew2": "h7dpb", - "devCenterNew": "jym7", - "devBoxDefinitionNameDelete2": "kxgqbo", - "devCenterUpdate": "5rkqgw", - "environmentTypeName": "dwejvk", - "galleryNameDelete": "7omi64", - "networkConnectionNew2": "m4jg", - "poolNameDelete": "fzolg0" +{ "projectNew": "7xop", +"imageName": "MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", +"networkConnectionHybridNew": "th7uz", +"projectEnvironmentTypeUpdate": "bucn8l", +"projectNameDelete2": "vepyst", +"devCenterNameDelete2": "zyv7hr", +"sigId5": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/8pvrkx", +"envForProjEnvTypeNew": "s0my", +"imageReferenceId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", +"environmentTypeNameDelete2": "w76xp1", +"aadJoinType": "AzureADJoin", +"networkConnectionSet": "wp3q5m", +"networkConnectionHybridUpdate": "dgp80s", +"devCenterNameDelete": "pwshDc2kgj0lq", +"projEnvironmentTypeNameDelete": "t9rqhz", +"catalogNameDelete": "2t5u7q", +"domainName": "fidalgoppe010.local", +"attachedNetworkName": "6naz5c", +"poolForScheduleNew": "60qks", +"devCenterSet": "bys8zj", +"hybridDomainJoinType": "HybridAzureADJoin", +"projectEnvironmentTypeSet": "kqa5px", +"domainUsername": "domainjoin@fidalgoppe010.local", +"gitHubUri": "https://github.com/fake/fake.git", +"galleryNameDelete2": "zfwrem", +"poolNew2": "1knb7", +"osStorageType": "ssd_1024gb", +"projectSet": "1yf8he", +"networkConnectionNameDelete": "h0ukoj", +"poolForScheduleDelete": "oy09qc", +"envTypeNew": "6d9ia", +"SubscriptionId": "f141e9f2-4778-45a4-9aa0-8b31e6469454", +"SubscriptionId2": "306bbddd-068b-4efc-a779-50342af2547a", +"networkConnectionName": "7xsgmy", +"projectUpdate": "jr05ay", +"sigId3": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/uvhm7y", +"catalogUpdate": "r4dg8z", +"networkConnectionUpdate": "u617o3", +"catalogNameDelete2": "4kfnut", +"devBoxDefinitionNew": "1nz9", +"poolNew": "lt6s", +"gitHubSecretIdentifier2": "https://dummyVault/dummy/00000000", +"resourceGroup": "pwshRggm9tz2", +"managedIdentityName": "pwshMsilo1utm", +"gitHubPath": "/Environments", +"domainPassword": "fakePassword", +"poolName": "vpa70o", +"devBoxDefinitionNew2": "w4klh", +"poolSet": "b8lfax", +"devBoxDefinitionSet": "l4a9fe", +"Tenant": "003b06c3-d471-4452-9686-9e7f3ca85f0a", +"subnetId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default", +"skuName": "general_a_8c32gb_v1", +"devCenterNew2": "lukg7", +"catalogSet": "6q1cyh", +"projectNameDelete": "pwshPro2og402n", +"projectNew2": "falrb", +"networkingRgName2": "24zgo", +"timeZone": "America/Los_Angeles", +"gitHubBranch": "main", +"imageVersion": "1.0.0", +"projectName": "pwshProj3stxlh", +"networkingRgName1": "17e2m", +"devCenterId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/devcenters/pwshDchw2yeu", +"identityPrincipalId": "957f8e6c-d217-4285-a756-deac3e51375e", +"gitHubSecretIdentifier": "https://dummyVault/dummy/00000000", +"devCenterName": "pwshDchw2yeu", +"identityId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourcegroups/pwshRggm9tz2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/pwshMsilo1utm", +"galleryNew": "8rb70", +"networkConnectionId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.DevCenter/networkConnections/7xsgmy", +"sigId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Compute/galleries/amlim_pwsh_sig", +"poolUpdate": "b5ri3z", +"networkConnectionHybridNew2": "spg7", +"attachedNetworkNameDelete": "92nl3z", +"projEnvironmentTypeNameDelete2": "tj7rw5", +"galleryName": "leh6m0", +"catalogName": "i29785", +"envForProjEnvTypeNew2": "25gl", +"devBoxDefinitionUpdate": "zyp7u0", +"sigId4": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/u48phj", +"attachedNetworkNew2": "2k1zg", +"envTypeNew2": "qnw9", +"galleryNew2": "4rj3", +"attachedNetworkNew": "6ur5", +"devBoxDefinitionNameDelete": "vz9ibo", +"scheduleSet": "drbf0o", +"poolForScheduleNew2": "c65i", +"time": "18:30", +"scheduleUpdate": "ebsz6a", +"environmentTypeNameDelete": "1mu390", +"networkConnectionHybridSet": "16eso2", +"devBoxDefinitionName": "h3dpk9", +"networkConnectionNameDelete2": "gezmtq", +"location": "canadacentral", +"catalogNew": "7284", +"networkConnectionNew": "2d3pl", +"attachedNetworkNameDelete2": "lw0ys2", +"environmentTypeSet": "9mb28l", +"environmentTypeUpdate": "sf2b9c", +"networkingRgName4": "4o5pz", +"poolNameDelete2": "odspl1", +"networkingRgName3": "3mcru", +"poolForScheduleDelete2": "5ypd7c", +"sigId2": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRggm9tz2/providers/Microsoft.Compute/galleries/7un96r", +"catalogNew2": "h7dpb", +"devCenterNew": "jym7", +"devBoxDefinitionNameDelete2": "kxgqbo", +"devCenterUpdate": "5rkqgw", +"environmentTypeName": "dwejvk", +"galleryNameDelete": "7omi64", +"networkConnectionNew2": "m4jg", +"poolNameDelete": "fzolg0", +"devCenterName10": "pwshTestDevCenter", +"resourceGroupName10": "pwshTestAmlim", +"rg10": "amlim-rg", + "networkConnection10": "amlim-nc2" } diff --git a/src/DevCenter/DevCenter/Az.DevCenter.psd1 b/src/DevCenter/DevCenter/Az.DevCenter.psd1 index 2b46819e5abd..c88ace1c7ce1 100644 --- a/src/DevCenter/DevCenter/Az.DevCenter.psd1 +++ b/src/DevCenter/DevCenter/Az.DevCenter.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 12/7/2023 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'DevCenter.AutoRest/bin/Az.DevCenter.private.dll', @@ -75,8 +75,11 @@ NestedModules = @('DevCenter.AutoRest/Az.DevCenter.psm1', FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Get-AzDevCenterAdminAttachedNetwork', 'Get-AzDevCenterAdminCatalog', + 'Get-AzDevCenterAdminCatalogSyncErrorDetail', 'Get-AzDevCenterAdminDevBoxDefinition', 'Get-AzDevCenterAdminDevCenter', + 'Get-AzDevCenterAdminEnvironmentDefinition', + 'Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail', 'Get-AzDevCenterAdminEnvironmentType', 'Get-AzDevCenterAdminGallery', 'Get-AzDevCenterAdminImage', 'Get-AzDevCenterAdminImageVersion', @@ -90,13 +93,19 @@ FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Get-AzDevCenterAdminSchedule', 'Get-AzDevCenterAdminSku', 'Get-AzDevCenterAdminUsage', 'Get-AzDevCenterUserCatalog', 'Get-AzDevCenterUserDevBox', 'Get-AzDevCenterUserDevBoxAction', + 'Get-AzDevCenterUserDevBoxOperation', 'Get-AzDevCenterUserDevBoxRemoteConnection', 'Get-AzDevCenterUserEnvironment', + 'Get-AzDevCenterUserEnvironmentAction', 'Get-AzDevCenterUserEnvironmentDefinition', + 'Get-AzDevCenterUserEnvironmentLog', + 'Get-AzDevCenterUserEnvironmentOperation', + 'Get-AzDevCenterUserEnvironmentOutput', 'Get-AzDevCenterUserEnvironmentType', 'Get-AzDevCenterUserPool', 'Get-AzDevCenterUserProject', 'Get-AzDevCenterUserSchedule', 'Invoke-AzDevCenterAdminExecuteCheckNameAvailability', 'Invoke-AzDevCenterUserDelayDevBoxAction', + 'Invoke-AzDevCenterUserDelayEnvironmentAction', 'New-AzDevCenterAdminAttachedNetwork', 'New-AzDevCenterAdminCatalog', 'New-AzDevCenterAdminDevBoxDefinition', @@ -118,9 +127,11 @@ FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Remove-AzDevCenterAdminPool', 'Remove-AzDevCenterAdminProject', 'Remove-AzDevCenterAdminProjectEnvironmentType', 'Remove-AzDevCenterAdminSchedule', 'Remove-AzDevCenterUserDevBox', - 'Remove-AzDevCenterUserEnvironment', + 'Remove-AzDevCenterUserEnvironment', 'Repair-AzDevCenterUserDevBox', 'Restart-AzDevCenterUserDevBox', 'Skip-AzDevCenterUserDevBoxAction', + 'Skip-AzDevCenterUserEnvironmentAction', 'Start-AzDevCenterAdminNetworkConnectionHealthCheck', + 'Start-AzDevCenterAdminPoolHealthCheck', 'Start-AzDevCenterUserDevBox', 'Stop-AzDevCenterUserDevBox', 'Sync-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminCatalog', 'Update-AzDevCenterAdminDevBoxDefinition', @@ -129,7 +140,8 @@ FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Update-AzDevCenterAdminNetworkConnection', 'Update-AzDevCenterAdminPool', 'Update-AzDevCenterAdminProject', 'Update-AzDevCenterAdminProjectEnvironmentType', - 'Update-AzDevCenterAdminSchedule' + 'Update-AzDevCenterAdminSchedule', + 'Update-AzDevCenterUserEnvironment' # 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 = @() diff --git a/src/DevCenter/DevCenter/ChangeLog.md b/src/DevCenter/DevCenter/ChangeLog.md index dc3509382c9c..35dd8dde8fb9 100644 --- a/src/DevCenter/DevCenter/ChangeLog.md +++ b/src/DevCenter/DevCenter/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated the default parameter set for Get-AzDevCenterUserSchedule to "list" ## Version 1.0.0 * General availability for module Az.DevCenter diff --git a/src/DevCenter/DevCenter/help/Deploy-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenter/help/Deploy-AzDevCenterUserEnvironment.md index 6a8aa298a0dd..fdf7af44e88c 100644 --- a/src/DevCenter/DevCenter/help/Deploy-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenter/help/Deploy-AzDevCenterUserEnvironment.md @@ -16,28 +16,32 @@ Creates or updates an environment. ``` Deploy-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName [-UserId ] -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpanded ``` Deploy-AzDevCenterUserEnvironment -Endpoint -InputObject -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpandedByDevCenter ``` -Deploy-AzDevCenterUserEnvironment -DevCenter -InputObject +Deploy-AzDevCenterUserEnvironment -DevCenterName -InputObject -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateExpandedByDevCenter ``` -Deploy-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName [-UserId ] - -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +Deploy-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + [-UserId ] -CatalogName -EnvironmentDefinitionName -EnvironmentType + [-Parameter ] [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -129,13 +133,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateViaIdentityExpandedByDevCenter, CreateExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -189,6 +193,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: System.DateTime +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. diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md new file mode 100644 index 000000000000..3cdf6334319b --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md @@ -0,0 +1,210 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminCatalogSyncErrorDetail + +## SYNOPSIS +Gets catalog synchronization error details + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterAdminCatalogSyncErrorDetail -CatalogName -DevCenterName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Gets catalog synchronization error details + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` + +### EXAMPLE 2 +``` +$catalog = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +$catalogErrorDetail = Get-AzDevCenterAdminCatalogSyncErrorDetail -InputObject $catalog +``` + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +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: IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: String +Parameter Sets: Get +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: String[] +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenter.Models.IDevCenterIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ISyncErrorDetails +## 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 + \[AttachedNetworkConnectionName \\]: The name of the attached NetworkConnection. + \[CatalogName \\]: The name of the Catalog. + \[DevBoxDefinitionName \\]: The name of the Dev Box definition. + \[DevCenterName \\]: The name of the devcenter. + \[EnvironmentDefinitionName \\]: The name of the Environment Definition. + \[EnvironmentTypeName \\]: The name of the environment type. + \[GalleryName \\]: The name of the gallery. + \[Id \\]: Resource identity path + \[ImageName \\]: The name of the image. + \[Location \\]: The Azure region + \[NetworkConnectionName \\]: Name of the Network Connection that can be applied to a Pool. + \[OperationId \\]: The ID of an ongoing async operation + \[PoolName \\]: Name of the pool. + \[ProjectName \\]: The name of the project. + \[ResourceGroupName \\]: The name of the resource group. +The name is case insensitive. + \[ScheduleName \\]: The name of the schedule that uniquely identifies it. + \[SubscriptionId \\]: The ID of the target subscription. + \[TaskName \\]: The name of the Task. + \[VersionName \\]: The version of the image. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradmincatalogsyncerrordetail) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinition.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinition.md new file mode 100644 index 000000000000..f5aec7c8f937 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinition.md @@ -0,0 +1,204 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminEnvironmentDefinition + +## SYNOPSIS +Gets an environment definition from the catalog. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterAdminEnvironmentDefinition -CatalogName -DevCenterName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterAdminEnvironmentDefinition -CatalogName -DevCenterName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminEnvironmentDefinition -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets an environment definition from the catalog. + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterAdminEnvironmentDefinition -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -Name envDefName +``` + +### EXAMPLE 3 +``` +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinition = Get-AzDevCenterAdminEnvironmentDefinition -InputObject $environmentDefinition +``` + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: String +Parameter Sets: List, Get +Aliases: + +Required: True +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: IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Environment Definition. + +```yaml +Type: String +Parameter Sets: Get +Aliases: EnvironmentDefinitionName + +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: String +Parameter Sets: List, Get +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: String[] +Parameter Sets: List, Get +Aliases: + +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.DevCenter.Models.IDevCenterIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.IEnvironmentDefinition +## 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 + \[AttachedNetworkConnectionName \\]: The name of the attached NetworkConnection. + \[CatalogName \\]: The name of the Catalog. + \[DevBoxDefinitionName \\]: The name of the Dev Box definition. + \[DevCenterName \\]: The name of the devcenter. + \[EnvironmentDefinitionName \\]: The name of the Environment Definition. + \[EnvironmentTypeName \\]: The name of the environment type. + \[GalleryName \\]: The name of the gallery. + \[Id \\]: Resource identity path + \[ImageName \\]: The name of the image. + \[Location \\]: The Azure region + \[NetworkConnectionName \\]: Name of the Network Connection that can be applied to a Pool. + \[OperationId \\]: The ID of an ongoing async operation + \[PoolName \\]: Name of the pool. + \[ProjectName \\]: The name of the project. + \[ResourceGroupName \\]: The name of the resource group. +The name is case insensitive. + \[ScheduleName \\]: The name of the schedule that uniquely identifies it. + \[SubscriptionId \\]: The ID of the target subscription. + \[TaskName \\]: The name of the Task. + \[VersionName \\]: The version of the image. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinition) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md new file mode 100644 index 000000000000..9b4d89b88ddd --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail.md @@ -0,0 +1,225 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail +schema: 2.0.0 +--- + +# Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail + +## SYNOPSIS +Gets Environment Definition error details + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -CatalogName -DevCenterName + -EnvironmentDefinitionName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Gets Environment Definition error details + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg -EnvironmentDefinitionName envDefName +``` + +### EXAMPLE 2 +``` +$environmentDefinition = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "CatalogName" = "CentralCatalog"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"; "EnvironmentDefinitionName"="envDefName"} +$environmentDefinitionErrorDetail = Get-AzDevCenterAdminEnvironmentDefinitionErrorDetail -InputObject $environmentDefinition +``` + +## PARAMETERS + +### -CatalogName +The name of the Catalog. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The name of the devcenter. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentDefinitionName +The name of the Environment Definition. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +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: IDevCenterIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: String +Parameter Sets: Get +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: String[] +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenter.Models.IDevCenterIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Models.Api20231001Preview.ICatalogErrorDetails +## 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 + \[AttachedNetworkConnectionName \\]: The name of the attached NetworkConnection. + \[CatalogName \\]: The name of the Catalog. + \[DevBoxDefinitionName \\]: The name of the Dev Box definition. + \[DevCenterName \\]: The name of the devcenter. + \[EnvironmentDefinitionName \\]: The name of the Environment Definition. + \[EnvironmentTypeName \\]: The name of the environment type. + \[GalleryName \\]: The name of the gallery. + \[Id \\]: Resource identity path + \[ImageName \\]: The name of the image. + \[Location \\]: The Azure region + \[NetworkConnectionName \\]: Name of the Network Connection that can be applied to a Pool. + \[OperationId \\]: The ID of an ongoing async operation + \[PoolName \\]: Name of the pool. + \[ProjectName \\]: The name of the project. + \[ResourceGroupName \\]: The name of the resource group. +The name is case insensitive. + \[ScheduleName \\]: The name of the schedule that uniquely identifies it. + \[SubscriptionId \\]: The ID of the target subscription. + \[TaskName \\]: The name of the Task. + \[VersionName \\]: The version of the image. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteradminenvironmentdefinitionerrordetail) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserCatalog.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserCatalog.md index 1056cb8c91e4..86e2478a2f2b 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserCatalog.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserCatalog.md @@ -32,19 +32,19 @@ Get-AzDevCenterUserCatalog -Endpoint -InputObject -InputObject +Get-AzDevCenterUserCatalog -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserCatalog -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserCatalog -DevCenterName -ProjectName [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserCatalog -DevCenter -ProjectName -CatalogName +Get-AzDevCenterUserCatalog -DevCenterName -ProjectName -CatalogName [-DefaultProfile ] [] ``` @@ -130,13 +130,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBox.md index 25054f9d9579..e2f3fda1fd07 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBox.md @@ -42,30 +42,30 @@ Get-AzDevCenterUserDevBox -Endpoint -ProjectName -UserId -InputObject +Get-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter [-DefaultProfile ] [] +Get-AzDevCenterUserDevBox -DevCenterName [-DefaultProfile ] [] ``` ### List2ByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter -ProjectName -UserId +Get-AzDevCenterUserDevBox -DevCenterName -ProjectName -UserId [-DefaultProfile ] [] ``` ### List1ByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter -UserId [-DefaultProfile ] +Get-AzDevCenterUserDevBox -DevCenterName -UserId [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter -ProjectName -UserId -Name +Get-AzDevCenterUserDevBox -DevCenterName -ProjectName -UserId -Name [-DefaultProfile ] [] ``` @@ -164,13 +164,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, List2ByDevCenter, List1ByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxAction.md index 4e617973676a..09b596582165 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxAction.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxAction.md @@ -21,7 +21,7 @@ Get-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -Project ### Get ``` Get-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -ProjectName - [-UserId ] -ActionName [-DefaultProfile ] [] + [-UserId ] -Name [-DefaultProfile ] [] ``` ### GetViaIdentity @@ -32,20 +32,20 @@ Get-AzDevCenterUserDevBoxAction -Endpoint -InputObject -InputObject +Get-AzDevCenterUserDevBoxAction -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserDevBoxAction -DevCenter -DevBoxName -ProjectName +Get-AzDevCenterUserDevBoxAction -DevCenterName -DevBoxName -ProjectName [-UserId ] [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserDevBoxAction -DevCenter -DevBoxName -ProjectName - [-UserId ] -ActionName [-DefaultProfile ] [] +Get-AzDevCenterUserDevBoxAction -DevCenterName -DevBoxName -ProjectName + [-UserId ] -Name [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -99,21 +99,6 @@ This command gets the action "schedule-default" for the dev box "myDevBox". ## PARAMETERS -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -145,13 +130,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -191,6 +176,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The DevCenter Project upon which to execute operations. diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxOperation.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxOperation.md new file mode 100644 index 000000000000..89ca628c2a41 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxOperation.md @@ -0,0 +1,248 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation +schema: 2.0.0 +--- + +# Get-AzDevCenterUserDevBoxOperation + +## SYNOPSIS +Gets an operation on a Dev Box. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -DevBoxName -ProjectName + [-UserId ] -OperationId [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -DevBoxName -ProjectName + [-UserId ] -OperationId [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an operation on a Dev Box. + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +``` + +### EXAMPLE 3 +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +### EXAMPLE 4 +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +### EXAMPLE 5 +``` +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +### EXAMPLE 6 +``` +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevBoxName +The name of a Dev Box. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: List, Get, GetViaIdentity +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on a Dev Box. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxRemoteConnection.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxRemoteConnection.md index 348e57245f16..b9e324a81739 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxRemoteConnection.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserDevBoxRemoteConnection.md @@ -26,13 +26,13 @@ Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint -InputObject -InputObject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter -DevBoxName -ProjectName +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName -DevBoxName -ProjectName [-UserId ] [-DefaultProfile ] [] ``` @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironment.md index c8a4d2aafac7..fb121f384d01 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironment.md @@ -38,25 +38,25 @@ Get-AzDevCenterUserEnvironment -Endpoint -ProjectName -UserId ### GetViaIdentityByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -InputObject +Get-AzDevCenterUserEnvironment -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### List1ByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -ProjectName -UserId +Get-AzDevCenterUserEnvironment -DevCenterName -ProjectName -UserId [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserEnvironment -DevCenterName -ProjectName [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -ProjectName -UserId -Name +Get-AzDevCenterUserEnvironment -DevCenterName -ProjectName -UserId -Name [-DefaultProfile ] [] ``` @@ -145,13 +145,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..39a35612e227 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,248 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentAction + +## SYNOPSIS +Retrieve a specific environment action. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -EnvironmentName -ProjectName + [-UserId ] -Name [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -EnvironmentName -ProjectName + [-UserId ] -Name [-DefaultProfile ] [] +``` + +## DESCRIPTION +Retrieve a specific environment action. + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 3 +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +### EXAMPLE 4 +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +### EXAMPLE 5 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +### EXAMPLE 6 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, GetByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: List, Get, GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on an Environment. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentDefinition.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentDefinition.md index 9efead119e88..4b1bbbe9e442 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentDefinition.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentDefinition.md @@ -38,25 +38,25 @@ Get-AzDevCenterUserEnvironmentDefinition -Endpoint -ProjectName -InputObject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### List1ByDevCenter ``` -Get-AzDevCenterUserEnvironmentDefinition -DevCenter -ProjectName -CatalogName +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -ProjectName -CatalogName [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironmentDefinition -DevCenter -ProjectName [-DefaultProfile ] - [] +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -ProjectName + [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserEnvironmentDefinition -DevCenter -ProjectName -CatalogName +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -ProjectName -CatalogName -DefinitionName [-DefaultProfile ] [] ``` @@ -175,13 +175,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentLog.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentLog.md new file mode 100644 index 000000000000..6959dcf63c9c --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentLog.md @@ -0,0 +1,197 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentLog + +## SYNOPSIS +Gets the logs for an operation on an environment. + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterUserEnvironmentLog -Endpoint -EnvironmentName -OperationId + -ProjectName [-UserId ] -OutFile [-DefaultProfile ] [-PassThru] + [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentLog -DevCenterName -EnvironmentName -OperationId + -ProjectName [-UserId ] -OutFile [-DefaultProfile ] [-PassThru] + [] +``` + +## DESCRIPTION +Gets the logs for an operation on an environment. + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: GetByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on an environment. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OutFile +Path to write output file to + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### System.Boolean +## NOTES + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOperation.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOperation.md new file mode 100644 index 000000000000..1422992fb69f --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOperation.md @@ -0,0 +1,248 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentOperation + +## SYNOPSIS +Gets an environment action result. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -EnvironmentName -ProjectName + [-UserId ] -OperationId [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -EnvironmentName -ProjectName + [-UserId ] -OperationId [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an environment action result. + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 3 +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +### EXAMPLE 4 +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +### EXAMPLE 5 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +### EXAMPLE 6 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: GetViaIdentityByDevCenter, ListByDevCenter, GetByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: List, Get, GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on an environment. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: List, Get, ListByDevCenter, GetByDevCenter +Aliases: + +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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOutput.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOutput.md new file mode 100644 index 000000000000..f1b64d5ed4e7 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentOutput.md @@ -0,0 +1,211 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentOutput + +## SYNOPSIS +Gets Outputs from the environment + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterUserEnvironmentOutput -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentOutput -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentOutput -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentOutput -DevCenterName -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets Outputs from the environment + +## EXAMPLES + +### EXAMPLE 1 +``` +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +### EXAMPLE 3 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +### EXAMPLE 4 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: GetViaIdentityByDevCenter, GetByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: Get, GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: Get, GetByDevCenter +Aliases: + +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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput](https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput) + diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentType.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentType.md index 9947c7f9f4fc..80d8f493b68d 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentType.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserEnvironmentType.md @@ -20,7 +20,7 @@ Get-AzDevCenterUserEnvironmentType -Endpoint -ProjectName [-De ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironmentType -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserEnvironmentType -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -61,13 +61,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserPool.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserPool.md index 213c6e6cb906..a5256c9f8392 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserPool.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserPool.md @@ -32,19 +32,19 @@ Get-AzDevCenterUserPool -Endpoint -InputObject ### GetViaIdentityByDevCenter ``` -Get-AzDevCenterUserPool -DevCenter -InputObject [-DefaultProfile ] - [] +Get-AzDevCenterUserPool -DevCenterName -InputObject + [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserPool -DevCenter -ProjectName -PoolName +Get-AzDevCenterUserPool -DevCenterName -ProjectName -PoolName [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserPool -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserPool -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -115,13 +115,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetViaIdentityByDevCenter, GetByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserProject.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserProject.md index fe43db75fddb..f38731117e25 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserProject.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserProject.md @@ -31,18 +31,18 @@ Get-AzDevCenterUserProject -Endpoint -InputObject [-DefaultProfile ] [] +Get-AzDevCenterUserProject -DevCenterName [-DefaultProfile ] [] ``` ### GetViaIdentityByDevCenter ``` -Get-AzDevCenterUserProject -DevCenter -InputObject +Get-AzDevCenterUserProject -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### GetByDevCenter ``` -Get-AzDevCenterUserProject -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserProject -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -113,13 +113,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: ListByDevCenter, GetViaIdentityByDevCenter, GetByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserSchedule.md b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserSchedule.md index 2fd1329d50f5..a761edc0b8fe 100644 --- a/src/DevCenter/DevCenter/help/Get-AzDevCenterUserSchedule.md +++ b/src/DevCenter/DevCenter/help/Get-AzDevCenterUserSchedule.md @@ -12,9 +12,15 @@ Gets a schedule. ## SYNTAX -### Get (Default) +### List (Default) ``` -Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName +Get-AzDevCenterUserSchedule -Endpoint -ProjectName [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName -ScheduleName [-DefaultProfile ] [] ``` @@ -24,18 +30,36 @@ Get-AzDevCenterUserSchedule -Endpoint -InputObject ] [] ``` -### GetByDevCenter +### List1 ``` -Get-AzDevCenterUserSchedule -DevCenter -PoolName -ProjectName +Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName [-DefaultProfile ] [] ``` +### GetByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -PoolName -ProjectName + -ScheduleName [-DefaultProfile ] [] +``` + ### GetViaIdentityByDevCenter ``` -Get-AzDevCenterUserSchedule -DevCenter -InputObject +Get-AzDevCenterUserSchedule -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### List1ByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -PoolName -ProjectName [-DefaultProfile ] [] ``` +### ListByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -ProjectName [-DefaultProfile ] + [] +``` + ## DESCRIPTION Gets a schedule. @@ -89,13 +113,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String -Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter -Aliases: +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter +Aliases: DevCenter Required: True Position: Named @@ -109,7 +133,7 @@ The DevCenter-specific URI to operate on. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentity +Parameter Sets: List, Get, GetViaIdentity, List1 Aliases: Required: True @@ -140,7 +164,7 @@ The name of a pool of Dev Boxes. ```yaml Type: System.String -Parameter Sets: Get, GetByDevCenter +Parameter Sets: Get, List1, GetByDevCenter, List1ByDevCenter Aliases: Required: True @@ -153,6 +177,21 @@ Accept wildcard characters: False ### -ProjectName The DevCenter Project upon which to execute operations. +```yaml +Type: System.String +Parameter Sets: List, Get, List1, GetByDevCenter, List1ByDevCenter, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleName +The name of a schedule. + ```yaml Type: System.String Parameter Sets: Get, GetByDevCenter diff --git a/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayDevBoxAction.md b/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayDevBoxAction.md index 87fba94ee98b..430763dfe22e 100644 --- a/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayDevBoxAction.md +++ b/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayDevBoxAction.md @@ -22,22 +22,22 @@ Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint -DevBoxName ### Delay ``` Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint -DevBoxName -ProjectName - [-UserId ] -ActionName -DelayTime [-DefaultProfile ] [-WhatIf] - [-Confirm] [] + [-UserId ] -Name -DelayTime [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### Delay1ByDevCenter ``` -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter -DevBoxName -ProjectName +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName -DevBoxName -ProjectName [-UserId ] -DelayTime [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### DelayByDevCenter ``` -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter -DevBoxName -ProjectName - [-UserId ] -ActionName -DelayTime [-DefaultProfile ] [-WhatIf] - [-Confirm] [] +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName -DevBoxName -ProjectName + [-UserId ] -Name -DelayTime [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -75,21 +75,6 @@ This command delays the action "schedule-default" for the dev box "myDevBox" for ## PARAMETERS -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Delay, DelayByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -137,13 +122,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: Delay1ByDevCenter, DelayByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -167,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Delay, DelayByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The DevCenter Project upon which to execute operations. diff --git a/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md b/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md new file mode 100644 index 000000000000..b80823bd6959 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md @@ -0,0 +1,214 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction +schema: 2.0.0 +--- + +# Invoke-AzDevCenterUserDelayEnvironmentAction + +## SYNOPSIS +Delays the occurrence of an action. + +## SYNTAX + +### Delay (Default) +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint -Name -EnvironmentName + -ProjectName [-UserId ] -DelayTime [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### DelayByDevCenter +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName -Name -EnvironmentName + -ProjectName [-UserId ] -DelayTime [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Delays the occurrence of an action. + +## EXAMPLES + +### EXAMPLE 1 +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +``` + +### EXAMPLE 2 +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DelayTime +The delayed timespan from the scheduled action time. +Format HH:MM. + +```yaml +Type: TimeSpan +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: DelayByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: Delay +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on an Environment. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +## NOTES + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction](https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction) + diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminDevCenter.md index e0fb0243a21a..9d8c6e6be5b0 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminDevCenter.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminDevCenter.md @@ -15,13 +15,14 @@ Creates or updates a devcenter resource ### CreateExpanded (Default) ``` New-AzDevCenterAdminDevCenter -Name -ResourceGroupName [-SubscriptionId ] - -Location [-IdentityType ] [-IdentityUserAssignedIdentity ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -Location [-DisplayName ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` -New-AzDevCenterAdminDevCenter -InputObject -Location +New-AzDevCenterAdminDevCenter -InputObject -Location [-DisplayName ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -95,6 +96,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityType Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminEnvironmentType.md index 3b1185fe76c2..c9989d56e09f 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminEnvironmentType.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminEnvironmentType.md @@ -15,14 +15,14 @@ Creates or updates an environment type. ### CreateExpanded (Default) ``` New-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-DisplayName ] [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` -New-AzDevCenterAdminEnvironmentType -InputObject [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +New-AzDevCenterAdminEnvironmentType -InputObject [-DisplayName ] + [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -80,6 +80,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the environment type. + +```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. diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminPool.md index c8c2fd360d75..4a70aad54235 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminPool.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminPool.md @@ -16,15 +16,19 @@ Creates or updates a machine pool ``` New-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName [-SubscriptionId ] -Location -DevBoxDefinitionName - -LocalAdministrator -NetworkConnectionName [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -LocalAdministrator -NetworkConnectionName [-DisplayName ] + [-ManagedVirtualNetworkRegion ] [-Tag ] [-SingleSignOnStatus ] + [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterAdminPool -InputObject -Location -DevBoxDefinitionName - -LocalAdministrator -NetworkConnectionName [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -LocalAdministrator -NetworkConnectionName [-DisplayName ] + [-ManagedVirtualNetworkRegion ] [-Tag ] [-SingleSignOnStatus ] + [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -95,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the pool. + +```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. @@ -141,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ManagedVirtualNetworkRegion +The regions of the managed virtual network (required when managedNetworkType is Managed). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the pool. @@ -217,6 +251,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SingleSignOnStatus +Indicates whether Dev Boxes in this pool are created with single sign on enabled. +The also requires that single sign on be enabled on the tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -247,6 +297,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VirtualNetworkType +Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminProject.md index c287f4f8866d..93467dfc29ec 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterAdminProject.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterAdminProject.md @@ -16,14 +16,15 @@ Creates or updates a project. ``` New-AzDevCenterAdminProject -Name -ResourceGroupName [-SubscriptionId ] -Location -DevCenterId [-Description ] [-MaxDevBoxesPerUser ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-Tag ] [-DisplayName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterAdminProject -InputObject -Location -DevCenterId - [-Description ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-Description ] [-MaxDevBoxesPerUser ] [-Tag ] [-DisplayName ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -109,6 +110,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the project. + +```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. diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/New-AzDevCenterUserDevBox.md index f968b7e3a45e..c56d1d2dc6ff 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterUserDevBox.md @@ -28,14 +28,14 @@ New-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject -PoolName +New-AzDevCenterUserDevBox -DevCenterName -InputObject -PoolName [-LocalAdministrator ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### CreateExpandedByDevCenter ``` -New-AzDevCenterUserDevBox -DevCenter -Name -ProjectName [-UserId ] +New-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] -PoolName [-LocalAdministrator ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -108,13 +108,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateViaIdentityExpandedByDevCenter, CreateExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/New-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenter/help/New-AzDevCenterUserEnvironment.md index 36a74d8140bf..a4ba3a71a74e 100644 --- a/src/DevCenter/DevCenter/help/New-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenter/help/New-AzDevCenterUserEnvironment.md @@ -16,28 +16,32 @@ Creates or updates an environment. ``` New-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName [-UserId ] -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterUserEnvironment -Endpoint -InputObject -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpandedByDevCenter ``` -New-AzDevCenterUserEnvironment -DevCenter -InputObject -CatalogName - -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +New-AzDevCenterUserEnvironment -DevCenterName -InputObject + -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ### CreateExpandedByDevCenter ``` -New-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName [-UserId ] +New-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName [-UserId ] -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-ExpirationDate ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -129,13 +133,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateViaIdentityExpandedByDevCenter, CreateExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -189,6 +193,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: System.DateTime +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. diff --git a/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserDevBox.md index aab0ee515a08..b014c8e956e5 100644 --- a/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserDevBox.md @@ -26,13 +26,13 @@ Remove-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Remove-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteByDevCenter ``` -Remove-AzDevCenterUserDevBox -DevCenter -Name -ProjectName [-UserId ] +Remove-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: DeleteViaIdentityByDevCenter, DeleteByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserEnvironment.md index 25e28217fd80..42d43054381d 100644 --- a/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenter/help/Remove-AzDevCenterUserEnvironment.md @@ -26,14 +26,15 @@ Remove-AzDevCenterUserEnvironment -Endpoint -InputObject -InputObject +Remove-AzDevCenterUserEnvironment -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### DeleteByDevCenter ``` -Remove-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName [-UserId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +Remove-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -104,13 +105,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: DeleteViaIdentityByDevCenter, DeleteByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Repair-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Repair-AzDevCenterUserDevBox.md new file mode 100644 index 000000000000..085bd2b520dc --- /dev/null +++ b/src/DevCenter/DevCenter/help/Repair-AzDevCenterUserDevBox.md @@ -0,0 +1,274 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox +schema: 2.0.0 +--- + +# Repair-AzDevCenterUserDevBox + +## SYNOPSIS +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. + +## SYNTAX + +### Repair (Default) +``` +Repair-AzDevCenterUserDevBox -Endpoint -Name -ProjectName [-UserId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### RepairViaIdentity +``` +Repair-AzDevCenterUserDevBox -Endpoint -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### RepairViaIdentityByDevCenter +``` +Repair-AzDevCenterUserDevBox -DevCenterName -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### RepairByDevCenter +``` +Repair-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. + +## EXAMPLES + +### EXAMPLE 1 +``` +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +``` + +### EXAMPLE 3 +``` +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +### EXAMPLE 4 +``` +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput +``` + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: RepairViaIdentityByDevCenter, RepairByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: Repair, RepairViaIdentity +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: RepairViaIdentity, RepairViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of a Dev Box. + +```yaml +Type: String +Parameter Sets: Repair, RepairByDevCenter +Aliases: DevBoxName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: Repair, RepairByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: Repair, RepairByDevCenter +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenterdata.Models.IDevCenterdataIdentity +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox](https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox) + diff --git a/src/DevCenter/DevCenter/help/Restart-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Restart-AzDevCenterUserDevBox.md index 3ffd56bf7146..0e4dd89a4193 100644 --- a/src/DevCenter/DevCenter/help/Restart-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/Restart-AzDevCenterUserDevBox.md @@ -26,13 +26,13 @@ Restart-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Restart-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### RestartByDevCenter ``` -Restart-AzDevCenterUserDevBox -DevCenter -Name -ProjectName [-UserId ] +Restart-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: RestartViaIdentityByDevCenter, RestartByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserDevBoxAction.md index c04f11e370cc..ce0e472ba135 100644 --- a/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserDevBoxAction.md +++ b/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserDevBoxAction.md @@ -14,9 +14,8 @@ Skips an occurrence of an action. ### Skip (Default) ``` -Skip-AzDevCenterUserDevBoxAction -Endpoint -ActionName -DevBoxName - -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] - [] +Skip-AzDevCenterUserDevBoxAction -Endpoint -Name -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### SkipViaIdentity @@ -27,13 +26,13 @@ Skip-AzDevCenterUserDevBoxAction -Endpoint -InputObject -InputObject +Skip-AzDevCenterUserDevBoxAction -DevCenterName -InputObject [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` ### SkipByDevCenter ``` -Skip-AzDevCenterUserDevBoxAction -DevCenter -ActionName -DevBoxName +Skip-AzDevCenterUserDevBoxAction -DevCenterName -Name -DevBoxName -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] ``` @@ -75,21 +74,6 @@ This command skips the action "schedule-default" for the dev box "myDevBox". ## PARAMETERS -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Skip, SkipByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -121,13 +105,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: SkipViaIdentityByDevCenter, SkipByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -167,6 +151,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds diff --git a/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..c195433bd6d3 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Skip-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,274 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction +schema: 2.0.0 +--- + +# Skip-AzDevCenterUserEnvironmentAction + +## SYNOPSIS +Skips an occurrence of an action. + +## SYNTAX + +### Skip (Default) +``` +Skip-AzDevCenterUserEnvironmentAction -Endpoint -Name -EnvironmentName + -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [] +``` + +### SkipViaIdentity +``` +Skip-AzDevCenterUserEnvironmentAction -Endpoint -InputObject + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### SkipViaIdentityByDevCenter +``` +Skip-AzDevCenterUserEnvironmentAction -DevCenterName -InputObject + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### SkipByDevCenter +``` +Skip-AzDevCenterUserEnvironmentAction -DevCenterName -Name -EnvironmentName + -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +Skips an occurrence of an action. + +## EXAMPLES + +### EXAMPLE 1 +``` +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +### EXAMPLE 2 +``` +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +### EXAMPLE 3 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +### EXAMPLE 4 +``` +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: SkipViaIdentityByDevCenter, SkipByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: Skip, SkipViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: True +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: IDevCenterdataIdentity +Parameter Sets: SkipViaIdentity, SkipViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on an Environment. + +```yaml +Type: String +Parameter Sets: Skip, SkipByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenterdata.Models.IDevCenterdataIdentity +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction](https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction) + diff --git a/src/DevCenter/DevCenter/help/Start-AzDevCenterAdminPoolHealthCheck.md b/src/DevCenter/DevCenter/help/Start-AzDevCenterAdminPoolHealthCheck.md new file mode 100644 index 000000000000..8f4ba0899673 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Start-AzDevCenterAdminPoolHealthCheck.md @@ -0,0 +1,255 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck +schema: 2.0.0 +--- + +# Start-AzDevCenterAdminPoolHealthCheck + +## SYNOPSIS +Triggers a refresh of the pool status. + +## SYNTAX + +### Run (Default) +``` +Start-AzDevCenterAdminPoolHealthCheck -PoolName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] + [] +``` + +### RunViaIdentity +``` +Start-AzDevCenterAdminPoolHealthCheck -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Triggers a refresh of the pool status. + +## EXAMPLES + +### EXAMPLE 1 +``` +Start-AzDevCenterAdminPoolHealthCheck -ResourceGroupName testRg -PoolName DevPool -ProjectName DevProject +``` + +### EXAMPLE 2 +``` +$pool = @{"ResourceGroupName" = "testRg"; "ProjectName" = "DevProject"; "PoolName" = "DevPool"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"} +Start-AzDevCenterAdminPoolHealthCheck -InputObject $pool +``` + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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: IDevCenterIdentity +Parameter Sets: RunViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PoolName +Name of the pool. + +```yaml +Type: String +Parameter Sets: Run +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The name of the project. + +```yaml +Type: String +Parameter Sets: Run +Aliases: + +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: String +Parameter Sets: Run +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: String +Parameter Sets: Run +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenter.Models.IDevCenterIdentity +## 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 + \[AttachedNetworkConnectionName \\]: The name of the attached NetworkConnection. + \[CatalogName \\]: The name of the Catalog. + \[DevBoxDefinitionName \\]: The name of the Dev Box definition. + \[DevCenterName \\]: The name of the devcenter. + \[EnvironmentDefinitionName \\]: The name of the Environment Definition. + \[EnvironmentTypeName \\]: The name of the environment type. + \[GalleryName \\]: The name of the gallery. + \[Id \\]: Resource identity path + \[ImageName \\]: The name of the image. + \[Location \\]: The Azure region + \[NetworkConnectionName \\]: Name of the Network Connection that can be applied to a Pool. + \[OperationId \\]: The ID of an ongoing async operation + \[PoolName \\]: Name of the pool. + \[ProjectName \\]: The name of the project. + \[ResourceGroupName \\]: The name of the resource group. +The name is case insensitive. + \[ScheduleName \\]: The name of the schedule that uniquely identifies it. + \[SubscriptionId \\]: The ID of the target subscription. + \[TaskName \\]: The name of the Task. + \[VersionName \\]: The version of the image. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck](https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteradminpoolhealthcheck) + diff --git a/src/DevCenter/DevCenter/help/Start-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Start-AzDevCenterUserDevBox.md index 368e4e247b57..a34211ae50b7 100644 --- a/src/DevCenter/DevCenter/help/Start-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/Start-AzDevCenterUserDevBox.md @@ -26,13 +26,13 @@ Start-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Start-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### StartByDevCenter ``` -Start-AzDevCenterUserDevBox -DevCenter -Name -ProjectName [-UserId ] +Start-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: StartViaIdentityByDevCenter, StartByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Stop-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenter/help/Stop-AzDevCenterUserDevBox.md index df2e7442159b..e7ca6be7e04c 100644 --- a/src/DevCenter/DevCenter/help/Stop-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenter/help/Stop-AzDevCenterUserDevBox.md @@ -26,13 +26,13 @@ Stop-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject [-Hibernate] +Stop-AzDevCenterUserDevBox -DevCenterName -InputObject [-Hibernate] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### StopByDevCenter ``` -Stop-AzDevCenterUserDevBox -DevCenter -Name -ProjectName [-UserId ] +Stop-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-Hibernate] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: StopViaIdentityByDevCenter, StopByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminCatalog.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminCatalog.md index efc60cc1ef35..ee07013fedb4 100644 --- a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminCatalog.md +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminCatalog.md @@ -17,16 +17,16 @@ Partially updates a catalog. Update-AzDevCenterAdminCatalog -DevCenterName -Name -ResourceGroupName [-SubscriptionId ] [-AdoGitBranch ] [-AdoGitPath ] [-AdoGitSecretIdentifier ] [-AdoGitUri ] [-GitHubBranch ] [-GitHubPath ] [-GitHubSecretIdentifier ] - [-GitHubUri ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-GitHubUri ] [-SyncType ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDevCenterAdminCatalog -InputObject [-AdoGitBranch ] [-AdoGitPath ] [-AdoGitSecretIdentifier ] [-AdoGitUri ] [-GitHubBranch ] - [-GitHubPath ] [-GitHubSecretIdentifier ] [-GitHubUri ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-GitHubPath ] [-GitHubSecretIdentifier ] [-GitHubUri ] [-SyncType ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -295,6 +295,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SyncType +Indicates the type of sync that is configured for the catalog. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.CatalogSyncType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag Resource tags. diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminDevCenter.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminDevCenter.md index b849dea60a33..b54b5361632c 100644 --- a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminDevCenter.md +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminDevCenter.md @@ -15,15 +15,16 @@ Partially updates a devcenter. ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminDevCenter -Name -ResourceGroupName [-SubscriptionId ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-DisplayName ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzDevCenterAdminDevCenter -InputObject [-IdentityType ] - [-IdentityUserAssignedIdentity ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +Update-AzDevCenterAdminDevCenter -InputObject [-DisplayName ] + [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -80,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the devcenter. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IdentityType Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminEnvironmentType.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminEnvironmentType.md index 78d799079b40..ccf6c23fcb07 100644 --- a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminEnvironmentType.md +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminEnvironmentType.md @@ -15,14 +15,14 @@ Partially updates an environment type. ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminEnvironmentType -DevCenterName -Name -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-SubscriptionId ] [-DisplayName ] [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzDevCenterAdminEnvironmentType -InputObject [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Update-AzDevCenterAdminEnvironmentType -InputObject [-DisplayName ] + [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -82,6 +82,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the environment type. + +```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. diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminPool.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminPool.md index d7d525806345..060f5312391c 100644 --- a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminPool.md +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminPool.md @@ -15,18 +15,22 @@ Partially updates a machine pool ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminPool -Name -ProjectName -ResourceGroupName - [-SubscriptionId ] [-DevBoxDefinitionName ] [-LocalAdministrator ] - [-NetworkConnectionName ] [-StopOnDisconnectGracePeriodMinute ] - [-StopOnDisconnectStatus ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DevBoxDefinitionName ] [-DisplayName ] + [-LocalAdministrator ] [-ManagedVirtualNetworkRegion ] + [-NetworkConnectionName ] [-SingleSignOnStatus ] + [-StopOnDisconnectGracePeriodMinute ] [-StopOnDisconnectStatus ] + [-Tag ] [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDevCenterAdminPool -InputObject [-DevBoxDefinitionName ] - [-LocalAdministrator ] [-NetworkConnectionName ] + [-DisplayName ] [-LocalAdministrator ] [-ManagedVirtualNetworkRegion ] + [-NetworkConnectionName ] [-SingleSignOnStatus ] [-StopOnDisconnectGracePeriodMinute ] [-StopOnDisconnectStatus ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-Tag ] [-VirtualNetworkType ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -97,6 +101,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the pool. + +```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. @@ -128,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ManagedVirtualNetworkRegion +The regions of the managed virtual network (required when managedNetworkType is Managed). + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the pool. @@ -204,6 +238,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SingleSignOnStatus +Indicates whether Dev Boxes in this pool are created with single sign on enabled. +The also requires that single sign on be enabled on the tenant. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.SingleSignOnStatus +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StopOnDisconnectGracePeriodMinute The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. @@ -264,6 +314,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VirtualNetworkType +Indicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DevCenter.Support.VirtualNetworkType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminProject.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminProject.md index e0886c0e2812..5b21c5ef47e1 100644 --- a/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminProject.md +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterAdminProject.md @@ -15,15 +15,15 @@ Partially updates a project. ### UpdateExpanded (Default) ``` Update-AzDevCenterAdminProject -Name -ResourceGroupName [-SubscriptionId ] - [-Description ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-Description ] [-DisplayName ] [-MaxDevBoxesPerUser ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDevCenterAdminProject -InputObject [-Description ] - [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-DisplayName ] [-MaxDevBoxesPerUser ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -95,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisplayName +The display name of the project. + +```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. diff --git a/src/DevCenter/DevCenter/help/Update-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenter/help/Update-AzDevCenterUserEnvironment.md new file mode 100644 index 000000000000..2e8e847d5cd5 --- /dev/null +++ b/src/DevCenter/DevCenter/help/Update-AzDevCenterUserEnvironment.md @@ -0,0 +1,271 @@ +--- +external help file: Az.DevCenter-help.xml +Module Name: Az.DevCenter +online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment +schema: 2.0.0 +--- + +# Update-AzDevCenterUserEnvironment + +## SYNOPSIS +Partially updates an environment + +## SYNTAX + +### PatchExpanded (Default) +``` +Update-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName [-UserId ] + [-ExpirationDate ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PatchViaIdentityExpanded +``` +Update-AzDevCenterUserEnvironment -Endpoint -InputObject + [-ExpirationDate ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PatchExpandedByDevCenter +``` +Update-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + [-UserId ] [-ExpirationDate ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### PatchViaIdentityExpandedByDevCenter +``` +Update-AzDevCenterUserEnvironment -DevCenterName -InputObject + [-ExpirationDate ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Partially updates an environment + +## EXAMPLES + +### EXAMPLE 1 +``` +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) +``` + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months + +### EXAMPLE 2 +``` +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) +``` + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months + +### EXAMPLE 3 +``` +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) +``` + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + +### EXAMPLE 4 +``` +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) +``` + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: String +Parameter Sets: PatchExpandedByDevCenter, PatchViaIdentityExpandedByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: String +Parameter Sets: PatchExpanded, PatchViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: DateTime +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: IDevCenterdataIdentity +Parameter Sets: PatchViaIdentityExpanded, PatchViaIdentityExpandedByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the environment. + +```yaml +Type: String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: EnvironmentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: 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: 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.DevCenterdata.Models.IDevCenterdataIdentity +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +## 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 + \[ActionName \\]: The name of an action that will take place on a Dev Box. + \[CatalogName \\]: The name of the catalog + \[CustomizationGroupName \\]: A customization group name. + \[CustomizationTaskId \\]: A customization task ID. + \[DefinitionName \\]: The name of the environment definition + \[DevBoxName \\]: The name of a Dev Box. + \[EnvironmentName \\]: The name of the environment. + \[Id \\]: Resource identity path + \[OperationId \\]: The id of the operation on a Dev Box. + \[PoolName \\]: The name of a pool of Dev Boxes. + \[ProjectName \\]: The DevCenter Project upon which to execute operations. + \[ScheduleName \\]: The name of a schedule. + \[TaskName \\]: A customization task name. + \[UserId \\]: The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +## RELATED LINKS + +[https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment](https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment) + diff --git a/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.format.ps1xml b/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.format.ps1xml index ad052a5f988f..8285e03c8a0c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.format.ps1xml +++ b/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.format.ps1xml @@ -14,6 +14,12 @@ + + + + + + @@ -23,6 +29,9 @@ + + + @@ -32,6 +41,9 @@ + + + @@ -45,6 +57,12 @@ CatalogName + + CustomizationGroupName + + + CustomizationTaskId + DefinitionName @@ -54,6 +72,9 @@ EnvironmentName + + OperationId + PoolName @@ -63,6 +84,9 @@ ScheduleName + + TaskName + UserId @@ -72,15 +96,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Catalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Catalog - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Catalog + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Catalog + + + @@ -88,15 +115,18 @@ Name + + Uri + - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CatalogListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CatalogListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CatalogListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CatalogListResult @@ -116,9 +146,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody @@ -150,93 +180,1401 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup - + - + - + - + - + + + + + + + + EndTime + + + Name + + + StartTime + + + Status + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroupListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroupListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask + + + + + + + + + + + - + - + + + + + + + DisplayName + + + EndTime + + + LogUri + + + Name + + + StartTime + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinition + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinition + + + - + - + - + - + + + + + + + + CatalogName + + + Description + + + Name + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameter + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameter + + + + + - + + + + + + + - ActionState + Allowed - CreatedTime + Default - HibernateSupport + Description + + + Required + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorDetails + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorDetails + + + + + + + + + + + + + + + Code + + + Message + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationOperationResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationOperationResult + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + EndTime + + + Message + + + Name + + + OperationLocation + + + PercentComplete + + + ResourceId + + + StartTime + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResult + + + + + + + + + + + + ValidationResult + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParameters + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParameters + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ActionState + + + CreatedTime + + + HibernateSupport + + + LocalAdministrator + + + Location + + + Name + + + OSType + + + PoolName + + + PowerState + + + ProjectName + + + ProvisioningState + + + UniqueId + + + Uri + + + User + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ActionType + + + Name + + + SourceId + + + SourceType + + + SourceUri + + + SuspendedUntil + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionDelayResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionDelayResult + + + + + + + + + + + + + + + + + + Name + + + Result + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsDelayMultipleResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsDelayMultipleResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextAction + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextAction + + + + + + + + + + + + ScheduledTime + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CreatedByObjectId + + + EndTime + + + Kind + + + OperationId + + + StartTime + + + Status + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperationListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperationListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + CreatedByObjectId + + + EndTime + + + Kind + + + Message + + + OperationId + + + StartTime + + + Status + + + Target + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResult + + + + + + + + + + + + + + + + + + Code + + + Message + + + RepairOutcome + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRestartOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRestartOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + CreatedByObjectId + + + EndTime + + + Kind + + + Message + + + OperationId + + + StartTime + + + Status + + + Target + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxStartOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxStartOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + CreatedByObjectId + + + EndTime + + + Kind + + + Message + + + OperationId + + + StartTime + + + Status + + + Target + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxStopOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxStopOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + CreatedByObjectId + + + EndTime + + + Kind + + + Message + + + OperationId + + + StartTime + + + Status + + + Target + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ExpirationDate + + + CatalogName + + + DefinitionName + + + Name + + + OperationLocation + + + ProvisioningState + + + ResourceGroupId + + + Uri + + + User + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentAction + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentAction + + + + + + + + + + + + + + + + + + + + + + + + ActionType + + + LastModifiedAt + + + LastModifiedBy + + + Name + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentActionsListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentActionsListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinition + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinition + + + + + + + + + + + + + + + + + + + + + + + + + + + CatalogName + + + Description + + + Name + + + ParametersSchema + + + TemplatePath + + + Uri + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionListResult + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionParameter + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + Allowed + + + Default + + + Description + + + Name + + + ReadOnly + + + Required + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDeleteOperation + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDeleteOperation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - LocalAdministrator + Code - Location + CreatedByObjectId - Name + EndTime - OSType + Kind - PoolName + Message - PowerState + OperationId - ProjectName + StartTime - ProvisioningState + Status - UniqueId + Target - User + Uri @@ -244,111 +1582,75 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDeployOperation - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDeployOperation - + - + - + - + + + + + + + + + + + + + + + + + + + - ActionType + Code - Name + CreatedByObjectId - SourceId + EndTime - SuspendedUntil + Kind - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionDelayResult - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionDelayResult - - - - - - - - - - - - - - Name + Message - Result + OperationId - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsDelayMultipleResult - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsDelayMultipleResult - - - - - - - - - - - NextLink + StartTime - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsListResult - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsListResult - - - - - - - - - - - NextLink + Status + + + Target + + + Uri @@ -356,9 +1658,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentListResult @@ -378,9 +1680,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextAction + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextAction - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextAction + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextAction @@ -400,57 +1702,57 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation - + - + - + - + - + - + - + - CatalogName + CreatedByObjectId - DefinitionName + EndTime - Name + Kind - OperationLocation + OperationId - ProvisioningState + StartTime - ResourceGroupId + Status - User + Uri @@ -458,45 +1760,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinition + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperationListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinition + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperationListResult - - - - - - - - - - - - - + - CatalogName - - - Description - - - Name - - - ParametersSchema - - - TemplatePath + NextLink @@ -504,21 +1782,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutput - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutput - + - NextLink + Sensitive @@ -526,51 +1804,67 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionParameter + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionParameter + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties - + + + + + + + ExpirationDate + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentType + + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentType + + + - + - + - + - + - Allowed - - - Default + DeploymentTargetId - Description + DisplayName Name - ReadOnly + Status - Required + Uri @@ -578,9 +1872,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeListResult @@ -600,55 +1894,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentType - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentType - - - - - - - - - - - - - - - - - - DeploymentTargetId - - - Name - - - Status - - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdateProperties - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdateProperties - + - NextLink + ExpirationDate @@ -656,9 +1916,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile @@ -690,9 +1950,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference @@ -736,9 +1996,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus @@ -794,9 +2054,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusError + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusError - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusError + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusError @@ -822,9 +2082,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDisk + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDisk - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDisk + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDisk @@ -844,12 +2104,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Pool + + + @@ -868,10 +2131,16 @@ + + + + + DisplayName + HealthStatus @@ -890,15 +2159,18 @@ OSType + + Uri + - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.PoolListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.PoolListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.PoolListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.PoolListResult @@ -918,21 +2190,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Project + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Project - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Project + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Project + + + + + + @@ -940,21 +2218,27 @@ Description + + DisplayName + MaxDevBoxesPerUser Name + + Uri + - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ProjectListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ProjectListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ProjectListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ProjectListResult @@ -974,9 +2258,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.RemoteConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.RemoteConnection - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.RemoteConnection + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.RemoteConnection @@ -1002,9 +2286,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Schedule + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Schedule - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Schedule + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Schedule @@ -1014,12 +2298,21 @@ + + + + + + + + + @@ -1030,21 +2323,30 @@ Name + + SourceType + + + SourceUri + Time TimeZone + + Uri + - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ScheduleListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleListResult - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ScheduleListResult + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleListResult @@ -1064,9 +2366,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfiguration diff --git a/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.psd1 b/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.psd1 index fb08f15617a8..29d0fd991c50 100644 --- a/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.psd1 +++ b/src/DevCenter/DevCenterData.AutoRest/Az.DevCenterdata.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.DevCenterdata.private.dll' FormatsToProcess = './Az.DevCenterdata.format.ps1xml' - FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Get-AzDevCenterUserCatalog', 'Get-AzDevCenterUserDevBox', 'Get-AzDevCenterUserDevBoxAction', 'Get-AzDevCenterUserDevBoxRemoteConnection', 'Get-AzDevCenterUserEnvironment', 'Get-AzDevCenterUserEnvironmentDefinition', 'Get-AzDevCenterUserEnvironmentType', 'Get-AzDevCenterUserPool', 'Get-AzDevCenterUserProject', 'Get-AzDevCenterUserSchedule', 'Invoke-AzDevCenterUserDelayDevBoxAction', 'New-AzDevCenterUserDevBox', 'New-AzDevCenterUserEnvironment', 'Remove-AzDevCenterUserDevBox', 'Remove-AzDevCenterUserEnvironment', 'Restart-AzDevCenterUserDevBox', 'Skip-AzDevCenterUserDevBoxAction', 'Start-AzDevCenterUserDevBox', 'Stop-AzDevCenterUserDevBox', '*' + FunctionsToExport = 'Deploy-AzDevCenterUserEnvironment', 'Get-AzDevCenterUserCatalog', 'Get-AzDevCenterUserDevBox', 'Get-AzDevCenterUserDevBoxAction', 'Get-AzDevCenterUserDevBoxOperation', 'Get-AzDevCenterUserDevBoxRemoteConnection', 'Get-AzDevCenterUserEnvironment', 'Get-AzDevCenterUserEnvironmentAction', 'Get-AzDevCenterUserEnvironmentDefinition', 'Get-AzDevCenterUserEnvironmentLog', 'Get-AzDevCenterUserEnvironmentOperation', 'Get-AzDevCenterUserEnvironmentOutput', 'Get-AzDevCenterUserEnvironmentType', 'Get-AzDevCenterUserPool', 'Get-AzDevCenterUserProject', 'Get-AzDevCenterUserSchedule', 'Invoke-AzDevCenterUserDelayDevBoxAction', 'Invoke-AzDevCenterUserDelayEnvironmentAction', 'New-AzDevCenterUserDevBox', 'New-AzDevCenterUserEnvironment', 'Remove-AzDevCenterUserDevBox', 'Remove-AzDevCenterUserEnvironment', 'Repair-AzDevCenterUserDevBox', 'Restart-AzDevCenterUserDevBox', 'Skip-AzDevCenterUserDevBoxAction', 'Skip-AzDevCenterUserEnvironmentAction', 'Start-AzDevCenterUserDevBox', 'Stop-AzDevCenterUserDevBox', 'Update-AzDevCenterUserEnvironment', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/src/DevCenter/DevCenterData.AutoRest/README.md b/src/DevCenter/DevCenterData.AutoRest/README.md index 8642884f8dcd..d40daffe9cac 100644 --- a/src/DevCenter/DevCenterData.AutoRest/README.md +++ b/src/DevCenter/DevCenterData.AutoRest/README.md @@ -31,17 +31,21 @@ For information on how to develop for `Az.DevCenterdata`, see [how-to.md](how-to ```yaml # pin the swagger version by using the commit id instead of branch name -branch: 4f6418dca8c15697489bbe6f855558bb79ca5bf5 +commit: bce3a8d1141c8c6df26d17c94b0f5437f214141f require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json - - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devcenter.json - - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/environments.json + - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-10-01-preview/devbox.json + - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-10-01-preview/devcenter.json + - $(repo)/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-10-01-preview/environments.json title: DevCenterdata subject-prefix: DevCenter endpoint-resource-id-key-name: https://devcenter.azure.com +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: - from: swagger-document where: $.paths["/projects/{projectName}/users/{userId}/devboxes/{devBoxName}"].delete.responses @@ -71,6 +75,13 @@ directive: "description": "OK. The request has succeeded.", "schema": {"$ref": "devcenter.json#/definitions/OperationStatus"} } + - from: swagger-document + where: $.paths["/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair"].post.responses + transform: > + $['200'] = { + "description": "OK. The request has succeeded.", + "schema": {"$ref": "devcenter.json#/definitions/OperationStatus"} + } - from: swagger-document where: $.paths["/projects/{projectName}/users/{userId}/environments/{environmentName}"].put.responses transform: > @@ -85,6 +96,32 @@ directive: "description": "OK. The request has succeeded.", "schema": {"$ref": "devcenter.json#/definitions/OperationStatus"} } + - from: swagger-document + where-operation: Environments_PatchEnvironment + transform: > + $['parameters'] = [ + { + "$ref": "devcenter.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "devcenter.json#/parameters/ProjectNameParameter" + }, + { + "$ref": "devcenter.json#/parameters/UserIdParameter" + }, + { + "$ref": "#/parameters/EnvironmentNameParameter" + }, + { + "name": "body", + "in": "body", + "description": "Updatable environment properties.", + "required": true, + "schema": { + "$ref": "#/definitions/EnvironmentPatchProperties" + } + } + ] - from: swagger-document where: $.paths["/devboxes"].get.operationId transform: return "DevBoxes_ListAllDevBoxes" @@ -128,6 +165,11 @@ directive: - where: parameter-name: Filter hide: true + - where: + parameter-name: ActionName + set: + parameter-name: Name + alias: ActionName - where: verb: New variant: ^Create$|^CreateViaIdentity$ diff --git a/src/DevCenter/DevCenterData.AutoRest/build-module.ps1 b/src/DevCenter/DevCenterData.AutoRest/build-module.ps1 index 2ed3134cc7c6..04e96fb797ea 100644 --- a/src/DevCenter/DevCenterData.AutoRest/build-module.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/custom/Deploy-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Deploy-AzDevCenterUserEnvironment.ps1 index cad490fb9189..0d5aced5cc06 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Deploy-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Deploy-AzDevCenterUserEnvironment.ps1 @@ -25,7 +25,7 @@ Creates or updates an environment. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs @@ -51,7 +51,7 @@ BODY : Properties of an environment. [Target ]: The target of the particular error. For example, the name of the property in error. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -77,10 +77,11 @@ function Deploy-AzDevCenterUserEnvironment { [Parameter(ParameterSetName = 'CreateViaIdentityExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] @@ -146,10 +147,16 @@ function Deploy-AzDevCenterUserEnvironment { [Parameter(ParameterSetName = 'CreateViaIdentityExpandedByDevCenter')] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. ${Parameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -214,9 +221,9 @@ function Deploy-AzDevCenterUserEnvironment { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserCatalog.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserCatalog.ps1 index 12f127b991b9..47054f9f2d60 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserCatalog.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserCatalog.ps1 @@ -27,7 +27,7 @@ Gets the specified catalog within the project .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog .Outputs System.String .Notes @@ -36,7 +36,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenterusercatalog #> function Get-AzDevCenterUserCatalog { - [OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog])] + [OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'Get', Mandatory)] @@ -64,10 +64,11 @@ function Get-AzDevCenterUserCatalog { [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Get', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] @@ -145,9 +146,9 @@ function Get-AzDevCenterUserCatalog { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBox.ps1 index 00b4b62dc67f..78549f2e3f04 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBox.ps1 @@ -27,14 +27,14 @@ Gets a Dev Box .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevbox #> function Get-AzDevCenterUserDevBox { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -66,10 +66,11 @@ function Get-AzDevCenterUserDevBox { [Parameter(ParameterSetName='List2ByDevCenter', Mandatory)] [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] @@ -160,9 +161,9 @@ function Get-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxAction.ps1 index 382ffaabd4f2..d373c18df9ea 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxAction.ps1 @@ -27,14 +27,14 @@ Gets an action. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxaction #> function Get-AzDevCenterUserDevBoxAction { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -62,17 +62,19 @@ function Get-AzDevCenterUserDevBoxAction { [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] @@ -162,9 +164,9 @@ function Get-AzDevCenterUserDevBoxAction { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxOperation.ps1 new file mode 100644 index 000000000000..2239f267229a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxOperation.ps1 @@ -0,0 +1,181 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an operation on a Dev Box. +.Description +Gets an operation on a Dev Box. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation +#> +function Get-AzDevCenterUserDevBoxOperation { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation])] + [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] + param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on a Dev Box. + ${OperationId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Get-AzDevCenterUserDevBoxOperation @PSBoundParameters + + } + + } + \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 index f97c117a4a2c..60859e4738c2 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 @@ -27,14 +27,14 @@ Gets RDP Connection info .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxremoteconnection #> function Get-AzDevCenterUserDevBoxRemoteConnection { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -60,10 +60,11 @@ function Get-AzDevCenterUserDevBoxRemoteConnection { [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] @@ -147,9 +148,9 @@ function Get-AzDevCenterUserDevBoxRemoteConnection { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironment.ps1 index e5e67727acce..b9b180267f11 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironment.ps1 @@ -27,14 +27,14 @@ Gets an environment .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironment #> function Get-AzDevCenterUserEnvironment { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -64,10 +64,11 @@ function Get-AzDevCenterUserEnvironment { [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] @@ -157,9 +158,9 @@ function Get-AzDevCenterUserEnvironment { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..01fd11a2b710 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,185 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Retrieve a specific environment action. +.Description +Retrieve a specific environment action. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction +#> +function Get-AzDevCenterUserEnvironmentAction { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] + [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] + param( + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'List', Mandatory)] + [Parameter(ParameterSetName = 'GetViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Alias('ActionName')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'List', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'List', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName = 'Get')] + [Parameter(ParameterSetName = 'GetByDevCenter')] + [Parameter(ParameterSetName = 'List')] + [Parameter(ParameterSetName = 'ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script = '"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName = 'GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Get-AzDevCenterUserEnvironmentAction @PSBoundParameters + + } + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentDefinition.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentDefinition.ps1 index 289d9881657a..38badda292de 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentDefinition.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentDefinition.ps1 @@ -27,14 +27,14 @@ Get an environment definition from a catalog. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentdefinition #> function Get-AzDevCenterUserEnvironmentDefinition { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition])] [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'Get', Mandatory)] @@ -64,10 +64,11 @@ function Get-AzDevCenterUserEnvironmentDefinition { [Parameter(ParameterSetName = 'List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Get', Mandatory)] [Parameter(ParameterSetName = 'List1', Mandatory)] @@ -155,9 +156,9 @@ function Get-AzDevCenterUserEnvironmentDefinition { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentLog.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentLog.ps1 new file mode 100644 index 000000000000..f2da1efb2ae1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentLog.ps1 @@ -0,0 +1,177 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets the logs for an operation on an environment. +.Description +Gets the logs for an operation on an environment. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog +#> +function Get-AzDevCenterUserEnvironmentLog { + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName = 'Get', PositionalBinding = $false)] + param( + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(ParameterSetName = 'Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName = 'Get')] + [Parameter(ParameterSetName = 'GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script = '"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Get-AzDevCenterUserEnvironmentLog @PSBoundParameters + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOperation.ps1 new file mode 100644 index 000000000000..f7fd662583cd --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOperation.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 +Gets an environment action result. +.Description +Gets an environment action result. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation +#> +function Get-AzDevCenterUserEnvironmentOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName = 'ListByDevCenter')] + [Parameter(ParameterSetName = 'GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Get-AzDevCenterUserEnvironmentOperation @PSBoundParameters +} + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOutput.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOutput.ps1 new file mode 100644 index 000000000000..7aeede42bae1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentOutput.ps1 @@ -0,0 +1,168 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Outputs from the environment +.Description +Gets Outputs from the environment +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput +#> +function Get-AzDevCenterUserEnvironmentOutput { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName = 'GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Get-AzDevCenterUserEnvironmentOutput @PSBoundParameters +} + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentType.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentType.ps1 index 8a4d5fcc215a..459facbe497a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentType.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserEnvironmentType.ps1 @@ -25,12 +25,12 @@ Lists all environment types configured for a project. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmenttype #> function Get-AzDevCenterUserEnvironmentType { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'List', Mandatory)] @@ -41,9 +41,10 @@ function Get-AzDevCenterUserEnvironmentType { [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -102,9 +103,9 @@ function Get-AzDevCenterUserEnvironmentType { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserPool.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserPool.ps1 index 9a291a04b9ed..c5fa2650dee3 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserPool.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserPool.ps1 @@ -26,14 +26,14 @@ Gets a pool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserpool #> function Get-AzDevCenterUserPool { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'Get', Mandatory)] @@ -62,9 +62,10 @@ function Get-AzDevCenterUserPool { [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Get', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] @@ -142,9 +143,9 @@ function Get-AzDevCenterUserPool { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserProject.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserProject.ps1 index aabbe071d6c4..e9fb2fb08038 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserProject.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserProject.ps1 @@ -27,14 +27,14 @@ Gets a project. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject #> function Get-AzDevCenterUserProject { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName = 'List', PositionalBinding = $false)] param( [Parameter(ParameterSetName = 'Get', Mandatory)] @@ -62,10 +62,11 @@ function Get-AzDevCenterUserProject { [Parameter(ParameterSetName = 'ListByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Get', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] @@ -134,9 +135,9 @@ function Get-AzDevCenterUserProject { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserSchedule.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserSchedule.ps1 index b1beb84bdbae..6af5d810441d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserSchedule.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Get-AzDevCenterUserSchedule.ps1 @@ -27,14 +27,14 @@ Gets a schedule. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -48,45 +48,63 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule #> function Get-AzDevCenterUserSchedule { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule])] [CmdletBinding(PositionalBinding = $false)] param( - [Parameter(ParameterSetName = 'Get', Mandatory)] - [Parameter(ParameterSetName = 'GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName ='Get', Mandatory)] + [Parameter(ParameterSetName ='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName ='List', Mandatory)] + [Parameter(ParameterSetName ='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, - - [Parameter(ParameterSetName = 'Get', Mandatory)] + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a pool of Dev Boxes. ${PoolName}, - - [Parameter(ParameterSetName = 'Get', Mandatory)] + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - - [Parameter(ParameterSetName = 'GetViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName = 'GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName = 'GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a schedule. + ${ScheduleName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -95,40 +113,40 @@ function Get-AzDevCenterUserSchedule { # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, - + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, - + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, - + [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, - + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -138,9 +156,9 @@ function Get-AzDevCenterUserSchedule { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { @@ -148,14 +166,6 @@ function Get-AzDevCenterUserSchedule { $PSBoundParameters["Endpoint"] = $Endpoint } - $Default = "default" - - if ($PSBoundParameters.ContainsKey('InputObject')) { - $PSBoundParameters["InputObject"].ScheduleName = $Default - } else { - $null = $PSBoundParameters.Add("ScheduleName", $Default) - } - Az.DevCenterdata.internal\Get-AzDevCenterUserSchedule @PSBoundParameters } } diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 index 6bcfec8cdd76..86625dd703b6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 @@ -27,16 +27,16 @@ Delays the occurrence of an action. .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult .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 - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelaydevboxaction #> function Invoke-AzDevCenterUserDelayDevBoxAction { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult])] [CmdletBinding(DefaultParameterSetName = 'Delay1', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'Delay', Mandatory)] @@ -63,16 +63,18 @@ function Invoke-AzDevCenterUserDelayDevBoxAction { [Parameter(ParameterSetName = 'Delay1ByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Delay', Mandatory)] [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -150,9 +152,9 @@ function Invoke-AzDevCenterUserDelayDevBoxAction { ) process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { @@ -171,12 +173,12 @@ function Invoke-AzDevCenterUserDelayDevBoxAction { } - if ([string]::IsNullOrEmpty($ActionName)) { + if ([string]::IsNullOrEmpty($Name)) { $Until = GetDelayedActionTimeFromAllActions -Endpoint $Endpoint -Project $ProjectName ` -DevBoxName $DevBoxName -DelayTime $DelayTime -UserId $User } else { - $Until = GetDelayedActionTimeFromActionName -ActionName $ActionName -Endpoint $Endpoint ` + $Until = GetDelayedActionTimeFromActionName -Name $Name -Endpoint $Endpoint ` -Project $ProjectName -DevBoxName $DevBoxName -DelayTime $DelayTime -UserId $User } diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 new file mode 100644 index 000000000000..c43f0a9280e4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction +#> +function Invoke-AzDevCenterUserDelayEnvironmentAction { + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] + [CmdletBinding(DefaultParameterSetName = 'Delay', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(ParameterSetName = 'Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + + [Parameter(ParameterSetName = 'Delay', Mandatory)] + [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Alias('ActionName')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName = 'Delay', Mandatory)] + [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName = 'Delay', Mandatory)] + [Parameter(ParameterSetName = 'DelayByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName = 'Delay')] + [Parameter(ParameterSetName = 'DelayByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script = '"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.TimeSpan] + # The delayed timespan from the scheduled action time. Format HH:MM. + ${DelayTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + + process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + $User = $UserId + + if ($PSBoundParameters.ContainsKey('InputObject')) { + if ($null -eq $PSBoundParameters["InputObject"].UserId) { + $noUserId = "UserId is missing from InputObject." + Write-Error $noUserId -ErrorAction Stop + } + $User = $PSBoundParameters["InputObject"].UserId + } + + $Until = GetDelayedEnvironmentActionTimeFromActionName -Name $Name -Endpoint $Endpoint ` + -Project $ProjectName -EnvironmentName $EnvironmentName -DelayTime $DelayTime -UserId $User + + $null = $PSBoundParameters.Add("Until", $Until) + $null = $PSBoundParameters.Remove("DelayTime") + + Az.DevCenterdata.internal\Invoke-AzDevCenterUserDelayEnvironmentAction @PSBoundParameters + } + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserDevBox.ps1 index 900e1a9c7879..1c4b86d99f3f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserDevBox.ps1 @@ -25,11 +25,11 @@ Creates or replaces a Dev Box. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -48,7 +48,7 @@ BODY : A Dev Box [Target ]: The target of the particular error. For example, the name of the property in error. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserdevbox #> function New-AzDevCenterUserDevBox { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] param( [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] @@ -75,9 +75,10 @@ function New-AzDevCenterUserDevBox { [Parameter(ParameterSetName = 'CreateViaIdentityExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] @@ -193,9 +194,9 @@ function New-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserEnvironment.ps1 index 2e3e62c6ae9c..f4db8c109de0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/New-AzDevCenterUserEnvironment.ps1 @@ -25,7 +25,7 @@ Creates or updates an environment. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs @@ -51,7 +51,7 @@ BODY : Properties of an environment. [Target ]: The target of the particular error. For example, the name of the property in error. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -78,9 +78,10 @@ function New-AzDevCenterUserEnvironment { [Parameter(ParameterSetName = 'CreateViaIdentityExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'CreateExpanded', Mandatory)] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter', Mandatory)] @@ -146,10 +147,16 @@ function New-AzDevCenterUserEnvironment { [Parameter(ParameterSetName = 'CreateViaIdentityExpandedByDevCenter')] [Parameter(ParameterSetName = 'CreateExpandedByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. ${Parameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -214,9 +221,9 @@ function New-AzDevCenterUserEnvironment { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserDevBox.ps1 index 2ea0bcf765d1..4ae863db4bf0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserDevBox.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -62,8 +62,9 @@ function Remove-AzDevCenterUserDevBox { [Parameter(ParameterSetName = 'DeleteByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] + [Alias('DevCenter')] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Delete', Mandatory)] [Parameter(ParameterSetName = 'DeleteByDevCenter', Mandatory)] @@ -166,9 +167,9 @@ function Remove-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserEnvironment.ps1 index 8cab714c143b..b497fe4761d8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Remove-AzDevCenterUserEnvironment.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -61,9 +61,10 @@ function Remove-AzDevCenterUserEnvironment { [Parameter(ParameterSetName = 'DeleteViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'DeleteByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [Alias('DevCenter')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Delete', Mandatory)] [Parameter(ParameterSetName = 'DeleteByDevCenter', Mandatory)] @@ -166,9 +167,9 @@ function Remove-AzDevCenterUserEnvironment { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Repair-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Repair-AzDevCenterUserDevBox.ps1 new file mode 100644 index 000000000000..22a491d869c3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Repair-AzDevCenterUserDevBox.ps1 @@ -0,0 +1,182 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Description +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox +#> +function Repair-AzDevCenterUserDevBox { + [OutputType([System.Boolean])] + [CmdletBinding(DefaultParameterSetName='Repair', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + param( + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'RepairViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'RepairByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName = 'RepairByDevCenter', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName = 'RepairByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Repair')] + [Parameter(ParameterSetName = 'RepairByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RepairViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} + ) + + process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + Az.DevCenterdata.internal\Repair-AzDevCenterUserDevBox @PSBoundParameters + + } + + } + \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Restart-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Restart-AzDevCenterUserDevBox.ps1 index 03866426c867..96346c15bc36 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Restart-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Restart-AzDevCenterUserDevBox.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -60,10 +60,11 @@ function Restart-AzDevCenterUserDevBox { [Parameter(ParameterSetName = 'RestartViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'RestartByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Restart', Mandatory)] [Parameter(ParameterSetName = 'RestartByDevCenter', Mandatory)] @@ -160,9 +161,9 @@ function Restart-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserDevBoxAction.ps1 index 455e9509c51f..8e019ac1f6fa 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserDevBoxAction.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -60,17 +60,19 @@ function Skip-AzDevCenterUserDevBoxAction { [Parameter(ParameterSetName = 'SkipViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Skip', Mandatory)] [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter(ParameterSetName = 'Skip', Mandatory)] [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] @@ -160,9 +162,9 @@ function Skip-AzDevCenterUserDevBoxAction { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..abe55479a766 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Skip-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,182 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Skips an occurrence of an action. +.Description +Skips an occurrence of an action. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction +#> +function Skip-AzDevCenterUserEnvironmentAction { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'SkipViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName = 'SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Skip')] + [Parameter(ParameterSetName = 'SkipByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName = 'SkipViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + + Az.DevCenterdata.internal\Skip-AzDevCenterUserEnvironmentAction @PSBoundParameters + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Start-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Start-AzDevCenterUserDevBox.ps1 index 721978b0c197..40ea716fe542 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Start-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Start-AzDevCenterUserDevBox.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -60,10 +60,11 @@ function Start-AzDevCenterUserDevBox { [Parameter(ParameterSetName = 'StartViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'StartByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Start', Mandatory)] [Parameter(ParameterSetName = 'StartByDevCenter', Mandatory)] @@ -160,9 +161,9 @@ function Start-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Stop-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Stop-AzDevCenterUserDevBox.ps1 index c35d0fd205e2..0731fcd83660 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Stop-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Stop-AzDevCenterUserDevBox.ps1 @@ -34,7 +34,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. + [Name ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. @@ -60,10 +60,11 @@ function Stop-AzDevCenterUserDevBox { [Parameter(ParameterSetName = 'StopViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName = 'StopByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName = 'Stop', Mandatory)] [Parameter(ParameterSetName = 'StopByDevCenter', Mandatory)] @@ -166,9 +167,9 @@ function Stop-AzDevCenterUserDevBox { process { if (-not $PSBoundParameters.ContainsKey('Endpoint')) { - $Endpoint = GetEndpointFromResourceGraph -DevCenter $DevCenter -Project $ProjectName + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName $null = $PSBoundParameters.Add("Endpoint", $Endpoint) - $null = $PSBoundParameters.Remove("DevCenter") + $null = $PSBoundParameters.Remove("DevCenterName") } else { diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Update-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Update-AzDevCenterUserEnvironment.ps1 new file mode 100644 index 000000000000..d6edb1bafa4b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Update-AzDevCenterUserEnvironment.ps1 @@ -0,0 +1,194 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Partially updates an environment +.Description +Partially updates an environment +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.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. + +BODY : Properties of an environment. + CatalogName : The name of the catalog. Cannot be updated after creation. + DefinitionName : The name of the environment definition. Cannot be updated after creation. + Type : The name of the environment type. Cannot be updated after creation. + [Parameter ]: Parameters object for the environment. Can only be updated via create or replace. + [(Any) ]: This indicates any property can be added to this object. + [ExpirationDate ]: The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + [Code ]: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + [Detail ]: A list of additional details about the error. + Code : An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Message : A message describing the error, intended to be suitable for display in a user interface. + [Detail ]: A list of additional details about the error. + [Target ]: The target of the particular error. For example, the name of the property in error. + [Message ]: A message describing the error, intended to be suitable for display in a user interface. + [OperationLocation ]: + [Target ]: The target of the particular error. For example, the name of the property in error. + +INPUTOBJECT : Identity Parameter + [Name ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment +#> +function Update-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName = 'PatchExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName = 'PatchExpandedByDevCenter', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName = 'PatchExpandedByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName = 'PatchExpandedByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +process { + if (-not $PSBoundParameters.ContainsKey('Endpoint')) { + $Endpoint = GetEndpointFromResourceGraph -DevCenterName $DevCenterName -Project $ProjectName + $null = $PSBoundParameters.Add("Endpoint", $Endpoint) + $null = $PSBoundParameters.Remove("DevCenterName") + + } + else { + $Endpoint = ValidateAndProcessEndpoint -Endpoint $Endpoint + $PSBoundParameters["Endpoint"] = $Endpoint + } + + + Az.DevCenterdata.internal\Update-AzDevCenterUserEnvironment @PSBoundParameters + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/custom/Utils.ps1 b/src/DevCenter/DevCenterData.AutoRest/custom/Utils.ps1 index 29ccda93a14a..4c5ae0bc1aef 100644 --- a/src/DevCenter/DevCenterData.AutoRest/custom/Utils.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/custom/Utils.ps1 @@ -3,7 +3,7 @@ function GetEndpointFromResourceGraph { param( [Parameter(Mandatory, HelpMessage = 'Name of the dev center')] [System.String] - ${DevCenter}, + ${DevCenterName}, [Parameter(HelpMessage = 'Name of the project')] [System.String] @@ -26,7 +26,7 @@ function GetEndpointFromResourceGraph { } $query += "| extend devCenterArr = split(properties.devCenterId, '/') " ` + "| extend devCenterName = devCenterArr[array_length(devCenterArr) -1] "` - + "| where devCenterName =~ '$DevCenter' | take 1 "` + + "| where devCenterName =~ '$DevCenterName' | take 1 "` + "| extend devCenterUri = properties.devCenterUri | project devCenterUri" $argResponse = Az.ResourceGraph\Search-AzGraph -Query $query $devCenterUri = $argResponse.devCenterUri @@ -36,11 +36,11 @@ function GetEndpointFromResourceGraph { $errorHelp = "under the current tenant '$tenantId'. Please contact your admin to gain access to specific projects or " + "use a different tenant where you have access to projects." if (!$Project) { - $noProjectFound = "No projects were found in the dev center '$DevCenter' " + $errorHelp + $noProjectFound = "No projects were found in the dev center '$DevCenterName' " + $errorHelp Write-Error $noProjectFound -ErrorAction Stop } else { - $noProjectFound = "No project '$Project' was found in the dev center '$DevCenter' " + $errorHelp + $noProjectFound = "No project '$Project' was found in the dev center '$DevCenterName' " + $errorHelp Write-Error $noProjectFound -ErrorAction Stop } } @@ -99,7 +99,7 @@ function GetDelayedActionTimeFromActionName { param( [Parameter(Mandatory = $true, HelpMessage = 'Name of the action')] [System.String] - ${ActionName}, + ${Name}, [Parameter(Mandatory = $true, HelpMessage = 'Endpoint URL')] [System.String] @@ -124,7 +124,7 @@ function GetDelayedActionTimeFromActionName { ) process { - $action = Az.DevCenterdata.internal\Get-AzDevCenterUserDevBoxAction -Endpoint $Endpoint -ActionName $ActionName ` + $action = Az.DevCenterdata.internal\Get-AzDevCenterUserDevBoxAction -Endpoint $Endpoint -Name $Name ` -ProjectName $Project -DevBoxName $DevBoxName -UserId $UserId | ConvertTo-Json | ConvertFrom-Json $newScheduledTime = $action.NextScheduledTime + $DelayTime @@ -133,6 +133,45 @@ function GetDelayedActionTimeFromActionName { } } +function GetDelayedEnvironmentActionTimeFromActionName { + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExportAttribute()] + param( + [Parameter(Mandatory = $true, HelpMessage = 'Name of the action')] + [System.String] + ${Name}, + + [Parameter(Mandatory = $true, HelpMessage = 'Endpoint URL')] + [System.String] + ${Endpoint}, + + [Parameter(Mandatory = $true, HelpMessage = 'Name of the project')] + [System.String] + ${Project}, + + [Parameter(Mandatory = $true, HelpMessage = 'Name of the environment')] + [System.String] + ${EnvironmentName}, + + [Parameter(Mandatory)] + [System.TimeSpan] + ${DelayTime}, + + [Parameter(HelpMessage = 'User id')] + [System.String] + ${UserId} + + ) + + process { + $action = Az.DevCenterdata.internal\Get-AzDevCenterUserEnvironmentAction -Endpoint $Endpoint -Name $Name ` + -ProjectName $Project -EnvironmentName $EnvironmentName -UserId $UserId | ConvertTo-Json | ConvertFrom-Json + + $newScheduledTime = $action.NextScheduledTime + $DelayTime + + return $newScheduledTime + } +} + function ValidateAndProcessEndpoint { [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExportAttribute()] param( diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Az.DevCenterdata.md b/src/DevCenter/DevCenterData.AutoRest/docs/Az.DevCenterdata.md deleted file mode 100644 index 7fa7103c5553..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Az.DevCenterdata.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -Module Name: Az.DevCenterdata -Module Guid: a5a2a512-ec9f-44e2-9943-c4cc9c42a4ad -Download Help Link: https://learn.microsoft.com/powershell/module/az.devcenterdata -Help Version: 1.0.0.0 -Locale: en-US ---- - -# Az.DevCenterdata Module -## Description -Microsoft Azure PowerShell: DevCenterdata cmdlets - -## Az.DevCenterdata Cmdlets -### [Deploy-AzDevCenterUserEnvironment](Deploy-AzDevCenterUserEnvironment.md) -Creates or updates an environment. - -### [Get-AzDevCenterUserCatalog](Get-AzDevCenterUserCatalog.md) -Gets the specified catalog within the project - -### [Get-AzDevCenterUserDevBox](Get-AzDevCenterUserDevBox.md) -Gets a Dev Box - -### [Get-AzDevCenterUserDevBoxAction](Get-AzDevCenterUserDevBoxAction.md) -Gets an action. - -### [Get-AzDevCenterUserDevBoxRemoteConnection](Get-AzDevCenterUserDevBoxRemoteConnection.md) -Gets RDP Connection info - -### [Get-AzDevCenterUserEnvironment](Get-AzDevCenterUserEnvironment.md) -Gets an environment - -### [Get-AzDevCenterUserEnvironmentDefinition](Get-AzDevCenterUserEnvironmentDefinition.md) -Get an environment definition from a catalog. - -### [Get-AzDevCenterUserEnvironmentType](Get-AzDevCenterUserEnvironmentType.md) -Lists all environment types configured for a project. - -### [Get-AzDevCenterUserPool](Get-AzDevCenterUserPool.md) -Gets a pool - -### [Get-AzDevCenterUserProject](Get-AzDevCenterUserProject.md) -Gets a project. - -### [Get-AzDevCenterUserSchedule](Get-AzDevCenterUserSchedule.md) -Gets a schedule. - -### [Invoke-AzDevCenterUserDelayDevBoxAction](Invoke-AzDevCenterUserDelayDevBoxAction.md) -Delays the occurrence of an action. - -### [New-AzDevCenterUserDevBox](New-AzDevCenterUserDevBox.md) -Creates or replaces a Dev Box. - -### [New-AzDevCenterUserEnvironment](New-AzDevCenterUserEnvironment.md) -Creates or updates an environment. - -### [Remove-AzDevCenterUserDevBox](Remove-AzDevCenterUserDevBox.md) -Deletes a Dev Box. - -### [Remove-AzDevCenterUserEnvironment](Remove-AzDevCenterUserEnvironment.md) -Deletes an environment and all its associated resources - -### [Restart-AzDevCenterUserDevBox](Restart-AzDevCenterUserDevBox.md) -Restarts a Dev Box - -### [Skip-AzDevCenterUserDevBoxAction](Skip-AzDevCenterUserDevBoxAction.md) -Skips an occurrence of an action. - -### [Start-AzDevCenterUserDevBox](Start-AzDevCenterUserDevBox.md) -Starts a Dev Box - -### [Stop-AzDevCenterUserDevBox](Stop-AzDevCenterUserDevBox.md) -Stops a Dev Box - diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxAction.md deleted file mode 100644 index 4b7fadae757a..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxAction.md +++ /dev/null @@ -1,258 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenterdata -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxaction -schema: 2.0.0 ---- - -# Get-AzDevCenterUserDevBoxAction - -## SYNOPSIS -Gets an action. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -ProjectName - [-UserId ] [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterUserDevBoxAction -Endpoint -ActionName -DevBoxName - -ProjectName [-UserId ] [-DefaultProfile ] [] -``` - -### GetByDevCenter -``` -Get-AzDevCenterUserDevBoxAction -DevCenter -ActionName -DevBoxName - -ProjectName [-UserId ] [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterUserDevBoxAction -Endpoint -InputObject - [-DefaultProfile ] [] -``` - -### GetViaIdentityByDevCenter -``` -Get-AzDevCenterUserDevBoxAction -DevCenter -InputObject - [-DefaultProfile ] [] -``` - -### ListByDevCenter -``` -Get-AzDevCenterUserDevBoxAction -DevCenter -DevBoxName -ProjectName - [-UserId ] [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets an action. - -## EXAMPLES - -### Example 1: List actions on the dev box by endpoint -```powershell -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -``` - -This command lists the actions on the dev box "myDevBox". - -### Example 2: List actions on the dev box by dev center -```powershell -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -``` - -This command lists the actions on the dev box "myDevBox". - -### Example 3: Get an action on the dev box by endpoint -```powershell -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -``` - -This command gets the action "schedule-default" for the dev box "myDevBox". - -### Example 4: Get an action on the dev box by dev center -```powershell -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -``` - -This command gets the action "schedule-default" for the dev box "myDevBox". - -### Example 5: Get an action on the dev box by endpoint and InputObject -```powershell -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -``` - -This command gets the action "schedule-default" for the dev box "myDevBox". - -### Example 6: Get an action on the dev box by dev center and InputObject -```powershell -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput -``` - -This command gets the action "schedule-default" for the dev box "myDevBox". - -## PARAMETERS - -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevBoxName -The name of a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DevCenter -The DevCenter upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Endpoint -The DevCenter-specific URI to operate on. - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentity, List -Aliases: - -Required: True -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.DevCenterdata.Models.IDevCenterdataIdentity -Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ProjectName -The DevCenter Project upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -UserId -The AAD object id of the user. -If value is 'me', the identity is taken from the authentication context. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter -Aliases: - -Required: False -Position: Named -Default value: "me" -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.DevCenterdata.Models.IDevCenterdataIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction - -## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserProject.md b/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserProject.md deleted file mode 100644 index 8b35e822142c..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserProject.md +++ /dev/null @@ -1,210 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenterdata -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject -schema: 2.0.0 ---- - -# Get-AzDevCenterUserProject - -## SYNOPSIS -Gets a project. - -## SYNTAX - -### List (Default) -``` -Get-AzDevCenterUserProject -Endpoint [-DefaultProfile ] [] -``` - -### Get -``` -Get-AzDevCenterUserProject -Endpoint -ProjectName [-DefaultProfile ] - [] -``` - -### GetByDevCenter -``` -Get-AzDevCenterUserProject -DevCenter -ProjectName [-DefaultProfile ] - [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterUserProject -Endpoint -InputObject - [-DefaultProfile ] [] -``` - -### GetViaIdentityByDevCenter -``` -Get-AzDevCenterUserProject -DevCenter -InputObject - [-DefaultProfile ] [] -``` - -### ListByDevCenter -``` -Get-AzDevCenterUserProject -DevCenter [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a project. - -## EXAMPLES - -### Example 1: List projects by endpoint -```powershell -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -``` - -This command lists the projects under the endpoint. - -### Example 2: List projects by dev center -```powershell -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject -``` - -This command lists the projects under the dev center. - -### Example 3: Get project by endpoint -```powershell -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -``` - -This command gets the project "DevProject". - -### Example 4: Get project by dev center -```powershell -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject -``` - -This command gets the project "DevProject". - -### Example 5: Get project by endpoint and InputObject -```powershell -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -``` - -This command gets the project "DevProject". - -### Example 6: Get project by dev center and InputObject -```powershell -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput -``` - -This command gets the project "DevProject". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenter -The DevCenter upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Endpoint -The DevCenter-specific URI to operate on. - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentity, List -Aliases: - -Required: True -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.DevCenterdata.Models.IDevCenterdataIdentity -Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ProjectName -The DevCenter Project upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter -Aliases: - -Required: True -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.DevCenterdata.Models.IDevCenterdataIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserSchedule.md b/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserSchedule.md deleted file mode 100644 index 8a00e90620c2..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserSchedule.md +++ /dev/null @@ -1,201 +0,0 @@ ---- -external help file: -Module Name: Az.DevCenterdata -online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule -schema: 2.0.0 ---- - -# Get-AzDevCenterUserSchedule - -## SYNOPSIS -Gets a schedule. - -## SYNTAX - -### Get (Default) -``` -Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName - [-DefaultProfile ] [] -``` - -### GetByDevCenter -``` -Get-AzDevCenterUserSchedule -DevCenter -PoolName -ProjectName - [-DefaultProfile ] [] -``` - -### GetViaIdentity -``` -Get-AzDevCenterUserSchedule -Endpoint -InputObject - [-DefaultProfile ] [] -``` - -### GetViaIdentityByDevCenter -``` -Get-AzDevCenterUserSchedule -DevCenter -InputObject - [-DefaultProfile ] [] -``` - -## DESCRIPTION -Gets a schedule. - -## EXAMPLES - -### Example 1: Get schedule by endpoint -```powershell -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -``` - -This command gets the schedule in the pool "DevPool". - -### Example 2: Get schedule by dev center -```powershell -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool -``` - -This command gets the schedule in the pool "DevPool". - -### Example 3: Get schedule by endpoint and InputObject -```powershell -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -``` - -This command gets the schedule in the pool "DevPool". - -### Example 4: Get schedule by dev center and InputObject -```powershell -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput -``` - -This command gets the schedule in the pool "DevPool". - -## PARAMETERS - -### -DefaultProfile -The DefaultProfile parameter is not functional. -Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - -```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 -``` - -### -DevCenter -The DevCenter upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Endpoint -The DevCenter-specific URI to operate on. - -```yaml -Type: System.String -Parameter Sets: Get, GetViaIdentity -Aliases: - -Required: True -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.DevCenterdata.Models.IDevCenterdataIdentity -Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -PoolName -The name of a pool of Dev Boxes. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ProjectName -The DevCenter Project upon which to execute operations. - -```yaml -Type: System.String -Parameter Sets: Get, GetByDevCenter -Aliases: - -Required: True -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.DevCenterdata.Models.IDevCenterdataIdentity - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule - -## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - -## RELATED LINKS - diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Deploy-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/examples/Deploy-AzDevCenterUserEnvironment.md index be9cdfdcc463..defa5f498247 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Deploy-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Deploy-AzDevCenterUserEnvironment.md @@ -8,7 +8,7 @@ This command deploys an environment named "envtest" to the project "DevProject". ### Example 2: Deploy an environment by dev center ```powershell -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest ``` This command deploys an environment named "envtest" to the project "DevProject". @@ -27,6 +27,6 @@ This command deploys an environment named "envtest" to the project "DevProject". $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters ``` This command deploys an environment named "envtest" to the project "DevProject". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserCatalog.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserCatalog.md index c800d6337d8c..884efe7bbe4a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserCatalog.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserCatalog.md @@ -6,7 +6,7 @@ This command lists catalogs in the project "DevProject". ### Example 2: List catalogs by dev center ```powershell -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject ``` This command lists catalogs in the project "DevProject". @@ -18,7 +18,7 @@ This command gets a catalog named "CentralCatalog" in the project "DevProject". ### Example 4: Get a catalog by dev center ```powershell -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog ``` This command gets a catalog named "CentralCatalog" in the project "DevProject". @@ -32,6 +32,6 @@ This command gets a catalog named "CentralCatalog" in the project "DevProject". ### Example 6: Get a catalog by dev center and InputObject ```powershell $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput ``` This command gets a catalog named "CentralCatalog" in the project "DevProject". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBox.md index cc9da0853fb4..70fd65038a31 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBox.md @@ -18,19 +18,19 @@ This command lists dev boxes under the project "DevProject" assigned to the curr ### Example 4: List dev boxes by dev center name ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso +Get-AzDevCenterUserDevBox -DevCenterName Contoso ``` This command lists dev boxes under the dev center "Contoso". ### Example 5: List dev boxes by dev center and user id ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" ``` This command lists dev boxes under the dev center "Contoso" assigned to the currently signed-in user. ### Example 6: List dev boxes by dev center, user id, and project ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 ``` This command lists dev boxes under the project "DevProject" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -42,7 +42,7 @@ This command gets the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89 ### Example 8: Get a dev box by dev center ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command gets the dev box "myDevBox" assigned to the currently signed-in user. @@ -56,6 +56,6 @@ This command gets the dev box "myDevBox" assigned to the currently signed-in use ### Example 10: Get a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxAction.md index 539caae560ef..ff9299ae64b4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxAction.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxAction.md @@ -6,19 +6,19 @@ This command lists the actions on the dev box "myDevBox". ### Example 2: List actions on the dev box by dev center ```powershell -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject ``` This command lists the actions on the dev box "myDevBox". ### Example 3: Get an action on the dev box by endpoint ```powershell -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command gets the action "schedule-default" for the dev box "myDevBox". ### Example 4: Get an action on the dev box by dev center ```powershell -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command gets the action "schedule-default" for the dev box "myDevBox". @@ -32,6 +32,6 @@ This command gets the action "schedule-default" for the dev box "myDevBox". ### Example 6: Get an action on the dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the action "schedule-default" for the dev box "myDevBox". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxOperation.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxOperation.md new file mode 100644 index 000000000000..58fac6d5833c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxOperation.md @@ -0,0 +1,37 @@ +### Example 1: List operations on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +``` +This command lists the operations on the dev box "myDevBox". + +### Example 2: List operations on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +``` +This command lists the operations on the dev box "myDevBox". + +### Example 3: Get an operation on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 4: Get an operation on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 5: Get an operation on the dev box by endpoint and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 6: Get an operation on the dev box by dev center and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxRemoteConnection.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxRemoteConnection.md index caa0ff9637fc..679d6cfe20cb 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxRemoteConnection.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserDevBoxRemoteConnection.md @@ -6,7 +6,7 @@ This commands gets the remote connection for the dev box "myDevBox". ### Example 2: Get the remote connection on the dev box by dev center ```powershell -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject ``` This commands gets the remote connection for the dev box "myDevBox". @@ -20,6 +20,6 @@ This commands gets the remote connection for the dev box "myDevBox". ### Example 4: Get the remote connection on the dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput ``` This commands gets the remote connection for the dev box "myDevBox". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironment.md index 9b949af92556..5eec53f719ff 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironment.md @@ -6,7 +6,7 @@ This command lists environments under the project "DevProject". ### Example 2: List environments by dev center and project ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject ``` This command lists environments under the project "DevProject". @@ -18,7 +18,7 @@ This command lists environments under the project "DevProject" assigned to the c ### Example 4: List environments by dev center, user id, and project ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" ``` This command lists environments under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -30,7 +30,7 @@ This command gets the environment "myEnv" under the project "DevProject" assigne ### Example 6: Get an environment by dev center ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv ``` This command gets the environment "myEnv" under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -44,7 +44,7 @@ This command gets the environment "myEnv" under the project "DevProject" assigne ### Example 8: Get an environment by dev center and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput ``` This command gets the environment "myEnv" under the project "DevProject" assigned to the currently signed-in user. diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..c2b27368eb73 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,37 @@ +### Example 1: List actions on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command lists the actions on the environment "myEnvironment". + +### Example 2: List actions on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command lists the actions on the environment "myEnvironment". + +### Example 3: Get an action on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 4: Get an action on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 5: Get an action on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 6: Get an action on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentDefinition.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentDefinition.md index 7f946181017c..8241fb2a0e07 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentDefinition.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentDefinition.md @@ -6,7 +6,7 @@ This command lists environment definitions under the project "DevProject". ### Example 2: List environment definitions by dev center and project ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject ``` This command lists environment definitions under the project "DevProject". @@ -18,7 +18,7 @@ This command lists environment definitions under the project "DevProject" and th ### Example 4: List environment definitions by dev center, catalog, and project ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog ``` This command lists environment definitions under the project "DevProject" and the catalog "CentralCatalog". @@ -30,7 +30,7 @@ This command gets the environment definition "Sandbox" under the project "DevPro ### Example 6: Get an environment definition by dev center ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox ``` This command gets the environment definition "Sandbox" under the project "DevProject" and the catalog "CentralCatalog". @@ -44,7 +44,7 @@ This command gets the environment definition "Sandbox" under the project "DevPro ### Example 8: Get an environment definition by dev center and InputObject ```powershell $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput ``` This command gets the environment definition "Sandbox" under the project "DevProject" and the catalog "CentralCatalog". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentLog.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentLog.md new file mode 100644 index 000000000000..7dee109411f2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentLog.md @@ -0,0 +1,11 @@ +### Example 1: Get environment logs by endpoint +```powershell +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` +This command gets the logs on the environment "myEnvironment" for the operation id "d0954a94-3550-4919-bcbe-1c94ed79e0cd" and outputs the logs to the file "output_logs.txt". + +### Example 2: Get environment logs by dev center +```powershell +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` +This command gets the logs on the environment "myEnvironment" for the operation id "d0954a94-3550-4919-bcbe-1c94ed79e0cd" and outputs the logs to the file "output_logs.txt". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOperation.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOperation.md new file mode 100644 index 000000000000..a39734eb92bb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOperation.md @@ -0,0 +1,37 @@ +### Example 1: List operations on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command lists the operations on the environment "myEnvironment". + +### Example 2: List operations on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command lists the operations on the environment "myEnvironment". + +### Example 3: Get an operation on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 4: Get an operation on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 5: Get an operation on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 6: Get an operation on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput +``` +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOutput.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOutput.md new file mode 100644 index 000000000000..2f6360b38333 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentOutput.md @@ -0,0 +1,25 @@ +### Example 1: Get the outputs on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command gets the outputs for the environment "myEnvironment". + +### Example 2: Get the outputs on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` +This command gets the outputs for the environment "myEnvironment". + +### Example 3: Get the outputs on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` +This command gets the outputs for the environment "myEnvironment". + +### Example 4: Get the outputs on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput +``` +This command gets the outputs for the environment "myEnvironment". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentType.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentType.md index 084c50628f95..682b8eb8b02c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentType.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserEnvironmentType.md @@ -6,7 +6,7 @@ This command lists environment types under the project "DevProject". ### Example 2: List environment types by dev center and project ```powershell -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject ``` This command lists environment types under the project "DevProject". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserPool.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserPool.md index 5a8ce9e38628..671b0b625a11 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserPool.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserPool.md @@ -6,7 +6,7 @@ This command lists the pools in the project "DevProject". ### Example 2: List pools by dev center ```powershell -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject ``` This command lists the pools in the project "DevProject". @@ -18,7 +18,7 @@ This command gets the pool "DevPool" in the project "DevProject". ### Example 4: Get pool by dev center ```powershell -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool ``` This command gets the pool "DevPool" in the project "DevProject". @@ -32,6 +32,6 @@ This command gets the pool "DevPool" in the project "DevProject". ### Example 6: Get pool by dev center and InputObject ```powershell $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the pool "DevPool" in the project "DevProject". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserProject.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserProject.md index 98d121def65b..3bfa623dcada 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserProject.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserProject.md @@ -6,7 +6,7 @@ This command lists the projects under the endpoint. ### Example 2: List projects by dev center ```powershell -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject ``` This command lists the projects under the dev center. @@ -18,7 +18,7 @@ This command gets the project "DevProject". ### Example 4: Get project by dev center ```powershell -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject ``` This command gets the project "DevProject". @@ -32,6 +32,6 @@ This command gets the project "DevProject". ### Example 6: Get project by dev center and InputObject ```powershell $devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the project "DevProject". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserSchedule.md b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserSchedule.md index 128521dfc05f..7320dbe23b62 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserSchedule.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Get-AzDevCenterUserSchedule.md @@ -1,25 +1,49 @@ ### Example 1: Get schedule by endpoint ```powershell -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default ``` This command gets the schedule in the pool "DevPool". ### Example 2: Get schedule by dev center ```powershell -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default ``` This command gets the schedule in the pool "DevPool". ### Example 3: Get schedule by endpoint and InputObject ```powershell -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput ``` This command gets the schedule in the pool "DevPool". ### Example 4: Get schedule by dev center and InputObject ```powershell -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the schedule in the pool "DevPool". + +### Example 5: List schedule by project and endpoint +```powershell +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +``` +This command lists the schedules in the project "DevProject". + +### Example 6: List schedule by project and dev center +```powershell +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +``` +This command lists the schedules in the project "DevProject". + +### Example 7: List schedule by pool and endpoint +```powershell +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +``` +This command lists the schedules in the pool "DevPool". + +### Example 8: List schedule by pool and dev center +```powershell +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool +``` +This command lists the schedules in the pool "DevPool". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayDevBoxAction.md index 4e984d0c8d97..f5ac7fdc1b87 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayDevBoxAction.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayDevBoxAction.md @@ -6,19 +6,19 @@ This command delays all actions on the dev box "myDevBox" to the time 1 hour and ### Example 2: Delay all actions on the dev box by dev center ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" ``` This command delays all actions on the dev box "myDevBox" to the time 2 hours from the earliest scheduled action. ### Example 3: Delay an action on the dev box by endpoint ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" ``` This command delays the action "schedule-default" for the dev box "myDevBox" for 30 minutes. ### Example 4: Delay an action on the dev box by dev center ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" ``` This command delays the action "schedule-default" for the dev box "myDevBox" for 5 hours and 15 minutes. diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayEnvironmentAction.md new file mode 100644 index 000000000000..75304a37c5b9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Invoke-AzDevCenterUserDelayEnvironmentAction.md @@ -0,0 +1,12 @@ +### Example 1: Delay an action on the environment by endpoint +```powershell +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +``` +This command delays the action "schedule-default" for the environment "myEnvironment" for 30 minutes. + +### Example 2: Delay an action on the environment by dev center +```powershell +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" +``` +This command delays the action "myEnvironment-Delete" for the environment "myEnvironment" for 5 hours and 15 minutes. + diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserDevBox.md index bfc751c89aa6..61ae4a229d62 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserDevBox.md @@ -6,7 +6,7 @@ This command creates the dev box "myDevBox" for the user "786a823c-8037-48ab-89b ### Example 2: Create a dev box by dev center ```powershell -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool ``` This command creates the dev box "myDevBox" for the currently signed-in user. @@ -20,6 +20,6 @@ This command creates the dev box "myDevBox" for the currently signed-in user. ### Example 4: Create a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool ``` This command creates the dev box "myDevBox" for the user "786a823c-8037-48ab-89b8-8599901e67d0". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserEnvironment.md index f31021d5f084..50ca7754f687 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/New-AzDevCenterUserEnvironment.md @@ -1,24 +1,29 @@ ### Example 1: Create an environment by endpoint ```powershell $functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". ### Example 2: Create an environment by dev center ```powershell -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". ### Example 3: Create an environment by endpoint and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". @@ -26,7 +31,9 @@ This command creates an environment named envtest" to the project "DevProject". ```powershell $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserDevBox.md index faf13e2423c5..cd04275dc42e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserDevBox.md @@ -6,7 +6,7 @@ This command deletes the dev box "myDevBox" assigned to user "786a823c-8037-48ab ### Example 2: Delete a dev box by dev center ```powershell -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command deletes the dev box "myDevBox" assigned to the currently signed-in user. @@ -20,7 +20,7 @@ This command deletes the dev box "myDevBox" assigned to the currently signed-in ### Example 4: Delete a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command deletes the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserEnvironment.md index 5a0c88d49a9f..c54fade5a298 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Remove-AzDevCenterUserEnvironment.md @@ -6,7 +6,7 @@ This command deletes the environment "myEnv" under the project "DevProject" assi ### Example 2: Delete an environment by dev center ```powershell -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv ``` This command deletes the environment "myEnv" under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -20,7 +20,7 @@ This command deletes the environment "myEnv" under the project "DevProject" assi ### Example 4: Delete an environment by dev center and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput ``` This command deletes the environment "myEnv" under the project "DevProject" assigned to the currently signed-in user. diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Repair-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Repair-AzDevCenterUserDevBox.md new file mode 100644 index 000000000000..d285401838e0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Repair-AzDevCenterUserDevBox.md @@ -0,0 +1,25 @@ +### Example 1: Reapir dev box by endpoint +```powershell +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +``` +This command repairs the dev box "myDevBox". + +### Example 2: Repair dev box by dev center +```powershell +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +``` +This command repairs the dev box "myDevBox". + +### Example 3: Repair dev box by endpoint and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` +This command repairs the dev box "myDevBox". + +### Example 4: Reapir dev box by dev center and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput +``` +This command repairs the dev box "myDevBox". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Restart-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Restart-AzDevCenterUserDevBox.md index 2d309196b79a..c5e9285e320f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Restart-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Restart-AzDevCenterUserDevBox.md @@ -6,7 +6,7 @@ This command restarts the dev box "myDevBox" assigned to user "786a823c-8037-48a ### Example 2: Restart a dev box by dev center ```powershell -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command restarts the dev box "myDevBox" assigned to the currently signed-in user. @@ -20,7 +20,7 @@ This command restarts the dev box "myDevBox" assigned to the currently signed-in ### Example 4: Restart a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command restarts the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserDevBoxAction.md index a90bf6d5e22b..71ae651492f7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserDevBoxAction.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserDevBoxAction.md @@ -1,12 +1,12 @@ ### Example 1: Skip an action on the dev box by endpoint ```powershell -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command skips the action "schedule-default" for the dev box "myDevBox". ### Example 2: Skip an action on the dev box by dev center ```powershell -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command skips the action "schedule-default" for the dev box "myDevBox". @@ -20,6 +20,6 @@ This command skips the action "schedule-default" for the dev box "myDevBox". ### Example 4: Skip an action on the dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput ``` This command skips the action "schedule-default" for the dev box "myDevBox". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..7d7fc654e49b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Skip-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,25 @@ +### Example 1: Skip an action on the environment by endpoint +```powershell +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 2: Skip an action on the environment by dev center +```powershell +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 3: Skip an action on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 4: Skip an action on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Start-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Start-AzDevCenterUserDevBox.md index 1bf31978fc9c..1e8cf83498ee 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Start-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Start-AzDevCenterUserDevBox.md @@ -6,7 +6,7 @@ This command starts the dev box "myDevBox" assigned to user "786a823c-8037-48ab- ### Example 2: Start a dev box by dev center ```powershell -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command starts the dev box "myDevBox" assigned to the currently signed-in user. @@ -20,7 +20,7 @@ This command starts the dev box "myDevBox" assigned to the currently signed-in u ### Example 4: Start a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command starts the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Stop-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/examples/Stop-AzDevCenterUserDevBox.md index 4e8d93e91bf0..5fae4c82dd85 100644 --- a/src/DevCenter/DevCenterData.AutoRest/examples/Stop-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Stop-AzDevCenterUserDevBox.md @@ -6,7 +6,7 @@ This command stops the dev box "myDevBox" assigned to user "786a823c-8037-48ab-8 ### Example 2: Stop a dev box by dev center ```powershell -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command stops the dev box "myDevBox" assigned to the currently signed-in user. @@ -20,7 +20,7 @@ This command stops the dev box "myDevBox" assigned to the currently signed-in us ### Example 4: Stop a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command stops the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". diff --git a/src/DevCenter/DevCenterData.AutoRest/examples/Update-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/examples/Update-AzDevCenterUserEnvironment.md new file mode 100644 index 000000000000..6db73ab5084d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/examples/Update-AzDevCenterUserEnvironment.md @@ -0,0 +1,39 @@ +### Example 1: Update an environment by endpoint +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +``` +This command updates an environment named "envtest" to the project "DevProject". + +### Example 2: Update an environment by dev center +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +``` +This command updates an environment named "envtest" to the project "DevProject". + +### Example 3: Update an environment by endpoint and InputObject +```powershell +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + +``` +This command updates an environment named "envtest" to the project "DevProject". + +### Example 4: Update an environment by dev center and InputObject +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months +``` +This command updates an environment named "envtest" to the project "DevProject". \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/exports/Deploy-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Deploy-AzDevCenterUserEnvironment.ps1 index ab0d868e3cdb..a06fd9b8dee9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Deploy-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Deploy-AzDevCenterUserEnvironment.ps1 @@ -24,7 +24,7 @@ $functionAppParameters = @{"name" = "testfuncApp" } Deploy-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters .Example -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } @@ -35,7 +35,7 @@ Deploy-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e9 $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -49,13 +49,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/deploy-azdevcenteruserenvironment @@ -73,10 +77,11 @@ param( [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] @@ -130,11 +135,17 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. ${Parameter}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -232,6 +243,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserCatalog.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserCatalog.ps1 index a4409d20b336..0363d7083750 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserCatalog.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserCatalog.ps1 @@ -22,22 +22,22 @@ Gets the specified catalog within the project .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" =" DevProject" } Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $catalogInput .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog .Outputs System.String .Notes @@ -48,19 +48,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenterusercatalog #> function Get-AzDevCenterUserCatalog { -[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog])] +[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -74,10 +78,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -187,6 +192,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBox.ps1 index 4222da3fcba4..8145544a19da 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBox.ps1 @@ -26,26 +26,26 @@ Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870e .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso +Get-AzDevCenterUserDevBox -DevCenterName Contoso .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -54,19 +54,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevbox #> function Get-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -84,10 +88,11 @@ param( [Parameter(ParameterSetName='List2ByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List2', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -214,6 +219,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxAction.ps1 index ab30b0c37cc9..ba9a0942c474 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxAction.ps1 @@ -22,22 +22,22 @@ Gets an action. .Example Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxaction #> function Get-AzDevCenterUserDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -72,10 +76,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -116,10 +121,11 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -208,6 +214,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxOperation.ps1 new file mode 100644 index 000000000000..ea179fac55e7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxOperation.ps1 @@ -0,0 +1,261 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an operation on a Dev Box. +.Description +Gets an operation on a Dev Box. +.Example +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +.Example +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +.Example +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation +#> +function Get-AzDevCenterUserDevBoxOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on a Dev Box. + ${OperationId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + } + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 index 4e844a4096ed..1a2f085455a6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 @@ -22,18 +22,18 @@ Gets RDP Connection info .Example Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxremoteconnection #> function Get-AzDevCenterUserDevBoxRemoteConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] @@ -187,6 +192,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironment.ps1 index ba591c7ee17b..8f14c2de8cd4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironment.ps1 @@ -22,26 +22,26 @@ Gets an environment .Example .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" .Example Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example $envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Notes COMPLEX PARAMETER PROPERTIES @@ -50,19 +50,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironment #> function Get-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -78,10 +82,11 @@ param( [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] @@ -206,6 +211,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..c7ceec1d939f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,263 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Retrieve a specific environment action. +.Description +Retrieve a specific environment action. +.Example +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction +#> +function Get-AzDevCenterUserEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + } + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentDefinition.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentDefinition.ps1 index c05d177e9ff9..cae7eb715cf7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentDefinition.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentDefinition.ps1 @@ -22,26 +22,26 @@ Get an environment definition from a catalog. .Example .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -50,19 +50,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentdefinition #> function Get-AzDevCenterUserEnvironmentDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -78,10 +82,11 @@ param( [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] @@ -204,6 +209,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentLog.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentLog.ps1 new file mode 100644 index 000000000000..de77cc8342e9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentLog.ps1 @@ -0,0 +1,219 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets the logs for an operation on an environment. +.Description +Gets the logs for an operation on an environment. +.Example +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +.Example +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +System.Boolean +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog +#> +function Get-AzDevCenterUserEnvironmentLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentLog'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentLog'; + } + if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOperation.ps1 new file mode 100644 index 000000000000..9383a670a34a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOperation.ps1 @@ -0,0 +1,262 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an environment action result. +.Description +Gets an environment action result. +.Example +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation +#> +function Get-AzDevCenterUserEnvironmentOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + } + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOutput.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOutput.ps1 new file mode 100644 index 000000000000..ac322b7ee448 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentOutput.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Outputs from the environment +.Description +Gets Outputs from the environment +.Example +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput +#> +function Get-AzDevCenterUserEnvironmentOutput { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + } + if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentType.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentType.ps1 index a07eb5ade425..77a7320fb3fe 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentType.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserEnvironmentType.ps1 @@ -22,15 +22,15 @@ Lists all environment types configured for a project. .Example Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmenttype #> function Get-AzDevCenterUserEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -40,10 +40,11 @@ param( ${Endpoint}, [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -131,6 +132,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserPool.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserPool.ps1 index d13fa5193f03..d94eedf67c6e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserPool.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserPool.ps1 @@ -22,22 +22,22 @@ Gets a pool .Example Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool .Example $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserpool #> function Get-AzDevCenterUserPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -72,10 +76,11 @@ param( [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -185,6 +190,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserProject.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserProject.ps1 index 7f468072f24c..360b853e278f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserProject.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserProject.ps1 @@ -22,22 +22,22 @@ Gets a project. .Example Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject .Example $devBoxInput = @{"ProjectName" = "DevProject";} Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject #> function Get-AzDevCenterUserProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -72,10 +76,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] @@ -176,6 +181,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserSchedule.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserSchedule.ps1 index d6a49467d2e4..0c1793c08d75 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserSchedule.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Get-AzDevCenterUserSchedule.ps1 @@ -20,20 +20,28 @@ Gets a schedule. .Description Gets a schedule. .Example -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default .Example -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -42,21 +50,27 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule #> function Get-AzDevCenterUserSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -64,35 +78,51 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, - - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + ${DevCenterName}, + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a pool of Dev Boxes. ${PoolName}, + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a schedule. + ${ScheduleName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -168,13 +198,21 @@ begin { } $mapping = @{ + List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 index 45e08d7de142..983e07c23169 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 @@ -22,23 +22,23 @@ Delays the occurrence of an action. .Example Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult .Link https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelaydevboxaction #> function Invoke-AzDevCenterUserDelayDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult])] [CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delay1', Mandatory)] @@ -50,10 +50,11 @@ param( [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] [Parameter(ParameterSetName='Delay1ByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -77,10 +78,11 @@ param( [Parameter(ParameterSetName='Delay', Mandatory)] [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] @@ -174,6 +176,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 new file mode 100644 index 000000000000..d85419b36203 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 @@ -0,0 +1,214 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction +#> +function Invoke-AzDevCenterUserDelayEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='Delay', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.TimeSpan] + # The delayed timespan from the scheduled action time. + # Format HH:MM. + ${DelayTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Delay = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayEnvironmentAction'; + DelayByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayEnvironmentAction'; + } + if (('Delay', 'DelayByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserDevBox.ps1 index 5fbb835763b7..a0c4c31f9f14 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Creates or replaces a Dev Box. .Example New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool .Example -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserdevbox #> function New-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] @@ -213,6 +218,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserEnvironment.ps1 index 284407288bd1..4f054da0d244 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/New-AzDevCenterUserEnvironment.ps1 @@ -21,21 +21,28 @@ Creates or updates an environment. Creates or updates an environment. .Example $functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months .Example -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months .Example $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -49,13 +56,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserenvironment @@ -73,10 +84,11 @@ param( [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] @@ -130,11 +142,17 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. ${Parameter}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -232,6 +250,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/ProxyCmdletDefinitions.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/ProxyCmdletDefinitions.ps1 index fffa6dd69251..fa73fba4d673 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/ProxyCmdletDefinitions.ps1 @@ -24,7 +24,7 @@ $functionAppParameters = @{"name" = "testfuncApp" } Deploy-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters .Example -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } @@ -35,7 +35,7 @@ Deploy-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e9 $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -49,13 +49,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/deploy-azdevcenteruserenvironment @@ -73,10 +77,11 @@ param( [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] @@ -130,11 +135,17 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. ${Parameter}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -232,6 +243,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -284,22 +299,22 @@ Gets the specified catalog within the project .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" =" DevProject" } Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $catalogInput .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog .Outputs System.String .Notes @@ -310,19 +325,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenterusercatalog #> function Get-AzDevCenterUserCatalog { -[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog])] +[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -336,10 +355,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -449,6 +469,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -505,26 +529,26 @@ Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870e .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso +Get-AzDevCenterUserDevBox -DevCenterName Contoso .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -533,19 +557,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevbox #> function Get-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -563,10 +591,11 @@ param( [Parameter(ParameterSetName='List2ByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List2', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -693,6 +722,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -745,22 +778,22 @@ Gets an action. .Example Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Notes COMPLEX PARAMETER PROPERTIES @@ -769,19 +802,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxaction #> function Get-AzDevCenterUserDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -795,10 +832,11 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] @@ -839,10 +877,11 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -931,6 +970,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -977,24 +1020,28 @@ end { <# .Synopsis -Gets RDP Connection info +Gets an operation on a Dev Box. .Description -Gets RDP Connection info +Gets an operation on a Dev Box. .Example -Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation .Notes COMPLEX PARAMETER PROPERTIES @@ -1003,51 +1050,63 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxremoteconnection +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation #> -function Get-AzDevCenterUserDevBoxRemoteConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function Get-AzDevCenterUserDevBoxOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. ${DevBoxName}, + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -1063,6 +1122,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on a Dev Box. + ${OperationId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1138,16 +1204,22 @@ begin { } $mapping = @{ - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxOperation'; } - if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -1194,32 +1266,24 @@ end { <# .Synopsis -Gets an environment +Gets RDP Connection info .Description -Gets an environment -.Example - -.Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -.Example -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -.Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Gets RDP Connection info .Example -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -1228,56 +1292,59 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxremoteconnection #> -function Get-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDevCenterUserDevBoxRemoteConnection { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] - [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] - [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The DevCenter Project upon which to execute operations. - ${ProjectName}, + # The name of a Dev Box. + ${DevBoxName}, - [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] # The AAD object id of the user. # If value is 'me', the identity is taken from the authentication context. ${UserId}, @@ -1290,14 +1357,6 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Alias('EnvironmentName')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The name of the environment. - ${Name}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1373,17 +1432,20 @@ begin { } $mapping = @{ - List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserDevBoxRemoteConnection'; + } + if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -1430,32 +1492,32 @@ end { <# .Synopsis -Get an environment definition from a catalog. +Gets an environment .Description -Get an environment definition from a catalog. +Gets an environment .Example .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" .Example -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example -$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example -$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Notes COMPLEX PARAMETER PROPERTIES @@ -1464,19 +1526,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentdefinition +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironment #> -function Get-AzDevCenterUserEnvironmentDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition])] +function Get-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] @@ -1492,10 +1558,11 @@ param( [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] @@ -1514,8 +1581,9 @@ param( [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the catalog - ${CatalogName}, + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] @@ -1527,10 +1595,11 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('EnvironmentName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment definition - ${DefinitionName}, + # The name of the environment. + ${Name}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1607,17 +1676,21 @@ begin { } $mapping = @{ - List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironment'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -1664,41 +1737,117 @@ end { <# .Synopsis -Lists all environment types configured for a project. +Retrieve a specific environment action. .Description -Lists all environment types configured for a project. +Retrieve a specific environment action. .Example -Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmenttype +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction #> -function Get-AzDevCenterUserEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType])] +function Get-AzDevCenterUserEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1774,11 +1923,22 @@ begin { } $mapping = @{ - List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentType'; - ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentType'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentAction'; + } + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -1825,28 +1985,32 @@ end { <# .Synopsis -Gets a pool +Get an environment definition from a catalog. .Description -Gets a pool +Get an environment definition from a catalog. .Example -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject + .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject .Example -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +.Example +$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +.Example +$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -1855,22 +2019,27 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserpool +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentdefinition #> -function Get-AzDevCenterUserPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool])] +function Get-AzDevCenterUserEnvironmentDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -1878,23 +2047,36 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the catalog + ${CatalogName}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -1907,8 +2089,8 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a pool of Dev Boxes. - ${PoolName}, + # The name of the environment definition + ${DefinitionName}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1985,15 +2167,21 @@ begin { } $mapping = @{ - List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; - ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentDefinition'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -2040,53 +2228,25 @@ end { <# .Synopsis -Gets a project. +Gets the logs for an operation on an environment. .Description -Gets a project. -.Example -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -.Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Gets the logs for an operation on an environment. .Example -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -.Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject -.Example -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" .Example -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.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. - -INPUTOBJECT : Identity Parameter - [ActionName ]: The name of an action that will take place on a Dev Box. - [CatalogName ]: The name of the catalog - [DefinitionName ]: The name of the environment definition - [DevBoxName ]: The name of a Dev Box. - [EnvironmentName ]: The name of the environment. - [Id ]: Resource identity path - [PoolName ]: The name of a pool of Dev Boxes. - [ProjectName ]: The DevCenter Project upon which to execute operations. - [ScheduleName ]: The name of a schedule. - [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +System.Boolean .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog #> -function Get-AzDevCenterUserProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDevCenterUserEnvironmentLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] @@ -2094,28 +2254,45 @@ param( ${Endpoint}, [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] - [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [System.String] + # The name of the environment. + ${EnvironmentName}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2145,6 +2322,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -2191,15 +2374,18 @@ begin { } $mapping = @{ - List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; - ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentLog'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentLog'; + } + if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -2246,24 +2432,28 @@ end { <# .Synopsis -Gets a schedule. +Gets an environment action result. .Description -Gets a schedule. +Gets an environment action result. .Example -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject .Example -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation .Notes COMPLEX PARAMETER PROPERTIES @@ -2272,21 +2462,26 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation #> -function Get-AzDevCenterUserSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function Get-AzDevCenterUserEnvironmentOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( + [Parameter(ParameterSetName='List', Mandatory)] [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2294,12 +2489,43 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] + [Parameter(ParameterSetName='ListByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] @@ -2313,15 +2539,8 @@ param( [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a pool of Dev Boxes. - ${PoolName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The DevCenter Project upon which to execute operations. - ${ProjectName}, + # The id of the operation on an environment. + ${OperationId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2398,13 +2617,22 @@ begin { } $mapping = @{ - GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; - Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; - GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; - GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOperation'; + } + if (('List', 'Get', 'GetByDevCenter', 'ListByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -2451,58 +2679,82 @@ end { <# .Synopsis -Delays the occurrence of an action. +Gets Outputs from the environment .Description -Delays the occurrence of an action. +Gets Outputs from the environment .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelaydevboxaction +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput #> -function Invoke-AzDevCenterUserDelayDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult])] -[CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDevCenterUserEnvironmentOutput { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( - [Parameter(ParameterSetName='Delay1', Mandatory)] - [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] - [Parameter(ParameterSetName='Delay1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The name of the environment. + ${EnvironmentName}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='GetByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2510,19 +2762,13 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='Delay', Mandatory)] - [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] - [System.TimeSpan] - # The delayed timespan from the scheduled action time. - # Format HH:MM. - ${DelayTime}, + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2599,16 +2845,2058 @@ begin { } $mapping = @{ - Delay1 = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; - Delay = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; - DelayByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; - Delay1ByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentOutput'; } - if (('Delay1', 'Delay', 'DelayByDevCenter', 'Delay1ByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Get', 'GetByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Lists all environment types configured for a project. +.Description +Lists all environment types configured for a project. +.Example +Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmenttype +#> +function Get-AzDevCenterUserEnvironmentType { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentType'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserEnvironmentType'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Gets a pool +.Description +Gets a pool +.Example +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserpool +#> +function Get-AzDevCenterUserPool { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a pool of Dev Boxes. + ${PoolName}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserPool'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Gets a project. +.Description +Gets a project. +.Example +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +.Example +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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. + +INPUTOBJECT : Identity Parameter + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject +#> +function Get-AzDevCenterUserProject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserProject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Gets a schedule. +.Description +Gets a schedule. +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule +#> +function Get-AzDevCenterUserSchedule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a pool of Dev Boxes. + ${PoolName}, + + [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='ListByDevCenter', Mandatory)] + [Parameter(ParameterSetName='List1ByDevCenter', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='GetByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a schedule. + ${ScheduleName}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + List1 = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + List = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + GetViaIdentity = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + Get = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + ListByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + List1ByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + GetViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + GetByDevCenter = 'Az.DevCenterdata.custom\Get-AzDevCenterUserSchedule'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelaydevboxaction +#> +function Invoke-AzDevCenterUserDelayDevBoxAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult])] +[CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delay1', Mandatory)] + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Delay1ByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on a Dev Box. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.TimeSpan] + # The delayed timespan from the scheduled action time. + # Format HH:MM. + ${DelayTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Delay1 = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; + Delay = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; + DelayByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; + Delay1ByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayDevBoxAction'; + } + if (('Delay1', 'Delay', 'DelayByDevCenter', 'Delay1ByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction +#> +function Invoke-AzDevCenterUserDelayEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='Delay', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='DelayByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.TimeSpan] + # The delayed timespan from the scheduled action time. + # Format HH:MM. + ${DelayTime}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Delay = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayEnvironmentAction'; + DelayByDevCenter = 'Az.DevCenterdata.custom\Invoke-AzDevCenterUserDelayEnvironmentAction'; + } + if (('Delay', 'DelayByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Creates or replaces a Dev Box. +.Description +Creates or replaces a Dev Box. +.Example +New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool +.Example +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserdevbox +#> +function New-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateExpandedByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the Dev Box pool this machine belongs to. + ${PoolName}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus] + # Indicates whether the owner of the Dev Box is a local administrator. + ${LocalAdministrator}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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.DevCenterdata.custom\New-AzDevCenterUserDevBox'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; + CreateExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; + CreateViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; + } + if (('CreateExpanded', 'CreateExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 +Creates or updates an environment. +.Description +Creates or updates an environment. +.Example +$functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months +.Example +$functionAppParameters = @{"name" = "testfuncApp" } +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserenvironment +#> +function New-AzDevCenterUserEnvironment { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='CreateExpandedByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Name of the catalog. + ${CatalogName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Name of the environment definition. + ${EnvironmentDefinitionName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Environment type. + ${EnvironmentType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] + [System.Collections.Hashtable] + # Parameters object for the environment. + ${Parameter}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; + CreateExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; + CreateViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; + } + if (('CreateExpanded', 'CreateExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 a Dev Box. +.Description +Deletes a Dev Box. +.Example +Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +.Example +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserdevbox +#> +function Remove-AzDevCenterUserDevBox { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='DeleteByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; + DeleteViaIdentity = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; + DeleteByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; + DeleteViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; + } + if (('Delete', 'DeleteByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -2655,24 +4943,24 @@ end { <# .Synopsis -Creates or replaces a Dev Box. +Deletes an environment and all its associated resources .Description -Creates or replaces a Dev Box. +Deletes an environment and all its associated resources .Example -New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool +Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool +$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -2681,52 +4969,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserenvironment #> -function New-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDevCenterUserEnvironment { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Alias('EnvironmentName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of the environment. ${Name}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateExpandedByDevCenter')] + [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='DeleteByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2734,27 +5027,14 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # The name of the Dev Box pool this machine belongs to. - ${PoolName}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus])] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus] - # Indicates whether the owner of the Dev Box is a local administrator. - ${LocalAdministrator}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2796,6 +5076,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -2842,16 +5128,20 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; - CreateViaIdentityExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; - CreateExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; - CreateViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserDevBox'; + Delete = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; + DeleteViaIdentity = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; + DeleteByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; + DeleteViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; } - if (('CreateExpanded', 'CreateExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Delete', 'DeleteByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -2898,26 +5188,21 @@ end { <# .Synopsis -Creates or updates an environment. +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. .Description -Creates or updates an environment. +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. .Example -$functionAppParameters = @{"name" = "testfuncApp" } - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject .Example -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } - - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$functionAppParameters = @{"name" = "testfuncApp" } -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } - -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -2931,52 +5216,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/new-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox #> -function New-AzDevCenterUserEnvironment { +function Repair-AzDevCenterUserDevBox { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Repair', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)] + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] + [Parameter(ParameterSetName='RepairViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] - [Alias('EnvironmentName')] + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] + [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. + # The name of a Dev Box. ${Name}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='CreateExpanded')] - [Parameter(ParameterSetName='CreateExpandedByDevCenter')] + [Parameter(ParameterSetName='Repair')] + [Parameter(ParameterSetName='RepairByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2984,39 +5274,14 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='CreateViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RepairViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the catalog. - ${CatalogName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the environment definition. - ${EnvironmentDefinitionName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Environment type. - ${EnvironmentType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] - [System.Collections.Hashtable] - # Parameters object for the environment. - ${Parameter}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3104,16 +5369,20 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; - CreateViaIdentityExpanded = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; - CreateExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; - CreateViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\New-AzDevCenterUserEnvironment'; + Repair = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairViaIdentity = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairByDevCenter = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; } - if (('CreateExpanded', 'CreateExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Repair', 'RepairByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -3160,19 +5429,19 @@ end { <# .Synopsis -Deletes a Dev Box. +Restarts a Dev Box .Description -Deletes a Dev Box. +Restarts a Dev Box .Example -Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -3186,52 +5455,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenter/restart-azdevcenteruserdevbox #> -function Remove-AzDevCenterUserDevBox { +function Restart-AzDevCenterUserDevBox { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Restart', Mandatory)] + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] + [Parameter(ParameterSetName='RestartViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Restart', Mandatory)] + [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Restart', Mandatory)] + [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Delete')] - [Parameter(ParameterSetName='DeleteByDevCenter')] + [Parameter(ParameterSetName='Restart')] + [Parameter(ParameterSetName='RestartByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3239,8 +5513,8 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RestartViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -3288,12 +5562,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -3340,16 +5608,20 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; - DeleteViaIdentity = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; - DeleteByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; - DeleteViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserDevBox'; + Restart = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; + RestartViaIdentity = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; + RestartByDevCenter = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; + RestartViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; } - if (('Delete', 'DeleteByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Restart', 'RestartByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -3396,19 +5668,19 @@ end { <# .Synopsis -Deletes an environment and all its associated resources +Skips an occurrence of an action. .Description -Deletes an environment and all its associated resources +Skips an occurrence of an action. .Example -Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -3422,52 +5694,64 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserdevboxaction #> -function Remove-AzDevCenterUserEnvironment { +function Skip-AzDevCenterUserDevBoxAction { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] - [Alias('EnvironmentName')] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. + # The name of an action that will take place on a Dev Box. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Delete')] - [Parameter(ParameterSetName='DeleteByDevCenter')] + [Parameter(ParameterSetName='Skip')] + [Parameter(ParameterSetName='SkipByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3475,8 +5759,8 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -3492,12 +5776,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3518,12 +5796,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3576,16 +5848,20 @@ begin { } $mapping = @{ - Delete = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; - DeleteViaIdentity = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; - DeleteByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; - DeleteViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Remove-AzDevCenterUserEnvironment'; + Skip = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; + SkipViaIdentity = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; + SkipByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; + SkipViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; } - if (('Delete', 'DeleteByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Skip', 'SkipByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -3632,19 +5908,19 @@ end { <# .Synopsis -Restarts a Dev Box +Skips an occurrence of an action. .Description -Restarts a Dev Box +Skips an occurrence of an action. .Example -Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -3658,52 +5934,64 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/restart-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction #> -function Restart-AzDevCenterUserDevBox { +function Skip-AzDevCenterUserEnvironmentAction { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Restart', Mandatory)] - [Parameter(ParameterSetName='RestartViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] - [Parameter(ParameterSetName='RestartViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='Restart', Mandatory)] - [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of an action that will take place on an Environment. ${Name}, - [Parameter(ParameterSetName='Restart', Mandatory)] - [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Restart')] - [Parameter(ParameterSetName='RestartByDevCenter')] + [Parameter(ParameterSetName='Skip')] + [Parameter(ParameterSetName='SkipByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3711,8 +5999,8 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='RestartViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -3728,12 +6016,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3757,8 +6039,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, + # Returns true when the command succeeds + ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] @@ -3806,16 +6088,20 @@ begin { } $mapping = @{ - Restart = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; - RestartViaIdentity = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; - RestartByDevCenter = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; - RestartViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Restart-AzDevCenterUserDevBox'; + Skip = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipViaIdentity = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; } - if (('Restart', 'RestartByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Skip', 'SkipByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -3862,19 +6148,19 @@ end { <# .Synopsis -Skips an occurrence of an action. +Starts a Dev Box .Description -Skips an occurrence of an action. +Starts a Dev Box .Example -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -3888,58 +6174,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserdevboxaction +https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteruserdevbox #> -function Skip-AzDevCenterUserDevBoxAction { +function Start-AzDevCenterUserDevBox { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Skip', Mandatory)] - [Parameter(ParameterSetName='SkipViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] - [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] + [Parameter(ParameterSetName='StartViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, - - [Parameter(ParameterSetName='Skip', Mandatory)] - [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${DevCenterName}, - [Parameter(ParameterSetName='Skip', Mandatory)] - [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] + [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. - ${DevBoxName}, + ${Name}, - [Parameter(ParameterSetName='Skip', Mandatory)] - [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Skip')] - [Parameter(ParameterSetName='SkipByDevCenter')] + [Parameter(ParameterSetName='Start')] + [Parameter(ParameterSetName='StartByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3947,8 +6232,8 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -3964,6 +6249,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3987,8 +6278,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, + # Run the command asynchronously + ${NoWait}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] @@ -4036,16 +6327,20 @@ begin { } $mapping = @{ - Skip = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; - SkipViaIdentity = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; - SkipByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; - SkipViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserDevBoxAction'; + Start = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; + StartViaIdentity = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; + StartByDevCenter = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; + StartViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; } - if (('Skip', 'SkipByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Start', 'StartByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -4092,19 +6387,19 @@ end { <# .Synopsis -Starts a Dev Box +Stops a Dev Box .Description -Starts a Dev Box +Stops a Dev Box .Example -Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -4118,52 +6413,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenter/stop-azdevcenteruserdevbox #> -function Start-AzDevCenterUserDevBox { +function Stop-AzDevCenterUserDevBox { [OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Start', Mandatory)] - [Parameter(ParameterSetName='StartViaIdentity', Mandatory)] + [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='StopViaIdentity', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] - [Parameter(ParameterSetName='StartViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] + [Parameter(ParameterSetName='StopViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='Start', Mandatory)] - [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. ${Name}, - [Parameter(ParameterSetName='Start', Mandatory)] - [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] + [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Start')] - [Parameter(ParameterSetName='StartByDevCenter')] + [Parameter(ParameterSetName='Stop')] + [Parameter(ParameterSetName='StopByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -4171,14 +6471,20 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='StartViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StopViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional parameter to hibernate the dev box. + ${Hibernate}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4266,16 +6572,20 @@ begin { } $mapping = @{ - Start = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; - StartViaIdentity = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; - StartByDevCenter = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; - StartViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Start-AzDevCenterUserDevBox'; + Stop = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; + StopViaIdentity = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; + StopByDevCenter = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; + StopViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; } - if (('Start', 'StartByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Stop', 'StopByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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) @@ -4322,24 +6632,38 @@ end { <# .Synopsis -Stops a Dev Box +Partially updates an environment .Description -Stops a Dev Box +Partially updates an environment .Example -Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months .Example -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Notes COMPLEX PARAMETER PROPERTIES @@ -4348,52 +6672,57 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenter/stop-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment #> -function Stop-AzDevCenterUserDevBox { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Stop', Mandatory)] - [Parameter(ParameterSetName='StopViaIdentity', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] - [Parameter(ParameterSetName='StopViaIdentityByDevCenter', Mandatory)] + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, - [Parameter(ParameterSetName='Stop', Mandatory)] - [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] + [Alias('EnvironmentName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of the environment. ${Name}, - [Parameter(ParameterSetName='Stop', Mandatory)] - [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Stop')] - [Parameter(ParameterSetName='StopByDevCenter')] + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchExpandedByDevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -4401,8 +6730,8 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='StopViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -4410,10 +6739,10 @@ param( ${InputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] - [System.Management.Automation.SwitchParameter] - # Optional parameter to hibernate the dev box. - ${Hibernate}, + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4424,12 +6753,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -4450,12 +6773,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -4502,16 +6819,20 @@ begin { } $mapping = @{ - Stop = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; - StopViaIdentity = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; - StopByDevCenter = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; - StopViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Stop-AzDevCenterUserDevBox'; + PatchExpanded = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchViaIdentityExpanded = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchExpandedByDevCenter = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; } - if (('Stop', 'StopByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('PatchExpanded', 'PatchExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserDevBox.ps1 index 997f6d93b67c..991407f07825 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserDevBox.ps1 @@ -22,13 +22,13 @@ Deletes a Dev Box. .Example Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserdevbox @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] @@ -206,6 +211,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserEnvironment.ps1 index cd7ba9aad266..f53811fd7242 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Remove-AzDevCenterUserEnvironment.ps1 @@ -22,13 +22,13 @@ Deletes an environment and all its associated resources .Example Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example $envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/remove-azdevcenteruserenvironment @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteByDevCenter', Mandatory)] @@ -206,6 +211,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Repair-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Repair-AzDevCenterUserDevBox.ps1 new file mode 100644 index 000000000000..c9569626d098 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Repair-AzDevCenterUserDevBox.ps1 @@ -0,0 +1,256 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Description +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Example +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +.Example +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox +#> +function Repair-AzDevCenterUserDevBox { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Repair', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] + [Parameter(ParameterSetName='RepairViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Parameter(ParameterSetName='RepairByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Repair')] + [Parameter(ParameterSetName='RepairByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RepairViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Repair = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairViaIdentity = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairByDevCenter = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + RepairViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Repair-AzDevCenterUserDevBox'; + } + if (('Repair', 'RepairByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Restart-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Restart-AzDevCenterUserDevBox.ps1 index bd3359ab4fc0..2fdd909f6f1f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Restart-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Restart-AzDevCenterUserDevBox.ps1 @@ -22,13 +22,13 @@ Restarts a Dev Box .Example Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/restart-azdevcenteruserdevbox @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] [Parameter(ParameterSetName='RestartViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Restart', Mandatory)] [Parameter(ParameterSetName='RestartByDevCenter', Mandatory)] @@ -200,6 +205,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserDevBoxAction.ps1 index 9e21a6318f41..ffa2141a096c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserDevBoxAction.ps1 @@ -20,15 +20,15 @@ Skips an occurrence of an action. .Description Skips an occurrence of an action. .Example -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserdevboxaction @@ -66,17 +70,19 @@ param( [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Skip', Mandatory)] [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of an action that will take place on a Dev Box. - ${ActionName}, + ${Name}, [Parameter(ParameterSetName='Skip', Mandatory)] [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] @@ -200,6 +206,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..1db10677a393 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Skip-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,255 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Skips an occurrence of an action. +.Description +Skips an occurrence of an action. +.Example +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction +#> +function Skip-AzDevCenterUserEnvironmentAction { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='SkipByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Skip')] + [Parameter(ParameterSetName='SkipByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentityByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + Skip = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipViaIdentity = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + SkipViaIdentityByDevCenter = 'Az.DevCenterdata.custom\Skip-AzDevCenterUserEnvironmentAction'; + } + if (('Skip', 'SkipByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Start-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Start-AzDevCenterUserDevBox.ps1 index 1df5b9afe265..7662c85e0832 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Start-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Start-AzDevCenterUserDevBox.ps1 @@ -22,13 +22,13 @@ Starts a Dev Box .Example Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/start-azdevcenteruserdevbox @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] [Parameter(ParameterSetName='StartViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Start', Mandatory)] [Parameter(ParameterSetName='StartByDevCenter', Mandatory)] @@ -200,6 +205,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Stop-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Stop-AzDevCenterUserDevBox.ps1 index e273fc375575..ed4d59a43943 100644 --- a/src/DevCenter/DevCenterData.AutoRest/exports/Stop-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Stop-AzDevCenterUserDevBox.ps1 @@ -22,13 +22,13 @@ Stops a Dev Box .Example Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenter/stop-azdevcenteruserdevbox @@ -66,10 +70,11 @@ param( [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] [Parameter(ParameterSetName='StopViaIdentityByDevCenter', Mandatory)] + [Alias('DevCenter')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] [System.String] # The DevCenter upon which to execute operations. - ${DevCenter}, + ${DevCenterName}, [Parameter(ParameterSetName='Stop', Mandatory)] [Parameter(ParameterSetName='StopByDevCenter', Mandatory)] @@ -206,6 +211,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/exports/Update-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/exports/Update-AzDevCenterUserEnvironment.ps1 new file mode 100644 index 000000000000..ee796250606e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/exports/Update-AzDevCenterUserEnvironment.ps1 @@ -0,0 +1,262 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Partially updates an environment +.Description +Partially updates an environment +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment +#> +function Update-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] + [Alias('DevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter upon which to execute operations. + ${DevCenterName}, + + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Parameter(ParameterSetName='PatchExpandedByDevCenter', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchExpandedByDevCenter')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpandedByDevCenter', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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 = @{ + PatchExpanded = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchViaIdentityExpanded = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchViaIdentityExpandedByDevCenter = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + PatchExpandedByDevCenter = 'Az.DevCenterdata.custom\Update-AzDevCenterUserEnvironment'; + } + if (('PatchExpanded', 'PatchExpandedByDevCenter') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/generate-help.ps1 b/src/DevCenter/DevCenterData.AutoRest/generate-help.ps1 index cbdf7615eb34..80f510910f27 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generate-help.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/generate-portal-ux.ps1 b/src/DevCenter/DevCenterData.AutoRest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..c0d87c710d71 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/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.DevCenterdata' +$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.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/generated/api/DevCenterdata.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/DevCenterdata.cs index 4ff7613a107a..6bc76fc38767 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/DevCenterdata.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/DevCenterdata.cs @@ -14,6 +14,209 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata public partial class DevCenterdata { + /// Applies customizations to the Dev Box. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// A customization group name. + /// Represents a customization group. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesCreateCustomizationGroup(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/customizationGroups/" + + global::System.Uri.EscapeDataString(customizationGroupName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesCreateCustomizationGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Applies customizations to the Dev Box. + /// + /// The DevCenter-specific URI to operate on. + /// Represents a customization group. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesCreateCustomizationGroupViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/customizationGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + var customizationGroupName = _match.Groups["customizationGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + "/customizationGroups/" + + customizationGroupName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesCreateCustomizationGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesCreateCustomizationGroup_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// A customization group name. + /// Represents a customization group. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesCreateCustomizationGroup_Validate(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(customizationGroupName),customizationGroupName); + await eventListener.AssertMinimumLength(nameof(customizationGroupName),customizationGroupName,3); + await eventListener.AssertMaximumLength(nameof(customizationGroupName),customizationGroupName,63); + await eventListener.AssertRegEx(nameof(customizationGroupName),customizationGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + /// Creates or replaces a Dev Box. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. @@ -28,9 +231,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesCreateDevBox(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesCreateDevBox(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -75,9 +278,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesCreateDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesCreateDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -132,7 +335,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesCreateDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesCreateDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -246,13 +449,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -280,7 +483,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesCreateDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesCreateDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -317,9 +520,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDelayAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDelayAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -365,9 +568,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDelayActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDelayActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -424,7 +627,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesDelayAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesDelayAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -442,13 +645,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -515,9 +718,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDelayActions(string endpoint, string projectName, string userId, string devBoxName, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDelayActions(string endpoint, string projectName, string userId, string devBoxName, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -561,9 +764,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDelayActionsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDelayActionsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -617,7 +820,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesDelayActions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesDelayActions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -635,13 +838,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsDelayMultipleResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsDelayMultipleResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -703,9 +906,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDeleteDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDeleteDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -746,9 +949,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesDeleteDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesDeleteDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -800,7 +1003,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesDeleteDevBox_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesDeleteDevBox_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -918,7 +1121,7 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); break; } case global::System.Net.HttpStatusCode.NoContent: @@ -930,7 +1133,7 @@ public partial class DevCenterdata default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -991,9 +1194,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1035,9 +1238,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1091,7 +1294,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1109,13 +1312,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1167,11 +1370,12 @@ public partial class DevCenterdata } } - /// Gets a Dev Box + /// Gets a customization group. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. + /// A customization group name. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1180,9 +1384,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetCustomizationGroup(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1194,6 +1398,8 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(userId) + "/devboxes/" + global::System.Uri.EscapeDataString(devBoxName) + + "/customizationGroups/" + + global::System.Uri.EscapeDataString(customizationGroupName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1207,11 +1413,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetDevBoxByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetCustomizationGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a Dev Box + /// Gets a customization group. /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). @@ -1222,24 +1428,25 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUserViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetCustomizationGroupViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/customizationGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; var devBoxName = _match.Groups["devBoxName"].Value; + var customizationGroupName = _match.Groups["customizationGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" @@ -1248,6 +1455,8 @@ public partial class DevCenterdata + userId + "/devboxes/" + devBoxName + + "/customizationGroups/" + + customizationGroupName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1261,11 +1470,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetDevBoxByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetCustomizationGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1275,7 +1484,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetCustomizationGroup_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1293,13 +1502,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1315,18 +1524,19 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. + /// A customization group name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetCustomizationGroup_Validate(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1343,13 +1553,20 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(customizationGroupName),customizationGroupName); + await eventListener.AssertMinimumLength(nameof(customizationGroupName),customizationGroupName,3); + await eventListener.AssertMaximumLength(nameof(customizationGroupName),customizationGroupName,63); + await eventListener.AssertRegEx(nameof(customizationGroupName),customizationGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets a pool + /// Gets the log for a customization task. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// A customization group name. + /// A customization task ID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1358,9 +1575,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetPool(string endpoint, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetCustomizationTaskLog(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, string customizationTaskId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1368,8 +1585,14 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/pools/" - + global::System.Uri.EscapeDataString(poolName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/customizationGroups/" + + global::System.Uri.EscapeDataString(customizationGroupName) + + "/logs/" + + global::System.Uri.EscapeDataString(customizationTaskId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1383,11 +1606,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetPool_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetCustomizationTaskLog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a pool + /// Gets the log for a customization task. /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). @@ -1398,29 +1621,38 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetPoolViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetCustomizationTaskLogViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/customizationGroups/(?[^/]+)/logs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}/logs/{customizationTaskId}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var poolName = _match.Groups["poolName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + var customizationGroupName = _match.Groups["customizationGroupName"].Value; + var customizationTaskId = _match.Groups["customizationTaskId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/pools/" - + poolName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + "/customizationGroups/" + + customizationGroupName + + "/logs/" + + customizationTaskId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1434,11 +1666,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetPool_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetCustomizationTaskLog_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1448,7 +1680,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetCustomizationTaskLog_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1466,13 +1698,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStreamAsync()); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response); break; } } @@ -1488,17 +1720,20 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// A customization group name. + /// A customization task ID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetPool_Validate(string endpoint, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetCustomizationTaskLog_Validate(string endpoint, string projectName, string userId, string devBoxName, string customizationGroupName, string customizationTaskId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1507,14 +1742,26 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(poolName),poolName); - await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); - await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); - await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(customizationGroupName),customizationGroupName); + await eventListener.AssertMinimumLength(nameof(customizationGroupName),customizationGroupName,3); + await eventListener.AssertMaximumLength(nameof(customizationGroupName),customizationGroupName,63); + await eventListener.AssertRegEx(nameof(customizationGroupName),customizationGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(customizationTaskId),customizationTaskId); + await eventListener.AssertMinimumLength(nameof(customizationTaskId),customizationTaskId,36); + await eventListener.AssertMaximumLength(nameof(customizationTaskId),customizationTaskId,36); + await eventListener.AssertRegEx(nameof(customizationTaskId),customizationTaskId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$"); } } - /// Gets RDP Connection info + /// Gets a Dev Box /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. @@ -1527,9 +1774,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1541,7 +1788,6 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(userId) + "/devboxes/" + global::System.Uri.EscapeDataString(devBoxName) - + "/remoteConnection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1555,11 +1801,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetRemoteConnection_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetDevBoxByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets RDP Connection info + /// Gets a Dev Box /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). @@ -1570,18 +1816,18 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnectionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUserViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/remoteConnection$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}'"); } // replace URI parameters with values from identity @@ -1596,7 +1842,6 @@ public partial class DevCenterdata + userId + "/devboxes/" + devBoxName - + "/remoteConnection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1610,11 +1855,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetRemoteConnection_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetDevBoxByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1624,7 +1869,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1642,13 +1887,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.RemoteConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1664,8 +1909,8 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. @@ -1675,7 +1920,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetDevBoxByUser_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1695,11 +1940,12 @@ public partial class DevCenterdata } } - /// Gets a schedule. + /// Gets an operation on a Dev Box. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. - /// The name of a schedule. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// The id of the operation on a Dev Box. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1708,9 +1954,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool(string endpoint, string projectName, string poolName, string scheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetOperation(string endpoint, string projectName, string userId, string devBoxName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1718,10 +1964,12 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/pools/" - + global::System.Uri.EscapeDataString(poolName) - + "/schedules/" - + global::System.Uri.EscapeDataString(scheduleName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/operations/" + + global::System.Uri.EscapeDataString(operationId) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1735,11 +1983,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetScheduleByPool_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetOperation_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a schedule. + /// Gets an operation on a Dev Box. /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). @@ -1750,32 +1998,35 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPoolViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetOperationViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)/schedules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/operations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations/{operationId}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var poolName = _match.Groups["poolName"].Value; - var scheduleName = _match.Groups["scheduleName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + var operationId = _match.Groups["operationId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/pools/" - + poolName - + "/schedules/" - + scheduleName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + "/operations/" + + operationId + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1789,11 +2040,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesGetScheduleByPool_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetOperation_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1803,7 +2054,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetOperation_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1821,13 +2072,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1843,18 +2094,19 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. - /// The name of a schedule. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// The id of the operation on a Dev Box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool_Validate(string endpoint, string projectName, string poolName, string scheduleName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetOperation_Validate(string endpoint, string projectName, string userId, string devBoxName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1863,19 +2115,25 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(poolName),poolName); - await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); - await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); - await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertMinimumLength(nameof(operationId),operationId,3); + await eventListener.AssertMaximumLength(nameof(operationId),operationId,63); + await eventListener.AssertRegEx(nameof(operationId),operationId,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists actions on a Dev Box. + /// Gets a pool /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. + /// The name of a pool of Dev Boxes. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1884,9 +2142,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListActions(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetPool(string endpoint, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1894,11 +2152,8 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/users/" - + global::System.Uri.EscapeDataString(userId) - + "/devboxes/" - + global::System.Uri.EscapeDataString(devBoxName) - + "/actions" + + "/pools/" + + global::System.Uri.EscapeDataString(poolName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1912,11 +2167,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListActions_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetPool_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists actions on a Dev Box. + /// Gets a pool /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). @@ -1927,33 +2182,29 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListActionsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetPoolViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/actions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var userId = _match.Groups["userId"].Value; - var devBoxName = _match.Groups["devBoxName"].Value; + var poolName = _match.Groups["poolName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/users/" - + userId - + "/devboxes/" - + devBoxName - + "/actions" + + "/pools/" + + poolName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1967,11 +2218,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListActions_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetPool_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1981,7 +2232,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListActions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1999,13 +2250,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Pool.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2021,18 +2272,17 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. + /// The name of a pool of Dev Boxes. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListActions_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetPool_Validate(string endpoint, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2041,64 +2291,18 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(userId),userId); - await eventListener.AssertMinimumLength(nameof(userId),userId,2); - await eventListener.AssertMaximumLength(nameof(userId),userId,36); - await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); - await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); - await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); - await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - } - } - - /// Lists Dev Boxes that the caller has access to in the DevCenter. - /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes(string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/devboxes" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevBoxesListAllDevBoxes_Call(request,onOk,onDefault,eventListener,sender); + await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists Dev Boxes in the Dev Center for a particular user. + /// Gets RDP Connection info /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2107,23 +2311,23 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser(string endpoint, string filter, int? top, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/users/" + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/devboxes" + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/remoteConnection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2135,15 +2339,13 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListAllDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetRemoteConnection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists Dev Boxes in the Dev Center for a particular user. + /// Gets RDP Connection info /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2152,33 +2354,35 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUserViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnectionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/users/(?[^/]+)/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/remoteConnection$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/users/{userId}/devboxes'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection'"); } // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/users/" + "/projects/" + + projectName + + "/users/" + userId - + "/devboxes" + + "/devboxes/" + + devBoxName + + "/remoteConnection" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2190,11 +2394,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListAllDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetRemoteConnection_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2204,7 +2408,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2222,13 +2426,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.RemoteConnection.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2244,35 +2448,42 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser_Validate(string endpoint, string filter, int? top, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetRemoteConnection_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); - await eventListener.AssertNotNull(nameof(filter),filter); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); await eventListener.AssertNotNull(nameof(userId),userId); await eventListener.AssertMinimumLength(nameof(userId),userId,2); await eventListener.AssertMaximumLength(nameof(userId),userId,36); await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists Dev Boxes that the caller has access to in the DevCenter. - /// + /// Gets a schedule. /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The DevCenter Project upon which to execute operations. + /// The name of a pool of Dev Boxes. + /// The name of a schedule. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2281,30 +2492,22 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool(string endpoint, string projectName, string poolName, string scheduleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/devboxes'"); - } - - // replace URI parameters with values from identity // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/devboxes" + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/pools/" + + global::System.Uri.EscapeDataString(poolName) + + "/schedules/" + + global::System.Uri.EscapeDataString(scheduleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2316,12 +2519,13 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListAllDevBoxes_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesGetScheduleByPool_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. + /// Gets a schedule. + /// + /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2330,31 +2534,84 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPoolViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters using( NoSynchronizationContext ) { - global::System.Net.Http.HttpResponseMessage _response = null; - try + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)/schedules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}'"); + } - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var poolName = _match.Groups["poolName"].Value; + var scheduleName = _match.Groups["scheduleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/pools/" + + poolName + + "/schedules/" + + scheduleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesGetScheduleByPool_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Schedule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2370,31 +2627,39 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get + /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The DevCenter Project upon which to execute operations. + /// The name of a pool of Dev Boxes. + /// The name of a schedule. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes_Validate(string endpoint, string filter, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesGetScheduleByPool_Validate(string endpoint, string projectName, string poolName, string scheduleName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); - await eventListener.AssertNotNull(nameof(filter),filter); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(scheduleName),scheduleName); } } - /// Lists Dev Boxes in the project for a particular user. + /// Lists actions on a Dev Box. /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2403,9 +2668,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser(string endpoint, string filter, int? top, string projectName, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListActions(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2415,13 +2680,11 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(projectName) + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/devboxes" + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/actions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2433,15 +2696,13 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListActions_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists Dev Boxes in the project for a particular user. + /// Lists actions on a Dev Box. /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2450,36 +2711,35 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUserViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListActionsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/actions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + "/users/" + userId - + "/devboxes" + + "/devboxes/" + + devBoxName + + "/actions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2491,11 +2751,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListActions_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2505,7 +2765,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListActions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2523,13 +2783,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2545,24 +2805,22 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser_Validate(string endpoint, string filter, int? top, string projectName, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListActions_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); - await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); @@ -2571,14 +2829,17 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(userId),userId,2); await eventListener.AssertMaximumLength(nameof(userId),userId,36); await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists available pools + /// Lists Dev Boxes that the caller has access to in the DevCenter. /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// An OData filter clause to apply to the operation. - /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2587,23 +2848,66 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListPools(string endpoint, int? top, string filter, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes(string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/pools" + "/devboxes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesListAllDevBoxes_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists Dev Boxes in the Dev Center for a particular user. + /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser(string endpoint, string filter, int? top, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2615,15 +2919,15 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListPools_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListAllDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists available pools + /// Lists Dev Boxes in the Dev Center for a particular user. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2632,33 +2936,33 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListPoolsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUserViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/users/(?[^/]+)/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools'"); + throw new global::System.Exception("Invalid identity for URI '/users/{userId}/devboxes'"); } // replace URI parameters with values from identity - var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + projectName - + "/pools" + "/users/" + + userId + + "/devboxes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) - + "&" + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2670,11 +2974,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListPools_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListAllDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2684,7 +2988,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListPools_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2702,13 +3006,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.PoolListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2724,36 +3028,35 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// An OData filter clause to apply to the operation. - /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListPools_Validate(string endpoint, int? top, string filter, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesByUser_Validate(string endpoint, string filter, int? top, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); await eventListener.AssertNotNull(nameof(filter),filter); - await eventListener.AssertNotNull(nameof(projectName),projectName); - await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); - await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); - await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); } } - /// Lists available schedules for a pool. + /// Lists Dev Boxes that the caller has access to in the DevCenter. + /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// An OData filter clause to apply to the operation. - /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2762,25 +3065,30 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool(string endpoint, int? top, string filter, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxesViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/devboxes'"); + } + + // replace URI parameters with values from identity // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/pools/" - + global::System.Uri.EscapeDataString(poolName) - + "/schedules" + "/devboxes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) - + "&" + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2792,15 +3100,12 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesListSchedulesByPool_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListAllDevBoxes_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists available schedules for a pool. - /// - /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// An OData filter clause to apply to the operation. + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2809,62 +3114,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPoolViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)/schedules$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}/schedules'"); - } - - // replace URI parameters with values from identity - var projectName = _match.Groups["projectName"].Value; - var poolName = _match.Groups["poolName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + projectName - + "/pools/" - + poolName - + "/schedules" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) - + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DevBoxesListSchedulesByPool_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2882,13 +3132,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ScheduleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2904,40 +3154,34 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// An OData filter clause to apply to the operation. - /// The DevCenter Project upon which to execute operations. - /// The name of a pool of Dev Boxes. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool_Validate(string endpoint, int? top, string filter, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListAllDevBoxes_Validate(string endpoint, string filter, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); await eventListener.AssertNotNull(nameof(filter),filter); - await eventListener.AssertNotNull(nameof(projectName),projectName); - await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); - await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); - await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(poolName),poolName); - await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); - await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); - await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Restarts a Dev Box + /// + /// Lists customization groups on the Dev Box. Listed customization groups exclude task information unless specified via the + /// include parameter. + /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. + /// Optional query parameter to specify what properties should be included in the response. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2946,9 +3190,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesRestartDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListCustomizationGroups(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[] include, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2960,27 +3204,33 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(userId) + "/devboxes/" + global::System.Uri.EscapeDataString(devBoxName) - + ":restart" + + "/customizationGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null != include && include.Length > 0 ? "include=" + global::System.Uri.EscapeDataString(global::System.Linq.Enumerable.Aggregate(include, (current, each) => current + "," + ( global::System.Uri.EscapeDataString(null == each ? global::System.String.Empty : each.ToString()) ))) : global::System.String.Empty) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesRestartDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListCustomizationGroups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Restarts a Dev Box + /// + /// Lists customization groups on the Dev Box. Listed customization groups exclude task information unless specified via the + /// include parameter. + /// /// /// The DevCenter-specific URI to operate on. + /// Optional query parameter to specify what properties should be included in the response. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2989,18 +3239,18 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesRestartDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListCustomizationGroupsViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[] include, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):restart$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/customizationGroups$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups'"); } // replace URI parameters with values from identity @@ -3015,25 +3265,27 @@ public partial class DevCenterdata + userId + "/devboxes/" + devBoxName - + ":restart" + + "/customizationGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null != include && include.Length > 0 ? "include=" + global::System.Uri.EscapeDataString(global::System.Linq.Enumerable.Aggregate(include, (current, each) => current + "," + ( global::System.Uri.EscapeDataString(null == each ? global::System.String.Empty : each.ToString()) ))) : global::System.String.Empty) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesRestartDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListCustomizationGroups_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3043,7 +3295,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesRestartDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListCustomizationGroups_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3054,106 +3306,6 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: operation-location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3161,13 +3313,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3183,18 +3335,19 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. + /// Optional query parameter to specify what properties should be included in the response. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesRestartDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListCustomizationGroups_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[] include, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3211,16 +3364,21 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + if (include != null ) { + for (int __i = 0; __i < include.Length; __i++) { + await eventListener.AssertEnum($"include[{__i}]",include[__i],@"tasks"); + } + } } } - /// Skips an occurrence of an action. + /// Lists Dev Boxes in the project for a particular user. /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. - /// The name of an action that will take place on a Dev Box. - /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3228,9 +3386,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesSkipAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser(string endpoint, string filter, int? top, string projectName, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3240,32 +3398,34 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(projectName) + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/devboxes/" - + global::System.Uri.EscapeDataString(devBoxName) - + "/actions/" - + global::System.Uri.EscapeDataString(actionName) - + ":skip" + + "/devboxes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); + await this.DevBoxesListDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Skips an occurrence of an action. + /// Lists Dev Boxes in the project for a particular user. /// /// The DevCenter-specific URI to operate on. - /// a delegate that is called when the remote service returns 204 (NoContent). + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3273,56 +3433,54 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesSkipActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUserViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/actions/(?[^/]+):skip$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; - var devBoxName = _match.Groups["devBoxName"].Value; - var actionName = _match.Groups["actionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + "/users/" + userId - + "/devboxes/" - + devBoxName - + "/actions/" - + actionName - + ":skip" + + "/devboxes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); + await this.DevBoxesListDevBoxesByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3330,7 +3488,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesSkipAction_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3345,16 +3503,16 @@ public partial class DevCenterdata switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.NoContent: + case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3370,23 +3528,24 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. - /// The name of an action that will take place on a Dev Box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesSkipAction_Validate(string endpoint, string projectName, string userId, string devBoxName, string actionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListDevBoxesByUser_Validate(string endpoint, string filter, int? top, string projectName, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); @@ -3395,19 +3554,13 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(userId),userId,2); await eventListener.AssertMaximumLength(nameof(userId),userId,36); await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); - await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); - await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); - await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(actionName),actionName); - await eventListener.AssertMinimumLength(nameof(actionName),actionName,3); - await eventListener.AssertMaximumLength(nameof(actionName),actionName,63); - await eventListener.AssertRegEx(nameof(actionName),actionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Starts a Dev Box + /// Lists operations on the Dev Box which have occurred within the past 90 days. /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. @@ -3419,9 +3572,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesStartDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListOperations(string endpoint, int? top, string filter, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3433,27 +3586,33 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(userId) + "/devboxes/" + global::System.Uri.EscapeDataString(devBoxName) - + ":start" + + "/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesStartDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListOperations_Call(request,onOk,onDefault,eventListener,sender); } } - /// Starts a Dev Box + /// Lists operations on the Dev Box which have occurred within the past 90 days. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3462,18 +3621,18 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesStartDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListOperationsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):start$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations'"); } // replace URI parameters with values from identity @@ -3488,25 +3647,29 @@ public partial class DevCenterdata + userId + "/devboxes/" + devBoxName - + ":start" + + "/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesStartDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListOperations_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3516,7 +3679,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesStartDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListOperations_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3527,106 +3690,6 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: operation-location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3634,13 +3697,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3656,10 +3719,12 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// The name of a Dev Box. @@ -3667,11 +3732,12 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesStartDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListOperations_Validate(string endpoint, int? top, string filter, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); @@ -3687,12 +3753,11 @@ public partial class DevCenterdata } } - /// Stops a Dev Box + /// Lists available pools /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. - /// Optional parameter to hibernate the dev box. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3701,9 +3766,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesStopDevBox(string endpoint, string projectName, string userId, string devBoxName, bool? hibernate, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListPools(string endpoint, int? top, string filter, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3711,34 +3776,33 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/users/" - + global::System.Uri.EscapeDataString(userId) - + "/devboxes/" - + global::System.Uri.EscapeDataString(devBoxName) - + ":stop" + + "/pools" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == hibernate ? global::System.String.Empty : "hibernate=" + global::System.Uri.EscapeDataString(hibernate.ToString())) + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesStopDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListPools_Call(request,onOk,onDefault,eventListener,sender); } } - /// Stops a Dev Box + /// Lists available pools /// /// The DevCenter-specific URI to operate on. - /// Optional parameter to hibernate the dev box. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3747,53 +3811,49 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevBoxesStopDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, bool? hibernate, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListPoolsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):stop$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var userId = _match.Groups["userId"].Value; - var devBoxName = _match.Groups["devBoxName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/users/" - + userId - + "/devboxes/" - + devBoxName - + ":stop" + + "/pools" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == hibernate ? global::System.String.Empty : "hibernate=" + global::System.Uri.EscapeDataString(hibernate.ToString())) + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevBoxesStopDevBox_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListPools_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3803,7 +3863,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesStopDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListPools_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3814,170 +3874,67 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: operation-location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.PoolListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of a Dev Box. - /// Optional parameter to hibernate the dev box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevBoxesStopDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, bool? hibernate, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListPools_Validate(string endpoint, int? top, string filter, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(userId),userId); - await eventListener.AssertMinimumLength(nameof(userId),userId,2); - await eventListener.AssertMaximumLength(nameof(userId),userId,36); - await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); - await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); - await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); - await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets a project. + /// + /// Lists all schedules within a pool that are configured by your project administrator. + /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. + /// The name of a pool of Dev Boxes. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3986,9 +3943,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCenterGetProject(string endpoint, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool(string endpoint, int? top, string filter, string projectName, string poolName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3996,8 +3953,15 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) + + "/pools/" + + global::System.Uri.EscapeDataString(poolName) + + "/schedules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4009,13 +3973,17 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCenterGetProject_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListSchedulesByPool_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets a project. + /// + /// Lists all schedules within a pool that are configured by your project administrator. + /// /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4024,28 +3992,36 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCenterGetProjectViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPoolViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/pools/(?[^/]+)/schedules$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/pools/{poolName}/schedules'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; + var poolName = _match.Groups["poolName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + + "/pools/" + + poolName + + "/schedules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4057,11 +4033,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCenterGetProject_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListSchedulesByPool_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4071,7 +4047,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCenterGetProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4089,13 +4065,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4111,31 +4087,42 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. + /// The name of a pool of Dev Boxes. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCenterGetProject_Validate(string endpoint, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByPool_Validate(string endpoint, int? top, string filter, string projectName, string poolName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); - await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,62}$"); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(poolName),poolName); + await eventListener.AssertMinimumLength(nameof(poolName),poolName,3); + await eventListener.AssertMaximumLength(nameof(poolName),poolName,63); + await eventListener.AssertRegEx(nameof(poolName),poolName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists all projects. + /// + /// Lists all schedules within a project that are configured by your project administrator. + /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4144,21 +4131,23 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCenterListProjects(string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByProject(string endpoint, int? top, string filter, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects" + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/schedules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4170,15 +4159,17 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCenterListProjects_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListSchedulesByProject_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all projects. + /// + /// Lists all schedules within a project that are configured by your project administrator. + /// /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4187,30 +4178,33 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DevCenterListProjectsViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesListSchedulesByProjectViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/schedules$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/schedules'"); } // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects" + "/projects/" + + projectName + + "/schedules" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) - + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4222,11 +4216,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DevCenterListProjects_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesListSchedulesByProject_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4236,7 +4230,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCenterListProjects_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4254,13 +4248,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4276,31 +4270,37 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. - /// An OData filter clause to apply to the operation. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DevCenterListProjects_Validate(string endpoint, string filter, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesListSchedulesByProject_Validate(string endpoint, int? top, string filter, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); await eventListener.AssertNotNull(nameof(filter),filter); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Creates or updates an environment. + /// + /// Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation. + /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. - /// Represents an environment. + /// The name of a Dev Box. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4309,9 +4309,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesRepairDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4321,8 +4321,9 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(projectName) + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/environments/" - + global::System.Uri.EscapeDataString(environmentName) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + ":repair" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4331,23 +4332,20 @@ public partial class DevCenterdata // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsCreateOrReplaceEnvironment_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesRepairDevBox_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates an environment. + /// + /// Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation. + /// /// /// The DevCenter-specific URI to operate on. - /// Represents an environment. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4356,32 +4354,33 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironmentViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesRepairDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):repair$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; - var environmentName = _match.Groups["environmentName"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + "/users/" + userId - + "/environments/" - + environmentName + + "/devboxes/" + + devBoxName + + ":repair" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4390,22 +4389,16 @@ public partial class DevCenterdata // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsCreateOrReplaceEnvironment_Call(request,onOk,onDefault,eventListener,sender); + await this.DevBoxesRepairDevBox_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4415,7 +4408,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesRepairDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4428,7 +4421,8 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: original-uri + // declared final-state-via: operation-location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4511,16 +4505,19 @@ public partial class DevCenterdata continue; } // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4529,13 +4526,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4551,19 +4548,18 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. - /// Represents an environment. + /// The name of a Dev Box. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DevBoxesRepairDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4576,22 +4572,19 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(userId),userId,2); await eventListener.AssertMaximumLength(nameof(userId),userId,36); await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(environmentName),environmentName); - await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); - await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); - await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Deletes an environment and all its associated resources + /// Restarts a Dev Box /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. + /// The name of a Dev Box. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4599,9 +4592,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesRestartDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4611,8 +4604,9 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(projectName) + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/environments/" - + global::System.Uri.EscapeDataString(environmentName) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + ":restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4621,20 +4615,19 @@ public partial class DevCenterdata // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsDeleteEnvironment_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DevBoxesRestartDevBox_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes an environment and all its associated resources + /// Restarts a Dev Box /// /// The DevCenter-specific URI to operate on. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4642,32 +4635,33 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironmentViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DevBoxesRestartDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):restart$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; - var environmentName = _match.Groups["environmentName"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + "/users/" + userId - + "/environments/" - + environmentName + + "/devboxes/" + + devBoxName + + ":restart" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4676,19 +4670,18 @@ public partial class DevCenterdata // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsDeleteEnvironment_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DevBoxesRestartDevBox_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4696,7 +4689,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DevBoxesRestartDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4709,7 +4702,7 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: operation-location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -4772,41 +4765,3883 @@ public partial class DevCenterdata // we're done polling. break; - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); - } - } + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesRestartDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Skips an occurrence of an action. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// The name of an action that will take place on a Dev Box. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesSkipAction(string endpoint, string projectName, string userId, string devBoxName, string actionName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + "/actions/" + + global::System.Uri.EscapeDataString(actionName) + + ":skip" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Skips an occurrence of an action. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesSkipActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+)/actions/(?[^/]+):skip$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + var actionName = _match.Groups["actionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + "/actions/" + + actionName + + ":skip" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesSkipAction_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// The name of an action that will take place on a Dev Box. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesSkipAction_Validate(string endpoint, string projectName, string userId, string devBoxName, string actionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(actionName),actionName); + await eventListener.AssertMinimumLength(nameof(actionName),actionName,3); + await eventListener.AssertMaximumLength(nameof(actionName),actionName,63); + await eventListener.AssertRegEx(nameof(actionName),actionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Starts a Dev Box + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesStartDevBox(string endpoint, string projectName, string userId, string devBoxName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + ":start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesStartDevBox_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Starts a Dev Box + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesStartDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):start$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + ":start" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesStartDevBox_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesStartDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: operation-location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesStartDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Stops a Dev Box + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// Optional parameter to hibernate the dev box. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesStopDevBox(string endpoint, string projectName, string userId, string devBoxName, bool? hibernate, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/devboxes/" + + global::System.Uri.EscapeDataString(devBoxName) + + ":stop" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == hibernate ? global::System.String.Empty : "hibernate=" + global::System.Uri.EscapeDataString(hibernate.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesStopDevBox_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Stops a Dev Box + /// + /// The DevCenter-specific URI to operate on. + /// Optional parameter to hibernate the dev box. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevBoxesStopDevBoxViaIdentity(global::System.String viaIdentity, string endpoint, bool? hibernate, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/devboxes/(?[^/]+):stop$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var devBoxName = _match.Groups["devBoxName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/devboxes/" + + devBoxName + + ":stop" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == hibernate ? global::System.String.Empty : "hibernate=" + global::System.Uri.EscapeDataString(hibernate.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevBoxesStopDevBox_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesStopDevBox_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: operation-location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of a Dev Box. + /// Optional parameter to hibernate the dev box. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevBoxesStopDevBox_Validate(string endpoint, string projectName, string userId, string devBoxName, bool? hibernate, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(devBoxName),devBoxName); + await eventListener.AssertMinimumLength(nameof(devBoxName),devBoxName,3); + await eventListener.AssertMaximumLength(nameof(devBoxName),devBoxName,63); + await eventListener.AssertRegEx(nameof(devBoxName),devBoxName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets a project. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCenterGetProject(string endpoint, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCenterGetProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a project. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCenterGetProjectViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCenterGetProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCenterGetProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Project.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCenterGetProject_Validate(string endpoint, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-]{2,62}$"); + } + } + + /// Lists all projects. + /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCenterListProjects(string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCenterListProjects_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all projects. + /// + /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DevCenterListProjectsViaIdentity(global::System.String viaIdentity, string endpoint, string filter, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects'"); + } + + // replace URI parameters with values from identity + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DevCenterListProjects_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCenterListProjects_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ProjectListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// An OData filter clause to apply to the operation. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DevCenterListProjects_Validate(string endpoint, string filter, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); + } + } + + /// Creates or updates an environment. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// Represents an environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsCreateOrReplaceEnvironment_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates an environment. + /// + /// The DevCenter-specific URI to operate on. + /// Represents an environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironmentViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsCreateOrReplaceEnvironment_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: original-uri + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// Represents an environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsCreateOrReplaceEnvironment_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delays the occurrence of an action. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. + /// The time to delay the Environment action until. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsDelayAction(string endpoint, string projectName, string userId, string environmentName, string actionName, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/actions/" + + global::System.Uri.EscapeDataString(actionName) + + ":delay" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + "until=" + until.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsDelayAction_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Delays the occurrence of an action. + /// + /// The DevCenter-specific URI to operate on. + /// The time to delay the Environment action until. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsDelayActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.DateTime until, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/actions/(?[^/]+):delay$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:delay'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + var actionName = _match.Groups["actionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/actions/" + + actionName + + ":delay" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + "until=" + until.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsDelayAction_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsDelayAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. + /// The time to delay the Environment action until. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsDelayAction_Validate(string endpoint, string projectName, string userId, string environmentName, string actionName, global::System.DateTime until, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(actionName),actionName); + await eventListener.AssertMinimumLength(nameof(actionName),actionName,3); + await eventListener.AssertMaximumLength(nameof(actionName),actionName,63); + await eventListener.AssertRegEx(nameof(actionName),actionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Deletes an environment and all its associated resources + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsDeleteEnvironment_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes an environment and all its associated resources + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironmentViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsDeleteEnvironment_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Retrieve a specific environment action. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetAction(string endpoint, string projectName, string userId, string environmentName, string actionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/actions/" + + global::System.Uri.EscapeDataString(actionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetAction_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Retrieve a specific environment action. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/actions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + var actionName = _match.Groups["actionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/actions/" + + actionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetAction_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetAction_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentAction.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetAction_Validate(string endpoint, string projectName, string userId, string environmentName, string actionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(actionName),actionName); + await eventListener.AssertMinimumLength(nameof(actionName),actionName,3); + await eventListener.AssertMaximumLength(nameof(actionName),actionName,63); + await eventListener.AssertRegEx(nameof(actionName),actionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets the specified catalog within the project + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetCatalog(string endpoint, string projectName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetCatalog_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the specified catalog within the project + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetCatalogViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/catalogs/" + + catalogName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetCatalog_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetCatalog_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetCatalog_Validate(string endpoint, string projectName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets an environment + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetEnvironmentByUser_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets an environment + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUserViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetEnvironmentByUser_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Get an environment definition from a catalog. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// The name of the environment definition + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition(string endpoint, string projectName, string catalogName, string definitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/environmentDefinitions/" + + global::System.Uri.EscapeDataString(definitionName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetEnvironmentDefinition_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get an environment definition from a catalog. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinitionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var definitionName = _match.Groups["definitionName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/catalogs/" + + catalogName + + "/environmentDefinitions/" + + definitionName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetEnvironmentDefinition_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// The name of the environment definition + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition_Validate(string endpoint, string projectName, string catalogName, string definitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(definitionName),definitionName); + await eventListener.AssertMinimumLength(nameof(definitionName),definitionName,3); + await eventListener.AssertMaximumLength(nameof(definitionName),definitionName,63); + await eventListener.AssertRegEx(nameof(definitionName),definitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets the logs for an operation on an environment. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The id of the operation on an environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetLogsByOperation(string endpoint, string projectName, string userId, string environmentName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/operations/" + + global::System.Uri.EscapeDataString(operationId) + + "/logs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetLogsByOperation_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets the logs for an operation on an environment. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetLogsByOperationViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/operations/(?[^/]+)/logs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + var operationId = _match.Groups["operationId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/operations/" + + operationId + + "/logs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetLogsByOperation_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetLogsByOperation_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStreamAsync()); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The id of the operation on an environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetLogsByOperation_Validate(string endpoint, string projectName, string userId, string environmentName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertMinimumLength(nameof(operationId),operationId,3); + await eventListener.AssertMaximumLength(nameof(operationId),operationId,63); + await eventListener.AssertRegEx(nameof(operationId),operationId,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets an environment action result. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The id of the operation on an environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetOperation(string endpoint, string projectName, string userId, string environmentName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/operations/" + + global::System.Uri.EscapeDataString(operationId) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetOperation_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets an environment action result. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetOperationViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/operations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + var operationId = _match.Groups["operationId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/operations/" + + operationId + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetOperation_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetOperation_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The id of the operation on an environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetOperation_Validate(string endpoint, string projectName, string userId, string environmentName, string operationId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(operationId),operationId); + await eventListener.AssertMinimumLength(nameof(operationId),operationId,3); + await eventListener.AssertMaximumLength(nameof(operationId),operationId,63); + await eventListener.AssertRegEx(nameof(operationId),operationId,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Gets Outputs from the environment + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetOutputs(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/outputs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetOutputs_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets Outputs from the environment + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsGetOutputsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/outputs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/outputs'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/outputs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsGetOutputs_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetOutputs_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputs1.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsGetOutputs_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Get all scheduled actions for a user within an environment. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListActions(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/actions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListActions_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Get all scheduled actions for a user within an environment. + /// + /// The DevCenter-specific URI to operate on. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListActionsViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/actions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/actions'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/users/" + + userId + + "/environments/" + + environmentName + + "/actions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListActions_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListActions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentActionsListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListActions_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Lists all of the catalogs available for a project. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/catalogs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListCatalogsByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all of the catalogs available for a project. + /// + /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProjectViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/catalogs" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListCatalogsByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CatalogListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Lists all environment definitions available within a catalog. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The name of the catalog + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog(string endpoint, string projectName, int? top, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/environmentDefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListEnvironmentDefinitionsByCatalog_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all environment definitions available within a catalog. + /// + /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalogViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/catalogs/" + + catalogName + + "/environmentDefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListEnvironmentDefinitionsByCatalog_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. + /// + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The name of the catalog + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog_Validate(string endpoint, string projectName, int? top, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(projectName),projectName); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + } + } + + /// Lists all environment definitions available for a project. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/environmentDefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListEnvironmentDefinitionsByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists all environment definitions available for a project. + /// + /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProjectViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environmentDefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environmentDefinitions'"); + } + + // replace URI parameters with values from identity + var projectName = _match.Groups["projectName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + projectName + + "/environmentDefinitions" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - // drop the old response - _response?.Dispose(); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListEnvironmentDefinitionsByProject_Call(request,onOk,onDefault,eventListener,sender); + } + } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - } + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -4814,19 +8649,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4842,18 +8671,17 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsDeleteEnvironment_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4862,21 +8690,13 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(userId),userId); - await eventListener.AssertMinimumLength(nameof(userId),userId,2); - await eventListener.AssertMaximumLength(nameof(userId),userId,36); - await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(environmentName),environmentName); - await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); - await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); - await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets the specified catalog within the project + /// Lists all environment types configured for a project. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of the catalog + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4885,9 +8705,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsGetCatalog(string endpoint, string projectName, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4895,10 +8715,11 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/catalogs/" - + global::System.Uri.EscapeDataString(catalogName) + + "/environmentTypes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4910,13 +8731,14 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsGetCatalog_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListEnvironmentTypes_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets the specified catalog within the project + /// Lists all environment types configured for a project. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4925,31 +8747,31 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsGetCatalogViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypesViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environmentTypes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environmentTypes'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var catalogName = _match.Groups["catalogName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/catalogs/" - + catalogName + + "/environmentTypes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4961,11 +8783,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsGetCatalog_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListEnvironmentTypes_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4975,7 +8797,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetCatalog_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4993,13 +8815,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Catalog.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5015,17 +8837,17 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The name of the catalog + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetCatalog_Validate(string endpoint, string projectName, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5034,18 +8856,56 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(catalogName),catalogName); - await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); - await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); - await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Gets an environment + /// Lists the environments for a project. + /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The DevCenter Project upon which to execute operations. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironments(string endpoint, int? top, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/environments" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.EnvironmentsListEnvironments_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists the environments for a project and user. /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5054,9 +8914,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser(string endpoint, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser(string endpoint, int? top, string projectName, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5066,10 +8926,11 @@ public partial class DevCenterdata + global::System.Uri.EscapeDataString(projectName) + "/users/" + global::System.Uri.EscapeDataString(userId) - + "/environments/" - + global::System.Uri.EscapeDataString(environmentName) + + "/environments" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5081,13 +8942,14 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsGetEnvironmentByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListEnvironmentsByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets an environment + /// Lists the environments for a project and user. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5096,34 +8958,34 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUserViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUserViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; var userId = _match.Groups["userId"].Value; - var environmentName = _match.Groups["environmentName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName + "/users/" + userId - + "/environments/" - + environmentName + + "/environments" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5135,11 +8997,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsGetEnvironmentByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListEnvironmentsByUser_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5149,7 +9011,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5167,13 +9029,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5189,84 +9051,37 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you + /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - /// The name of the environment. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentByUser_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser_Validate(string endpoint, int? top, string projectName, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); await eventListener.AssertNotNull(nameof(projectName),projectName); - await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); - await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); - await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(userId),userId); - await eventListener.AssertMinimumLength(nameof(userId),userId,2); - await eventListener.AssertMaximumLength(nameof(userId),userId,36); - await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); - await eventListener.AssertNotNull(nameof(environmentName),environmentName); - await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); - await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); - await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - } - } - - /// Get an environment definition from a catalog. - /// The DevCenter-specific URI to operate on. - /// The DevCenter Project upon which to execute operations. - /// The name of the catalog - /// The name of the environment definition - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition(string endpoint, string projectName, string catalogName, string definitionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/catalogs/" - + global::System.Uri.EscapeDataString(catalogName) - + "/environmentDefinitions/" - + global::System.Uri.EscapeDataString(definitionName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.EnvironmentsGetEnvironmentDefinition_Call(request,onOk,onDefault,eventListener,sender); + await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); + await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); + await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); } } - /// Get an environment definition from a catalog. + /// Lists the environments for a project. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5275,34 +9090,31 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinitionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environments$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environments'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var catalogName = _match.Groups["catalogName"].Value; - var definitionName = _match.Groups["definitionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/catalogs/" - + catalogName - + "/environmentDefinitions/" - + definitionName + + "/environments" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5314,13 +9126,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsGetEnvironmentDefinition_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListEnvironments_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5330,7 +9140,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironments_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5348,13 +9158,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5370,18 +9180,17 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. + /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. - /// The name of the catalog - /// The name of the environment definition /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsGetEnvironmentDefinition_Validate(string endpoint, string projectName, string catalogName, string definitionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironments_Validate(string endpoint, int? top, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5390,21 +9199,16 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(catalogName),catalogName); - await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); - await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); - await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(definitionName),definitionName); - await eventListener.AssertMinimumLength(nameof(definitionName),definitionName,3); - await eventListener.AssertMaximumLength(nameof(definitionName),definitionName,63); - await eventListener.AssertRegEx(nameof(definitionName),definitionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists all of the catalogs available for a project. + /// Lists operations on the environment which have occurred within the past 90 days /// The DevCenter-specific URI to operate on. - /// The DevCenter Project upon which to execute operations. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5413,9 +9217,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListOperations(string endpoint, int? top, string filter, string projectName, string userId, string environmentName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5423,11 +9227,17 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/catalogs" + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5439,14 +9249,15 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListCatalogsByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListOperations_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all of the catalogs available for a project. + /// Lists operations on the environment which have occurred within the past 90 days /// /// The DevCenter-specific URI to operate on. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5455,31 +9266,39 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProjectViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsListOperationsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/operations'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/catalogs" + + "/users/" + + userId + + "/environments/" + + environmentName + + "/operations" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5491,11 +9310,11 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListCatalogsByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsListOperations_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5505,7 +9324,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsListOperations_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5523,13 +9342,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CatalogListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5545,33 +9364,46 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The DevCenter-specific URI to operate on. - /// The DevCenter Project upon which to execute operations. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListCatalogsByProject_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsListOperations_Validate(string endpoint, int? top, string filter, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists all environment definitions available within a catalog. + /// Partially updates an environment /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// The name of the catalog + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// Updatable environment properties. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5580,9 +9412,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog(string endpoint, string projectName, int? top, string catalogName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsPatchEnvironment(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5590,32 +9422,35 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/catalogs/" - + global::System.Uri.EscapeDataString(catalogName) - + "/environmentDefinitions" + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentDefinitionsByCatalog_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsPatchEnvironment_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all environment definitions available within a catalog. + /// Partially updates an environment /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// Updatable environment properties. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5624,52 +9459,54 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalogViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsPatchEnvironmentViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)/environmentDefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var catalogName = _match.Groups["catalogName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/catalogs/" - + catalogName - + "/environmentDefinitions" + + "/users/" + + userId + + "/environments/" + + environmentName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentDefinitionsByCatalog_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsPatchEnvironment_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5679,7 +9516,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsPatchEnvironment_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5697,13 +9534,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) .ReadHeaders(_response.Headers))); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5719,18 +9556,19 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// The name of the catalog + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// Updatable environment properties. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByCatalog_Validate(string endpoint, string projectName, int? top, string catalogName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsPatchEnvironment_Validate(string endpoint, string projectName, string userId, string environmentName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5739,18 +9577,26 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(catalogName),catalogName); - await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); - await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); - await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Lists all environment definitions available for a project. + /// Skips an occurrence of an action. /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// a delegate that is called when the remote service returns 200 (OK). + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5758,9 +9604,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsSkipAction(string endpoint, string projectName, string userId, string environmentName, string actionName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5768,31 +9614,34 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/environmentDefinitions" + + "/users/" + + global::System.Uri.EscapeDataString(userId) + + "/environments/" + + global::System.Uri.EscapeDataString(environmentName) + + "/actions/" + + global::System.Uri.EscapeDataString(actionName) + + ":skip" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentDefinitionsByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Lists all environment definitions available for a project. + /// Skips an occurrence of an action. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5800,51 +9649,56 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProjectViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task EnvironmentsSkipActionViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environmentDefinitions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments/(?[^/]+)/actions/(?[^/]+):skip$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environmentDefinitions'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:skip'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; + var userId = _match.Groups["userId"].Value; + var environmentName = _match.Groups["environmentName"].Value; + var actionName = _match.Groups["actionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/environmentDefinitions" + + "/users/" + + userId + + "/environments/" + + environmentName + + "/actions/" + + actionName + + ":skip" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentDefinitionsByProject_Call(request,onOk,onDefault,eventListener,sender); + await this.EnvironmentsSkipAction_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5852,7 +9706,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task EnvironmentsSkipAction_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5867,16 +9721,16 @@ public partial class DevCenterdata switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.OK: + case global::System.Net.HttpStatusCode.NoContent: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onNoContent(_response); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5892,17 +9746,19 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The DevCenter-specific URI to operate on. /// The DevCenter Project upon which to execute operations. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// The name of the environment. + /// The name of an action that will take place on an Environment. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentDefinitionsByProject_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task EnvironmentsSkipAction_Validate(string endpoint, string projectName, string userId, string environmentName, string actionName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5911,13 +9767,28 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(userId),userId); + await eventListener.AssertMinimumLength(nameof(userId),userId,2); + await eventListener.AssertMaximumLength(nameof(userId),userId,36); + await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); + await eventListener.AssertNotNull(nameof(environmentName),environmentName); + await eventListener.AssertMinimumLength(nameof(environmentName),environmentName,3); + await eventListener.AssertMaximumLength(nameof(environmentName),environmentName,63); + await eventListener.AssertRegEx(nameof(environmentName),environmentName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(actionName),actionName); + await eventListener.AssertMinimumLength(nameof(actionName),actionName,3); + await eventListener.AssertMaximumLength(nameof(actionName),actionName,63); + await eventListener.AssertRegEx(nameof(actionName),actionName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists all environment types configured for a project. + /// Gets a customization task. /// The DevCenter-specific URI to operate on. - /// The DevCenter Project upon which to execute operations. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// A customization task name. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5926,9 +9797,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes(string endpoint, string projectName, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGetCustomizationTaskDefinition(string endpoint, int? top, string filter, string projectName, string catalogName, string taskName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5936,11 +9807,16 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/environmentTypes" + + "/catalogs/" + + global::System.Uri.EscapeDataString(catalogName) + + "/customizationTasks/" + + global::System.Uri.EscapeDataString(taskName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -5952,14 +9828,15 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentTypes_Call(request,onOk,onDefault,eventListener,sender); + await this.ProjectsGetCustomizationTaskDefinition_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all environment types configured for a project. + /// Gets a customization task. /// /// The DevCenter-specific URI to operate on. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5968,31 +9845,38 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypesViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsGetCustomizationTaskDefinitionViaIdentity(global::System.String viaIdentity, string endpoint, int? top, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environmentTypes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/catalogs/(?[^/]+)/customizationTasks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environmentTypes'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/catalogs/{catalogName}/customizationTasks/{taskName}'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; + var catalogName = _match.Groups["catalogName"].Value; + var taskName = _match.Groups["taskName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/environmentTypes" + + "/catalogs/" + + catalogName + + "/customizationTasks/" + + taskName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + "&" + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6004,11 +9888,13 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentTypes_Call(request,onOk,onDefault,eventListener,sender); + await this.ProjectsGetCustomizationTaskDefinition_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -6018,7 +9904,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsGetCustomizationTaskDefinition_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6036,13 +9922,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinition.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6058,75 +9944,44 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The DevCenter-specific URI to operate on. - /// The DevCenter Project upon which to execute operations. /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. + /// The DevCenter Project upon which to execute operations. + /// The name of the catalog + /// A customization task name. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentTypes_Validate(string endpoint, string projectName, int? top, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsGetCustomizationTaskDefinition_Validate(string endpoint, int? top, string filter, string projectName, string catalogName, string taskName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(catalogName),catalogName); + await eventListener.AssertMinimumLength(nameof(catalogName),catalogName,3); + await eventListener.AssertMaximumLength(nameof(catalogName),catalogName,63); + await eventListener.AssertRegEx(nameof(catalogName),catalogName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(taskName),taskName); + await eventListener.AssertMinimumLength(nameof(taskName),taskName,3); + await eventListener.AssertMaximumLength(nameof(taskName),taskName,63); + await eventListener.AssertRegEx(nameof(taskName),taskName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); } } - /// Lists the environments for a project. - /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// The DevCenter Project upon which to execute operations. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironments(string endpoint, int? top, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-04-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/projects/" - + global::System.Uri.EscapeDataString(projectName) - + "/environments" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.EnvironmentsListEnvironments_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Lists the environments for a project and user. + /// Lists all customization tasks available to the project. /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6135,9 +9990,9 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser(string endpoint, int? top, string projectName, string userId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListCustomizationTaskDefinitions(string endpoint, string filter, string projectName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6145,13 +10000,11 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + global::System.Uri.EscapeDataString(projectName) - + "/users/" - + global::System.Uri.EscapeDataString(userId) - + "/environments" + + "/customizationTasks" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6163,14 +10016,14 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentsByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.ProjectsListCustomizationTaskDefinitions_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists the environments for a project and user. + /// Lists all customization tasks available to the project. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6179,34 +10032,31 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUserViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsListCustomizationTaskDefinitionsViaIdentity(global::System.String viaIdentity, string endpoint, string filter, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/users/(?[^/]+)/environments$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/customizationTasks$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/users/{userId}/environments'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/customizationTasks'"); } // replace URI parameters with values from identity var projectName = _match.Groups["projectName"].Value; - var userId = _match.Groups["userId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/users/" - + userId - + "/environments" + + "/customizationTasks" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) + + (string.IsNullOrEmpty(filter) ? global::System.String.Empty : "filter=" + global::System.Uri.EscapeDataString(filter)) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -6218,11 +10068,13 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironmentsByUser_Call(request,onOk,onDefault,eventListener,sender); + await this.ProjectsListCustomizationTaskDefinitions_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -6232,7 +10084,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsListCustomizationTaskDefinitions_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6250,13 +10102,13 @@ public partial class DevCenterdata case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6272,38 +10124,76 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// An OData filter clause to apply to the operation. /// The DevCenter Project upon which to execute operations. - /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsByUser_Validate(string endpoint, int? top, string projectName, string userId, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsListCustomizationTaskDefinitions_Validate(string endpoint, string filter, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(endpoint),endpoint); + await eventListener.AssertNotNull(nameof(filter),filter); await eventListener.AssertNotNull(nameof(projectName),projectName); await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); - await eventListener.AssertNotNull(nameof(userId),userId); - await eventListener.AssertMinimumLength(nameof(userId),userId,2); - await eventListener.AssertMaximumLength(nameof(userId),userId,36); - await eventListener.AssertRegEx(nameof(userId),userId,@"^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$"); } } - /// Lists the environments for a project. + /// Validates a list of customization tasks. + /// The DevCenter-specific URI to operate on. + /// The DevCenter Project upon which to execute operations. + /// Customization tasks to validate. + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task ProjectsValidateCustomizationTasks(string endpoint, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-10-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/projects/" + + global::System.Uri.EscapeDataString(projectName) + + "/customizationTasks:validateGroup" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.ProjectsValidateCustomizationTasks_Call(request,onDefault,eventListener,sender); + } + } + + /// Validates a list of customization tasks. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. - /// a delegate that is called when the remote service returns 200 (OK). + /// Customization tasks to validate. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -6311,18 +10201,18 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task EnvironmentsListEnvironmentsViaIdentity(global::System.String viaIdentity, string endpoint, int? top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ProjectsValidateCustomizationTasksViaIdentity(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-04-01"; + var apiVersion = @"2023-10-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/environments$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/projects/(?[^/]+)/customizationTasks:validateGroup$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/environments'"); + throw new global::System.Exception("Invalid identity for URI '/projects/{projectName}/customizationTasks:validateGroup'"); } // replace URI parameters with values from identity @@ -6331,29 +10221,30 @@ public partial class DevCenterdata var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/projects/" + projectName - + "/environments" + + "/customizationTasks:validateGroup" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == top ? global::System.String.Empty : "top=" + global::System.Uri.EscapeDataString(top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"{endpoint}{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.EnvironmentsListEnvironments_Call(request,onOk,onDefault,eventListener,sender); + await this.ProjectsValidateCustomizationTasks_Call(request,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -6361,7 +10252,7 @@ public partial class DevCenterdata /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironments_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.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ProjectsValidateCustomizationTasks_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6372,20 +10263,114 @@ public partial class DevCenterdata await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: operation-location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6401,17 +10386,17 @@ public partial class DevCenterdata } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The DevCenter-specific URI to operate on. - /// The maximum number of resources to return from the operation. Example: 'top=10'. /// The DevCenter Project upon which to execute operations. + /// Customization tasks to validate. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task EnvironmentsListEnvironments_Validate(string endpoint, int? top, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ProjectsValidateCustomizationTasks_Validate(string endpoint, string projectName, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList body, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6420,6 +10405,8 @@ public partial class DevCenterdata await eventListener.AssertMinimumLength(nameof(projectName),projectName,3); await eventListener.AssertMaximumLength(nameof(projectName),projectName,63); await eventListener.AssertRegEx(nameof(projectName),projectName,@"^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs deleted file mode 100644 index fd05c00df52a..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.PowerShell.cs +++ /dev/null @@ -1,144 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// A catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] - public partial class Catalog - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Catalog(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogInternal)this).Name, 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 Catalog(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogInternal)this).Name, 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.DevCenterdata.Models.Api20230401.ICatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Catalog(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.DevCenterdata.Models.Api20230401.ICatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Catalog(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.DevCenterdata.Models.Api20230401.ICatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A catalog. - [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] - public partial interface ICatalog - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs deleted file mode 100644 index 0b952083aa97..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CatalogTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICatalog ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Catalog.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Catalog.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Catalog.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.cs deleted file mode 100644 index 05f37ab582c4..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.cs +++ /dev/null @@ -1,51 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A catalog. - public partial class Catalog : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogInternal - { - - /// Backing field for property. - private string _name; - - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public Catalog() - { - - } - } - /// A catalog. - public partial interface ICatalog : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the catalog.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// A catalog. - internal partial interface ICatalogInternal - - { - /// Name of the catalog. - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.json.cs deleted file mode 100644 index 92f73ec68334..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Catalog.json.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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A catalog. - public partial class Catalog - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal Catalog(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Catalog(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs deleted file mode 100644 index ccf75f49e636..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Results of the catalog list operation. - [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] - public partial class CatalogListResult - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CatalogListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CatalogTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).NextLink, 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 CatalogListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CatalogTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal)this).NextLink, 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.DevCenterdata.Models.Api20230401.ICatalogListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CatalogListResult(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.DevCenterdata.Models.Api20230401.ICatalogListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CatalogListResult(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.DevCenterdata.Models.Api20230401.ICatalogListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the catalog list operation. - [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] - public partial interface ICatalogListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs deleted file mode 100644 index 53bda7cf72e5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CatalogListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICatalogListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CatalogListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CatalogListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CatalogListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs deleted file mode 100644 index 7b8ff186b7ff..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the catalog list operation. - public partial class CatalogListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public CatalogListResult() - { - - } - } - /// Results of the catalog list operation. - public partial interface ICatalogListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[] Value { get; set; } - - } - /// Results of the catalog list operation. - internal partial interface ICatalogListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs deleted file mode 100644 index 95e5a455337e..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CatalogListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the catalog list operation. - public partial class CatalogListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal CatalogListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICatalog) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Catalog.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.DevCenterdata.Models.Api20230401.ICatalogListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalogListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CatalogListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs deleted file mode 100644 index 304abe32eb17..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// An error response from the service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial class CloudError - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudError(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CloudError(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - 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.DevCenterdata.Models.Api20230401.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudError(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.DevCenterdata.Models.Api20230401.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudError(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.DevCenterdata.Models.Api20230401.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An error response from the service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] - public partial interface ICloudError - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs deleted file mode 100644 index 20ba1888f349..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICloudError ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudError).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudError.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudError.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.cs deleted file mode 100644 index bec387806884..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.cs +++ /dev/null @@ -1,120 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An error response from the service. - public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal - { - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code = value ; } - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody _error; - - /// Error body - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set => this._error = value; } - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message = value ; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set { {_error = value;} } } - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target = value ?? null; } - - /// Creates an new instance. - public CloudError() - { - - } - } - /// An error response from the service. - public partial interface ICloudError : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// An error response from the service. - internal partial interface ICloudErrorInternal - - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// Error body - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.json.cs deleted file mode 100644 index aaf488470303..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudError.json.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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An error response from the service. - public partial class CloudError - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody.FromJson(__jsonError) : Error;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudError. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudError. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CloudError(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs deleted file mode 100644 index 91e0ba08bc38..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.PowerShell.cs +++ /dev/null @@ -1,168 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// An error response from the service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] - public partial class CloudErrorBody - { - - /// - /// 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); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal CloudErrorBody(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal CloudErrorBody(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - 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.DevCenterdata.Models.Api20230401.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudErrorBody(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.DevCenterdata.Models.Api20230401.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudErrorBody(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.DevCenterdata.Models.Api20230401.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An error response from the service. - [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] - public partial interface ICloudErrorBody - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs deleted file mode 100644 index 6169b0e6a41c..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class CloudErrorBodyTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICloudErrorBody ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return CloudErrorBody.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return CloudErrorBody.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return CloudErrorBody.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs deleted file mode 100644 index b2640dcd6cb4..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.cs +++ /dev/null @@ -1,120 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An error response from the service. - public partial class CloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal - { - - /// Backing field for property. - private string _code; - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Code { get => this._code; set => this._code = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] _detail; - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } - - /// Backing field for property. - private string _message; - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Message { get => this._message; set => this._message = value; } - - /// Backing field for property. - private string _target; - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Target { get => this._target; set => this._target = value; } - - /// Creates an new instance. - public CloudErrorBody() - { - - } - } - /// An error response from the service. - public partial interface ICloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// An error response from the service. - internal partial interface ICloudErrorBodyInternal - - { - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs deleted file mode 100644 index c8c170e6b1f3..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/CloudErrorBody.json.cs +++ /dev/null @@ -1,122 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An error response from the service. - public partial class CloudErrorBody - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_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.DevCenterdata.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.DevCenterdata.Models.Api20230401.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CloudErrorBody(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); - AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); - if (null != this._detail) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._detail ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("details",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.PowerShell.cs deleted file mode 100644 index ec2c6a29f528..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.PowerShell.cs +++ /dev/null @@ -1,384 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// A Dev Box - [System.ComponentModel.TypeConverter(typeof(DevBoxTypeConverter))] - public partial class DevBox - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBox DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBox(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.DevCenterdata.Models.Api20230401.IDevBox DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBox(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBox(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("HardwareProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfileTypeConverter.ConvertFrom); - } - if (content.Contains("StorageProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfileTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("ProjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProjectName = (string) content.GetValueForProperty("ProjectName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProjectName, global::System.Convert.ToString); - } - if (content.Contains("PoolName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PoolName, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ActionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ActionState = (string) content.GetValueForProperty("ActionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ActionState, global::System.Convert.ToString); - } - if (content.Contains("PowerState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState.CreateFrom); - } - if (content.Contains("UniqueId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).UniqueId, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); - } - if (content.Contains("User")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).User, global::System.Convert.ToString); - } - if (content.Contains("CreatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HardwareProfileSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); - } - if (content.Contains("HardwareProfileMemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StorageProfileOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReferenceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceName, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceVersion, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceOperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("ImageReferencePublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - if (content.Contains("HardwareProfileVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReferenceOSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("OSDiskSizeGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DevBox(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("HardwareProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfileTypeConverter.ConvertFrom); - } - if (content.Contains("StorageProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfileTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("ProjectName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProjectName = (string) content.GetValueForProperty("ProjectName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProjectName, global::System.Convert.ToString); - } - if (content.Contains("PoolName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PoolName, global::System.Convert.ToString); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ActionState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ActionState = (string) content.GetValueForProperty("ActionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ActionState, global::System.Convert.ToString); - } - if (content.Contains("PowerState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState.CreateFrom); - } - if (content.Contains("UniqueId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).UniqueId, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); - } - if (content.Contains("User")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).User, global::System.Convert.ToString); - } - if (content.Contains("CreatedTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HardwareProfileSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); - } - if (content.Contains("HardwareProfileMemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StorageProfileOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReferenceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceName, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceVersion, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceOperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("ImageReferencePublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - if (content.Contains("HardwareProfileVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReferenceOSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("OSDiskSizeGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBox FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A Dev Box - [System.ComponentModel.TypeConverter(typeof(DevBoxTypeConverter))] - public partial interface IDevBox - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.PowerShell.cs deleted file mode 100644 index 6571b1985ee4..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.PowerShell.cs +++ /dev/null @@ -1,184 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// An action which will take place on a Dev Box. - [System.ComponentModel.TypeConverter(typeof(DevBoxActionTypeConverter))] - public partial class DevBoxAction - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxAction(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.DevCenterdata.Models.Api20230401.IDevBoxAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxAction(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxAction(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Next")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextActionTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).ActionType, global::System.Convert.ToString); - } - if (content.Contains("SourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SourceId, global::System.Convert.ToString); - } - if (content.Contains("SuspendedUntil")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("SuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("NextScheduledTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).NextScheduledTime, (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 DevBoxAction(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Next")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextActionTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).ActionType, global::System.Convert.ToString); - } - if (content.Contains("SourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SourceId, global::System.Convert.ToString); - } - if (content.Contains("SuspendedUntil")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("SuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).SuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("NextScheduledTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)this).NextScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBoxAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An action which will take place on a Dev Box. - [System.ComponentModel.TypeConverter(typeof(DevBoxActionTypeConverter))] - public partial interface IDevBoxAction - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.cs deleted file mode 100644 index 4b3bc7f505ea..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.cs +++ /dev/null @@ -1,131 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An action which will take place on a Dev Box. - public partial class DevBoxAction : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal - { - - /// Backing field for property. - private string _actionType= @"Stop"; - - /// The action that will be taken. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string ActionType { get => this._actionType; } - - /// Internal Acessors for ActionType - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } - - /// Internal Acessors for Next - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal.Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextAction()); set { {_next = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction _next; - - /// Details about the next run of this action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextAction()); set => this._next = value; } - - /// The time the action will be triggered (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public global::System.DateTime? NextScheduledTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)Next).ScheduledTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)Next).ScheduledTime = value ?? default(global::System.DateTime); } - - /// Backing field for property. - private string _sourceId; - - /// The id of the resource which triggered this action - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string SourceId { get => this._sourceId; set => this._sourceId = value; } - - /// Backing field for property. - private global::System.DateTime? _suspendedUntil; - - /// The earliest time that the action could occur (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public global::System.DateTime? SuspendedUntil { get => this._suspendedUntil; set => this._suspendedUntil = value; } - - /// Creates an new instance. - public DevBoxAction() - { - - } - } - /// An action which will take place on a Dev Box. - public partial interface IDevBoxAction : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The action that will be taken. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = true, - Description = @"The action that will be taken.", - SerializedName = @"actionType", - PossibleTypes = new [] { typeof(string) })] - string ActionType { get; } - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the action.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The time the action will be triggered (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The time the action will be triggered (UTC).", - SerializedName = @"scheduledTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? NextScheduledTime { get; set; } - /// The id of the resource which triggered this action - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The id of the resource which triggered this action", - SerializedName = @"sourceId", - PossibleTypes = new [] { typeof(string) })] - string SourceId { get; set; } - /// The earliest time that the action could occur (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The earliest time that the action could occur (UTC).", - SerializedName = @"suspendedUntil", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SuspendedUntil { get; set; } - - } - /// An action which will take place on a Dev Box. - internal partial interface IDevBoxActionInternal - - { - /// The action that will be taken. - string ActionType { get; set; } - /// The name of the action. - string Name { get; set; } - /// Details about the next run of this action. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction Next { get; set; } - /// The time the action will be triggered (UTC). - global::System.DateTime? NextScheduledTime { get; set; } - /// The id of the resource which triggered this action - string SourceId { get; set; } - /// The earliest time that the action could occur (UTC). - global::System.DateTime? SuspendedUntil { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.PowerShell.cs deleted file mode 100644 index 2ca09cf89a78..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.PowerShell.cs +++ /dev/null @@ -1,250 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The action delay result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionDelayResultTypeConverter))] - public partial class DevBoxActionDelayResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxActionDelayResult(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.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxActionDelayResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxActionDelayResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionTypeConverter.ConvertFrom); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Result")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus.CreateFrom); - } - if (content.Contains("ActionNext")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionNext = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction) content.GetValueForProperty("ActionNext",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionNext, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextActionTypeConverter.ConvertFrom); - } - if (content.Contains("ActionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionName, global::System.Convert.ToString); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionType, global::System.Convert.ToString); - } - if (content.Contains("ActionSourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSourceId = (string) content.GetValueForProperty("ActionSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSourceId, global::System.Convert.ToString); - } - if (content.Contains("ActionSuspendedUntil")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("ActionSuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextScheduledTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).NextScheduledTime, (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 DevBoxActionDelayResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Action")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionTypeConverter.ConvertFrom); - } - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Result")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus.CreateFrom); - } - if (content.Contains("ActionNext")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionNext = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction) content.GetValueForProperty("ActionNext",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionNext, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextActionTypeConverter.ConvertFrom); - } - if (content.Contains("ActionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionName, global::System.Convert.ToString); - } - if (content.Contains("ActionType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionType, global::System.Convert.ToString); - } - if (content.Contains("ActionSourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSourceId = (string) content.GetValueForProperty("ActionSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSourceId, global::System.Convert.ToString); - } - if (content.Contains("ActionSuspendedUntil")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("ActionSuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextScheduledTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal)this).NextScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The action delay result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionDelayResultTypeConverter))] - public partial interface IDevBoxActionDelayResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.cs deleted file mode 100644 index 78d8a32bc3ac..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.cs +++ /dev/null @@ -1,244 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The action delay result - public partial class DevBoxActionDelayResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction _action; - - /// The delayed action - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction()); set => this._action = value; } - - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).Name = value ?? null; } - - /// The id of the resource which triggered this action - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ActionSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).SourceId = value ?? null; } - - /// The earliest time that the action could occur (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public global::System.DateTime? ActionSuspendedUntil { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).SuspendedUntil; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).SuspendedUntil = value ?? default(global::System.DateTime); } - - /// The action that will be taken. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).ActionType; } - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code = value ?? null; } - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody _error; - - /// Information about the error that occurred. Only populated on error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set => this._error = value; } - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message = value ?? null; } - - /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction()); set { {_action = value;} } } - - /// Internal Acessors for ActionNext - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal.ActionNext { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).Next; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).Next = value; } - - /// Internal Acessors for ActionType - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal.ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).ActionType = value; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set { {_error = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// The time the action will be triggered (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public global::System.DateTime? NextScheduledTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).NextScheduledTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionInternal)Action).NextScheduledTime = value ?? default(global::System.DateTime); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus _result; - - /// The result of the delay operation on this action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get => this._result; set => this._result = value; } - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target = value ?? null; } - - /// Creates an new instance. - public DevBoxActionDelayResult() - { - - } - } - /// The action delay result - public partial interface IDevBoxActionDelayResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the action.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string ActionName { get; set; } - /// The id of the resource which triggered this action - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The id of the resource which triggered this action", - SerializedName = @"sourceId", - PossibleTypes = new [] { typeof(string) })] - string ActionSourceId { get; set; } - /// The earliest time that the action could occur (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The earliest time that the action could occur (UTC).", - SerializedName = @"suspendedUntil", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ActionSuspendedUntil { get; set; } - /// The action that will be taken. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The action that will be taken.", - SerializedName = @"actionType", - PossibleTypes = new [] { typeof(string) })] - string ActionType { get; } - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// The name of the action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the action.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The time the action will be triggered (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The time the action will be triggered (UTC).", - SerializedName = @"scheduledTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? NextScheduledTime { get; set; } - /// The result of the delay operation on this action. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The result of the delay operation on this action.", - SerializedName = @"result", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - - } - /// The action delay result - internal partial interface IDevBoxActionDelayResultInternal - - { - /// The delayed action - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction Action { get; set; } - /// The name of the action. - string ActionName { get; set; } - /// Details about the next run of this action. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction ActionNext { get; set; } - /// The id of the resource which triggered this action - string ActionSourceId { get; set; } - /// The earliest time that the action could occur (UTC). - global::System.DateTime? ActionSuspendedUntil { get; set; } - /// The action that will be taken. - string ActionType { get; set; } - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// Information about the error that occurred. Only populated on error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// The name of the action. - string Name { get; set; } - /// The time the action will be triggered (UTC). - global::System.DateTime? NextScheduledTime { get; set; } - /// The result of the delay operation on this action. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.PowerShell.cs deleted file mode 100644 index 103e8df8a540..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The actions list result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionsDelayMultipleResultTypeConverter))] - public partial class DevBoxActionsDelayMultipleResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxActionsDelayMultipleResult(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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxActionsDelayMultipleResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxActionsDelayMultipleResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionDelayResultTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).NextLink, 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 DevBoxActionsDelayMultipleResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionDelayResultTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The actions list result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionsDelayMultipleResultTypeConverter))] - public partial interface IDevBoxActionsDelayMultipleResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.PowerShell.cs deleted file mode 100644 index 3d69cbb3bcc3..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The actions list result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionsListResultTypeConverter))] - public partial class DevBoxActionsListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxActionsListResult(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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxActionsListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxActionsListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).NextLink, 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 DevBoxActionsListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The actions list result - [System.ComponentModel.TypeConverter(typeof(DevBoxActionsListResultTypeConverter))] - public partial interface IDevBoxActionsListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.PowerShell.cs deleted file mode 100644 index 37e36e9c6bee..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The Dev Box list result - [System.ComponentModel.TypeConverter(typeof(DevBoxListResultTypeConverter))] - public partial class DevBoxListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IDevBoxListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DevBoxListResult(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.DevCenterdata.Models.Api20230401.IDevBoxListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DevBoxListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DevBoxListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).NextLink, 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 DevBoxListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IDevBoxListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The Dev Box list result - [System.ComponentModel.TypeConverter(typeof(DevBoxListResultTypeConverter))] - public partial interface IDevBoxListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.PowerShell.cs deleted file mode 100644 index 37e4b796934b..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.PowerShell.cs +++ /dev/null @@ -1,248 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Properties of an environment. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeConverter))] - public partial class Environment - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironment DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Environment(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.DevCenterdata.Models.Api20230401.IEnvironment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Environment(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Environment(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("User")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).User, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CatalogName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).CatalogName, global::System.Convert.ToString); - } - if (content.Contains("DefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).DefinitionName, global::System.Convert.ToString); - } - if (content.Contains("OperationLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).OperationLocation, global::System.Convert.ToString); - } - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Environment(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("User")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).User, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("ResourceGroupId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).ResourceGroupId, global::System.Convert.ToString); - } - if (content.Contains("CatalogName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).CatalogName, global::System.Convert.ToString); - } - if (content.Contains("DefinitionName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).DefinitionName, global::System.Convert.ToString); - } - if (content.Contains("OperationLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).OperationLocation, global::System.Convert.ToString); - } - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Message, global::System.Convert.ToString); - } - if (content.Contains("Target")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Target, global::System.Convert.ToString); - } - if (content.Contains("Detail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBodyTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an environment. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeConverter))] - public partial interface IEnvironment - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.cs deleted file mode 100644 index cb1e62641ff5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.cs +++ /dev/null @@ -1,300 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Properties of an environment. - public partial class Environment : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties __environmentUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdateProperties(); - - /// Backing field for property. - private string _catalogName; - - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string CatalogName { get => this._catalogName; set => this._catalogName = value; } - - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code = value ?? null; } - - /// Backing field for property. - private string _definitionName; - - /// Name of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string DefinitionName { get => this._definitionName; set => this._definitionName = value; } - - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody _error; - - /// Provisioning error details. Populated only for error states. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); } - - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message = value ?? null; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set { {_error = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for ResourceGroupId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal.ResourceGroupId { get => this._resourceGroupId; set { {_resourceGroupId = value;} } } - - /// Internal Acessors for User - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal.User { get => this._user; set { {_user = value;} } } - - /// Backing field for property. - private string _name; - - /// Environment name. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _operationLocation; - - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string OperationLocation { get => this._operationLocation; set => this._operationLocation = value; } - - /// Parameters object for the environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)__environmentUpdateProperties).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)__environmentUpdateProperties).Parameter = value ?? null /* model class */; } - - /// Backing field for property. - private string _provisioningState; - - /// The provisioning state of the environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private string _resourceGroupId; - - /// The identifier of the resource group containing the environment's resources. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string ResourceGroupId { get => this._resourceGroupId; } - - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target = value ?? null; } - - /// Backing field for property. - private string _type; - - /// Environment type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Type { get => this._type; set => this._type = value; } - - /// Backing field for property. - private string _user; - - /// The AAD object id of the owner of this Environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string User { get => this._user; } - - /// Creates an new instance. - public Environment() - { - - } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Operation-Location", out var __operationLocationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentInternal)this).OperationLocation = System.Linq.Enumerable.FirstOrDefault(__operationLocationHeader0) is string __headerOperationLocationHeader0 ? __headerOperationLocationHeader0 : (string)null; - } - } - - /// 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.DevCenterdata.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__environmentUpdateProperties), __environmentUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__environmentUpdateProperties), __environmentUpdateProperties); - } - } - /// Properties of an environment. - public partial interface IEnvironment : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties - { - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the catalog.", - SerializedName = @"catalogName", - PossibleTypes = new [] { typeof(string) })] - string CatalogName { get; set; } - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// Name of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the environment definition.", - SerializedName = @"environmentDefinitionName", - PossibleTypes = new [] { typeof(string) })] - string DefinitionName { get; set; } - /// A list of additional details about the error. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A list of additional details about the error.", - SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A message describing the error, intended to be suitable for display in a user interface.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// Environment name. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Environment name.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Operation-Location", - PossibleTypes = new [] { typeof(string) })] - string OperationLocation { get; set; } - /// The provisioning state of the environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The provisioning state of the environment.", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - string ProvisioningState { get; } - /// The identifier of the resource group containing the environment's resources. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The identifier of the resource group containing the environment's resources.", - SerializedName = @"resourceGroupId", - PossibleTypes = new [] { typeof(string) })] - string ResourceGroupId { get; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The target of the particular error. For example, the name of the property in error.", - SerializedName = @"target", - PossibleTypes = new [] { typeof(string) })] - string Target { get; set; } - /// Environment type. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Environment type.", - SerializedName = @"environmentType", - PossibleTypes = new [] { typeof(string) })] - string Type { get; set; } - /// The AAD object id of the owner of this Environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The AAD object id of the owner of this Environment.", - SerializedName = @"user", - PossibleTypes = new [] { typeof(string) })] - string User { get; } - - } - /// Properties of an environment. - internal partial interface IEnvironmentInternal : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal - { - /// Name of the catalog. - string CatalogName { get; set; } - /// - /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - /// - string Code { get; set; } - /// Name of the environment definition. - string DefinitionName { get; set; } - /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } - /// Provisioning error details. Populated only for error states. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get; set; } - /// - /// A message describing the error, intended to be suitable for display in a user interface. - /// - string Message { get; set; } - /// Environment name. - string Name { get; set; } - - string OperationLocation { get; set; } - /// The provisioning state of the environment. - string ProvisioningState { get; set; } - /// The identifier of the resource group containing the environment's resources. - string ResourceGroupId { get; set; } - /// - /// The target of the particular error. For example, the name of the property in error. - /// - string Target { get; set; } - /// Environment type. - string Type { get; set; } - /// The AAD object id of the owner of this Environment. - string User { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.PowerShell.cs deleted file mode 100644 index 3ee8c97dbf5c..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.PowerShell.cs +++ /dev/null @@ -1,194 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// An environment definition. - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] - public partial class EnvironmentDefinition - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentDefinition(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentDefinition(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentDefinition(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("CatalogName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).CatalogName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); - } - if (content.Contains("ParametersSchema")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).ParametersSchema = (string) content.GetValueForProperty("ParametersSchema",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).ParametersSchema, global::System.Convert.ToString); - } - if (content.Contains("TemplatePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).TemplatePath, 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 EnvironmentDefinition(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("CatalogName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).CatalogName, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); - } - if (content.Contains("ParametersSchema")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).ParametersSchema = (string) content.GetValueForProperty("ParametersSchema",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).ParametersSchema, global::System.Convert.ToString); - } - if (content.Contains("TemplatePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal)this).TemplatePath, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// An environment definition. - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] - public partial interface IEnvironmentDefinition - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.TypeConverter.cs deleted file mode 100644 index 6bde12bf3e8f..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentDefinitionTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentDefinition.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentDefinition.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.cs deleted file mode 100644 index 2039ed2beb8f..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.cs +++ /dev/null @@ -1,153 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An environment definition. - public partial class EnvironmentDefinition : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionInternal - { - - /// Backing field for property. - private string _catalogName; - - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string CatalogName { get => this._catalogName; set => this._catalogName = value; } - - /// Backing field for property. - private string _description; - - /// A short description of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Description { get => this._description; set => this._description = value; } - - /// Backing field for property. - private string _id; - - /// The ID of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private string _name; - - /// Name of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[] _parameter; - - /// Input parameters passed to an environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[] Parameter { get => this._parameter; set => this._parameter = value; } - - /// Backing field for property. - private string _parametersSchema; - - /// JSON schema defining the parameters object passed to an environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string ParametersSchema { get => this._parametersSchema; set => this._parametersSchema = value; } - - /// Backing field for property. - private string _templatePath; - - /// Path to the Environment Definition entrypoint file. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string TemplatePath { get => this._templatePath; set => this._templatePath = value; } - - /// Creates an new instance. - public EnvironmentDefinition() - { - - } - } - /// An environment definition. - public partial interface IEnvironmentDefinition : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// Name of the catalog. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the catalog.", - SerializedName = @"catalogName", - PossibleTypes = new [] { typeof(string) })] - string CatalogName { get; set; } - /// A short description of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"A short description of the environment definition.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// The ID of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The ID of the environment definition.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// Name of the environment definition. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the environment definition.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Input parameters passed to an environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Input parameters passed to an environment.", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[] Parameter { get; set; } - /// JSON schema defining the parameters object passed to an environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"JSON schema defining the parameters object passed to an environment.", - SerializedName = @"parametersSchema", - PossibleTypes = new [] { typeof(string) })] - string ParametersSchema { get; set; } - /// Path to the Environment Definition entrypoint file. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Path to the Environment Definition entrypoint file.", - SerializedName = @"templatePath", - PossibleTypes = new [] { typeof(string) })] - string TemplatePath { get; set; } - - } - /// An environment definition. - internal partial interface IEnvironmentDefinitionInternal - - { - /// Name of the catalog. - string CatalogName { get; set; } - /// A short description of the environment definition. - string Description { get; set; } - /// The ID of the environment definition. - string Id { get; set; } - /// Name of the environment definition. - string Name { get; set; } - /// Input parameters passed to an environment. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter[] Parameter { get; set; } - /// JSON schema defining the parameters object passed to an environment. - string ParametersSchema { get; set; } - /// Path to the Environment Definition entrypoint file. - string TemplatePath { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.json.cs deleted file mode 100644 index e1f40a1c5f39..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinition.json.cs +++ /dev/null @@ -1,128 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// An environment definition. - public partial class EnvironmentDefinition - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentDefinition(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_catalogName = If( json?.PropertyT("catalogName"), out var __jsonCatalogName) ? (string)__jsonCatalogName : (string)CatalogName;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? If( __jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionParameter.FromJson(__u) )) ))() : null : Parameter;} - {_parametersSchema = If( json?.PropertyT("parametersSchema"), out var __jsonParametersSchema) ? (string)__jsonParametersSchema : (string)ParametersSchema;} - {_templatePath = If( json?.PropertyT("templatePath"), out var __jsonTemplatePath) ? (string)__jsonTemplatePath : (string)TemplatePath;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinition(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._catalogName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._catalogName.ToString()) : null, "catalogName" ,container.Add ); - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - if (null != this._parameter) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._parameter ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("parameters",__w); - } - AddIf( null != (((object)this._parametersSchema)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._parametersSchema.ToString()) : null, "parametersSchema" ,container.Add ); - AddIf( null != (((object)this._templatePath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._templatePath.ToString()) : null, "templatePath" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.PowerShell.cs deleted file mode 100644 index 417553ae1c80..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Results of the environment definition list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] - public partial class EnvironmentDefinitionListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentDefinitionListResult(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentDefinitionListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentDefinitionListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).NextLink, 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 EnvironmentDefinitionListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinitionTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the environment definition list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] - public partial interface IEnvironmentDefinitionListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.TypeConverter.cs deleted file mode 100644 index 4f966cebe204..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.TypeConverter.cs +++ /dev/null @@ -1,148 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentDefinitionListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentDefinitionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentDefinitionListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentDefinitionListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.cs deleted file mode 100644 index 84b7799de617..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the environment definition list operation. - public partial class EnvironmentDefinitionListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public EnvironmentDefinitionListResult() - { - - } - } - /// Results of the environment definition list operation. - public partial interface IEnvironmentDefinitionListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[] Value { get; set; } - - } - /// Results of the environment definition list operation. - internal partial interface IEnvironmentDefinitionListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.json.cs deleted file mode 100644 index e2fa3d321a44..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the environment definition list operation. - public partial class EnvironmentDefinitionListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentDefinitionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentDefinition.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinitionListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.PowerShell.cs deleted file mode 100644 index f858ae54b0c5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.PowerShell.cs +++ /dev/null @@ -1,202 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Properties of an Environment Definition parameter - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] - public partial class EnvironmentDefinitionParameter - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentDefinitionParameter(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentDefinitionParameter(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentDefinitionParameter(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Default")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Default, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType.CreateFrom); - } - if (content.Contains("ReadOnly")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Required")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Required = (bool) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Allowed")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, 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 EnvironmentDefinitionParameter(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("Default")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Default, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType.CreateFrom); - } - if (content.Contains("ReadOnly")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Required")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Required = (bool) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Allowed")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an Environment Definition parameter - [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] - public partial interface IEnvironmentDefinitionParameter - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.TypeConverter.cs deleted file mode 100644 index 790a10be521d..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.TypeConverter.cs +++ /dev/null @@ -1,148 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentDefinitionParameterTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentDefinitionParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentDefinitionParameter.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentDefinitionParameter.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.cs deleted file mode 100644 index 6345b53fd72b..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.cs +++ /dev/null @@ -1,182 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Properties of an Environment Definition parameter - public partial class EnvironmentDefinitionParameter : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameterInternal - { - - /// Backing field for property. - private string[] _allowed; - - /// An array of allowed values - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string[] Allowed { get => this._allowed; set => this._allowed = value; } - - /// Backing field for property. - private string _default; - - /// Default value of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Default { get => this._default; set => this._default = value; } - - /// Backing field for property. - private string _description; - - /// Description of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Description { get => this._description; set => this._description = value; } - - /// Backing field for property. - private string _id; - - /// Unique ID of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// Backing field for property. - private string _name; - - /// Display name of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private bool? _readOnly; - - /// - /// Whether or not this parameter is read-only. If true, default should have a value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public bool? ReadOnly { get => this._readOnly; set => this._readOnly = value; } - - /// Backing field for property. - private bool _required; - - /// Whether or not this parameter is required - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public bool Required { get => this._required; set => this._required = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType _type; - - /// - /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get => this._type; set => this._type = value; } - - /// Creates an new instance. - public EnvironmentDefinitionParameter() - { - - } - } - /// Properties of an Environment Definition parameter - public partial interface IEnvironmentDefinitionParameter : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// An array of allowed values - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"An array of allowed values", - SerializedName = @"allowed", - PossibleTypes = new [] { typeof(string) })] - string[] Allowed { get; set; } - /// Default value of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Default value of the parameter", - SerializedName = @"default", - PossibleTypes = new [] { typeof(string) })] - string Default { get; set; } - /// Description of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Description of the parameter", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// Unique ID of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Unique ID of the parameter", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// Display name of the parameter - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Display name of the parameter", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// - /// Whether or not this parameter is read-only. If true, default should have a value. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Whether or not this parameter is read-only. If true, default should have a value.", - SerializedName = @"readOnly", - PossibleTypes = new [] { typeof(bool) })] - bool? ReadOnly { get; set; } - /// Whether or not this parameter is required - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Whether or not this parameter is required", - SerializedName = @"required", - PossibleTypes = new [] { typeof(bool) })] - bool Required { get; set; } - /// - /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"A string of one of the basic JSON types (number, integer, array, object, boolean, string)", - SerializedName = @"type", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get; set; } - - } - /// Properties of an Environment Definition parameter - internal partial interface IEnvironmentDefinitionParameterInternal - - { - /// An array of allowed values - string[] Allowed { get; set; } - /// Default value of the parameter - string Default { get; set; } - /// Description of the parameter - string Description { get; set; } - /// Unique ID of the parameter - string Id { get; set; } - /// Display name of the parameter - string Name { get; set; } - /// - /// Whether or not this parameter is read-only. If true, default should have a value. - /// - bool? ReadOnly { get; set; } - /// Whether or not this parameter is required - bool Required { get; set; } - /// - /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.json.cs deleted file mode 100644 index e4a022645b02..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentDefinitionParameter.json.cs +++ /dev/null @@ -1,130 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Properties of an Environment Definition parameter - public partial class EnvironmentDefinitionParameter - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentDefinitionParameter(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_default = If( json?.PropertyT("default"), out var __jsonDefault) ? (string)__jsonDefault : (string)Default;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_readOnly = If( json?.PropertyT("readOnly"), out var __jsonReadOnly) ? (bool?)__jsonReadOnly : ReadOnly;} - {_required = If( json?.PropertyT("required"), out var __jsonRequired) ? (bool)__jsonRequired : Required;} - {_allowed = If( json?.PropertyT("allowed"), out var __jsonAllowed) ? If( __jsonAllowed as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Allowed;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinitionParameter(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - AddIf( null != (((object)this._default)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._default.ToString()) : null, "default" ,container.Add ); - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - AddIf( null != this._readOnly ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean((bool)this._readOnly) : null, "readOnly" ,container.Add ); - AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean(this._required), "required" ,container.Add ); - if (null != this._allowed) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._allowed ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("allowed",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.PowerShell.cs deleted file mode 100644 index 8e97bbdd6bb7..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Results of the environment list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentListResultTypeConverter))] - public partial class EnvironmentListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentListResult(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.DevCenterdata.Models.Api20230401.IEnvironmentListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).NextLink, 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 EnvironmentListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the environment list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentListResultTypeConverter))] - public partial interface IEnvironmentListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs deleted file mode 100644 index 3e5ceb7c3153..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.PowerShell.cs +++ /dev/null @@ -1,160 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Properties of an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] - public partial class EnvironmentType - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentType(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.DevCenterdata.Models.Api20230401.IEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentType(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentType(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnvironmentType(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DeploymentTargetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus.CreateFrom); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an environment type. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] - public partial interface IEnvironmentType - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs deleted file mode 100644 index 976f700f9e54..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentTypeTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentType ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentType.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentType.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentType.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs deleted file mode 100644 index b29cb78fca40..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.cs +++ /dev/null @@ -1,94 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Properties of an environment type. - public partial class EnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeInternal - { - - /// Backing field for property. - private string _deploymentTargetId; - - /// - /// Id of a subscription or management group that the environment type will be mapped to. The environment's resources will - /// be deployed into this subscription or management group. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string DeploymentTargetId { get => this._deploymentTargetId; set => this._deploymentTargetId = value; } - - /// Backing field for property. - private string _name; - - /// Name of the environment type - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus _status; - - /// Indicates whether this environment type is enabled for use in this project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get => this._status; set => this._status = value; } - - /// Creates an new instance. - public EnvironmentType() - { - - } - } - /// Properties of an environment type. - public partial interface IEnvironmentType : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// - /// Id of a subscription or management group that the environment type will be mapped to. The environment's resources will - /// be deployed into this subscription or management group. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group.", - SerializedName = @"deploymentTargetId", - PossibleTypes = new [] { typeof(string) })] - string DeploymentTargetId { get; set; } - /// Name of the environment type - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the environment type", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// Indicates whether this environment type is enabled for use in this project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Indicates whether this environment type is enabled for use in this project.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get; set; } - - } - /// Properties of an environment type. - internal partial interface IEnvironmentTypeInternal - - { - /// - /// Id of a subscription or management group that the environment type will be mapped to. The environment's resources will - /// be deployed into this subscription or management group. - /// - string DeploymentTargetId { get; set; } - /// Name of the environment type - string Name { get; set; } - /// Indicates whether this environment type is enabled for use in this project. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs deleted file mode 100644 index b183f3d07481..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentType.json.cs +++ /dev/null @@ -1,112 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Properties of an environment type. - public partial class EnvironmentType - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_deploymentTargetId = If( json?.PropertyT("deploymentTargetId"), out var __jsonDeploymentTargetId) ? (string)__jsonDeploymentTargetId : (string)DeploymentTargetId;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentType(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._deploymentTargetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._deploymentTargetId.ToString()) : null, "deploymentTargetId" ,container.Add ); - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs deleted file mode 100644 index 87352b277b80..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Result of the environment type list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] - public partial class EnvironmentTypeListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentTypeListResult(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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentTypeListResult(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentTypeListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink, 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 EnvironmentTypeListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentTypeTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Result of the environment type list operation. - [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] - public partial interface IEnvironmentTypeListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs deleted file mode 100644 index 498cb4b043ed..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class EnvironmentTypeListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return EnvironmentTypeListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return EnvironmentTypeListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return EnvironmentTypeListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs deleted file mode 100644 index dcb28fdf0516..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Result of the environment type list operation. - public partial class EnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public EnvironmentTypeListResult() - { - - } - } - /// Result of the environment type list operation. - public partial interface IEnvironmentTypeListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[] Value { get; set; } - - } - /// Result of the environment type list operation. - internal partial interface IEnvironmentTypeListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs deleted file mode 100644 index ec77967bb8b9..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentTypeListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Result of the environment type list operation. - public partial class EnvironmentTypeListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal EnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentType.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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentTypeListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.PowerShell.cs deleted file mode 100644 index 04abeec399cf..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.PowerShell.cs +++ /dev/null @@ -1,148 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// Properties of an environment. These properties can be updated after the resource has been created. - /// - [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesTypeConverter))] - public partial class EnvironmentUpdateProperties - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new EnvironmentUpdateProperties(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.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new EnvironmentUpdateProperties(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal EnvironmentUpdateProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal EnvironmentUpdateProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Parameter")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(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.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Properties of an environment. These properties can be updated after the resource has been created. - [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesTypeConverter))] - public partial interface IEnvironmentUpdateProperties - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.cs deleted file mode 100644 index fe9dd1f8e505..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.cs +++ /dev/null @@ -1,53 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// - /// Properties of an environment. These properties can be updated after the resource has been created. - /// - public partial class EnvironmentUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters _parameter; - - /// Parameters object for the environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParameters()); set => this._parameter = value; } - - /// Creates an new instance. - public EnvironmentUpdateProperties() - { - - } - } - /// Properties of an environment. These properties can be updated after the resource has been created. - public partial interface IEnvironmentUpdateProperties : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// Parameters object for the environment. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Parameters object for the environment.", - SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get; set; } - - } - /// Properties of an environment. These properties can be updated after the resource has been created. - internal partial interface IEnvironmentUpdatePropertiesInternal - - { - /// Parameters object for the environment. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.cs deleted file mode 100644 index 1554d6dc4cfa..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.cs +++ /dev/null @@ -1,35 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Parameters object for the environment. - public partial class EnvironmentUpdatePropertiesParameters : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParametersInternal - { - - /// Creates an new instance. - public EnvironmentUpdatePropertiesParameters() - { - - } - } - /// Parameters object for the environment. - public partial interface IEnvironmentUpdatePropertiesParameters : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray - { - - } - /// Parameters object for the environment. - internal partial interface IEnvironmentUpdatePropertiesParametersInternal - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.PowerShell.cs deleted file mode 100644 index d38455fc0e10..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.PowerShell.cs +++ /dev/null @@ -1,160 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Hardware specifications for the Dev Box. - [System.ComponentModel.TypeConverter(typeof(HardwareProfileTypeConverter))] - public partial class HardwareProfile - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IHardwareProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new HardwareProfile(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.DevCenterdata.Models.Api20230401.IHardwareProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new HardwareProfile(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.DevCenterdata.Models.Api20230401.IHardwareProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal HardwareProfile(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("VCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).VCpUs = (int?) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).VCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).MemoryGb = (int?) content.GetValueForProperty("MemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).MemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal HardwareProfile(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).SkuName, global::System.Convert.ToString); - } - if (content.Contains("VCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).VCpUs = (int?) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).VCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("MemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).MemoryGb = (int?) content.GetValueForProperty("MemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)this).MemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Hardware specifications for the Dev Box. - [System.ComponentModel.TypeConverter(typeof(HardwareProfileTypeConverter))] - public partial interface IHardwareProfile - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs deleted file mode 100644 index aaace43b9b4b..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Specifies information about the image used - [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] - public partial class ImageReference - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ImageReference(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.DevCenterdata.Models.Api20230401.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ImageReference(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.DevCenterdata.Models.Api20230401.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ImageReference(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("OperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OperatingSystem = (string) content.GetValueForProperty("OperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("OSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OSBuildNumber = (string) content.GetValueForProperty("OSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("PublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).PublishedDate, (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 ImageReference(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Version")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).Version, global::System.Convert.ToString); - } - if (content.Contains("OperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OperatingSystem = (string) content.GetValueForProperty("OperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("OSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OSBuildNumber = (string) content.GetValueForProperty("OSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).OSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("PublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)this).PublishedDate, (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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Specifies information about the image used - [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] - public partial interface IImageReference - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs deleted file mode 100644 index 01ebcfc0c91e..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ImageReferenceTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IImageReference ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ImageReference.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ImageReference.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ImageReference.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.cs deleted file mode 100644 index cc6bc9676683..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.cs +++ /dev/null @@ -1,134 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Specifies information about the image used - public partial class ImageReference : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal - { - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for OSBuildNumber - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal.OSBuildNumber { get => this._oSBuildNumber; set { {_oSBuildNumber = value;} } } - - /// Internal Acessors for OperatingSystem - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal.OperatingSystem { get => this._operatingSystem; set { {_operatingSystem = value;} } } - - /// Internal Acessors for PublishedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal.PublishedDate { get => this._publishedDate; set { {_publishedDate = value;} } } - - /// Internal Acessors for Version - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal.Version { get => this._version; set { {_version = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the image used. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _oSBuildNumber; - - /// The operating system build number of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string OSBuildNumber { get => this._oSBuildNumber; } - - /// Backing field for property. - private string _operatingSystem; - - /// The operating system of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string OperatingSystem { get => this._operatingSystem; } - - /// Backing field for property. - private global::System.DateTime? _publishedDate; - - /// The datetime that the backing image version was published. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public global::System.DateTime? PublishedDate { get => this._publishedDate; } - - /// Backing field for property. - private string _version; - - /// The version of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Version { get => this._version; } - - /// Creates an new instance. - public ImageReference() - { - - } - } - /// Specifies information about the image used - public partial interface IImageReference : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The name of the image used. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the image used.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// The operating system build number of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The operating system build number of the image.", - SerializedName = @"osBuildNumber", - PossibleTypes = new [] { typeof(string) })] - string OSBuildNumber { get; } - /// The operating system of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The operating system of the image.", - SerializedName = @"operatingSystem", - PossibleTypes = new [] { typeof(string) })] - string OperatingSystem { get; } - /// The datetime that the backing image version was published. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The datetime that the backing image version was published.", - SerializedName = @"publishedDate", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? PublishedDate { get; } - /// The version of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version of the image.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string Version { get; } - - } - /// Specifies information about the image used - internal partial interface IImageReferenceInternal - - { - /// The name of the image used. - string Name { get; set; } - /// The operating system build number of the image. - string OSBuildNumber { get; set; } - /// The operating system of the image. - string OperatingSystem { get; set; } - /// The datetime that the backing image version was published. - global::System.DateTime? PublishedDate { get; set; } - /// The version of the image. - string Version { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs deleted file mode 100644 index bdd2fcc7a81c..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ImageReference.json.cs +++ /dev/null @@ -1,131 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Specifies information about the image used - public partial class ImageReference - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ImageReference(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal ImageReference(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} - {_operatingSystem = If( json?.PropertyT("operatingSystem"), out var __jsonOperatingSystem) ? (string)__jsonOperatingSystem : (string)OperatingSystem;} - {_oSBuildNumber = If( json?.PropertyT("osBuildNumber"), out var __jsonOSBuildNumber) ? (string)__jsonOSBuildNumber : (string)OSBuildNumber;} - {_publishedDate = If( json?.PropertyT("publishedDate"), out var __jsonPublishedDate) ? global::System.DateTime.TryParse((string)__jsonPublishedDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonPublishedDateValue) ? __jsonPublishedDateValue : PublishedDate : PublishedDate;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._operatingSystem)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._operatingSystem.ToString()) : null, "operatingSystem" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != (((object)this._oSBuildNumber)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._oSBuildNumber.ToString()) : null, "osBuildNumber" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._publishedDate ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._publishedDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "publishedDate" ,container.Add ); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs deleted file mode 100644 index 0b24ce1ea022..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.PowerShell.cs +++ /dev/null @@ -1,232 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The current status of an async operation - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial class OperationStatus - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new OperationStatus(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.DevCenterdata.Models.Api20230401.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new OperationStatus(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.DevCenterdata.Models.Api20230401.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal OperationStatus(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("ResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PercentComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("OperationLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Message, 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 OperationStatus(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Error")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusErrorTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Status, global::System.Convert.ToString); - } - if (content.Contains("ResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); - } - if (content.Contains("StartTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndTime")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("PercentComplete")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); - } - if (content.Contains("OperationLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); - } - if (content.Contains("Code")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Code, global::System.Convert.ToString); - } - if (content.Contains("Message")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).Message, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The current status of an async operation - [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] - public partial interface IOperationStatus - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs deleted file mode 100644 index 9fb061767fc3..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class OperationStatusTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IOperationStatus ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return OperationStatus.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return OperationStatus.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return OperationStatus.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs deleted file mode 100644 index 3c29ba6292bb..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.cs +++ /dev/null @@ -1,236 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The current status of an async operation - public partial class OperationStatus : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable - { - - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)Error).Code = value ?? null; } - - /// Backing field for property. - private global::System.DateTime? _endTime; - - /// The end time of the operation - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError _error; - - /// Operation Error message - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusError()); set => this._error = value; } - - /// Backing field for property. - private string _id; - - /// Fully qualified ID for the operation status. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Id { get => this._id; set => this._id = value; } - - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)Error).Message = value ?? null; } - - /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusError()); set { {_error = value;} } } - - /// Backing field for property. - private string _name; - - /// The operation id name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _operationLocation; - - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string OperationLocation { get => this._operationLocation; set => this._operationLocation = value; } - - /// Backing field for property. - private float? _percentComplete; - - /// Percent of the operation that is complete - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public float? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny _property; - - /// Custom operation properties, populated only for a successful operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any()); set => this._property = value; } - - /// Backing field for property. - private string _resourceId; - - /// The id of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string ResourceId { get => this._resourceId; set => this._resourceId = value; } - - /// Backing field for property. - private global::System.DateTime? _startTime; - - /// The start time of the operation - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public global::System.DateTime? StartTime { get => this._startTime; set => this._startTime = value; } - - /// Backing field for property. - private string _status; - - /// Provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Status { get => this._status; set => this._status = value; } - - /// - void Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) - { - if (headers.TryGetValues("Operation-Location", out var __operationLocationHeader0)) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusInternal)this).OperationLocation = System.Linq.Enumerable.FirstOrDefault(__operationLocationHeader0) is string __headerOperationLocationHeader0 ? __headerOperationLocationHeader0 : (string)null; - } - } - - /// Creates an new instance. - public OperationStatus() - { - - } - } - /// The current status of an async operation - public partial interface IOperationStatus : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The error code. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The error code.", - SerializedName = @"code", - PossibleTypes = new [] { typeof(string) })] - string Code { get; set; } - /// The end time of the operation - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The end time of the operation", - SerializedName = @"endTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? EndTime { get; set; } - /// Fully qualified ID for the operation status. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Fully qualified ID for the operation status.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; set; } - /// The error message. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The error message.", - SerializedName = @"message", - PossibleTypes = new [] { typeof(string) })] - string Message { get; set; } - /// The operation id name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The operation id name", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"Operation-Location", - PossibleTypes = new [] { typeof(string) })] - string OperationLocation { get; set; } - /// Percent of the operation that is complete - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Percent of the operation that is complete", - SerializedName = @"percentComplete", - PossibleTypes = new [] { typeof(float) })] - float? PercentComplete { get; set; } - /// Custom operation properties, populated only for a successful operation. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Custom operation properties, populated only for a successful operation.", - SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get; set; } - /// The id of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The id of the resource.", - SerializedName = @"resourceId", - PossibleTypes = new [] { typeof(string) })] - string ResourceId { get; set; } - /// The start time of the operation - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The start time of the operation", - SerializedName = @"startTime", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? StartTime { get; set; } - /// Provisioning state of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Provisioning state of the resource.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(string) })] - string Status { get; set; } - - } - /// The current status of an async operation - internal partial interface IOperationStatusInternal - - { - /// The error code. - string Code { get; set; } - /// The end time of the operation - global::System.DateTime? EndTime { get; set; } - /// Operation Error message - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError Error { get; set; } - /// Fully qualified ID for the operation status. - string Id { get; set; } - /// The error message. - string Message { get; set; } - /// The operation id name - string Name { get; set; } - - string OperationLocation { get; set; } - /// Percent of the operation that is complete - float? PercentComplete { get; set; } - /// Custom operation properties, populated only for a successful operation. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get; set; } - /// The id of the resource. - string ResourceId { get; set; } - /// The start time of the operation - global::System.DateTime? StartTime { get; set; } - /// Provisioning state of the resource. - string Status { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs deleted file mode 100644 index cd2213e787db..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatus.json.cs +++ /dev/null @@ -1,124 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The current status of an async operation - public partial class OperationStatus - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new OperationStatus(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal OperationStatus(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OperationStatusError.FromJson(__jsonError) : Error;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} - {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} - {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} - {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (float?)__jsonPercentComplete : PercentComplete;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any.FromJson(__jsonProperties) : Property;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AddIf( null != (((object)this._resourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._resourceId.ToString()) : null, "resourceId" ,container.Add ); - AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); - AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); - AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((float)this._percentComplete) : null, "percentComplete" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs deleted file mode 100644 index 7a8d446ddb70..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.PowerShell.cs +++ /dev/null @@ -1,312 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// A pool of Dev Boxes. - [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] - public partial class Pool - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IPool DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Pool(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.DevCenterdata.Models.Api20230401.IPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Pool(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.DevCenterdata.Models.Api20230401.IPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Pool(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HardwareProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfileTypeConverter.ConvertFrom); - } - if (content.Contains("StorageProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfileTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus.CreateFrom); - } - if (content.Contains("HardwareProfileSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); - } - if (content.Contains("HardwareProfileMemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StorageProfileOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReferenceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceName, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceVersion, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceOperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("ImageReferencePublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("HardwareProfileVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReferenceOSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSDiskSizeGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Pool(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("HardwareProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfileTypeConverter.ConvertFrom); - } - if (content.Contains("StorageProfile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfileTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReference")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom); - } - if (content.Contains("StopOnDisconnect")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("OSType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); - } - if (content.Contains("HibernateSupport")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); - } - if (content.Contains("LocalAdministrator")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); - } - if (content.Contains("HealthStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus.CreateFrom); - } - if (content.Contains("HardwareProfileSkuName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); - } - if (content.Contains("HardwareProfileMemoryGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("StorageProfileOSDisk")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); - } - if (content.Contains("ImageReferenceName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceName, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceVersion")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceVersion, global::System.Convert.ToString); - } - if (content.Contains("ImageReferenceOperatingSystem")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); - } - if (content.Contains("ImageReferencePublishedDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("HardwareProfileVCpUs")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ImageReferenceOSBuildNumber")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); - } - if (content.Contains("StopOnDisconnectStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("StopOnDisconnectGracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("OSDiskSizeGb")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A pool of Dev Boxes. - [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] - public partial interface IPool - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs deleted file mode 100644 index 4d0e4be55147..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PoolTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IPool ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Pool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Pool.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Pool.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.cs deleted file mode 100644 index 02d3bff6ca6b..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.cs +++ /dev/null @@ -1,394 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A pool of Dev Boxes. - public partial class Pool : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile _hardwareProfile; - - /// Hardware settings for the Dev Boxes created in this pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile()); set => this._hardwareProfile = value; } - - /// The amount of memory available for the Dev Box. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb; } - - /// The name of the SKU - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName; } - - /// The number of vCPUs available for the Dev Box. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus _healthStatus; - - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get => this._healthStatus; set => this._healthStatus = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? _hibernateSupport; - - /// Indicates whether hibernate is enabled/disabled or unknown. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; set => this._hibernateSupport = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference _imageReference; - - /// Image settings for Dev Boxes create in this pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference()); set => this._imageReference = value; } - - /// The name of the image used. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name; } - - /// The operating system build number of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber; } - - /// The operating system of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem; } - - /// The datetime that the backing image version was published. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public global::System.DateTime? ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate; } - - /// The version of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? _localAdministrator; - - /// - /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get => this._localAdministrator; set => this._localAdministrator = value; } - - /// Backing field for property. - private string _location; - - /// Azure region where Dev Boxes in the pool are located - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile()); set { {_hardwareProfile = value;} } } - - /// Internal Acessors for HardwareProfileMemoryGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb = value; } - - /// Internal Acessors for HardwareProfileSkuName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName = value; } - - /// Internal Acessors for HardwareProfileVCpUs - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs = value; } - - /// Internal Acessors for ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference()); set { {_imageReference = value;} } } - - /// Internal Acessors for ImageReferenceName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name = value; } - - /// Internal Acessors for ImageReferenceOSBuildNumber - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber = value; } - - /// Internal Acessors for ImageReferenceOperatingSystem - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem = value; } - - /// Internal Acessors for ImageReferencePublishedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate = value; } - - /// Internal Acessors for ImageReferenceVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version = value; } - - /// Internal Acessors for OSDiskSizeGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb = value; } - - /// Internal Acessors for StopOnDisconnect - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfiguration()); set { {_stopOnDisconnect = value;} } } - - /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile()); set { {_storageProfile = value;} } } - - /// Internal Acessors for StorageProfileOSDisk - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDisk = value; } - - /// Backing field for property. - private string _name; - - /// Pool name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// The size of the OS Disk in gigabytes. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? _oSType; - - /// The operating system type of Dev Boxes in this pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get => this._oSType; set => this._oSType = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration _stopOnDisconnect; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfiguration()); set => this._stopOnDisconnect = value; } - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute = value ?? default(int); } - - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus)""); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile _storageProfile; - - /// Storage settings for Dev Box created in this pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile()); set => this._storageProfile = value; } - - /// Creates an new instance. - public Pool() - { - - } - } - /// A pool of Dev Boxes. - public partial interface IPool : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The amount of memory available for the Dev Box. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The amount of memory available for the Dev Box.", - SerializedName = @"memoryGB", - PossibleTypes = new [] { typeof(int) })] - int? HardwareProfileMemoryGb { get; } - /// The name of the SKU - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the SKU", - SerializedName = @"skuName", - PossibleTypes = new [] { typeof(string) })] - string HardwareProfileSkuName { get; } - /// The number of vCPUs available for the Dev Box. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The number of vCPUs available for the Dev Box.", - SerializedName = @"vCPUs", - PossibleTypes = new [] { typeof(int) })] - int? HardwareProfileVCpUs { get; } - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", - SerializedName = @"healthStatus", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get; set; } - /// Indicates whether hibernate is enabled/disabled or unknown. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether hibernate is enabled/disabled or unknown.", - SerializedName = @"hibernateSupport", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get; set; } - /// The name of the image used. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the image used.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceName { get; } - /// The operating system build number of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The operating system build number of the image.", - SerializedName = @"osBuildNumber", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceOSBuildNumber { get; } - /// The operating system of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The operating system of the image.", - SerializedName = @"operatingSystem", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceOperatingSystem { get; } - /// The datetime that the backing image version was published. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The datetime that the backing image version was published.", - SerializedName = @"publishedDate", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? ImageReferencePublishedDate { get; } - /// The version of the image. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The version of the image.", - SerializedName = @"version", - PossibleTypes = new [] { typeof(string) })] - string ImageReferenceVersion { get; } - /// - /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes.", - SerializedName = @"localAdministrator", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Azure region where Dev Boxes in the pool are located - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Azure region where Dev Boxes in the pool are located", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Pool name - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Pool name", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The size of the OS Disk in gigabytes. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The size of the OS Disk in gigabytes.", - SerializedName = @"diskSizeGB", - PossibleTypes = new [] { typeof(int) })] - int? OSDiskSizeGb { get; } - /// The operating system type of Dev Boxes in this pool - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The operating system type of Dev Boxes in this pool", - SerializedName = @"osType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - - } - /// A pool of Dev Boxes. - internal partial interface IPoolInternal - - { - /// Hardware settings for the Dev Boxes created in this pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile HardwareProfile { get; set; } - /// The amount of memory available for the Dev Box. - int? HardwareProfileMemoryGb { get; set; } - /// The name of the SKU - string HardwareProfileSkuName { get; set; } - /// The number of vCPUs available for the Dev Box. - int? HardwareProfileVCpUs { get; set; } - /// - /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get; set; } - /// Indicates whether hibernate is enabled/disabled or unknown. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get; set; } - /// Image settings for Dev Boxes create in this pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference ImageReference { get; set; } - /// The name of the image used. - string ImageReferenceName { get; set; } - /// The operating system build number of the image. - string ImageReferenceOSBuildNumber { get; set; } - /// The operating system of the image. - string ImageReferenceOperatingSystem { get; set; } - /// The datetime that the backing image version was published. - global::System.DateTime? ImageReferencePublishedDate { get; set; } - /// The version of the image. - string ImageReferenceVersion { get; set; } - /// - /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get; set; } - /// Azure region where Dev Boxes in the pool are located - string Location { get; set; } - /// Pool name - string Name { get; set; } - /// The size of the OS Disk in gigabytes. - int? OSDiskSizeGb { get; set; } - /// The operating system type of Dev Boxes in this pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get; set; } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? StopOnDisconnectGracePeriodMinute { get; set; } - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } - /// Storage settings for Dev Box created in this pool - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile StorageProfile { get; set; } - /// Settings for the operating system disk. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk StorageProfileOSDisk { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.json.cs deleted file mode 100644 index d2ebc48fed97..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Pool.json.cs +++ /dev/null @@ -1,126 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A pool of Dev Boxes. - public partial class Pool - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Pool(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal Pool(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile;} - {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} - {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference.FromJson(__jsonImageReference) : ImageReference;} - {_stopOnDisconnect = If( json?.PropertyT("stopOnDisconnect"), out var __jsonStopOnDisconnect) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StopOnDisconnectConfiguration.FromJson(__jsonStopOnDisconnect) : StopOnDisconnect;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} - {_hibernateSupport = If( json?.PropertyT("hibernateSupport"), out var __jsonHibernateSupport) ? (string)__jsonHibernateSupport : (string)HibernateSupport;} - {_localAdministrator = If( json?.PropertyT("localAdministrator"), out var __jsonLocalAdministrator) ? (string)__jsonLocalAdministrator : (string)LocalAdministrator;} - {_healthStatus = If( json?.PropertyT("healthStatus"), out var __jsonHealthStatus) ? (string)__jsonHealthStatus : (string)HealthStatus;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._hardwareProfile ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._hardwareProfile.ToJson(null,serializationMode) : null, "hardwareProfile" ,container.Add ); - AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); - AddIf( null != this._imageReference ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._imageReference.ToJson(null,serializationMode) : null, "imageReference" ,container.Add ); - AddIf( null != this._stopOnDisconnect ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._stopOnDisconnect.ToJson(null,serializationMode) : null, "stopOnDisconnect" ,container.Add ); - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); - AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); - AddIf( null != (((object)this._hibernateSupport)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._hibernateSupport.ToString()) : null, "hibernateSupport" ,container.Add ); - AddIf( null != (((object)this._localAdministrator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._localAdministrator.ToString()) : null, "localAdministrator" ,container.Add ); - AddIf( null != (((object)this._healthStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._healthStatus.ToString()) : null, "healthStatus" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs deleted file mode 100644 index 7330adf1c95a..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The Pool list result - [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] - public partial class PoolListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PoolListResult(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.DevCenterdata.Models.Api20230401.IPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PoolListResult(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.DevCenterdata.Models.Api20230401.IPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PoolListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.PoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).NextLink, 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 PoolListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.PoolTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The Pool list result - [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] - public partial interface IPoolListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs deleted file mode 100644 index 503eee2d2e77..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PoolListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IPoolListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PoolListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PoolListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs deleted file mode 100644 index 32160c4474cf..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The Pool list result - public partial class PoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The URL to get the next set of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[] _value; - - /// Current page of results - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public PoolListResult() - { - - } - } - /// The Pool list result - public partial interface IPoolListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The URL to get the next set of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The URL to get the next set of results.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[] Value { get; set; } - - } - /// The Pool list result - internal partial interface IPoolListResultInternal - - { - /// The URL to get the next set of results. - string NextLink { get; set; } - /// Current page of results - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs deleted file mode 100644 index 299903d14c4b..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/PoolListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The Pool list result - public partial class PoolListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new PoolListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal PoolListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IPool) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Pool.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs deleted file mode 100644 index 15931e85b9c5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.PowerShell.cs +++ /dev/null @@ -1,160 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Project details. - [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] - public partial class Project - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Project(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.DevCenterdata.Models.Api20230401.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Project(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.DevCenterdata.Models.Api20230401.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Project(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal Project(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Description")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).Description, global::System.Convert.ToString); - } - if (content.Contains("MaxDevBoxesPerUser")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Project details. - [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] - public partial interface IProject - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs deleted file mode 100644 index 276ce7430aa6..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProjectTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IProject ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Project.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Project.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Project.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.cs deleted file mode 100644 index b447e2a8d533..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.cs +++ /dev/null @@ -1,91 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Project details. - public partial class Project : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectInternal - { - - /// Backing field for property. - private string _description; - - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Description { get => this._description; set => this._description = value; } - - /// Backing field for property. - private int? _maxDevBoxesPerUser; - - /// - /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public int? MaxDevBoxesPerUser { get => this._maxDevBoxesPerUser; set => this._maxDevBoxesPerUser = value; } - - /// Backing field for property. - private string _name; - - /// Name of the project - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public Project() - { - - } - } - /// Project details. - public partial interface IProject : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// Description of the project. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Description of the project.", - SerializedName = @"description", - PossibleTypes = new [] { typeof(string) })] - string Description { get; set; } - /// - /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project.", - SerializedName = @"maxDevBoxesPerUser", - PossibleTypes = new [] { typeof(int) })] - int? MaxDevBoxesPerUser { get; set; } - /// Name of the project - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Name of the project", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// Project details. - internal partial interface IProjectInternal - - { - /// Description of the project. - string Description { get; set; } - /// - /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. - /// - int? MaxDevBoxesPerUser { get; set; } - /// Name of the project - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.json.cs deleted file mode 100644 index 1d5c16072912..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Project.json.cs +++ /dev/null @@ -1,112 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Project details. - public partial class Project - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Project(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal Project(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_maxDevBoxesPerUser = If( json?.PropertyT("maxDevBoxesPerUser"), out var __jsonMaxDevBoxesPerUser) ? (int?)__jsonMaxDevBoxesPerUser : MaxDevBoxesPerUser;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - AddIf( null != this._maxDevBoxesPerUser ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((int)this._maxDevBoxesPerUser) : null, "maxDevBoxesPerUser" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs deleted file mode 100644 index 52039cfd9001..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Results of the project list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] - public partial class ProjectListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IProjectListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ProjectListResult(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.DevCenterdata.Models.Api20230401.IProjectListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ProjectListResult(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.DevCenterdata.Models.Api20230401.IProjectListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ProjectListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ProjectTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).NextLink, 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 ProjectListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ProjectTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Results of the project list operation. - [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] - public partial interface IProjectListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs deleted file mode 100644 index 79d67a2ca7cb..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ProjectListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IProjectListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ProjectListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ProjectListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ProjectListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs deleted file mode 100644 index 708c8e2de465..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the project list operation. - public partial class ProjectListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[] _value; - - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public ProjectListResult() - { - - } - } - /// Results of the project list operation. - public partial interface IProjectListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// URL to get the next set of results if there are any. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"URL to get the next set of results if there are any.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results.", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[] Value { get; set; } - - } - /// Results of the project list operation. - internal partial interface IProjectListResultInternal - - { - /// URL to get the next set of results if there are any. - string NextLink { get; set; } - /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs deleted file mode 100644 index 4ac5a7766cb9..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ProjectListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Results of the project list operation. - public partial class ProjectListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProjectListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ProjectListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal ProjectListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IProject) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Project.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs deleted file mode 100644 index 3fa9f19556f0..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.PowerShell.cs +++ /dev/null @@ -1,176 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// A Schedule to execute action. - [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] - public partial class Schedule - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.ISchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new Schedule(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.DevCenterdata.Models.Api20230401.ISchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new Schedule(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.DevCenterdata.Models.Api20230401.ISchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal Schedule(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Frequency = (string) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Frequency, global::System.Convert.ToString); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).TimeZone, 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 Schedule(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("Frequency")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Frequency = (string) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Frequency, global::System.Convert.ToString); - } - if (content.Contains("Time")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).Time, global::System.Convert.ToString); - } - if (content.Contains("TimeZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal)this).TimeZone, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A Schedule to execute action. - [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] - public partial interface ISchedule - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs deleted file mode 100644 index dc7a5aca3970..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.TypeConverter.cs +++ /dev/null @@ -1,146 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ScheduleTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ISchedule ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return Schedule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return Schedule.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return Schedule.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.cs deleted file mode 100644 index 1a97fe3bc1c8..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.cs +++ /dev/null @@ -1,125 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A Schedule to execute action. - public partial class Schedule : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal - { - - /// Backing field for property. - private string _frequency= @"Daily"; - - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Frequency { get => this._frequency; } - - /// Internal Acessors for Frequency - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal.Frequency { get => this._frequency; set { {_frequency = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// Display name for the Schedule - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _time; - - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Time { get => this._time; set => this._time = value; } - - /// Backing field for property. - private string _timeZone; - - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string TimeZone { get => this._timeZone; set => this._timeZone = value; } - - /// Backing field for property. - private string _type= @"StopDevBox"; - - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Schedule() - { - - } - } - /// A Schedule to execute action. - public partial interface ISchedule : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The frequency of this scheduled task. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = true, - Description = @"The frequency of this scheduled task.", - SerializedName = @"frequency", - PossibleTypes = new [] { typeof(string) })] - string Frequency { get; } - /// Display name for the Schedule - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Display name for the Schedule", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The target time to trigger the action. The format is HH:MM. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The target time to trigger the action. The format is HH:MM.", - SerializedName = @"time", - PossibleTypes = new [] { typeof(string) })] - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The IANA timezone id at which the schedule should execute.", - SerializedName = @"timeZone", - PossibleTypes = new [] { typeof(string) })] - string TimeZone { get; set; } - /// Supported type this scheduled task represents. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = true, - Description = @"Supported type this scheduled task represents.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// A Schedule to execute action. - internal partial interface IScheduleInternal - - { - /// The frequency of this scheduled task. - string Frequency { get; set; } - /// Display name for the Schedule - string Name { get; set; } - /// The target time to trigger the action. The format is HH:MM. - string Time { get; set; } - /// The IANA timezone id at which the schedule should execute. - string TimeZone { get; set; } - /// Supported type this scheduled task represents. - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs deleted file mode 100644 index 1887824a6d84..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Schedule.json.cs +++ /dev/null @@ -1,116 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// A Schedule to execute action. - public partial class Schedule - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Schedule(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal Schedule(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_frequency = If( json?.PropertyT("frequency"), out var __jsonFrequency) ? (string)__jsonFrequency : (string)Frequency;} - {_time = If( json?.PropertyT("time"), out var __jsonTime) ? (string)__jsonTime : (string)Time;} - {_timeZone = If( json?.PropertyT("timeZone"), out var __jsonTimeZone) ? (string)__jsonTimeZone : (string)TimeZone;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); - AddIf( null != (((object)this._frequency)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._frequency.ToString()) : null, "frequency" ,container.Add ); - AddIf( null != (((object)this._time)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._time.ToString()) : null, "time" ,container.Add ); - AddIf( null != (((object)this._timeZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._timeZone.ToString()) : null, "timeZone" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs deleted file mode 100644 index 63d97a5615e5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.PowerShell.cs +++ /dev/null @@ -1,152 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// The Schedule list result - [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] - public partial class ScheduleListResult - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IScheduleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScheduleListResult(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.DevCenterdata.Models.Api20230401.IScheduleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScheduleListResult(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.DevCenterdata.Models.Api20230401.IScheduleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScheduleListResult(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ScheduleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).NextLink, 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 ScheduleListResult(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ScheduleTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// The Schedule list result - [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] - public partial interface IScheduleListResult - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs deleted file mode 100644 index f2619a8daae5..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ScheduleListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IScheduleListResult ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResult).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ScheduleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ScheduleListResult.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ScheduleListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs deleted file mode 100644 index 5bd584b173f1..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.cs +++ /dev/null @@ -1,68 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The Schedule list result - public partial class ScheduleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResultInternal - { - - /// Backing field for property. - private string _nextLink; - - /// The URL to get the next set of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; set => this._nextLink = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[] _value; - - /// Current page of results - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[] Value { get => this._value; set => this._value = value; } - - /// Creates an new instance. - public ScheduleListResult() - { - - } - } - /// The Schedule list result - public partial interface IScheduleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The URL to get the next set of results. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The URL to get the next set of results.", - SerializedName = @"nextLink", - PossibleTypes = new [] { typeof(string) })] - string NextLink { get; set; } - /// Current page of results - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Current page of results", - SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[] Value { get; set; } - - } - /// The Schedule list result - internal partial interface IScheduleListResultInternal - - { - /// The URL to get the next set of results. - string NextLink { get; set; } - /// Current page of results - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule[] Value { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs deleted file mode 100644 index 004da8b0daf0..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/ScheduleListResult.json.cs +++ /dev/null @@ -1,118 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// The Schedule list result - public partial class ScheduleListResult - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResult. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResult. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IScheduleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ScheduleListResult(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal ScheduleListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.ISchedule) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Schedule.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._value) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); - } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs deleted file mode 100644 index ae09122684b7..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.PowerShell.cs +++ /dev/null @@ -1,154 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] - public partial class StopOnDisconnectConfiguration - { - - /// - /// 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); - - /// - /// 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.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new StopOnDisconnectConfiguration(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.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new StopOnDisconnectConfiguration(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.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal StopOnDisconnectConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("GracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal StopOnDisconnectConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Status")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); - } - if (content.Contains("GracePeriodMinute")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] - public partial interface IStopOnDisconnectConfiguration - - { - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs deleted file mode 100644 index 219f65912f33..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.TypeConverter.cs +++ /dev/null @@ -1,147 +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.DevCenterdata.Models.Api20230401 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class StopOnDisconnectConfigurationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return StopOnDisconnectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return StopOnDisconnectConfiguration.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return StopOnDisconnectConfiguration.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.cs deleted file mode 100644 index b82f79268472..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial class StopOnDisconnectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfigurationInternal - { - - /// Backing field for property. - private int? _gracePeriodMinute; - - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public int? GracePeriodMinute { get => this._gracePeriodMinute; set => this._gracePeriodMinute = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus _status; - - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get => this._status; set => this._status = value; } - - /// Creates an new instance. - public StopOnDisconnectConfiguration() - { - - } - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial interface IStopOnDisconnectConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", - SerializedName = @"gracePeriodMinutes", - PossibleTypes = new [] { typeof(int) })] - int? GracePeriodMinute { get; set; } - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", - SerializedName = @"status", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get; set; } - - } - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - internal partial interface IStopOnDisconnectConfigurationInternal - - { - /// - /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. - /// - int? GracePeriodMinute { get; set; } - /// - /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. - /// - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs deleted file mode 100644 index 8ad2613d4de8..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StopOnDisconnectConfiguration.json.cs +++ /dev/null @@ -1,110 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Stop on disconnect configuration settings for Dev Boxes created in this pool. - public partial class StopOnDisconnectConfiguration - { - - /// - /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStopOnDisconnectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new StopOnDisconnectConfiguration(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. - internal StopOnDisconnectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_gracePeriodMinute = If( json?.PropertyT("gracePeriodMinutes"), out var __jsonGracePeriodMinutes) ? (int?)__jsonGracePeriodMinutes : GracePeriodMinute;} - 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AddIf( null != this._gracePeriodMinute ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((int)this._gracePeriodMinute) : null, "gracePeriodMinutes" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.cs deleted file mode 100644 index db32544e04ed..000000000000 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.cs +++ /dev/null @@ -1,63 +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.DevCenterdata.Models.Api20230401 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - - /// Storage settings for the Dev Box's disks - public partial class StorageProfile : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal - { - - /// Internal Acessors for OSDisk - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal.OSDisk { get => (this._oSDisk = this._oSDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDisk()); set { {_oSDisk = value;} } } - - /// Internal Acessors for OSDiskSizeGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)OSDisk).DiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)OSDisk).DiskSizeGb = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk _oSDisk; - - /// Settings for the operating system disk. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk OSDisk { get => (this._oSDisk = this._oSDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDisk()); set => this._oSDisk = value; } - - /// The size of the OS Disk in gigabytes. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)OSDisk).DiskSizeGb; } - - /// Creates an new instance. - public StorageProfile() - { - - } - } - /// Storage settings for the Dev Box's disks - public partial interface IStorageProfile : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable - { - /// The size of the OS Disk in gigabytes. - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The size of the OS Disk in gigabytes.", - SerializedName = @"diskSizeGB", - PossibleTypes = new [] { typeof(int) })] - int? OSDiskSizeGb { get; } - - } - /// Storage settings for the Dev Box's disks - internal partial interface IStorageProfileInternal - - { - /// Settings for the operating system disk. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk OSDisk { get; set; } - /// The size of the OS Disk in gigabytes. - int? OSDiskSizeGb { get; set; } - - } -} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs new file mode 100644 index 000000000000..5c0562a58c74 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.PowerShell.cs @@ -0,0 +1,152 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] + public partial class Catalog + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Catalog(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Name, 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 Catalog(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal)this).Name, 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.DevCenterdata.Models.Api20231001Preview.ICatalog DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Catalog(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.DevCenterdata.Models.Api20231001Preview.ICatalog DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Catalog(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.DevCenterdata.Models.Api20231001Preview.ICatalog FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A catalog. + [System.ComponentModel.TypeConverter(typeof(CatalogTypeConverter))] + public partial interface ICatalog + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs new file mode 100644 index 000000000000..21169ee1662d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICatalog ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Catalog.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Catalog.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Catalog.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs new file mode 100644 index 000000000000..8cef7d57a4d8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A catalog. + public partial class Catalog : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogInternal + { + + /// Backing field for property. + private string _name; + + /// Name of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the catalog + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public Catalog() + { + + } + } + /// A catalog. + public partial interface ICatalog : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Name of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the catalog.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The unique URI of the catalog + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the catalog", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// A catalog. + internal partial interface ICatalogInternal + + { + /// Name of the catalog. + string Name { get; set; } + /// The unique URI of the catalog + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.json.cs new file mode 100644 index 000000000000..1fbf15542b28 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Catalog.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A catalog. + public partial class Catalog + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal Catalog(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Catalog(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs new file mode 100644 index 000000000000..c3cc792eb711 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Results of the catalog list operation. + [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] + public partial class CatalogListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CatalogListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CatalogTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink, 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 CatalogListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CatalogTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal)this).NextLink, 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.DevCenterdata.Models.Api20231001Preview.ICatalogListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CatalogListResult(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.DevCenterdata.Models.Api20231001Preview.ICatalogListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CatalogListResult(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.DevCenterdata.Models.Api20231001Preview.ICatalogListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the catalog list operation. + [System.ComponentModel.TypeConverter(typeof(CatalogListResultTypeConverter))] + public partial interface ICatalogListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.TypeConverter.cs new file mode 100644 index 000000000000..cf3e6c7bc5dc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CatalogListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICatalogListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CatalogListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CatalogListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CatalogListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs new file mode 100644 index 000000000000..a59a8522fac4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the catalog list operation. + public partial class CatalogListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public CatalogListResult() + { + + } + } + /// Results of the catalog list operation. + public partial interface ICatalogListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[] Value { get; set; } + + } + /// Results of the catalog list operation. + internal partial interface ICatalogListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs new file mode 100644 index 000000000000..e3653af94403 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CatalogListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the catalog list operation. + public partial class CatalogListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CatalogListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICatalog) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Catalog.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.DevCenterdata.Models.Api20231001Preview.ICatalogListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CatalogListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.cs new file mode 100644 index 000000000000..83b4d2c4b377 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.PowerShell.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// An error response from the service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial class CloudError + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CloudError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudError(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.DevCenterdata.Models.Api20231001Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudError(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.DevCenterdata.Models.Api20231001Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorTypeConverter))] + public partial interface ICloudError + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs new file mode 100644 index 000000000000..46f42c598e1a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICloudError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudError.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs new file mode 100644 index 000000000000..8fc75020cad7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.cs @@ -0,0 +1,120 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An error response from the service. + public partial class CloudError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal + { + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Error body + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set => this._error = value; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Creates an new instance. + public CloudError() + { + + } + } + /// An error response from the service. + public partial interface ICloudError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// An error response from the service. + internal partial interface ICloudErrorInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// Error body + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs new file mode 100644 index 000000000000..5558059dcc73 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudError.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An error response from the service. + public partial class CloudError + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CloudError(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs new file mode 100644 index 000000000000..fb93259c8d58 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.PowerShell.cs @@ -0,0 +1,170 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// An error response from the service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] + public partial class CloudErrorBody + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CloudErrorBody(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CloudErrorBody(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudErrorBody(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.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudErrorBody(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.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An error response from the service. + [System.ComponentModel.TypeConverter(typeof(CloudErrorBodyTypeConverter))] + public partial interface ICloudErrorBody + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.TypeConverter.cs new file mode 100644 index 000000000000..a312144d5786 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CloudErrorBodyTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CloudErrorBody.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CloudErrorBody.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CloudErrorBody.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs new file mode 100644 index 000000000000..ecab4525154f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.cs @@ -0,0 +1,120 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An error response from the service. + public partial class CloudErrorBody : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal + { + + /// Backing field for property. + private string _code; + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] _detail; + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + + /// Backing field for property. + private string _message; + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private string _target; + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Target { get => this._target; set => this._target = value; } + + /// Creates an new instance. + public CloudErrorBody() + { + + } + } + /// An error response from the service. + public partial interface ICloudErrorBody : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + + } + /// An error response from the service. + internal partial interface ICloudErrorBodyInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs new file mode 100644 index 000000000000..0b5a19dc3a2f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CloudErrorBody.json.cs @@ -0,0 +1,122 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An error response from the service. + public partial class CloudErrorBody + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CloudErrorBody(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.PowerShell.cs new file mode 100644 index 000000000000..ca2f98232c20 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Represents a list of tasks to apply to a Dev Box + [System.ComponentModel.TypeConverter(typeof(CustomizationGroupTypeConverter))] + public partial class CustomizationGroup + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationGroup(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus.CreateFrom); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).EndTime, (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 CustomizationGroup(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus.CreateFrom); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationGroup(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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationGroup(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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a list of tasks to apply to a Dev Box + [System.ComponentModel.TypeConverter(typeof(CustomizationGroupTypeConverter))] + public partial interface ICustomizationGroup + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.TypeConverter.cs new file mode 100644 index 000000000000..c1d9b5ba1d97 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationGroupTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationGroup.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationGroup.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationGroup.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.cs new file mode 100644 index 000000000000..41485153462b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.cs @@ -0,0 +1,160 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a list of tasks to apply to a Dev Box + public partial class CustomizationGroup : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal + { + + /// Backing field for property. + private global::System.DateTime? _endTime; + + /// End time of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? EndTime { get => this._endTime; } + + /// Internal Acessors for EndTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for StartTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + + /// Internal Acessors for Status + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal.Status { get => this._status; set { {_status = value;} } } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupInternal.Uri { get => this._uri; set { {_uri = value;} } } + + /// Backing field for property. + private string _name; + + /// Name of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// Start time of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus? _status; + + /// Status of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus? Status { get => this._status; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] _task; + + /// + /// Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, + /// use the `include=tasks` query parameter. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => this._task; set => this._task = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; } + + /// Creates an new instance. + public CustomizationGroup() + { + + } + } + /// Represents a list of tasks to apply to a Dev Box + public partial interface ICustomizationGroup : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// End time of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"End time of the customization group.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; } + /// Name of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Name of the customization group.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Start time of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Start time of the customization group.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; } + /// Status of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status of the customization group.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus? Status { get; } + /// + /// Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, + /// use the `include=tasks` query parameter. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get; set; } + /// The unique URI of the customization group. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI of the customization group.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } + + } + /// Represents a list of tasks to apply to a Dev Box + internal partial interface ICustomizationGroupInternal + + { + /// End time of the customization group. + global::System.DateTime? EndTime { get; set; } + /// Name of the customization group. + string Name { get; set; } + /// Start time of the customization group. + global::System.DateTime? StartTime { get; set; } + /// Status of the customization group. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus? Status { get; set; } + /// + /// Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, + /// use the `include=tasks` query parameter. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get; set; } + /// The unique URI of the customization group. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.json.cs new file mode 100644 index 000000000000..db9011cf6e6f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroup.json.cs @@ -0,0 +1,141 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a list of tasks to apply to a Dev Box + public partial class CustomizationGroup + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationGroup(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_task = If( json?.PropertyT("tasks"), out var __jsonTasks) ? If( __jsonTasks as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask.FromJson(__u) )) ))() : null : Task;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationGroup(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._task) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._task ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("tasks",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.PowerShell.cs new file mode 100644 index 000000000000..1c9bab944ba2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// List of customization groups applied to a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationGroupListResultTypeConverter))] + public partial class CustomizationGroupListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationGroupListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).NextLink, 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 CustomizationGroupListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroupTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal)this).NextLink, 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationGroupListResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationGroupListResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// List of customization groups applied to a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationGroupListResultTypeConverter))] + public partial interface ICustomizationGroupListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.TypeConverter.cs new file mode 100644 index 000000000000..abe26519fe8a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationGroupListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationGroupListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationGroupListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationGroupListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.cs new file mode 100644 index 000000000000..9ed5bf4d3dd5 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// List of customization groups applied to a Dev Box. + public partial class CustomizationGroupListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[] _value; + + /// The list of customization groups. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public CustomizationGroupListResult() + { + + } + } + /// List of customization groups applied to a Dev Box. + public partial interface ICustomizationGroupListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The list of customization groups. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The list of customization groups.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[] Value { get; set; } + + } + /// List of customization groups applied to a Dev Box. + internal partial interface ICustomizationGroupListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// The list of customization groups. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.json.cs new file mode 100644 index 000000000000..e59be36986d4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationGroupListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// List of customization groups applied to a Dev Box. + public partial class CustomizationGroupListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationGroupListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup.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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationGroupListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs new file mode 100644 index 000000000000..e3dce35db53c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A customization task to run on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskTypeConverter))] + public partial class CustomizationTask + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTask(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParametersTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("LogUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).LogUri = (string) content.GetValueForProperty("LogUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).LogUri, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus.CreateFrom); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).EndTime, (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 CustomizationTask(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParametersTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("LogUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).LogUri = (string) content.GetValueForProperty("LogUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).LogUri, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus.CreateFrom); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTask(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTask(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A customization task to run on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskTypeConverter))] + public partial interface ICustomizationTask + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.TypeConverter.cs new file mode 100644 index 000000000000..e3d59eb2ed3c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTask.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTask.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTask.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs new file mode 100644 index 000000000000..7a2284d1fd27 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.cs @@ -0,0 +1,185 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A customization task to run on a Dev Box. + public partial class CustomizationTask : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal + { + + /// Backing field for property. + private string _displayName; + + /// Display name to help differentiate multiple instances of the same task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private global::System.DateTime? _endTime; + + /// End time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? EndTime { get => this._endTime; } + + /// Backing field for property. + private string _id; + + /// ID of the task instance. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Backing field for property. + private string _logUri; + + /// The unique URI for retrieving the task logs. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string LogUri { get => this._logUri; } + + /// Internal Acessors for EndTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for LogUri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal.LogUri { get => this._logUri; set { {_logUri = value;} } } + + /// Internal Acessors for StartTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + + /// Internal Acessors for Status + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal.Status { get => this._status; set { {_status = value;} } } + + /// Backing field for property. + private string _name; + + /// Name of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters _parameter; + + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParameters()); set => this._parameter = value; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// Start time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? _status; + + /// Status of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? Status { get => this._status; } + + /// Creates an new instance. + public CustomizationTask() + { + + } + } + /// A customization task to run on a Dev Box. + public partial interface ICustomizationTask : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Display name to help differentiate multiple instances of the same task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name to help differentiate multiple instances of the same task.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// End time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"End time of the task.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; } + /// ID of the task instance. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ID of the task instance.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The unique URI for retrieving the task logs. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI for retrieving the task logs.", + SerializedName = @"logUri", + PossibleTypes = new [] { typeof(string) })] + string LogUri { get; } + /// Name of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the task.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Parameters for the task.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters Parameter { get; set; } + /// Start time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Start time of the task.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; } + /// Status of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status of the task.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? Status { get; } + + } + /// A customization task to run on a Dev Box. + internal partial interface ICustomizationTaskInternal + + { + /// Display name to help differentiate multiple instances of the same task. + string DisplayName { get; set; } + /// End time of the task. + global::System.DateTime? EndTime { get; set; } + /// ID of the task instance. + string Id { get; set; } + /// The unique URI for retrieving the task logs. + string LogUri { get; set; } + /// Name of the task. + string Name { get; set; } + /// Parameters for the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters Parameter { get; set; } + /// Start time of the task. + global::System.DateTime? StartTime { get; set; } + /// Status of the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.json.cs new file mode 100644 index 000000000000..5b0d8379f363 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTask.json.cs @@ -0,0 +1,137 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A customization task to run on a Dev Box. + public partial class CustomizationTask + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTask(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParameters.FromJson(__jsonParameters) : Parameter;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_logUri = If( json?.PropertyT("logUri"), out var __jsonLogUri) ? (string)__jsonLogUri : (string)LogUri;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTask(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._parameter ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._parameter.ToJson(null,serializationMode) : null, "parameters" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._logUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._logUri.ToString()) : null, "logUri" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.PowerShell.cs new file mode 100644 index 000000000000..adb3066120e8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Represents a task to be used in customizing a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionTypeConverter))] + public partial class CustomizationTaskDefinition + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParametersTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParametersTypeConverter.ConvertFrom); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskDefinition(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskDefinition(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a task to be used in customizing a Dev Box. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionTypeConverter))] + public partial interface ICustomizationTaskDefinition + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.TypeConverter.cs new file mode 100644 index 000000000000..b37743cee2b7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskDefinitionTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskDefinition.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.cs new file mode 100644 index 000000000000..c2be074f2ed7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.cs @@ -0,0 +1,122 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a task to be used in customizing a Dev Box. + public partial class CustomizationTaskDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal + { + + /// Backing field for property. + private string _catalogName; + + /// Name of the catalog that the task belongs to. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// Backing field for property. + private string _description; + + /// Description of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionInternal.Uri { get => this._uri; set { {_uri = value;} } } + + /// Backing field for property. + private string _name; + + /// Full name of the task: {catalogName}/{taskName}. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters _parameter; + + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameters()); set => this._parameter = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the customization task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; } + + /// Creates an new instance. + public CustomizationTaskDefinition() + { + + } + } + /// Represents a task to be used in customizing a Dev Box. + public partial interface ICustomizationTaskDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Name of the catalog that the task belongs to. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the catalog that the task belongs to.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + string CatalogName { get; set; } + /// Description of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the task.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Full name of the task: {catalogName}/{taskName}. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Full name of the task: {catalogName}/{taskName}.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Parameters for the task.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters Parameter { get; set; } + /// The unique URI of the customization task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI of the customization task.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } + + } + /// Represents a task to be used in customizing a Dev Box. + internal partial interface ICustomizationTaskDefinitionInternal + + { + /// Name of the catalog that the task belongs to. + string CatalogName { get; set; } + /// Description of the task. + string Description { get; set; } + /// Full name of the task: {catalogName}/{taskName}. + string Name { get; set; } + /// Parameters for the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters Parameter { get; set; } + /// The unique URI of the customization task. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.json.cs new file mode 100644 index 000000000000..5bae8e459733 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinition.json.cs @@ -0,0 +1,119 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a task to be used in customizing a Dev Box. + public partial class CustomizationTaskDefinition + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskDefinition(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_catalogName = If( json?.PropertyT("catalogName"), out var __jsonCatalogName) ? (string)__jsonCatalogName : (string)CatalogName;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameters.FromJson(__jsonParameters) : Parameter;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskDefinition(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._catalogName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._catalogName.ToString()) : null, "catalogName" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + } + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != this._parameter ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._parameter.ToJson(null,serializationMode) : null, "parameters" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.PowerShell.cs new file mode 100644 index 000000000000..b25db69d82c6 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Result of listing customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionListResultTypeConverter))] + public partial class CustomizationTaskDefinitionListResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskDefinitionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).NextLink, 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 CustomizationTaskDefinitionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal)this).NextLink, 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskDefinitionListResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskDefinitionListResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of listing customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionListResultTypeConverter))] + public partial interface ICustomizationTaskDefinitionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.TypeConverter.cs new file mode 100644 index 000000000000..9703c4d371a5 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskDefinitionListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskDefinitionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.cs new file mode 100644 index 000000000000..e62fc90b2711 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Result of listing customization tasks. + public partial class CustomizationTaskDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public CustomizationTaskDefinitionListResult() + { + + } + } + /// Result of listing customization tasks. + public partial interface ICustomizationTaskDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[] Value { get; set; } + + } + /// Result of listing customization tasks. + internal partial interface ICustomizationTaskDefinitionListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.json.cs new file mode 100644 index 000000000000..ee7ac334de65 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionListResult.json.cs @@ -0,0 +1,119 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Result of listing customization tasks. + public partial class CustomizationTaskDefinitionListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskDefinitionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinition.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskDefinitionListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.PowerShell.cs new file mode 100644 index 000000000000..c1f86f80ee78 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.PowerShell.cs @@ -0,0 +1,180 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Parameters for a customization task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionParameterTypeConverter))] + public partial class CustomizationTaskDefinitionParameter + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskDefinitionParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType.CreateFrom); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Default")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Default, global::System.Convert.ToString); + } + if (content.Contains("Allowed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, 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 CustomizationTaskDefinitionParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType.CreateFrom); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Required = (bool?) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Default")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Default, global::System.Convert.ToString); + } + if (content.Contains("Allowed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskDefinitionParameter(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskDefinitionParameter(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Parameters for a customization task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionParameterTypeConverter))] + public partial interface ICustomizationTaskDefinitionParameter + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.TypeConverter.cs new file mode 100644 index 000000000000..05ae7755caff --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskDefinitionParameterTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskDefinitionParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionParameter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionParameter.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.cs new file mode 100644 index 000000000000..5dbf721a15cf --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.cs @@ -0,0 +1,119 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for a customization task. + public partial class CustomizationTaskDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameterInternal + { + + /// Backing field for property. + private string[] _allowed; + + /// Allowed values for the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string[] Allowed { get => this._allowed; set => this._allowed = value; } + + /// Backing field for property. + private string _default; + + /// Default value for the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Default { get => this._default; set => this._default = value; } + + /// Backing field for property. + private string _description; + + /// Description of the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private bool? _required; + + /// Whether or not the parameter is required. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public bool? Required { get => this._required; set => this._required = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType _type; + + /// Type of the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public CustomizationTaskDefinitionParameter() + { + + } + } + /// Parameters for a customization task. + public partial interface ICustomizationTaskDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Allowed values for the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Allowed values for the parameter.", + SerializedName = @"allowed", + PossibleTypes = new [] { typeof(string) })] + string[] Allowed { get; set; } + /// Default value for the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Default value for the parameter.", + SerializedName = @"default", + PossibleTypes = new [] { typeof(string) })] + string Default { get; set; } + /// Description of the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the parameter.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Whether or not the parameter is required. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether or not the parameter is required.", + SerializedName = @"required", + PossibleTypes = new [] { typeof(bool) })] + bool? Required { get; set; } + /// Type of the parameter. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Type of the parameter.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType Type { get; set; } + + } + /// Parameters for a customization task. + internal partial interface ICustomizationTaskDefinitionParameterInternal + + { + /// Allowed values for the parameter. + string[] Allowed { get; set; } + /// Default value for the parameter. + string Default { get; set; } + /// Description of the parameter. + string Description { get; set; } + /// Whether or not the parameter is required. + bool? Required { get; set; } + /// Type of the parameter. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.json.cs new file mode 100644 index 000000000000..b14cba0c5e8b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameter.json.cs @@ -0,0 +1,125 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for a customization task. + public partial class CustomizationTaskDefinitionParameter + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskDefinitionParameter(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_required = If( json?.PropertyT("required"), out var __jsonRequired) ? (bool?)__jsonRequired : Required;} + {_default = If( json?.PropertyT("default"), out var __jsonDefault) ? (string)__jsonDefault : (string)Default;} + {_allowed = If( json?.PropertyT("allowed"), out var __jsonAllowed) ? If( __jsonAllowed as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Allowed;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskDefinitionParameter(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._required ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean((bool)this._required) : null, "required" ,container.Add ); + AddIf( null != (((object)this._default)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._default.ToString()) : null, "default" ,container.Add ); + if (null != this._allowed) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._allowed ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("allowed",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.PowerShell.cs new file mode 100644 index 000000000000..f8342bdd4175 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.PowerShell.cs @@ -0,0 +1,145 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Parameters for the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionParametersTypeConverter))] + public partial class CustomizationTaskDefinitionParameters + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskDefinitionParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskDefinitionParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskDefinitionParameters(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskDefinitionParameters(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Parameters for the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskDefinitionParametersTypeConverter))] + public partial interface ICustomizationTaskDefinitionParameters + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.TypeConverter.cs new file mode 100644 index 000000000000..b8a24e2eb560 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskDefinitionParametersTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskDefinitionParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskDefinitionParameters.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.cs new file mode 100644 index 000000000000..2e25f74f3dd2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.cs @@ -0,0 +1,35 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for the task. + public partial class CustomizationTaskDefinitionParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParametersInternal + { + + /// Creates an new instance. + public CustomizationTaskDefinitionParameters() + { + + } + } + /// Parameters for the task. + public partial interface ICustomizationTaskDefinitionParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + + } + /// Parameters for the task. + internal partial interface ICustomizationTaskDefinitionParametersInternal + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.dictionary.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.dictionary.cs new file mode 100644 index 000000000000..27713ca0451d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + public partial class CustomizationTaskDefinitionParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameter value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameters source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.json.cs new file mode 100644 index 000000000000..0bf9643a5c92 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskDefinitionParameters.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for the task. + public partial class CustomizationTaskDefinitionParameters + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + /// + internal CustomizationTaskDefinitionParameters(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskDefinitionParameter.FromJson(j) ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskDefinitionParameters(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.PowerShell.cs new file mode 100644 index 000000000000..a646dcb26c20 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.PowerShell.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Represents a list of tasks to apply to a Dev Box + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListTypeConverter))] + public partial class CustomizationTaskList + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Task")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListInternal)this).Task = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]) content.GetValueForProperty("Task",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListInternal)this).Task, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskList(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskList(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents a list of tasks to apply to a Dev Box + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListTypeConverter))] + public partial interface ICustomizationTaskList + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.TypeConverter.cs new file mode 100644 index 000000000000..73abf2bdb97b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskList.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.cs new file mode 100644 index 000000000000..b391415b5fa5 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a list of tasks to apply to a Dev Box + public partial class CustomizationTaskList : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] _task; + + /// Tasks to apply. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => this._task; set => this._task = value; } + + /// Creates an new instance. + public CustomizationTaskList() + { + + } + } + /// Represents a list of tasks to apply to a Dev Box + public partial interface ICustomizationTaskList : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Tasks to apply. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get; set; } + + } + /// Represents a list of tasks to apply to a Dev Box + internal partial interface ICustomizationTaskListInternal + + { + /// Tasks to apply. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.json.cs new file mode 100644 index 000000000000..c35ce0efdb2e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskList.json.cs @@ -0,0 +1,116 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Represents a list of tasks to apply to a Dev Box + public partial class CustomizationTaskList + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskList(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_task = If( json?.PropertyT("tasks"), out var __jsonTasks) ? If( __jsonTasks as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask.FromJson(__u) )) ))() : null : Task;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskList(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._task) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._task ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("tasks",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.PowerShell.cs new file mode 100644 index 000000000000..b41827fc8c12 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.PowerShell.cs @@ -0,0 +1,220 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// All of the validation errors for a customization task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationErrorTypeConverter))] + public partial class CustomizationTaskListValidationError + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskListValidationError(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Target = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Target, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetName, global::System.Convert.ToString); + } + if (content.Contains("TargetParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) content.GetValueForProperty("TargetParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParametersTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetDisplayName = (string) content.GetValueForProperty("TargetDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetDisplayName, global::System.Convert.ToString); + } + if (content.Contains("TargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetId, global::System.Convert.ToString); + } + if (content.Contains("TargetLogUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetLogUri = (string) content.GetValueForProperty("TargetLogUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetLogUri, global::System.Convert.ToString); + } + if (content.Contains("TargetStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus?) content.GetValueForProperty("TargetStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus.CreateFrom); + } + if (content.Contains("TargetStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStartTime = (global::System.DateTime?) content.GetValueForProperty("TargetStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TargetEndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetEndTime = (global::System.DateTime?) content.GetValueForProperty("TargetEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetEndTime, (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 CustomizationTaskListValidationError(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Target = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Target, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskTypeConverter.ConvertFrom); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetName = (string) content.GetValueForProperty("TargetName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetName, global::System.Convert.ToString); + } + if (content.Contains("TargetParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) content.GetValueForProperty("TargetParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParametersTypeConverter.ConvertFrom); + } + if (content.Contains("TargetDisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetDisplayName = (string) content.GetValueForProperty("TargetDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetDisplayName, global::System.Convert.ToString); + } + if (content.Contains("TargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetId, global::System.Convert.ToString); + } + if (content.Contains("TargetLogUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetLogUri = (string) content.GetValueForProperty("TargetLogUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetLogUri, global::System.Convert.ToString); + } + if (content.Contains("TargetStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus?) content.GetValueForProperty("TargetStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus.CreateFrom); + } + if (content.Contains("TargetStartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStartTime = (global::System.DateTime?) content.GetValueForProperty("TargetStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetStartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("TargetEndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetEndTime = (global::System.DateTime?) content.GetValueForProperty("TargetEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal)this).TargetEndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskListValidationError(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskListValidationError(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// All of the validation errors for a customization task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationErrorTypeConverter))] + public partial interface ICustomizationTaskListValidationError + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.TypeConverter.cs new file mode 100644 index 000000000000..bcfcf5d4c153 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListValidationErrorTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskListValidationError.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationError.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationError.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.cs new file mode 100644 index 000000000000..0a271d96ee52 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.cs @@ -0,0 +1,190 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// All of the validation errors for a customization task. + public partial class CustomizationTaskListValidationError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[] _detail; + + /// List of validation errors for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[] Detail { get => this._detail; set => this._detail = value; } + + /// Internal Acessors for Target + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.Target { get => (this._target = this._target ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask()); set { {_target = value;} } } + + /// Internal Acessors for TargetEndTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.TargetEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).EndTime = value; } + + /// Internal Acessors for TargetId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Id = value; } + + /// Internal Acessors for TargetLogUri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.TargetLogUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).LogUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).LogUri = value; } + + /// Internal Acessors for TargetStartTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.TargetStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).StartTime = value; } + + /// Internal Acessors for TargetStatus + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorInternal.TargetStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Status = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask _target; + + /// The customization task that the error is about. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask Target { get => (this._target = this._target ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask()); set => this._target = value; } + + /// Display name to help differentiate multiple instances of the same task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string TargetDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).DisplayName = value ?? null; } + + /// End time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? TargetEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).EndTime; } + + /// ID of the task instance. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string TargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Id; } + + /// The unique URI for retrieving the task logs. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string TargetLogUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).LogUri; } + + /// Name of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string TargetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Name = value ; } + + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters TargetParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Parameter = value ?? null /* model class */; } + + /// Start time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? TargetStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).StartTime; } + + /// Status of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? TargetStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskInternal)Target).Status; } + + /// Creates an new instance. + public CustomizationTaskListValidationError() + { + + } + } + /// All of the validation errors for a customization task. + public partial interface ICustomizationTaskListValidationError : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// List of validation errors for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"List of validation errors for the task.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[] Detail { get; set; } + /// Display name to help differentiate multiple instances of the same task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name to help differentiate multiple instances of the same task.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string TargetDisplayName { get; set; } + /// End time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"End time of the task.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? TargetEndTime { get; } + /// ID of the task instance. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ID of the task instance.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string TargetId { get; } + /// The unique URI for retrieving the task logs. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI for retrieving the task logs.", + SerializedName = @"logUri", + PossibleTypes = new [] { typeof(string) })] + string TargetLogUri { get; } + /// Name of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the task.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string TargetName { get; set; } + /// Parameters for the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Parameters for the task.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters TargetParameter { get; set; } + /// Start time of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Start time of the task.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? TargetStartTime { get; } + /// Status of the task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status of the task.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? TargetStatus { get; } + + } + /// All of the validation errors for a customization task. + internal partial interface ICustomizationTaskListValidationErrorInternal + + { + /// List of validation errors for the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails[] Detail { get; set; } + /// The customization task that the error is about. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask Target { get; set; } + /// Display name to help differentiate multiple instances of the same task. + string TargetDisplayName { get; set; } + /// End time of the task. + global::System.DateTime? TargetEndTime { get; set; } + /// ID of the task instance. + string TargetId { get; set; } + /// The unique URI for retrieving the task logs. + string TargetLogUri { get; set; } + /// Name of the task. + string TargetName { get; set; } + /// Parameters for the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters TargetParameter { get; set; } + /// Start time of the task. + global::System.DateTime? TargetStartTime { get; set; } + /// Status of the task. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus? TargetStatus { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.json.cs new file mode 100644 index 000000000000..b3711e05e1ff --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationError.json.cs @@ -0,0 +1,119 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// All of the validation errors for a customization task. + public partial class CustomizationTaskListValidationError + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskListValidationError(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTask.FromJson(__jsonTarget) : Target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorDetails.FromJson(__u) )) ))() : null : Detail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskListValidationError(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._target ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._target.ToJson(null,serializationMode) : null, "target" ,container.Add ); + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.PowerShell.cs new file mode 100644 index 000000000000..1d806a773c29 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A single error from validating a task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationErrorDetailsTypeConverter))] + public partial class CustomizationTaskListValidationErrorDetails + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskListValidationErrorDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Message, 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 CustomizationTaskListValidationErrorDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal)this).Message, 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskListValidationErrorDetails(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskListValidationErrorDetails(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A single error from validating a task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationErrorDetailsTypeConverter))] + public partial interface ICustomizationTaskListValidationErrorDetails + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.TypeConverter.cs new file mode 100644 index 000000000000..44b32b767395 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListValidationErrorDetailsTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskListValidationErrorDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationErrorDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationErrorDetails.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.cs new file mode 100644 index 000000000000..3ed4ebc897b5 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.cs @@ -0,0 +1,82 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A single error from validating a task. + public partial class CustomizationTaskListValidationErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetailsInternal + { + + /// Backing field for property. + private string _code; + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// + /// Creates an new instance. + /// + public CustomizationTaskListValidationErrorDetails() + { + + } + } + /// A single error from validating a task. + public partial interface ICustomizationTaskListValidationErrorDetails : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + + } + /// A single error from validating a task. + internal partial interface ICustomizationTaskListValidationErrorDetailsInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.json.cs new file mode 100644 index 000000000000..d1bbc073310e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationErrorDetails.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A single error from validating a task. + public partial class CustomizationTaskListValidationErrorDetails + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskListValidationErrorDetails(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationErrorDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskListValidationErrorDetails(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.PowerShell.cs new file mode 100644 index 000000000000..867baaeaf5c6 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.PowerShell.cs @@ -0,0 +1,261 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The operation result of validating a list of customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationOperationResultTypeConverter))] + public partial class CustomizationTaskListValidationOperationResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskListValidationOperationResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResultTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("ResultValidationResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultValidationResult = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) content.GetValueForProperty("ResultValidationResult",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultValidationResult, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus.CreateFrom); + } + if (content.Contains("ResultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultError = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[]) content.GetValueForProperty("ResultError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskListValidationOperationResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResultTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("ResultValidationResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultValidationResult = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) content.GetValueForProperty("ResultValidationResult",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultValidationResult, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus.CreateFrom); + } + if (content.Contains("ResultError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultError = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[]) content.GetValueForProperty("ResultError",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal)this).ResultError, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorTypeConverter.ConvertFrom)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskListValidationOperationResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskListValidationOperationResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The operation result of validating a list of customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationOperationResultTypeConverter))] + public partial interface ICustomizationTaskListValidationOperationResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.TypeConverter.cs new file mode 100644 index 000000000000..e6c354dea385 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListValidationOperationResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskListValidationOperationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationOperationResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationOperationResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.cs new file mode 100644 index 000000000000..841ea167874f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.cs @@ -0,0 +1,152 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The operation result of validating a list of customization tasks. + public partial class CustomizationTaskListValidationOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus __operationStatus = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus(); + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Code = value ?? null; } + + /// The end time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).EndTime = value ?? default(global::System.DateTime); } + + /// Operation Error message + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Error = value ?? null /* model class */; } + + /// Fully qualified ID for the operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Id = value ?? null; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Message = value ?? null; } + + /// Internal Acessors for Result + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResultInternal.Result { get => (this._result = this._result ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResult()); set { {_result = value;} } } + + /// The operation id name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Name = value ?? null; } + + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).OperationLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).OperationLocation = value ?? null; } + + /// Percent of the operation that is complete + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public float? PercentComplete { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).PercentComplete; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).PercentComplete = value ?? default(float); } + + /// Custom operation properties, populated only for a successful operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Property = value ?? null /* model class */; } + + /// The id of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string ResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).ResourceId = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult _result; + + /// Outcome of validation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult Result { get => (this._result = this._result ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResult()); set => this._result = value; } + + /// List of validation errors. Absent if no errors. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] ResultError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)Result).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)Result).Error = value ?? null /* arrayOf */; } + + /// Outcome of validation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus? ResultValidationResult { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)Result).ValidationResult; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)Result).ValidationResult = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus)""); } + + /// The start time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).StartTime = value ?? default(global::System.DateTime); } + + /// Provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)__operationStatus).Status = value ; } + + /// + /// Creates an new instance. + /// + public CustomizationTaskListValidationOperationResult() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Operation-Location", out var __operationLocationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = System.Linq.Enumerable.FirstOrDefault(__operationLocationHeader0) is string __headerOperationLocationHeader0 ? __headerOperationLocationHeader0 : (string)null; + } + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__operationStatus), __operationStatus); + await eventListener.AssertObjectIsValid(nameof(__operationStatus), __operationStatus); + } + } + /// The operation result of validating a list of customization tasks. + public partial interface ICustomizationTaskListValidationOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus + { + /// List of validation errors. Absent if no errors. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of validation errors. Absent if no errors.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] ResultError { get; set; } + /// Outcome of validation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Outcome of validation.", + SerializedName = @"validationResult", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus? ResultValidationResult { get; set; } + + } + /// The operation result of validating a list of customization tasks. + internal partial interface ICustomizationTaskListValidationOperationResultInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal + { + /// Outcome of validation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult Result { get; set; } + /// List of validation errors. Absent if no errors. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] ResultError { get; set; } + /// Outcome of validation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus? ResultValidationResult { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.json.cs new file mode 100644 index 000000000000..d7af04031792 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationOperationResult.json.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The operation result of validating a list of customization tasks. + public partial class CustomizationTaskListValidationOperationResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskListValidationOperationResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __operationStatus = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatus(json); + {_result = If( json?.PropertyT("result"), out var __jsonResult) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationResult.FromJson(__jsonResult) : Result;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskListValidationOperationResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __operationStatus?.ToJson(container, serializationMode); + AddIf( null != this._result ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._result.ToJson(null,serializationMode) : null, "result" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.PowerShell.cs new file mode 100644 index 000000000000..6ed4e24fdec9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.PowerShell.cs @@ -0,0 +1,157 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The result of validating a list of customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationResultTypeConverter))] + public partial class CustomizationTaskListValidationResult + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskListValidationResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ValidationResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).ValidationResult = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) content.GetValueForProperty("ValidationResult",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).ValidationResult, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus.CreateFrom); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskListValidationResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ValidationResult")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).ValidationResult = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) content.GetValueForProperty("ValidationResult",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).ValidationResult, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus.CreateFrom); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[]) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal)this).Error, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationErrorTypeConverter.ConvertFrom)); + } + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskListValidationResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskListValidationResult(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The result of validating a list of customization tasks. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskListValidationResultTypeConverter))] + public partial interface ICustomizationTaskListValidationResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.TypeConverter.cs new file mode 100644 index 000000000000..bbc64d168d78 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskListValidationResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskListValidationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskListValidationResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.cs new file mode 100644 index 000000000000..5e0b7dc4e6ca --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The result of validating a list of customization tasks. + public partial class CustomizationTaskListValidationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResultInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] _error; + + /// List of validation errors. Absent if no errors. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] Error { get => this._error; set => this._error = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus _validationResult; + + /// Outcome of validation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus ValidationResult { get => this._validationResult; set => this._validationResult = value; } + + /// Creates an new instance. + public CustomizationTaskListValidationResult() + { + + } + } + /// The result of validating a list of customization tasks. + public partial interface ICustomizationTaskListValidationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// List of validation errors. Absent if no errors. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of validation errors. Absent if no errors.", + SerializedName = @"errors", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] Error { get; set; } + /// Outcome of validation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Outcome of validation.", + SerializedName = @"validationResult", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus ValidationResult { get; set; } + + } + /// The result of validating a list of customization tasks. + internal partial interface ICustomizationTaskListValidationResultInternal + + { + /// List of validation errors. Absent if no errors. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError[] Error { get; set; } + /// Outcome of validation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus ValidationResult { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.json.cs new file mode 100644 index 000000000000..1dabad1cb440 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskListValidationResult.json.cs @@ -0,0 +1,119 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The result of validating a list of customization tasks. + public partial class CustomizationTaskListValidationResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal CustomizationTaskListValidationResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_validationResult = If( json?.PropertyT("validationResult"), out var __jsonValidationResult) ? (string)__jsonValidationResult : (string)ValidationResult;} + {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? If( __jsonErrors as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationError) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskListValidationError.FromJson(__u) )) ))() : null : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskListValidationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskListValidationResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._validationResult)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._validationResult.ToString()) : null, "validationResult" ,container.Add ); + if (null != this._error) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._error ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("errors",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.PowerShell.cs new file mode 100644 index 000000000000..d5cc3f6fb43a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.PowerShell.cs @@ -0,0 +1,142 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Parameters for the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskParametersTypeConverter))] + public partial class CustomizationTaskParameters + { + + /// + /// 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); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal CustomizationTaskParameters(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CustomizationTaskParameters(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CustomizationTaskParameters(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CustomizationTaskParameters(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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Parameters for the task. + [System.ComponentModel.TypeConverter(typeof(CustomizationTaskParametersTypeConverter))] + public partial interface ICustomizationTaskParameters + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.TypeConverter.cs new file mode 100644 index 000000000000..9c45ba95341b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CustomizationTaskParametersTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CustomizationTaskParameters.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CustomizationTaskParameters.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CustomizationTaskParameters.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.cs new file mode 100644 index 000000000000..02369b431ad4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.cs @@ -0,0 +1,35 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for the task. + public partial class CustomizationTaskParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParametersInternal + { + + /// Creates an new instance. + public CustomizationTaskParameters() + { + + } + } + /// Parameters for the task. + public partial interface ICustomizationTaskParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + + } + /// Parameters for the task. + internal partial interface ICustomizationTaskParametersInternal + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.dictionary.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.dictionary.cs new file mode 100644 index 000000000000..4e6a5ae65c62 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + public partial class CustomizationTaskParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskParameters source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.json.cs new file mode 100644 index 000000000000..f39a1fac1131 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/CustomizationTaskParameters.json.cs @@ -0,0 +1,109 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Parameters for the task. + public partial class CustomizationTaskParameters + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + /// + internal CustomizationTaskParameters(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new CustomizationTaskParameters(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.PowerShell.cs new file mode 100644 index 000000000000..b5efe0cad965 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.PowerShell.cs @@ -0,0 +1,392 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A Dev Box + [System.ComponentModel.TypeConverter(typeof(DevBoxTypeConverter))] + public partial class DevBox + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBox DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBox(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.DevCenterdata.Models.Api20231001Preview.IDevBox DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBox(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBox(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("HardwareProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfileTypeConverter.ConvertFrom); + } + if (content.Contains("StorageProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfileTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ProjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProjectName = (string) content.GetValueForProperty("ProjectName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProjectName, global::System.Convert.ToString); + } + if (content.Contains("PoolName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PoolName, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ActionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ActionState = (string) content.GetValueForProperty("ActionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ActionState, global::System.Convert.ToString); + } + if (content.Contains("PowerState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState.CreateFrom); + } + if (content.Contains("UniqueId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).UniqueId, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); + } + if (content.Contains("User")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).User, global::System.Convert.ToString); + } + if (content.Contains("CreatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("HardwareProfileSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileMemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StorageProfileOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReferenceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceName, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceVersion, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceOperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("ImageReferencePublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("HardwareProfileVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReferenceOSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("OSDiskSizeGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DevBox(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("HardwareProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfileTypeConverter.ConvertFrom); + } + if (content.Contains("StorageProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfileTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ProjectName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProjectName = (string) content.GetValueForProperty("ProjectName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProjectName, global::System.Convert.ToString); + } + if (content.Contains("PoolName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PoolName = (string) content.GetValueForProperty("PoolName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PoolName, global::System.Convert.ToString); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ActionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ActionState = (string) content.GetValueForProperty("ActionState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ActionState, global::System.Convert.ToString); + } + if (content.Contains("PowerState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PowerState = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState?) content.GetValueForProperty("PowerState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).PowerState, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState.CreateFrom); + } + if (content.Contains("UniqueId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).UniqueId = (string) content.GetValueForProperty("UniqueId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).UniqueId, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); + } + if (content.Contains("User")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).User, global::System.Convert.ToString); + } + if (content.Contains("CreatedTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).CreatedTime = (global::System.DateTime?) content.GetValueForProperty("CreatedTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).CreatedTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("HardwareProfileSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileMemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StorageProfileOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReferenceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceName, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceVersion, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceOperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("ImageReferencePublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("HardwareProfileVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReferenceOSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("OSDiskSizeGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBox FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A Dev Box + [System.ComponentModel.TypeConverter(typeof(DevBoxTypeConverter))] + public partial interface IDevBox + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.TypeConverter.cs index f49d71b8e1a8..8c6ad7a8a4c6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBox ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.cs similarity index 75% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.cs index 2ef9f72d4cdd..aa89a39dc7b9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// A Dev Box public partial class DevBox : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal { /// Backing field for property. @@ -26,7 +26,7 @@ public partial class DevBox : /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// Backing field for property. private global::System.DateTime? _createdTime; @@ -37,33 +37,33 @@ public partial class DevBox : /// A list of additional details about the error. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; /// Provisioning or action error details. Populated only for error states. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile _hardwareProfile; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile _hardwareProfile; /// Information about the Dev Box's hardware resources [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile()); } /// The amount of memory available for the Dev Box. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb; } + public int? HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb; } /// The name of the SKU [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName; } + public string HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName; } /// The number of vCPUs available for the Dev Box. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs; } + public int? HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? _hibernateSupport; @@ -73,31 +73,31 @@ public partial class DevBox : public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference _imageReference; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference _imageReference; /// Information about the image used for this Dev Box [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference()); } /// The name of the image used. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name; } + public string ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name; } /// The operating system build number of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber; } + public string ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber; } /// The operating system of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem; } + public string ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem; } /// The datetime that the backing image version was published. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public global::System.DateTime? ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate; } + public global::System.DateTime? ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate; } /// The version of the image. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version; } + public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? _localAdministrator; @@ -119,82 +119,85 @@ public partial class DevBox : /// A message describing the error, intended to be suitable for display in a user interface. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for ActionState - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ActionState { get => this._actionState; set { {_actionState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ActionState { get => this._actionState; set { {_actionState = value;} } } /// Internal Acessors for CreatedTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.CreatedTime { get => this._createdTime; set { {_createdTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.CreatedTime { get => this._createdTime; set { {_createdTime = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } /// Internal Acessors for HardwareProfile - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile()); set { {_hardwareProfile = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile()); set { {_hardwareProfile = value;} } } /// Internal Acessors for HardwareProfileMemoryGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).MemoryGb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb = value; } /// Internal Acessors for HardwareProfileSkuName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).SkuName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName = value; } /// Internal Acessors for HardwareProfileVCpUs - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal)HardwareProfile).VCpUs = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs = value; } /// Internal Acessors for HibernateSupport - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.HibernateSupport { get => this._hibernateSupport; set { {_hibernateSupport = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.HibernateSupport { get => this._hibernateSupport; set { {_hibernateSupport = value;} } } /// Internal Acessors for ImageReference - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference()); set { {_imageReference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference()); set { {_imageReference = value;} } } /// Internal Acessors for ImageReferenceName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name = value; } /// Internal Acessors for ImageReferenceOSBuildNumber - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OSBuildNumber = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber = value; } /// Internal Acessors for ImageReferenceOperatingSystem - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).OperatingSystem = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem = value; } /// Internal Acessors for ImageReferencePublishedDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).PublishedDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate = value; } /// Internal Acessors for ImageReferenceVersion - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReferenceInternal)ImageReference).Version = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version = value; } /// Internal Acessors for Location - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.Location { get => this._location; set { {_location = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.Location { get => this._location; set { {_location = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for OSDiskSizeGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb = value; } /// Internal Acessors for OSType - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.OSType { get => this._oSType; set { {_oSType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.OSType { get => this._oSType; set { {_oSType = value;} } } /// Internal Acessors for PowerState - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.PowerState { get => this._powerState; set { {_powerState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PowerState? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.PowerState { get => this._powerState; set { {_powerState = value;} } } /// Internal Acessors for ProjectName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ProjectName { get => this._projectName; set { {_projectName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ProjectName { get => this._projectName; set { {_projectName = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for StorageProfile - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile()); set { {_storageProfile = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile()); set { {_storageProfile = value;} } } /// Internal Acessors for StorageProfileOSDisk - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDisk = value; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDisk = value; } /// Internal Acessors for UniqueId - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.UniqueId { get => this._uniqueId; set { {_uniqueId = value;} } } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.Uri { get => this._uri; set { {_uri = value;} } } /// Internal Acessors for User - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxInternal.User { get => this._user; set { {_user = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxInternal.User { get => this._user; set { {_user = value;} } } /// Backing field for property. private string _name; @@ -205,7 +208,7 @@ public partial class DevBox : /// The size of the OS Disk in gigabytes. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; } + public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? _oSType; @@ -243,17 +246,17 @@ public partial class DevBox : public string ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile _storageProfile; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile _storageProfile; /// Storage settings for this Dev Box [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile()); } /// /// The target of the particular error. For example, the name of the property in error. /// [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// Backing field for property. private string _uniqueId; @@ -264,6 +267,13 @@ public partial class DevBox : [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] public string UniqueId { get => this._uniqueId; } + /// Backing field for property. + private string _uri; + + /// The unique URI of the dev box + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; } + /// Backing field for property. private string _user; @@ -315,8 +325,8 @@ public partial interface IDevBox : ReadOnly = false, Description = @"A list of additional details about the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } /// The amount of memory available for the Dev Box. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, @@ -493,6 +503,14 @@ public partial interface IDevBox : SerializedName = @"uniqueId", PossibleTypes = new [] { typeof(string) })] string UniqueId { get; } + /// The unique URI of the dev box + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI of the dev box", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } /// The AAD object id of the user this Dev Box is assigned to. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, @@ -518,11 +536,11 @@ internal partial interface IDevBoxInternal /// Creation time of this Dev Box global::System.DateTime? CreatedTime { get; set; } /// A list of additional details about the error. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } /// Provisioning or action error details. Populated only for error states. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } /// Information about the Dev Box's hardware resources - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile HardwareProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile HardwareProfile { get; set; } /// The amount of memory available for the Dev Box. int? HardwareProfileMemoryGb { get; set; } /// The name of the SKU @@ -532,7 +550,7 @@ internal partial interface IDevBoxInternal /// Indicates whether hibernate is enabled/disabled or unknown. Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get; set; } /// Information about the image used for this Dev Box - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IImageReference ImageReference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference ImageReference { get; set; } /// The name of the image used. string ImageReferenceName { get; set; } /// The operating system build number of the image. @@ -568,9 +586,9 @@ internal partial interface IDevBoxInternal /// The current provisioning state of the Dev Box. string ProvisioningState { get; set; } /// Storage settings for this Dev Box - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile StorageProfile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile StorageProfile { get; set; } /// Settings for the operating system disk. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk StorageProfileOSDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk StorageProfileOSDisk { get; set; } /// /// The target of the particular error. For example, the name of the property in error. /// @@ -579,6 +597,8 @@ internal partial interface IDevBoxInternal /// A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// string UniqueId { get; set; } + /// The unique URI of the dev box + string Uri { get; set; } /// The AAD object id of the user this Dev Box is assigned to. string User { get; set; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.json.cs similarity index 93% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.json.cs index 6ac41780fc2a..642ed424c891 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBox.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBox.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,10 +65,11 @@ internal DevBox(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.Js { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody.FromJson(__jsonError) : Error;} - {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile;} - {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} - {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ImageReference.FromJson(__jsonImageReference) : ImageReference;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile;} + {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} + {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference.FromJson(__jsonImageReference) : ImageReference;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_projectName = If( json?.PropertyT("projectName"), out var __jsonProjectName) ? (string)__jsonProjectName : (string)ProjectName;} {_poolName = If( json?.PropertyT("poolName"), out var __jsonPoolName) ? (string)__jsonPoolName : (string)PoolName;} @@ -86,13 +87,13 @@ internal DevBox(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBox(json) : null; } @@ -133,6 +134,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To AddIf( null != this._imageReference ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._imageReference.ToJson(null,serializationMode) : null, "imageReference" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.PowerShell.cs new file mode 100644 index 000000000000..9b528c63780f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.PowerShell.cs @@ -0,0 +1,208 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// An action which will take place on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxActionTypeConverter))] + public partial class DevBoxAction + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxAction(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.DevCenterdata.Models.Api20231001Preview.IDevBoxAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxAction(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Next")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("SourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceId, global::System.Convert.ToString); + } + if (content.Contains("SourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceUri = (string) content.GetValueForProperty("SourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceUri, global::System.Convert.ToString); + } + if (content.Contains("SourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType.CreateFrom); + } + if (content.Contains("SuspendedUntil")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("SuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).NextScheduledTime, (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 DevBoxAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Next")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("SourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceId = (string) content.GetValueForProperty("SourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceId, global::System.Convert.ToString); + } + if (content.Contains("SourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceUri = (string) content.GetValueForProperty("SourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceUri, global::System.Convert.ToString); + } + if (content.Contains("SourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SourceType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType.CreateFrom); + } + if (content.Contains("SuspendedUntil")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("SuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).SuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)this).NextScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An action which will take place on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxActionTypeConverter))] + public partial interface IDevBoxAction + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.TypeConverter.cs index b7d8097c6127..aab27db2eaa5 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxAction ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.cs new file mode 100644 index 000000000000..2da952c96b74 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.cs @@ -0,0 +1,182 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An action which will take place on a Dev Box. + public partial class DevBoxAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal + { + + /// Backing field for property. + private string _actionType= @"Stop"; + + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ActionType { get => this._actionType; } + + /// Internal Acessors for ActionType + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } + + /// Internal Acessors for Next + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal.Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextAction()); set { {_next = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction _next; + + /// Details about the next run of this action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextAction()); set => this._next = value; } + + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? NextScheduledTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)Next).ScheduledTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)Next).ScheduledTime = value ?? default(global::System.DateTime); } + + /// Backing field for property. + private string _sourceId; + + /// The id of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string SourceId { get => this._sourceId; set => this._sourceId = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType _sourceType; + + /// The type of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType SourceType { get => this._sourceType; set => this._sourceType = value; } + + /// Backing field for property. + private string _sourceUri; + + /// The URI of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string SourceUri { get => this._sourceUri; set => this._sourceUri = value; } + + /// Backing field for property. + private global::System.DateTime? _suspendedUntil; + + /// The earliest time that the action could occur (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? SuspendedUntil { get => this._suspendedUntil; set => this._suspendedUntil = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI for the Dev Box action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public DevBoxAction() + { + + } + } + /// An action which will take place on a Dev Box. + public partial interface IDevBoxAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The action that will be taken.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(string) })] + string ActionType { get; } + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the action.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the action will be triggered (UTC).", + SerializedName = @"scheduledTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? NextScheduledTime { get; set; } + /// The id of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The id of the resource which triggered this action", + SerializedName = @"sourceId", + PossibleTypes = new [] { typeof(string) })] + string SourceId { get; set; } + /// The type of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The type of the resource which triggered this action", + SerializedName = @"sourceType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType SourceType { get; set; } + /// The URI of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The URI of the resource which triggered this action", + SerializedName = @"sourceUri", + PossibleTypes = new [] { typeof(string) })] + string SourceUri { get; set; } + /// The earliest time that the action could occur (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The earliest time that the action could occur (UTC).", + SerializedName = @"suspendedUntil", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SuspendedUntil { get; set; } + /// The unique URI for the Dev Box action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI for the Dev Box action.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// An action which will take place on a Dev Box. + internal partial interface IDevBoxActionInternal + + { + /// The action that will be taken. + string ActionType { get; set; } + /// The name of the action. + string Name { get; set; } + /// Details about the next run of this action. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction Next { get; set; } + /// The time the action will be triggered (UTC). + global::System.DateTime? NextScheduledTime { get; set; } + /// The id of the resource which triggered this action + string SourceId { get; set; } + /// The type of the resource which triggered this action + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType SourceType { get; set; } + /// The URI of the resource which triggered this action + string SourceUri { get; set; } + /// The earliest time that the action could occur (UTC). + global::System.DateTime? SuspendedUntil { get; set; } + /// The unique URI for the Dev Box action. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.json.cs similarity index 83% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.json.cs index 73b30f267268..9be0a1bd5830 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxAction.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,22 +65,25 @@ internal DevBoxAction(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.J { return; } - {_next = If( json?.PropertyT("next"), out var __jsonNext) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxNextAction.FromJson(__jsonNext) : Next;} + {_next = If( json?.PropertyT("next"), out var __jsonNext) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextAction.FromJson(__jsonNext) : Next;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;} + {_sourceUri = If( json?.PropertyT("sourceUri"), out var __jsonSourceUri) ? (string)__jsonSourceUri : (string)SourceUri;} + {_sourceType = If( json?.PropertyT("sourceType"), out var __jsonSourceType) ? (string)__jsonSourceType : (string)SourceType;} {_suspendedUntil = If( json?.PropertyT("suspendedUntil"), out var __jsonSuspendedUntil) ? global::System.DateTime.TryParse((string)__jsonSuspendedUntil, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonSuspendedUntilValue) ? __jsonSuspendedUntilValue : SuspendedUntil : SuspendedUntil;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxAction(json) : null; } @@ -105,9 +108,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To return container; } AddIf( null != this._next ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._next.ToJson(null,serializationMode) : null, "next" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); AddIf( null != (((object)this._sourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._sourceId.ToString()) : null, "sourceId" ,container.Add ); + AddIf( null != (((object)this._sourceUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._sourceUri.ToString()) : null, "sourceUri" ,container.Add ); + AddIf( null != (((object)this._sourceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._sourceType.ToString()) : null, "sourceType" ,container.Add ); AddIf( null != this._suspendedUntil ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._suspendedUntil?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "suspendedUntil" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.PowerShell.cs new file mode 100644 index 000000000000..55dcc7803974 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.PowerShell.cs @@ -0,0 +1,282 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The action delay result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionDelayResultTypeConverter))] + public partial class DevBoxActionDelayResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxActionDelayResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxActionDelayResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxActionDelayResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionTypeConverter.ConvertFrom); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus.CreateFrom); + } + if (content.Contains("ActionNext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionNext = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction) content.GetValueForProperty("ActionNext",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionNext, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("ActionUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionUri = (string) content.GetValueForProperty("ActionUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionUri, global::System.Convert.ToString); + } + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceId = (string) content.GetValueForProperty("ActionSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceId, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceUri = (string) content.GetValueForProperty("ActionSourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceUri, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) content.GetValueForProperty("ActionSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType.CreateFrom); + } + if (content.Contains("ActionSuspendedUntil")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("ActionSuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).NextScheduledTime, (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 DevBoxActionDelayResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionTypeConverter.ConvertFrom); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus.CreateFrom); + } + if (content.Contains("ActionNext")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionNext = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction) content.GetValueForProperty("ActionNext",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionNext, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("ActionUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionUri = (string) content.GetValueForProperty("ActionUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionUri, global::System.Convert.ToString); + } + if (content.Contains("ActionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionName, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceId = (string) content.GetValueForProperty("ActionSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceId, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceUri = (string) content.GetValueForProperty("ActionSourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceUri, global::System.Convert.ToString); + } + if (content.Contains("ActionSourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) content.GetValueForProperty("ActionSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSourceType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType.CreateFrom); + } + if (content.Contains("ActionSuspendedUntil")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil = (global::System.DateTime?) content.GetValueForProperty("ActionSuspendedUntil",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).ActionSuspendedUntil, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal)this).NextScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The action delay result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionDelayResultTypeConverter))] + public partial interface IDevBoxActionDelayResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.TypeConverter.cs index 475b1ceb93fa..404537d21fc8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.cs new file mode 100644 index 000000000000..7f528e0dd5ad --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.cs @@ -0,0 +1,303 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The action delay result + public partial class DevBoxActionDelayResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction _action; + + /// The delayed action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction()); set => this._action = value; } + + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ActionName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Name = value ?? null; } + + /// The id of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ActionSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceId = value ?? null; } + + /// The type of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType? ActionSourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType)""); } + + /// The URI of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ActionSourceUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceUri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SourceUri = value ?? null; } + + /// The earliest time that the action could occur (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? ActionSuspendedUntil { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SuspendedUntil; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).SuspendedUntil = value ?? default(global::System.DateTime); } + + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).ActionType; } + + /// The unique URI for the Dev Box action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ActionUri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Uri = value ?? null; } + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Information about the error that occurred. Only populated on error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set => this._error = value; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction()); set { {_action = value;} } } + + /// Internal Acessors for ActionNext + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal.ActionNext { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Next; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).Next = value; } + + /// Internal Acessors for ActionType + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal.ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).ActionType = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResultInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? NextScheduledTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).NextScheduledTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionInternal)Action).NextScheduledTime = value ?? default(global::System.DateTime); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus _result; + + /// The result of the delay operation on this action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get => this._result; set => this._result = value; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public DevBoxActionDelayResult() + { + + } + } + /// The action delay result + public partial interface IDevBoxActionDelayResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the action.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string ActionName { get; set; } + /// The id of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The id of the resource which triggered this action", + SerializedName = @"sourceId", + PossibleTypes = new [] { typeof(string) })] + string ActionSourceId { get; set; } + /// The type of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of the resource which triggered this action", + SerializedName = @"sourceType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType? ActionSourceType { get; set; } + /// The URI of the resource which triggered this action + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URI of the resource which triggered this action", + SerializedName = @"sourceUri", + PossibleTypes = new [] { typeof(string) })] + string ActionSourceUri { get; set; } + /// The earliest time that the action could occur (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The earliest time that the action could occur (UTC).", + SerializedName = @"suspendedUntil", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ActionSuspendedUntil { get; set; } + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The action that will be taken.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(string) })] + string ActionType { get; } + /// The unique URI for the Dev Box action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The unique URI for the Dev Box action.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string ActionUri { get; set; } + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The name of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the action.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the action will be triggered (UTC).", + SerializedName = @"scheduledTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? NextScheduledTime { get; set; } + /// The result of the delay operation on this action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The result of the delay operation on this action.", + SerializedName = @"result", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + /// The unique URI of the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the action.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// The action delay result + internal partial interface IDevBoxActionDelayResultInternal + + { + /// The delayed action + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction Action { get; set; } + /// The name of the action. + string ActionName { get; set; } + /// Details about the next run of this action. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction ActionNext { get; set; } + /// The id of the resource which triggered this action + string ActionSourceId { get; set; } + /// The type of the resource which triggered this action + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType? ActionSourceType { get; set; } + /// The URI of the resource which triggered this action + string ActionSourceUri { get; set; } + /// The earliest time that the action could occur (UTC). + global::System.DateTime? ActionSuspendedUntil { get; set; } + /// The action that will be taken. + string ActionType { get; set; } + /// The unique URI for the Dev Box action. + string ActionUri { get; set; } + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// Information about the error that occurred. Only populated on error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// The name of the action. + string Name { get; set; } + /// The time the action will be triggered (UTC). + global::System.DateTime? NextScheduledTime { get; set; } + /// The result of the delay operation on this action. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionDelayResultStatus Result { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + /// The unique URI of the action. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.json.cs similarity index 90% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.json.cs index c1d2b3ffdc57..3b428380f958 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionDelayResult.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionDelayResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,21 +65,22 @@ internal DevBoxActionDelayResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdat { return; } - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction.FromJson(__jsonAction) : Action;} - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody.FromJson(__jsonError) : Error;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction.FromJson(__jsonAction) : Action;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_result = If( json?.PropertyT("result"), out var __jsonResult) ? (string)__jsonResult : (string)Result;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxActionDelayResult(json) : null; } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To } AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._result)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._result.ToString()) : null, "result" ,container.Add ); AfterToJson(ref container); diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.PowerShell.cs new file mode 100644 index 000000000000..5b423c11ff0d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionsDelayMultipleResultTypeConverter))] + public partial class DevBoxActionsDelayMultipleResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxActionsDelayMultipleResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxActionsDelayMultipleResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxActionsDelayMultipleResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionDelayResultTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).NextLink, 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 DevBoxActionsDelayMultipleResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionDelayResultTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionsDelayMultipleResultTypeConverter))] + public partial interface IDevBoxActionsDelayMultipleResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.TypeConverter.cs index d7e26f72ed04..2902734b2cfa 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.cs similarity index 85% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.cs index d274a3015145..51f54004af50 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// The actions list result public partial class DevBoxActionsDelayMultipleResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class DevBoxActionsDelayMultipleResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[] _value; /// Current page of results [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DevBoxActionsDelayMultipleResult() @@ -51,8 +51,8 @@ public partial interface IDevBoxActionsDelayMultipleResult : ReadOnly = false, Description = @"Current page of results", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[] Value { get; set; } } /// The actions list result @@ -62,7 +62,7 @@ internal partial interface IDevBoxActionsDelayMultipleResultInternal /// The URL to get the next set of results. string NextLink { get; set; } /// Current page of results - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.json.cs similarity index 91% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.json.cs index 8e24a379fece..96a4c74a3b4f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsDelayMultipleResult.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsDelayMultipleResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevBoxActionsDelayMultipleResult(Microsoft.Azure.PowerShell.Cmdlets.Dev { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxActionDelayResult.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionDelayResult.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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxActionsDelayMultipleResult(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.PowerShell.cs new file mode 100644 index 000000000000..085414d7a22e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionsListResultTypeConverter))] + public partial class DevBoxActionsListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxActionsListResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxActionsListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxActionsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).NextLink, 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 DevBoxActionsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxActionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(DevBoxActionsListResultTypeConverter))] + public partial interface IDevBoxActionsListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.TypeConverter.cs index 18524c415d26..038a8258f173 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.cs similarity index 86% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.cs index 9d66c9cc6815..74c28ec36d83 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// The actions list result public partial class DevBoxActionsListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class DevBoxActionsListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[] _value; /// Current page of results [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DevBoxActionsListResult() @@ -51,8 +51,8 @@ public partial interface IDevBoxActionsListResult : ReadOnly = false, Description = @"Current page of results", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[] Value { get; set; } } /// The actions list result @@ -62,7 +62,7 @@ internal partial interface IDevBoxActionsListResultInternal /// The URL to get the next set of results. string NextLink { get; set; } /// Current page of results - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.json.cs index 0d62156606d8..ff9087d9742b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxActionsListResult.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxActionsListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevBoxActionsListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdat { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxAction) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBoxAction.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxAction) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxAction.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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxActionsListResult(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.PowerShell.cs new file mode 100644 index 000000000000..9e3dbf72e0d7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The Dev Box list result + [System.ComponentModel.TypeConverter(typeof(DevBoxListResultTypeConverter))] + public partial class DevBoxListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxListResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).NextLink, 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 DevBoxListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Dev Box list result + [System.ComponentModel.TypeConverter(typeof(DevBoxListResultTypeConverter))] + public partial interface IDevBoxListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.TypeConverter.cs index b6b83b70d0c4..41b86b5d6e38 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.cs similarity index 87% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.cs index a59c791fcfcf..5dee8b7fbb99 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// The Dev Box list result public partial class DevBoxListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class DevBoxListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[] _value; /// The list of DevBox Dev Boxes [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DevBoxListResult() @@ -51,8 +51,8 @@ public partial interface IDevBoxListResult : ReadOnly = false, Description = @"The list of DevBox Dev Boxes", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[] Value { get; set; } } /// The Dev Box list result @@ -62,7 +62,7 @@ internal partial interface IDevBoxListResultInternal /// The URL to get the next set of results. string NextLink { get; set; } /// The list of DevBox Dev Boxes - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.json.cs index 1c15cf43bf37..f9789a92b00d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxListResult.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DevBoxListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBox) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBox) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox.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.DevCenterdata.Models.Api20230401.IDevBoxListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxListResult(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.PowerShell.cs similarity index 79% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.PowerShell.cs index 6092d521558c..cd62b4531ce9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DevBoxNextAction partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IDevBoxNextAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DevBoxNextAction(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.DevCenterdata.Models.Api20230401.IDevBoxNextAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DevBoxNextAction(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DevBoxNextAction(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ScheduledTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)this).ScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)this).ScheduledTime, (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. @@ -117,7 +119,7 @@ internal DevBoxNextAction(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ScheduledTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal)this).ScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal)this).ScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DevBoxNextAction(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.DevCenterdata.Models.Api20230401.IDevBoxNextAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.TypeConverter.cs index 37f195ec2f4f..1c384b9bbbe2 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IDevBoxNextAction ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.cs similarity index 95% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.cs index ddd10bb28816..5cc4132c35a7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Details about the next run of an action. public partial class DevBoxNextAction : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextActionInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextActionInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.json.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.json.cs index 94574c6b76d3..684364e2aaa3 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/DevBoxNextAction.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxNextAction.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -70,13 +70,13 @@ internal DevBoxNextAction(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxNextAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxNextAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxNextAction(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.PowerShell.cs new file mode 100644 index 000000000000..151951d125ff --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about an operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxOperationTypeConverter))] + public partial class DevBoxOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxOperation(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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DevBoxOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about an operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxOperationTypeConverter))] + public partial interface IDevBoxOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.TypeConverter.cs new file mode 100644 index 000000000000..46c56c26e47b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.cs new file mode 100644 index 000000000000..f66be8e1b11a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.cs @@ -0,0 +1,239 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about an operation on a Dev Box. + public partial class DevBoxOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal + { + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + + /// Backing field for property. + private string _createdByObjectId; + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CreatedByObjectId { get => this._createdByObjectId; set => this._createdByObjectId = value; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private global::System.DateTime? _endTime; + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set => this._error = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind _kind; + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get => this._kind; set => this._kind = value; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// Backing field for property. + private string _operationId; + + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; set => this._startTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus _status; + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get => this._status; set => this._status = value; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Backing field for property. + private string _uri; + + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public DevBoxOperation() + { + + } + } + /// Information about an operation on a Dev Box. + public partial interface IDevBoxOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The object ID of the actor which initiated the operation.", + SerializedName = @"createdByObjectId", + PossibleTypes = new [] { typeof(string) })] + string CreatedByObjectId { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the operation finished.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; set; } + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The kind of operation that occurred.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Unique identifier for the Dev Box operation.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + string OperationId { get; set; } + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the operation started.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; set; } + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operation status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI for the Dev Box operation.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// Information about an operation on a Dev Box. + internal partial interface IDevBoxOperationInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// The object ID of the actor which initiated the operation. + string CreatedByObjectId { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// The time the operation finished. + global::System.DateTime? EndTime { get; set; } + /// Provisioning or operation error details. Populated only for error states. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// The kind of operation that occurred. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// Unique identifier for the Dev Box operation. + string OperationId { get; set; } + /// The time the operation started. + global::System.DateTime? StartTime { get; set; } + /// The operation status. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + /// The unique URI for the Dev Box operation. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.json.cs new file mode 100644 index 000000000000..404e113543d0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperation.json.cs @@ -0,0 +1,149 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about an operation on a Dev Box. + public partial class DevBoxOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)Kind;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_createdByObjectId = If( json?.PropertyT("createdByObjectId"), out var __jsonCreatedByObjectId) ? (string)__jsonCreatedByObjectId : (string)CreatedByObjectId;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("kind") ) + { + case "Start": + { + return new DevBoxStartOperation(json); + } + case "Stop": + { + return new DevBoxStopOperation(json); + } + case "Restart": + { + return new DevBoxRestartOperation(json); + } + case "Repair": + { + return new DevBoxRepairOperation(json); + } + } + return new DevBoxOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._createdByObjectId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._createdByObjectId.ToString()) : null, "createdByObjectId" ,container.Add ); + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.PowerShell.cs new file mode 100644 index 000000000000..21b7ea4c58c7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The result of listing operations on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxOperationListResultTypeConverter))] + public partial class DevBoxOperationListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxOperationListResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxOperationListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxOperationListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).NextLink, 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 DevBoxOperationListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The result of listing operations on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxOperationListResultTypeConverter))] + public partial interface IDevBoxOperationListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.TypeConverter.cs new file mode 100644 index 000000000000..cb845ed474c7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxOperationListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxOperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxOperationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxOperationListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.cs new file mode 100644 index 000000000000..d322e5ef465d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The result of listing operations on a Dev Box. + public partial class DevBoxOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[] _value; + + /// The current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DevBoxOperationListResult() + { + + } + } + /// The result of listing operations on a Dev Box. + public partial interface IDevBoxOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[] Value { get; set; } + + } + /// The result of listing operations on a Dev Box. + internal partial interface IDevBoxOperationListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// The current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.json.cs new file mode 100644 index 000000000000..fe0e51777855 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxOperationListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The result of listing operations on a Dev Box. + public partial class DevBoxOperationListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxOperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation.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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxOperationListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.PowerShell.cs new file mode 100644 index 000000000000..5c8a55662947 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.PowerShell.cs @@ -0,0 +1,266 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a repair operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRepairOperationTypeConverter))] + public partial class DevBoxRepairOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxRepairOperation(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxRepairOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxRepairOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResultTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResultRepairOutcome")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultRepairOutcome = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome?) content.GetValueForProperty("ResultRepairOutcome",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultRepairOutcome, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome.CreateFrom); + } + if (content.Contains("ResultCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultCode = (string) content.GetValueForProperty("ResultCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultCode, global::System.Convert.ToString); + } + if (content.Contains("ResultMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultMessage = (string) content.GetValueForProperty("ResultMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultMessage, 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 DevBoxRepairOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Result")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).Result = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult) content.GetValueForProperty("Result",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).Result, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResultTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResultRepairOutcome")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultRepairOutcome = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome?) content.GetValueForProperty("ResultRepairOutcome",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultRepairOutcome, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome.CreateFrom); + } + if (content.Contains("ResultCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultCode = (string) content.GetValueForProperty("ResultCode",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultCode, global::System.Convert.ToString); + } + if (content.Contains("ResultMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultMessage = (string) content.GetValueForProperty("ResultMessage",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal)this).ResultMessage, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a repair operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRepairOperationTypeConverter))] + public partial interface IDevBoxRepairOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.TypeConverter.cs new file mode 100644 index 000000000000..03d7d47f0920 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxRepairOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxRepairOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxRepairOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxRepairOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.cs new file mode 100644 index 000000000000..2cef7f421708 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.cs @@ -0,0 +1,161 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a repair operation on a Dev Box. + public partial class DevBoxRepairOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message = value ?? null; } + + /// Internal Acessors for Result + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationInternal.Result { get => (this._result = this._result ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResult()); set { {_result = value;} } } + + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult _result; + + /// The result of the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult Result { get => (this._result = this._result ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResult()); set => this._result = value; } + + /// The result code associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ResultCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).Code = value ?? null; } + + /// The result message associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ResultMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).Message = value ?? null; } + + /// The outcome of the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? ResultRepairOutcome { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).RepairOutcome; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)Result).RepairOutcome = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome)""); } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target = value ?? null; } + + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri = value ; } + + /// Creates an new instance. + public DevBoxRepairOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devBoxOperation), __devBoxOperation); + await eventListener.AssertObjectIsValid(nameof(__devBoxOperation), __devBoxOperation); + } + } + /// Information about a repair operation on a Dev Box. + public partial interface IDevBoxRepairOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + { + /// The result code associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The result code associated with the repair operation.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string ResultCode { get; set; } + /// The result message associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The result message associated with the repair operation.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string ResultMessage { get; set; } + /// The outcome of the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The outcome of the repair operation.", + SerializedName = @"repairOutcome", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? ResultRepairOutcome { get; set; } + + } + /// Information about a repair operation on a Dev Box. + internal partial interface IDevBoxRepairOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal + { + /// The result of the repair operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult Result { get; set; } + /// The result code associated with the repair operation. + string ResultCode { get; set; } + /// The result message associated with the repair operation. + string ResultMessage { get; set; } + /// The outcome of the repair operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? ResultRepairOutcome { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.json.cs new file mode 100644 index 000000000000..78a650ad1168 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a repair operation on a Dev Box. + public partial class DevBoxRepairOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxRepairOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(json); + {_result = If( json?.PropertyT("result"), out var __jsonResult) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxRepairOperationResult.FromJson(__jsonResult) : Result;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxRepairOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __devBoxOperation?.ToJson(container, serializationMode); + AddIf( null != this._result ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._result.ToJson(null,serializationMode) : null, "result" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.PowerShell.cs new file mode 100644 index 000000000000..2fa152a0811e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about the result of a repair operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRepairOperationResultTypeConverter))] + public partial class DevBoxRepairOperationResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxRepairOperationResult(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxRepairOperationResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxRepairOperationResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RepairOutcome")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).RepairOutcome = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome?) content.GetValueForProperty("RepairOutcome",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).RepairOutcome, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome.CreateFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Message, 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 DevBoxRepairOperationResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("RepairOutcome")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).RepairOutcome = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome?) content.GetValueForProperty("RepairOutcome",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).RepairOutcome, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome.CreateFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal)this).Message, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about the result of a repair operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRepairOperationResultTypeConverter))] + public partial interface IDevBoxRepairOperationResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.TypeConverter.cs new file mode 100644 index 000000000000..a97b58cb2aeb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxRepairOperationResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxRepairOperationResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxRepairOperationResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxRepairOperationResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.cs new file mode 100644 index 000000000000..33d569440033 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.cs @@ -0,0 +1,85 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about the result of a repair operation on a Dev Box. + public partial class DevBoxRepairOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResultInternal + { + + /// Backing field for property. + private string _code; + + /// The result code associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Code { get => this._code; set => this._code = value; } + + /// Backing field for property. + private string _message; + + /// The result message associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Message { get => this._message; set => this._message = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? _repairOutcome; + + /// The outcome of the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? RepairOutcome { get => this._repairOutcome; set => this._repairOutcome = value; } + + /// Creates an new instance. + public DevBoxRepairOperationResult() + { + + } + } + /// Information about the result of a repair operation on a Dev Box. + public partial interface IDevBoxRepairOperationResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The result code associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The result code associated with the repair operation.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The result message associated with the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The result message associated with the repair operation.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The outcome of the repair operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The outcome of the repair operation.", + SerializedName = @"repairOutcome", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? RepairOutcome { get; set; } + + } + /// Information about the result of a repair operation on a Dev Box. + internal partial interface IDevBoxRepairOperationResultInternal + + { + /// The result code associated with the repair operation. + string Code { get; set; } + /// The result message associated with the repair operation. + string Message { get; set; } + /// The outcome of the repair operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome? RepairOutcome { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.json.cs new file mode 100644 index 000000000000..3fe671579249 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRepairOperationResult.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about the result of a repair operation on a Dev Box. + public partial class DevBoxRepairOperationResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxRepairOperationResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_repairOutcome = If( json?.PropertyT("repairOutcome"), out var __jsonRepairOutcome) ? (string)__jsonRepairOutcome : (string)RepairOutcome;} + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRepairOperationResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxRepairOperationResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._repairOutcome)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._repairOutcome.ToString()) : null, "repairOutcome" ,container.Add ); + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.PowerShell.cs new file mode 100644 index 000000000000..e3ad95168a25 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a restart operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRestartOperationTypeConverter))] + public partial class DevBoxRestartOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxRestartOperation(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxRestartOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxRestartOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (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 DevBoxRestartOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a restart operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxRestartOperationTypeConverter))] + public partial interface IDevBoxRestartOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.TypeConverter.cs new file mode 100644 index 000000000000..6b1709deaab9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxRestartOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxRestartOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxRestartOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxRestartOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.cs new file mode 100644 index 000000000000..79dae155cedf --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.cs @@ -0,0 +1,107 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a restart operation on a Dev Box. + public partial class DevBoxRestartOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message = value ?? null; } + + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId = value ; } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target = value ?? null; } + + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri = value ; } + + /// Creates an new instance. + public DevBoxRestartOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devBoxOperation), __devBoxOperation); + await eventListener.AssertObjectIsValid(nameof(__devBoxOperation), __devBoxOperation); + } + } + /// Information about a restart operation on a Dev Box. + public partial interface IDevBoxRestartOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + { + + } + /// Information about a restart operation on a Dev Box. + internal partial interface IDevBoxRestartOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.json.cs new file mode 100644 index 000000000000..2e372bee5b9c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxRestartOperation.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a restart operation on a Dev Box. + public partial class DevBoxRestartOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxRestartOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxRestartOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxRestartOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __devBoxOperation?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.PowerShell.cs new file mode 100644 index 000000000000..5292f44e2147 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a start operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxStartOperationTypeConverter))] + public partial class DevBoxStartOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxStartOperation(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.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxStartOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxStartOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (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 DevBoxStartOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a start operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxStartOperationTypeConverter))] + public partial interface IDevBoxStartOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.TypeConverter.cs new file mode 100644 index 000000000000..f7f94de06e92 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxStartOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxStartOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxStartOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxStartOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.cs new file mode 100644 index 000000000000..c8eaa4485cc1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.cs @@ -0,0 +1,107 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a start operation on a Dev Box. + public partial class DevBoxStartOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message = value ?? null; } + + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId = value ; } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target = value ?? null; } + + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri = value ; } + + /// Creates an new instance. + public DevBoxStartOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devBoxOperation), __devBoxOperation); + await eventListener.AssertObjectIsValid(nameof(__devBoxOperation), __devBoxOperation); + } + } + /// Information about a start operation on a Dev Box. + public partial interface IDevBoxStartOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + { + + } + /// Information about a start operation on a Dev Box. + internal partial interface IDevBoxStartOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.json.cs new file mode 100644 index 000000000000..9936209f76f7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStartOperation.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a start operation on a Dev Box. + public partial class DevBoxStartOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxStartOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStartOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxStartOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __devBoxOperation?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.PowerShell.cs new file mode 100644 index 000000000000..f385d39b8e81 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a stop operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxStopOperationTypeConverter))] + public partial class DevBoxStopOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DevBoxStopOperation(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.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DevBoxStopOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DevBoxStopOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (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 DevBoxStopOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a stop operation on a Dev Box. + [System.ComponentModel.TypeConverter(typeof(DevBoxStopOperationTypeConverter))] + public partial interface IDevBoxStopOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.TypeConverter.cs new file mode 100644 index 000000000000..173ff1acf127 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DevBoxStopOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DevBoxStopOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DevBoxStopOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DevBoxStopOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.cs new file mode 100644 index 000000000000..f394aa8cf656 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.cs @@ -0,0 +1,107 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a stop operation on a Dev Box. + public partial class DevBoxStopOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Message = value ?? null; } + + /// Unique identifier for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).OperationId = value ; } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Target = value ?? null; } + + /// The unique URI for the Dev Box operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal)__devBoxOperation).Uri = value ; } + + /// Creates an new instance. + public DevBoxStopOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__devBoxOperation), __devBoxOperation); + await eventListener.AssertObjectIsValid(nameof(__devBoxOperation), __devBoxOperation); + } + } + /// Information about a stop operation on a Dev Box. + public partial interface IDevBoxStopOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + { + + } + /// Information about a stop operation on a Dev Box. + internal partial interface IDevBoxStopOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationInternal + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.json.cs new file mode 100644 index 000000000000..1895d0a2290a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/DevBoxStopOperation.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a stop operation on a Dev Box. + public partial class DevBoxStopOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal DevBoxStopOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __devBoxOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBoxOperation(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxStopOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new DevBoxStopOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __devBoxOperation?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.PowerShell.cs new file mode 100644 index 000000000000..4f4715aa9fdd --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.PowerShell.cs @@ -0,0 +1,264 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Properties of an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeConverter))] + public partial class Environment + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Environment(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.DevCenterdata.Models.Api20231001Preview.IEnvironment DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Environment(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Environment(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("User")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).User, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("DefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).DefinitionName, global::System.Convert.ToString); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Environment(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("User")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).User = (string) content.GetValueForProperty("User",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).User, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).ResourceGroupId, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("DefinitionName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).DefinitionName, global::System.Convert.ToString); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironment FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeConverter))] + public partial interface IEnvironment + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.TypeConverter.cs index 324437a9b589..437d7c215b62 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironment ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.cs new file mode 100644 index 000000000000..ccb6282db540 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.cs @@ -0,0 +1,328 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Properties of an environment. + public partial class Environment : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties __environmentUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdateProperties(); + + /// Backing field for property. + private string _catalogName; + + /// The name of the catalog. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + + /// Backing field for property. + private string _definitionName; + + /// The name of the environment definition. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DefinitionName { get => this._definitionName; set => this._definitionName = value; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Provisioning error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); } + + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? ExpirationDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)__environmentUpdateProperties).ExpirationDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)__environmentUpdateProperties).ExpirationDate = value ?? default(global::System.DateTime); } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceGroupId + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.ResourceGroupId { get => this._resourceGroupId; set { {_resourceGroupId = value;} } } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.Uri { get => this._uri; set { {_uri = value;} } } + + /// Internal Acessors for User + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal.User { get => this._user; set { {_user = value;} } } + + /// Backing field for property. + private string _name; + + /// Environment name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _operationLocation; + + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperationLocation { get => this._operationLocation; set => this._operationLocation = value; } + + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)__environmentUpdateProperties).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)__environmentUpdateProperties).Parameter = value ?? null /* model class */; } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceGroupId; + + /// The identifier of the resource group containing the environment's resources. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ResourceGroupId { get => this._resourceGroupId; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Backing field for property. + private string _type; + + /// The name of the environment type. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Type { get => this._type; set => this._type = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the environment + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; } + + /// Backing field for property. + private string _user; + + /// The AAD object id of the owner of this Environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string User { get => this._user; } + + /// Creates an new instance. + public Environment() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Operation-Location", out var __operationLocationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentInternal)this).OperationLocation = System.Linq.Enumerable.FirstOrDefault(__operationLocationHeader0) is string __headerOperationLocationHeader0 ? __headerOperationLocationHeader0 : (string)null; + } + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__environmentUpdateProperties), __environmentUpdateProperties); + await eventListener.AssertObjectIsValid(nameof(__environmentUpdateProperties), __environmentUpdateProperties); + } + } + /// Properties of an environment. + public partial interface IEnvironment : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties + { + /// The name of the catalog. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the catalog. Cannot be updated after creation.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + string CatalogName { get; set; } + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The name of the environment definition. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment definition. Cannot be updated after creation.", + SerializedName = @"environmentDefinitionName", + PossibleTypes = new [] { typeof(string) })] + string DefinitionName { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// Environment name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Environment name.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Operation-Location", + PossibleTypes = new [] { typeof(string) })] + string OperationLocation { get; set; } + /// The provisioning state of the environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The provisioning state of the environment.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// The identifier of the resource group containing the environment's resources. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The identifier of the resource group containing the environment's resources.", + SerializedName = @"resourceGroupId", + PossibleTypes = new [] { typeof(string) })] + string ResourceGroupId { get; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + /// The name of the environment type. Cannot be updated after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment type. Cannot be updated after creation.", + SerializedName = @"environmentType", + PossibleTypes = new [] { typeof(string) })] + string Type { get; set; } + /// The unique URI of the environment + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The unique URI of the environment", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } + /// The AAD object id of the owner of this Environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The AAD object id of the owner of this Environment.", + SerializedName = @"user", + PossibleTypes = new [] { typeof(string) })] + string User { get; } + + } + /// Properties of an environment. + internal partial interface IEnvironmentInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal + { + /// The name of the catalog. Cannot be updated after creation. + string CatalogName { get; set; } + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// The name of the environment definition. Cannot be updated after creation. + string DefinitionName { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// Provisioning error details. Populated only for error states. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// Environment name. + string Name { get; set; } + + string OperationLocation { get; set; } + /// The provisioning state of the environment. + string ProvisioningState { get; set; } + /// The identifier of the resource group containing the environment's resources. + string ResourceGroupId { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + /// The name of the environment type. Cannot be updated after creation. + string Type { get; set; } + /// The unique URI of the environment + string Uri { get; set; } + /// The AAD object id of the owner of this Environment. + string User { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.json.cs similarity index 91% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.json.cs index 1f75077600f6..1cb5635648b1 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/Environment.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Environment.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,8 +65,9 @@ internal Environment(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Js { return; } - __environmentUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdateProperties(json); - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.CloudErrorBody.FromJson(__jsonError) : Error;} + __environmentUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdateProperties(json); + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("environmentType"), out var __jsonEnvironmentType) ? (string)__jsonEnvironmentType : (string)Type;} {_user = If( json?.PropertyT("user"), out var __jsonUser) ? (string)__jsonUser : (string)User;} @@ -78,13 +79,13 @@ internal Environment(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Environment(json) : null; } @@ -114,6 +115,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.PowerShell.cs new file mode 100644 index 000000000000..c415a876e8e1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.PowerShell.cs @@ -0,0 +1,194 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// An upcoming Environment Action. + [System.ComponentModel.TypeConverter(typeof(EnvironmentActionTypeConverter))] + public partial class EnvironmentAction + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentAction(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentAction(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Next")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).NextScheduledTime, (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 EnvironmentAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Next")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Next = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction) content.GetValueForProperty("Next",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Next, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextActionTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).ActionType, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("NextScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).NextScheduledTime = (global::System.DateTime) content.GetValueForProperty("NextScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal)this).NextScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An upcoming Environment Action. + [System.ComponentModel.TypeConverter(typeof(EnvironmentActionTypeConverter))] + public partial interface IEnvironmentAction + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.TypeConverter.cs new file mode 100644 index 000000000000..b90741e1f850 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentActionTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentAction.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.cs new file mode 100644 index 000000000000..1304a32fb9cb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.cs @@ -0,0 +1,160 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An upcoming Environment Action. + public partial class EnvironmentAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal + { + + /// Backing field for property. + private string _actionType= @"Delete"; + + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ActionType { get => this._actionType; } + + /// Backing field for property. + private global::System.DateTime? _lastModifiedAt; + + /// time the object was last modified. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? LastModifiedAt { get => this._lastModifiedAt; } + + /// Backing field for property. + private string _lastModifiedBy; + + /// Object Id of the user who last modified the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string LastModifiedBy { get => this._lastModifiedBy; } + + /// Internal Acessors for ActionType + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } + + /// Internal Acessors for LastModifiedAt + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.LastModifiedAt { get => this._lastModifiedAt; set { {_lastModifiedAt = value;} } } + + /// Internal Acessors for LastModifiedBy + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.LastModifiedBy { get => this._lastModifiedBy; set { {_lastModifiedBy = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for Next + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextAction()); set { {_next = value;} } } + + /// Internal Acessors for Uri + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionInternal.Uri { get => this._uri; set { {_uri = value;} } } + + /// Backing field for property. + private string _name; + + /// Uniquely identifies the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction _next; + + /// Details about the next run of this action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction Next { get => (this._next = this._next ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextAction()); set => this._next = value; } + + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime NextScheduledTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)Next).ScheduledTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)Next).ScheduledTime = value ; } + + /// Backing field for property. + private string _uri; + + /// Uri of the action resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; } + + /// Creates an new instance. + public EnvironmentAction() + { + + } + } + /// An upcoming Environment Action. + public partial interface IEnvironmentAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The action that will be taken. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The action that will be taken.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(string) })] + string ActionType { get; } + /// time the object was last modified. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"time the object was last modified.", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastModifiedAt { get; } + /// Object Id of the user who last modified the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Object Id of the user who last modified the action.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string LastModifiedBy { get; } + /// Uniquely identifies the action. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Uniquely identifies the action.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time the action will be triggered (UTC).", + SerializedName = @"scheduledTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime NextScheduledTime { get; set; } + /// Uri of the action resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Uri of the action resource.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; } + + } + /// An upcoming Environment Action. + internal partial interface IEnvironmentActionInternal + + { + /// The action that will be taken. + string ActionType { get; set; } + /// time the object was last modified. + global::System.DateTime? LastModifiedAt { get; set; } + /// Object Id of the user who last modified the action. + string LastModifiedBy { get; set; } + /// Uniquely identifies the action. + string Name { get; set; } + /// Details about the next run of this action. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction Next { get; set; } + /// The time the action will be triggered (UTC). + global::System.DateTime NextScheduledTime { get; set; } + /// Uri of the action resource. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.json.cs new file mode 100644 index 000000000000..7cc60e268647 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentAction.json.cs @@ -0,0 +1,130 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An upcoming Environment Action. + public partial class EnvironmentAction + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentAction(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_next = If( json?.PropertyT("next"), out var __jsonNext) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentNextAction.FromJson(__jsonNext) : Next;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} + {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy;} + {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentAction(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._next ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._next.ToJson(null,serializationMode) : null, "next" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + } + AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._lastModifiedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._lastModifiedBy.ToString()) : null, "lastModifiedBy" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._lastModifiedAt ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._lastModifiedAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedAt" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.PowerShell.cs new file mode 100644 index 000000000000..79d90b7aa723 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(EnvironmentActionsListResultTypeConverter))] + public partial class EnvironmentActionsListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentActionsListResult(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentActionsListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentActionsListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentActionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).NextLink, 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 EnvironmentActionsListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentActionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The actions list result + [System.ComponentModel.TypeConverter(typeof(EnvironmentActionsListResultTypeConverter))] + public partial interface IEnvironmentActionsListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.TypeConverter.cs new file mode 100644 index 000000000000..522e4fb7ca68 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentActionsListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentActionsListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentActionsListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentActionsListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.cs new file mode 100644 index 000000000000..5e1873212bee --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The actions list result + public partial class EnvironmentActionsListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[] _value; + + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public EnvironmentActionsListResult() + { + + } + } + /// The actions list result + public partial interface IEnvironmentActionsListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[] Value { get; set; } + + } + /// The actions list result + internal partial interface IEnvironmentActionsListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// Current page of results + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.json.cs new file mode 100644 index 000000000000..e953c13add87 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentActionsListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The actions list result + public partial class EnvironmentActionsListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentActionsListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentAction.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentActionsListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs new file mode 100644 index 000000000000..ea4a80d7ff0f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// An environment definition. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] + public partial class EnvironmentDefinition + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinition(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinition(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinition(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("ParametersSchema")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ParametersSchema = (string) content.GetValueForProperty("ParametersSchema",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ParametersSchema, global::System.Convert.ToString); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath, 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 EnvironmentDefinition(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("CatalogName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).CatalogName, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[]) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).Parameter, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionParameterTypeConverter.ConvertFrom)); + } + if (content.Contains("ParametersSchema")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ParametersSchema = (string) content.GetValueForProperty("ParametersSchema",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).ParametersSchema, global::System.Convert.ToString); + } + if (content.Contains("TemplatePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath = (string) content.GetValueForProperty("TemplatePath",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal)this).TemplatePath, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// An environment definition. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionTypeConverter))] + public partial interface IEnvironmentDefinition + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.TypeConverter.cs new file mode 100644 index 000000000000..0990f50904e1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinition.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinition.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinition.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs new file mode 100644 index 000000000000..fd3617fe0c77 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.cs @@ -0,0 +1,170 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An environment definition. + public partial class EnvironmentDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionInternal + { + + /// Backing field for property. + private string _catalogName; + + /// Name of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// Backing field for property. + private string _description; + + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _id; + + /// The ID of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _name; + + /// Name of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] _parameter; + + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get => this._parameter; set => this._parameter = value; } + + /// Backing field for property. + private string _parametersSchema; + + /// JSON schema defining the parameters object passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ParametersSchema { get => this._parametersSchema; set => this._parametersSchema = value; } + + /// Backing field for property. + private string _templatePath; + + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string TemplatePath { get => this._templatePath; set => this._templatePath = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the environment definition + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public EnvironmentDefinition() + { + + } + } + /// An environment definition. + public partial interface IEnvironmentDefinition : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Name of the catalog. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the catalog.", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + string CatalogName { get; set; } + /// A short description of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A short description of the environment definition.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// The ID of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the environment definition.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// Name of the environment definition. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the environment definition.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Input parameters passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Input parameters passed to an environment.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; set; } + /// JSON schema defining the parameters object passed to an environment. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"JSON schema defining the parameters object passed to an environment.", + SerializedName = @"parametersSchema", + PossibleTypes = new [] { typeof(string) })] + string ParametersSchema { get; set; } + /// Path to the Environment Definition entrypoint file. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Path to the Environment Definition entrypoint file.", + SerializedName = @"templatePath", + PossibleTypes = new [] { typeof(string) })] + string TemplatePath { get; set; } + /// The unique URI of the environment definition + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the environment definition", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// An environment definition. + internal partial interface IEnvironmentDefinitionInternal + + { + /// Name of the catalog. + string CatalogName { get; set; } + /// A short description of the environment definition. + string Description { get; set; } + /// The ID of the environment definition. + string Id { get; set; } + /// Name of the environment definition. + string Name { get; set; } + /// Input parameters passed to an environment. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter[] Parameter { get; set; } + /// JSON schema defining the parameters object passed to an environment. + string ParametersSchema { get; set; } + /// Path to the Environment Definition entrypoint file. + string TemplatePath { get; set; } + /// The unique URI of the environment definition + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.json.cs new file mode 100644 index 000000000000..64e2013eca44 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinition.json.cs @@ -0,0 +1,130 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// An environment definition. + public partial class EnvironmentDefinition + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinition(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_catalogName = If( json?.PropertyT("catalogName"), out var __jsonCatalogName) ? (string)__jsonCatalogName : (string)CatalogName;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? If( __jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionParameter.FromJson(__u) )) ))() : null : Parameter;} + {_parametersSchema = If( json?.PropertyT("parametersSchema"), out var __jsonParametersSchema) ? (string)__jsonParametersSchema : (string)ParametersSchema;} + {_templatePath = If( json?.PropertyT("templatePath"), out var __jsonTemplatePath) ? (string)__jsonTemplatePath : (string)TemplatePath;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinition(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._catalogName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._catalogName.ToString()) : null, "catalogName" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + if (null != this._parameter) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._parameter ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("parameters",__w); + } + AddIf( null != (((object)this._parametersSchema)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._parametersSchema.ToString()) : null, "parametersSchema" ,container.Add ); + AddIf( null != (((object)this._templatePath)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._templatePath.ToString()) : null, "templatePath" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs new file mode 100644 index 000000000000..caffecf24f7a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Results of the environment definition list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] + public partial class EnvironmentDefinitionListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinitionListResult(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinitionListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinitionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink, 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 EnvironmentDefinitionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinitionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the environment definition list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionListResultTypeConverter))] + public partial interface IEnvironmentDefinitionListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.TypeConverter.cs new file mode 100644 index 000000000000..222c7b3c287e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinitionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinitionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinitionListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs new file mode 100644 index 000000000000..93642aec1e8b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the environment definition list operation. + public partial class EnvironmentDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public EnvironmentDefinitionListResult() + { + + } + } + /// Results of the environment definition list operation. + public partial interface IEnvironmentDefinitionListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get; set; } + + } + /// Results of the environment definition list operation. + internal partial interface IEnvironmentDefinitionListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs new file mode 100644 index 000000000000..e827ad4dbca9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the environment definition list operation. + public partial class EnvironmentDefinitionListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinitionListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentDefinition.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinitionListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs new file mode 100644 index 000000000000..223d5c233a5e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Properties of an Environment Definition parameter + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] + public partial class EnvironmentDefinitionParameter + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDefinitionParameter(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDefinitionParameter(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDefinitionParameter(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Default")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Default, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType.CreateFrom); + } + if (content.Contains("ReadOnly")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required = (bool) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Allowed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, 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 EnvironmentDefinitionParameter(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Default")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Default = (string) content.GetValueForProperty("Default",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Default, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType.CreateFrom); + } + if (content.Contains("ReadOnly")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly = (bool?) content.GetValueForProperty("ReadOnly",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).ReadOnly, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Required")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required = (bool) content.GetValueForProperty("Required",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Required, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("Allowed")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Allowed = (string[]) content.GetValueForProperty("Allowed",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal)this).Allowed, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an Environment Definition parameter + [System.ComponentModel.TypeConverter(typeof(EnvironmentDefinitionParameterTypeConverter))] + public partial interface IEnvironmentDefinitionParameter + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.TypeConverter.cs new file mode 100644 index 000000000000..06009c2f2d3a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDefinitionParameterTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDefinitionParameter.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDefinitionParameter.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDefinitionParameter.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs new file mode 100644 index 000000000000..ee47ad994d7b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.cs @@ -0,0 +1,182 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Properties of an Environment Definition parameter + public partial class EnvironmentDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameterInternal + { + + /// Backing field for property. + private string[] _allowed; + + /// An array of allowed values + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string[] Allowed { get => this._allowed; set => this._allowed = value; } + + /// Backing field for property. + private string _default; + + /// Default value of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Default { get => this._default; set => this._default = value; } + + /// Backing field for property. + private string _description; + + /// Description of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _id; + + /// Unique ID of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// Backing field for property. + private string _name; + + /// Display name of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private bool? _readOnly; + + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public bool? ReadOnly { get => this._readOnly; set => this._readOnly = value; } + + /// Backing field for property. + private bool _required; + + /// Whether or not this parameter is required + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public bool Required { get => this._required; set => this._required = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType _type; + + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get => this._type; set => this._type = value; } + + /// Creates an new instance. + public EnvironmentDefinitionParameter() + { + + } + } + /// Properties of an Environment Definition parameter + public partial interface IEnvironmentDefinitionParameter : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// An array of allowed values + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An array of allowed values", + SerializedName = @"allowed", + PossibleTypes = new [] { typeof(string) })] + string[] Allowed { get; set; } + /// Default value of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Default value of the parameter", + SerializedName = @"default", + PossibleTypes = new [] { typeof(string) })] + string Default { get; set; } + /// Description of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the parameter", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Unique ID of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Unique ID of the parameter", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// Display name of the parameter + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name of the parameter", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Whether or not this parameter is read-only. If true, default should have a value.", + SerializedName = @"readOnly", + PossibleTypes = new [] { typeof(bool) })] + bool? ReadOnly { get; set; } + /// Whether or not this parameter is required + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Whether or not this parameter is required", + SerializedName = @"required", + PossibleTypes = new [] { typeof(bool) })] + bool Required { get; set; } + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A string of one of the basic JSON types (number, integer, array, object, boolean, string)", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get; set; } + + } + /// Properties of an Environment Definition parameter + internal partial interface IEnvironmentDefinitionParameterInternal + + { + /// An array of allowed values + string[] Allowed { get; set; } + /// Default value of the parameter + string Default { get; set; } + /// Description of the parameter + string Description { get; set; } + /// Unique ID of the parameter + string Id { get; set; } + /// Display name of the parameter + string Name { get; set; } + /// + /// Whether or not this parameter is read-only. If true, default should have a value. + /// + bool? ReadOnly { get; set; } + /// Whether or not this parameter is required + bool Required { get; set; } + /// + /// A string of one of the basic JSON types (number, integer, array, object, boolean, string) + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ParameterType Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs new file mode 100644 index 000000000000..25d95710a58f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDefinitionParameter.json.cs @@ -0,0 +1,130 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Properties of an Environment Definition parameter + public partial class EnvironmentDefinitionParameter + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDefinitionParameter(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_default = If( json?.PropertyT("default"), out var __jsonDefault) ? (string)__jsonDefault : (string)Default;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_readOnly = If( json?.PropertyT("readOnly"), out var __jsonReadOnly) ? (bool?)__jsonReadOnly : ReadOnly;} + {_required = If( json?.PropertyT("required"), out var __jsonRequired) ? (bool)__jsonRequired : Required;} + {_allowed = If( json?.PropertyT("allowed"), out var __jsonAllowed) ? If( __jsonAllowed as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Allowed;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDefinitionParameter(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != (((object)this._default)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._default.ToString()) : null, "default" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._readOnly ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean((bool)this._readOnly) : null, "readOnly" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean(this._required), "required" ,container.Add ); + if (null != this._allowed) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._allowed ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("allowed",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.PowerShell.cs new file mode 100644 index 000000000000..1f42b8b0f27a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.PowerShell.cs @@ -0,0 +1,242 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a delete operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDeleteOperationTypeConverter))] + public partial class EnvironmentDeleteOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDeleteOperation(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDeleteOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDeleteOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentDeleteOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a delete operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDeleteOperationTypeConverter))] + public partial interface IEnvironmentDeleteOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.TypeConverter.cs new file mode 100644 index 000000000000..93af7d5e5327 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDeleteOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDeleteOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDeleteOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDeleteOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.cs new file mode 100644 index 000000000000..8ebcb1705371 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a delete operation on an environment. + public partial class EnvironmentDeleteOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation __environmentOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Parameters object for the environment at the time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny EnvironmentParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EnvironmentParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EnvironmentParameter = value ?? null /* model class */; } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Message = value ?? null; } + + /// Unique identifier for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).OperationId = value ; } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Target = value ?? null; } + + /// The unique URI for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Uri = value ; } + + /// Creates an new instance. + public EnvironmentDeleteOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__environmentOperation), __environmentOperation); + await eventListener.AssertObjectIsValid(nameof(__environmentOperation), __environmentOperation); + } + } + /// Information about a delete operation on an environment. + public partial interface IEnvironmentDeleteOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + { + + } + /// Information about a delete operation on an environment. + internal partial interface IEnvironmentDeleteOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.json.cs new file mode 100644 index 000000000000..0345d3f851bb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeleteOperation.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a delete operation on an environment. + public partial class EnvironmentDeleteOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDeleteOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __environmentOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeleteOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDeleteOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __environmentOperation?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.PowerShell.cs new file mode 100644 index 000000000000..dbe87fc97bd7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.PowerShell.cs @@ -0,0 +1,242 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about a deploy operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDeployOperationTypeConverter))] + public partial class EnvironmentDeployOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentDeployOperation(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentDeployOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentDeployOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentDeployOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about a deploy operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentDeployOperationTypeConverter))] + public partial interface IEnvironmentDeployOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.TypeConverter.cs new file mode 100644 index 000000000000..4b21bf41ce31 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentDeployOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentDeployOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentDeployOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentDeployOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.cs new file mode 100644 index 000000000000..e7549160d722 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a deploy operation on an environment. + public partial class EnvironmentDeployOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation __environmentOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation(); + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Code = value ?? null; } + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string CreatedByObjectId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).CreatedByObjectId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).CreatedByObjectId = value ?? null; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Detail = value ?? null /* arrayOf */; } + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EndTime = value ?? default(global::System.DateTime); } + + /// Parameters object for the environment at the time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny EnvironmentParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EnvironmentParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).EnvironmentParameter = value ?? null /* model class */; } + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Error = value ?? null /* model class */; } + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Kind = value ; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Message = value ?? null; } + + /// Unique identifier for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string OperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).OperationId = value ; } + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).StartTime = value ?? default(global::System.DateTime); } + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Status = value ; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Target = value ?? null; } + + /// The unique URI for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)__environmentOperation).Uri = value ; } + + /// Creates an new instance. + public EnvironmentDeployOperation() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__environmentOperation), __environmentOperation); + await eventListener.AssertObjectIsValid(nameof(__environmentOperation), __environmentOperation); + } + } + /// Information about a deploy operation on an environment. + public partial interface IEnvironmentDeployOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + { + + } + /// Information about a deploy operation on an environment. + internal partial interface IEnvironmentDeployOperationInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.json.cs new file mode 100644 index 000000000000..dd630a3e5897 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentDeployOperation.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about a deploy operation on an environment. + public partial class EnvironmentDeployOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentDeployOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __environmentOperation = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation(json); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDeployOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentDeployOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __environmentOperation?.ToJson(container, serializationMode); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.PowerShell.cs new file mode 100644 index 000000000000..d347599591f2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Results of the environment list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentListResultTypeConverter))] + public partial class EnvironmentListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentListResult(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).NextLink, 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 EnvironmentListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the environment list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentListResultTypeConverter))] + public partial interface IEnvironmentListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.TypeConverter.cs index a8e1afcbd77d..e4b70fc47934 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.cs similarity index 87% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.cs index 9bdef012064b..4560c6b917c5 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Results of the environment list operation. public partial class EnvironmentListResult : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResult, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResultInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class EnvironmentListResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[] _value; /// Current page of results. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public EnvironmentListResult() @@ -51,8 +51,8 @@ public partial interface IEnvironmentListResult : ReadOnly = false, Description = @"Current page of results.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment) })] - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[] Value { get; set; } } /// Results of the environment list operation. @@ -62,7 +62,7 @@ internal partial interface IEnvironmentListResultInternal /// URL to get the next set of results if there are any. string NextLink { get; set; } /// Current page of results. - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.json.cs similarity index 92% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.json.cs index 21a9660ce281..8acd843c6a3f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentListResult.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentListResult.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -65,19 +65,19 @@ internal EnvironmentListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironment) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironment) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment.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.DevCenterdata.Models.Api20230401.IEnvironmentListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentListResult(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.PowerShell.cs new file mode 100644 index 000000000000..ab2161032075 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.PowerShell.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Details about the next run of an action. + [System.ComponentModel.TypeConverter(typeof(EnvironmentNextActionTypeConverter))] + public partial class EnvironmentNextAction + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentNextAction(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentNextAction(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentNextAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)this).ScheduledTime, (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 EnvironmentNextAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ScheduledTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)this).ScheduledTime = (global::System.DateTime) content.GetValueForProperty("ScheduledTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal)this).ScheduledTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Details about the next run of an action. + [System.ComponentModel.TypeConverter(typeof(EnvironmentNextActionTypeConverter))] + public partial interface IEnvironmentNextAction + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.TypeConverter.cs new file mode 100644 index 000000000000..35265710bd2a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentNextActionTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentNextAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentNextAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentNextAction.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.cs new file mode 100644 index 000000000000..9f45b4a51011 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Details about the next run of an action. + public partial class EnvironmentNextAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextActionInternal + { + + /// Backing field for property. + private global::System.DateTime _scheduledTime; + + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime ScheduledTime { get => this._scheduledTime; set => this._scheduledTime = value; } + + /// Creates an new instance. + public EnvironmentNextAction() + { + + } + } + /// Details about the next run of an action. + public partial interface IEnvironmentNextAction : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The time the action will be triggered (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time the action will be triggered (UTC).", + SerializedName = @"scheduledTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime ScheduledTime { get; set; } + + } + /// Details about the next run of an action. + internal partial interface IEnvironmentNextActionInternal + + { + /// The time the action will be triggered (UTC). + global::System.DateTime ScheduledTime { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.json.cs new file mode 100644 index 000000000000..f40981feb3b0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentNextAction.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Details about the next run of an action. + public partial class EnvironmentNextAction + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentNextAction(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_scheduledTime = If( json?.PropertyT("scheduledTime"), out var __jsonScheduledTime) ? global::System.DateTime.TryParse((string)__jsonScheduledTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonScheduledTimeValue) ? __jsonScheduledTimeValue : ScheduledTime : ScheduledTime;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentNextAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentNextAction(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._scheduledTime.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)), "scheduledTime" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.PowerShell.cs new file mode 100644 index 000000000000..5b76317bf257 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.PowerShell.cs @@ -0,0 +1,242 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Information about an operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOperationTypeConverter))] + public partial class EnvironmentOperation + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentOperation(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentOperation(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentOperation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentOperation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("OperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).OperationId, global::System.Convert.ToString); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind.CreateFrom); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus.CreateFrom); + } + if (content.Contains("CreatedByObjectId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId = (string) content.GetValueForProperty("CreatedByObjectId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).CreatedByObjectId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EnvironmentParameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("EnvironmentParameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).EnvironmentParameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBodyTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Information about an operation on an environment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOperationTypeConverter))] + public partial interface IEnvironmentOperation + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.TypeConverter.cs new file mode 100644 index 000000000000..261a9bd95e70 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentOperationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentOperation.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentOperation.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentOperation.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.cs new file mode 100644 index 000000000000..f319cd6c4cb2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.cs @@ -0,0 +1,256 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about an operation on an environment. + public partial class EnvironmentOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal + { + + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } + + /// Backing field for property. + private string _createdByObjectId; + + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CreatedByObjectId { get => this._createdByObjectId; set => this._createdByObjectId = value; } + + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + + /// Backing field for property. + private global::System.DateTime? _endTime; + + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny _environmentParameter; + + /// Parameters object for the environment at the time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny EnvironmentParameter { get => (this._environmentParameter = this._environmentParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any()); set => this._environmentParameter = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody _error; + + /// Provisioning or operation error details. Populated only for error states. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set => this._error = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind _kind; + + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Kind { get => this._kind; set => this._kind = value; } + + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody()); set { {_error = value;} } } + + /// Backing field for property. + private string _operationId; + + /// Unique identifier for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; set => this._startTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus _status; + + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Status { get => this._status; set => this._status = value; } + + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } + + /// Backing field for property. + private string _uri; + + /// The unique URI for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public EnvironmentOperation() + { + + } + } + /// Information about an operation on an environment. + public partial interface IEnvironmentOperation : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The object ID of the actor which initiated the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The object ID of the actor which initiated the operation.", + SerializedName = @"createdByObjectId", + PossibleTypes = new [] { typeof(string) })] + string CreatedByObjectId { get; set; } + /// A list of additional details about the error. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A list of additional details about the error.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// The time the operation finished. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the operation finished.", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; set; } + /// Parameters object for the environment at the time of the operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Parameters object for the environment at the time of the operation.", + SerializedName = @"environmentParameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny EnvironmentParameter { get; set; } + /// The kind of operation that occurred. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The kind of operation that occurred.", + SerializedName = @"kind", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Kind { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A message describing the error, intended to be suitable for display in a user interface.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// Unique identifier for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Unique identifier for the environment operation.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + string OperationId { get; set; } + /// The time the operation started. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the operation started.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; set; } + /// The operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The operation status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Status { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The target of the particular error. For example, the name of the property in error.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; set; } + /// The unique URI for the environment operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI for the environment operation.", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// Information about an operation on an environment. + internal partial interface IEnvironmentOperationInternal + + { + /// + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// + string Code { get; set; } + /// The object ID of the actor which initiated the operation. + string CreatedByObjectId { get; set; } + /// A list of additional details about the error. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody[] Detail { get; set; } + /// The time the operation finished. + global::System.DateTime? EndTime { get; set; } + /// Parameters object for the environment at the time of the operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny EnvironmentParameter { get; set; } + /// Provisioning or operation error details. Populated only for error states. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudErrorBody Error { get; set; } + /// The kind of operation that occurred. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Kind { get; set; } + /// + /// A message describing the error, intended to be suitable for display in a user interface. + /// + string Message { get; set; } + /// Unique identifier for the environment operation. + string OperationId { get; set; } + /// The time the operation started. + global::System.DateTime? StartTime { get; set; } + /// The operation status. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Status { get; set; } + /// + /// The target of the particular error. For example, the name of the property in error. + /// + string Target { get; set; } + /// The unique URI for the environment operation. + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.json.cs new file mode 100644 index 000000000000..01aa65f81663 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperation.json.cs @@ -0,0 +1,143 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Information about an operation on an environment. + public partial class EnvironmentOperation + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentOperation(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CloudErrorBody.FromJson(__jsonError) : Error;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} + {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)Kind;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_createdByObjectId = If( json?.PropertyT("createdByObjectId"), out var __jsonCreatedByObjectId) ? (string)__jsonCreatedByObjectId : (string)CreatedByObjectId;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} + {_environmentParameter = If( json?.PropertyT("environmentParameters"), out var __jsonEnvironmentParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any.FromJson(__jsonEnvironmentParameters) : EnvironmentParameter;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator + + switch ( json.StringProperty("kind") ) + { + case "Deploy": + { + return new EnvironmentDeployOperation(json); + } + case "Delete": + { + return new EnvironmentDeleteOperation(json); + } + } + return new EnvironmentOperation(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); + AddIf( null != (((object)this._kind)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._kind.ToString()) : null, "kind" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._createdByObjectId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._createdByObjectId.ToString()) : null, "createdByObjectId" ,container.Add ); + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); + AddIf( null != this._environmentParameter ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._environmentParameter.ToJson(null,serializationMode) : null, "environmentParameters" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.PowerShell.cs new file mode 100644 index 000000000000..bd4bc9a2a486 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The action results list result. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOperationListResultTypeConverter))] + public partial class EnvironmentOperationListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentOperationListResult(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentOperationListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentOperationListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).NextLink, 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 EnvironmentOperationListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The action results list result. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOperationListResultTypeConverter))] + public partial interface IEnvironmentOperationListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.TypeConverter.cs new file mode 100644 index 000000000000..614fdb916f50 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentOperationListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentOperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentOperationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentOperationListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.cs new file mode 100644 index 000000000000..ab9479268603 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The action results list result. + public partial class EnvironmentOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[] _value; + + /// The current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public EnvironmentOperationListResult() + { + + } + } + /// The action results list result. + public partial interface IEnvironmentOperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[] Value { get; set; } + + } + /// The action results list result. + internal partial interface IEnvironmentOperationListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// The current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.json.cs new file mode 100644 index 000000000000..0ae0ce931d2a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOperationListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The action results list result. + public partial class EnvironmentOperationListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentOperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOperation.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentOperationListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.PowerShell.cs new file mode 100644 index 000000000000..a1d435ffd28e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Output from environment deployment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputTypeConverter))] + public partial class EnvironmentOutput + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentOutput(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentOutput(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentOutput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType.CreateFrom); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Value, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Sensitive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Sensitive = (bool?) content.GetValueForProperty("Sensitive",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Sensitive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentOutput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType.CreateFrom); + } + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Value, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("Sensitive")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Sensitive = (bool?) content.GetValueForProperty("Sensitive",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal)this).Sensitive, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Output from environment deployment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputTypeConverter))] + public partial interface IEnvironmentOutput + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.TypeConverter.cs new file mode 100644 index 000000000000..f60c6ad23d71 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentOutputTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentOutput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentOutput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentOutput.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.cs new file mode 100644 index 000000000000..62032698dbae --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.cs @@ -0,0 +1,85 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Output from environment deployment. + public partial class EnvironmentOutput : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputInternal + { + + /// Backing field for property. + private bool? _sensitive; + + /// Indicates if the value is sensitive. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public bool? Sensitive { get => this._sensitive; set => this._sensitive = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType? _type; + + /// Type of the output value + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType? Type { get => this._type; set => this._type = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny _value; + + /// The output value + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Value { get => (this._value = this._value ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any()); set => this._value = value; } + + /// Creates an new instance. + public EnvironmentOutput() + { + + } + } + /// Output from environment deployment. + public partial interface IEnvironmentOutput : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Indicates if the value is sensitive. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates if the value is sensitive.", + SerializedName = @"sensitive", + PossibleTypes = new [] { typeof(bool) })] + bool? Sensitive { get; set; } + /// Type of the output value + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of the output value", + SerializedName = @"type", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType? Type { get; set; } + /// The output value + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The output value", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Value { get; set; } + + } + /// Output from environment deployment. + internal partial interface IEnvironmentOutputInternal + + { + /// Indicates if the value is sensitive. + bool? Sensitive { get; set; } + /// Type of the output value + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType? Type { get; set; } + /// The output value + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.json.cs new file mode 100644 index 000000000000..9bfe21f25138 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutput.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Output from environment deployment. + public partial class EnvironmentOutput + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentOutput(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any.FromJson(__jsonValue) : Value;} + {_sensitive = If( json?.PropertyT("sensitive"), out var __jsonSensitive) ? (bool?)__jsonSensitive : Sensitive;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentOutput(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != this._value ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._value.ToJson(null,serializationMode) : null, "value" ,container.Add ); + AddIf( null != this._sensitive ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonBoolean((bool)this._sensitive) : null, "sensitive" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.PowerShell.cs new file mode 100644 index 000000000000..e7e4b41c7e43 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.PowerShell.cs @@ -0,0 +1,142 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The outputs Names and Values + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputsTypeConverter))] + public partial class EnvironmentOutputs + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentOutputs(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentOutputs(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentOutputs(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentOutputs(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The outputs Names and Values + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputsTypeConverter))] + public partial interface IEnvironmentOutputs + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.TypeConverter.cs new file mode 100644 index 000000000000..010c477f9520 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentOutputsTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentOutputs.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentOutputs.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentOutputs.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.cs new file mode 100644 index 000000000000..fdbfc451cfed --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.cs @@ -0,0 +1,35 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The outputs Names and Values + public partial class EnvironmentOutputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputsInternal + { + + /// Creates an new instance. + public EnvironmentOutputs() + { + + } + } + /// The outputs Names and Values + public partial interface IEnvironmentOutputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + + } + /// The outputs Names and Values + internal partial interface IEnvironmentOutputsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.dictionary.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.dictionary.cs new file mode 100644 index 000000000000..7d1aa3fadf81 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.dictionary.cs @@ -0,0 +1,75 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + public partial class EnvironmentOutputs : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutput value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputs source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.json.cs new file mode 100644 index 000000000000..4d4812ccaf69 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs.json.cs @@ -0,0 +1,109 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The outputs Names and Values + public partial class EnvironmentOutputs + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + /// + internal EnvironmentOutputs(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutput.FromJson(j) ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentOutputs(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.PowerShell.cs new file mode 100644 index 000000000000..97edcfdec259 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.PowerShell.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Outputs from environment deployment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputs1TypeConverter))] + public partial class EnvironmentOutputs1 + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentOutputs1(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentOutputs1(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentOutputs1(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Output")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1Internal)this).Output = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1Internal)this).Output, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal EnvironmentOutputs1(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Output")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1Internal)this).Output = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs) content.GetValueForProperty("Output",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1Internal)this).Output, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Outputs from environment deployment. + [System.ComponentModel.TypeConverter(typeof(EnvironmentOutputs1TypeConverter))] + public partial interface IEnvironmentOutputs1 + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.TypeConverter.cs new file mode 100644 index 000000000000..ba44c20323df --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentOutputs1TypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentOutputs1.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentOutputs1.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentOutputs1.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.cs new file mode 100644 index 000000000000..d0db5ec8bb1f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Outputs from environment deployment. + public partial class EnvironmentOutputs1 : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1Internal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs _output; + + /// The outputs Names and Values + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs Output { get => (this._output = this._output ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputs()); set => this._output = value; } + + /// Creates an new instance. + public EnvironmentOutputs1() + { + + } + } + /// Outputs from environment deployment. + public partial interface IEnvironmentOutputs1 : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The outputs Names and Values + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The outputs Names and Values", + SerializedName = @"outputs", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs Output { get; set; } + + } + /// Outputs from environment deployment. + internal partial interface IEnvironmentOutputs1Internal + + { + /// The outputs Names and Values + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs Output { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.json.cs new file mode 100644 index 000000000000..532356a5ed46 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentOutputs1.json.cs @@ -0,0 +1,108 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Outputs from environment deployment. + public partial class EnvironmentOutputs1 + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentOutputs1(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_output = If( json?.PropertyT("outputs"), out var __jsonOutputs) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentOutputs.FromJson(__jsonOutputs) : Output;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentOutputs1(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._output ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._output.ToJson(null,serializationMode) : null, "outputs" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.PowerShell.cs new file mode 100644 index 000000000000..96277ea1c863 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.PowerShell.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(EnvironmentPatchPropertiesTypeConverter))] + public partial class EnvironmentPatchProperties + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentPatchProperties(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentPatchProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentPatchProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (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 EnvironmentPatchProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(EnvironmentPatchPropertiesTypeConverter))] + public partial interface IEnvironmentPatchProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.TypeConverter.cs new file mode 100644 index 000000000000..c95eb5de9672 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentPatchPropertiesTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentPatchProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentPatchProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentPatchProperties.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.cs new file mode 100644 index 000000000000..300892332d7d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + public partial class EnvironmentPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal + { + + /// Backing field for property. + private global::System.DateTime? _expirationDate; + + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? ExpirationDate { get => this._expirationDate; set => this._expirationDate = value; } + + /// Creates an new instance. + public EnvironmentPatchProperties() + { + + } + } + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + public partial interface IEnvironmentPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ExpirationDate { get; set; } + + } + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + internal partial interface IEnvironmentPatchPropertiesInternal + + { + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + global::System.DateTime? ExpirationDate { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.json.cs new file mode 100644 index 000000000000..a84e7e933053 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentPatchProperties.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + public partial class EnvironmentPatchProperties + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_expirationDate = If( json?.PropertyT("expirationDate"), out var __jsonExpirationDate) ? global::System.DateTime.TryParse((string)__jsonExpirationDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonExpirationDateValue) ? __jsonExpirationDateValue : ExpirationDate : ExpirationDate;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentPatchProperties(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._expirationDate ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._expirationDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "expirationDate" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs new file mode 100644 index 000000000000..7623477fee41 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Properties of an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] + public partial class EnvironmentType + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentType DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentType(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentType DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentType(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentType(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName, 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 EnvironmentType(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("DeploymentTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DeploymentTargetId = (string) content.GetValueForProperty("DeploymentTargetId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DeploymentTargetId, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal)this).DisplayName, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentType FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment type. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeTypeConverter))] + public partial interface IEnvironmentType + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.TypeConverter.cs new file mode 100644 index 000000000000..6f3443315911 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentTypeTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentType ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentType.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentType.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentType.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs new file mode 100644 index 000000000000..d37ee1f74606 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.cs @@ -0,0 +1,128 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Properties of an environment type. + public partial class EnvironmentType : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeInternal + { + + /// Backing field for property. + private string _deploymentTargetId; + + /// + /// The ID of a subscription or management group that the environment type will be mapped to. The environment's resources + /// will be deployed into this subscription or management group. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DeploymentTargetId { get => this._deploymentTargetId; set => this._deploymentTargetId = value; } + + /// Backing field for property. + private string _displayName; + + /// Display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private string _name; + + /// Name of the environment type + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus _status; + + /// Indicates whether this environment type is enabled for use in this project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get => this._status; set => this._status = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the environment type + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public EnvironmentType() + { + + } + } + /// Properties of an environment type. + public partial interface IEnvironmentType : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// The ID of a subscription or management group that the environment type will be mapped to. The environment's resources + /// will be deployed into this subscription or management group. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group.", + SerializedName = @"deploymentTargetId", + PossibleTypes = new [] { typeof(string) })] + string DeploymentTargetId { get; set; } + /// Display name of the environment type. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name of the environment type.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// Name of the environment type + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the environment type", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// Indicates whether this environment type is enabled for use in this project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Indicates whether this environment type is enabled for use in this project.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get; set; } + /// The unique URI of the environment type + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the environment type", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// Properties of an environment type. + internal partial interface IEnvironmentTypeInternal + + { + /// + /// The ID of a subscription or management group that the environment type will be mapped to. The environment's resources + /// will be deployed into this subscription or management group. + /// + string DeploymentTargetId { get; set; } + /// Display name of the environment type. + string DisplayName { get; set; } + /// Name of the environment type + string Name { get; set; } + /// Indicates whether this environment type is enabled for use in this project. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentTypeEnableStatus Status { get; set; } + /// The unique URI of the environment type + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.json.cs new file mode 100644 index 000000000000..f0c893afd103 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentType.json.cs @@ -0,0 +1,116 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Properties of an environment type. + public partial class EnvironmentType + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentType(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_deploymentTargetId = If( json?.PropertyT("deploymentTargetId"), out var __jsonDeploymentTargetId) ? (string)__jsonDeploymentTargetId : (string)DeploymentTargetId;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentType(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._deploymentTargetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._deploymentTargetId.ToString()) : null, "deploymentTargetId" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs new file mode 100644 index 000000000000..23a299546023 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Result of the environment type list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] + public partial class EnvironmentTypeListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentTypeListResult(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentTypeListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentTypeListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink, 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 EnvironmentTypeListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentTypeTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Result of the environment type list operation. + [System.ComponentModel.TypeConverter(typeof(EnvironmentTypeListResultTypeConverter))] + public partial interface IEnvironmentTypeListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.TypeConverter.cs new file mode 100644 index 000000000000..b22e0d882f4c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class EnvironmentTypeListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return EnvironmentTypeListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return EnvironmentTypeListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return EnvironmentTypeListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs new file mode 100644 index 000000000000..dec9a41e1a65 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Result of the environment type list operation. + public partial class EnvironmentTypeListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public EnvironmentTypeListResult() + { + + } + } + /// Result of the environment type list operation. + public partial interface IEnvironmentTypeListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[] Value { get; set; } + + } + /// Result of the environment type list operation. + internal partial interface IEnvironmentTypeListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs new file mode 100644 index 000000000000..4cf05c6da28a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentTypeListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Result of the environment type list operation. + public partial class EnvironmentTypeListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal EnvironmentTypeListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentType) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentType.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.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentTypeListResult(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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.PowerShell.cs new file mode 100644 index 000000000000..a4700f141cc9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// Properties of an environment. These properties can be updated after the resource has been created. + /// + [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesTypeConverter))] + public partial class EnvironmentUpdateProperties + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new EnvironmentUpdateProperties(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new EnvironmentUpdateProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal EnvironmentUpdateProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (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 EnvironmentUpdateProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Parameter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParametersTypeConverter.ConvertFrom); + } + if (content.Contains("ExpirationDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate = (global::System.DateTime?) content.GetValueForProperty("ExpirationDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)this).ExpirationDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(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.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Properties of an environment. These properties can be updated after the resource has been created. + [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesTypeConverter))] + public partial interface IEnvironmentUpdateProperties + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.TypeConverter.cs index 386d789b69d3..78c734cb8f9f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.cs new file mode 100644 index 000000000000..72c6ea6a79be --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.cs @@ -0,0 +1,84 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// + /// Properties of an environment. These properties can be updated after the resource has been created. + /// + public partial class EnvironmentUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties __environmentPatchProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties(); + + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inherited)] + public global::System.DateTime? ExpirationDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)__environmentPatchProperties).ExpirationDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal)__environmentPatchProperties).ExpirationDate = value ?? default(global::System.DateTime); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters _parameter; + + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParameters()); set => this._parameter = value; } + + /// Creates an new instance. + public EnvironmentUpdateProperties() + { + + } + + /// 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.DevCenterdata.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__environmentPatchProperties), __environmentPatchProperties); + await eventListener.AssertObjectIsValid(nameof(__environmentPatchProperties), __environmentPatchProperties); + } + } + /// Properties of an environment. These properties can be updated after the resource has been created. + public partial interface IEnvironmentUpdateProperties : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties + { + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Parameters object for the environment. Can only be updated via create or replace.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get; set; } + + } + /// Properties of an environment. These properties can be updated after the resource has been created. + internal partial interface IEnvironmentUpdatePropertiesInternal : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchPropertiesInternal + { + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.json.cs similarity index 91% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.json.cs index 77e02e6391eb..865894b29527 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdateProperties.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdateProperties.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -67,18 +67,19 @@ internal EnvironmentUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.DevCente { return; } - {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParameters.FromJson(__jsonParameters) : Parameter;} + __environmentPatchProperties = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties(json); + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParameters.FromJson(__jsonParameters) : Parameter;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdateProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentUpdateProperties(json) : null; } @@ -102,6 +103,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To { return container; } + __environmentPatchProperties?.ToJson(container, serializationMode); AddIf( null != this._parameter ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._parameter.ToJson(null,serializationMode) : null, "parameters" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.PowerShell.cs similarity index 85% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.PowerShell.cs index e7c1152a23a0..a95678902059 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.PowerShell.cs @@ -3,11 +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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; - /// Parameters object for the environment. + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesParametersTypeConverter))] public partial class EnvironmentUpdatePropertiesParameters { @@ -55,35 +57,35 @@ public partial class EnvironmentUpdatePropertiesParameters partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EnvironmentUpdatePropertiesParameters(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.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EnvironmentUpdatePropertiesParameters(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +104,7 @@ internal EnvironmentUpdatePropertiesParameters(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,14 +130,14 @@ internal EnvironmentUpdatePropertiesParameters(global::System.Management.Automat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// Parameters object for the environment. + /// Parameters object for the environment. Can only be updated via create or replace. [System.ComponentModel.TypeConverter(typeof(EnvironmentUpdatePropertiesParametersTypeConverter))] public partial interface IEnvironmentUpdatePropertiesParameters diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.TypeConverter.cs index 65ded4c77706..9be8c0cee83d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.cs new file mode 100644 index 000000000000..3d3a8214f1ec --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.cs @@ -0,0 +1,37 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// + public partial class EnvironmentUpdatePropertiesParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParametersInternal + { + + /// Creates an new instance. + public EnvironmentUpdatePropertiesParameters() + { + + } + } + /// Parameters object for the environment. Can only be updated via create or replace. + public partial interface IEnvironmentUpdatePropertiesParameters : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IAssociativeArray + { + + } + /// Parameters object for the environment. Can only be updated via create or replace. + internal partial interface IEnvironmentUpdatePropertiesParametersInternal + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.dictionary.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.dictionary.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.dictionary.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.dictionary.cs index d1d06309d88c..fb4f9c222160 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.dictionary.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.EnvironmentUpdatePropertiesParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentUpdatePropertiesParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.json.cs similarity index 94% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.json.cs index 59bf13a610cd..994b3a90ea67 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/EnvironmentUpdatePropertiesParameters.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/EnvironmentUpdatePropertiesParameters.json.cs @@ -3,11 +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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; - /// Parameters object for the environment. + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// public partial class EnvironmentUpdatePropertiesParameters { @@ -71,13 +73,13 @@ internal EnvironmentUpdatePropertiesParameters(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new EnvironmentUpdatePropertiesParameters(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.PowerShell.cs new file mode 100644 index 000000000000..d592bac7e7c3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Hardware specifications for the Dev Box. + [System.ComponentModel.TypeConverter(typeof(HardwareProfileTypeConverter))] + public partial class HardwareProfile + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IHardwareProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new HardwareProfile(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.DevCenterdata.Models.Api20231001Preview.IHardwareProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new HardwareProfile(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.DevCenterdata.Models.Api20231001Preview.IHardwareProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal HardwareProfile(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("VCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).VCpUs = (int?) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).VCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).MemoryGb = (int?) content.GetValueForProperty("MemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).MemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal HardwareProfile(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("VCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).VCpUs = (int?) content.GetValueForProperty("VCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).VCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("MemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).MemoryGb = (int?) content.GetValueForProperty("MemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)this).MemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Hardware specifications for the Dev Box. + [System.ComponentModel.TypeConverter(typeof(HardwareProfileTypeConverter))] + public partial interface IHardwareProfile + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.TypeConverter.cs index 7dffc2c76f40..059918314b22 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IHardwareProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.cs similarity index 90% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.cs index ae38b65cf0b8..3070e915907f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Hardware specifications for the Dev Box. public partial class HardwareProfile : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class HardwareProfile : public int? MemoryGb { get => this._memoryGb; } /// Internal Acessors for MemoryGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal.MemoryGb { get => this._memoryGb; set { {_memoryGb = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal.MemoryGb { get => this._memoryGb; set { {_memoryGb = value;} } } /// Internal Acessors for SkuName - string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal.SkuName { get => this._skuName; set { {_skuName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal.SkuName { get => this._skuName; set { {_skuName = value;} } } /// Internal Acessors for VCpUs - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfileInternal.VCpUs { get => this._vCpUs; set { {_vCpUs = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal.VCpUs { get => this._vCpUs; set { {_vCpUs = value;} } } /// Backing field for property. private string _skuName; diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.json.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.json.cs index 50624d99f3df..eb10ebb6dcf0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/HardwareProfile.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/HardwareProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HardwareProfile partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IHardwareProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new HardwareProfile(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs new file mode 100644 index 000000000000..62c16fbeccc2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs @@ -0,0 +1,178 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Specifies information about the image used + [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] + public partial class ImageReference + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImageReference(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.DevCenterdata.Models.Api20231001Preview.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImageReference(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.DevCenterdata.Models.Api20231001Preview.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ImageReference(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("OperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OperatingSystem = (string) content.GetValueForProperty("OperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("OSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OSBuildNumber = (string) content.GetValueForProperty("OSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("PublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).PublishedDate, (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 ImageReference(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).Version, global::System.Convert.ToString); + } + if (content.Contains("OperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OperatingSystem = (string) content.GetValueForProperty("OperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("OSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OSBuildNumber = (string) content.GetValueForProperty("OSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).OSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("PublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).PublishedDate = (global::System.DateTime?) content.GetValueForProperty("PublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)this).PublishedDate, (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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Specifies information about the image used + [System.ComponentModel.TypeConverter(typeof(ImageReferenceTypeConverter))] + public partial interface IImageReference + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs new file mode 100644 index 000000000000..9f56b55be258 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ImageReferenceTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IImageReference ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ImageReference.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ImageReference.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ImageReference.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs new file mode 100644 index 000000000000..c7dbb175484e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.cs @@ -0,0 +1,134 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Specifies information about the image used + public partial class ImageReference : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal + { + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for OSBuildNumber + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal.OSBuildNumber { get => this._oSBuildNumber; set { {_oSBuildNumber = value;} } } + + /// Internal Acessors for OperatingSystem + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal.OperatingSystem { get => this._operatingSystem; set { {_operatingSystem = value;} } } + + /// Internal Acessors for PublishedDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal.PublishedDate { get => this._publishedDate; set { {_publishedDate = value;} } } + + /// Internal Acessors for Version + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal.Version { get => this._version; set { {_version = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the image used. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private string _oSBuildNumber; + + /// The operating system build number of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OSBuildNumber { get => this._oSBuildNumber; } + + /// Backing field for property. + private string _operatingSystem; + + /// The operating system of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperatingSystem { get => this._operatingSystem; } + + /// Backing field for property. + private global::System.DateTime? _publishedDate; + + /// The datetime that the backing image version was published. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? PublishedDate { get => this._publishedDate; } + + /// Backing field for property. + private string _version; + + /// The version of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Version { get => this._version; } + + /// Creates an new instance. + public ImageReference() + { + + } + } + /// Specifies information about the image used + public partial interface IImageReference : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The name of the image used. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the image used.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The operating system build number of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The operating system build number of the image.", + SerializedName = @"osBuildNumber", + PossibleTypes = new [] { typeof(string) })] + string OSBuildNumber { get; } + /// The operating system of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The operating system of the image.", + SerializedName = @"operatingSystem", + PossibleTypes = new [] { typeof(string) })] + string OperatingSystem { get; } + /// The datetime that the backing image version was published. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The datetime that the backing image version was published.", + SerializedName = @"publishedDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? PublishedDate { get; } + /// The version of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version of the image.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string Version { get; } + + } + /// Specifies information about the image used + internal partial interface IImageReferenceInternal + + { + /// The name of the image used. + string Name { get; set; } + /// The operating system build number of the image. + string OSBuildNumber { get; set; } + /// The operating system of the image. + string OperatingSystem { get; set; } + /// The datetime that the backing image version was published. + global::System.DateTime? PublishedDate { get; set; } + /// The version of the image. + string Version { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.cs new file mode 100644 index 000000000000..354ddc5c7eee --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ImageReference.json.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Specifies information about the image used + public partial class ImageReference + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ImageReference(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal ImageReference(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;} + {_operatingSystem = If( json?.PropertyT("operatingSystem"), out var __jsonOperatingSystem) ? (string)__jsonOperatingSystem : (string)OperatingSystem;} + {_oSBuildNumber = If( json?.PropertyT("osBuildNumber"), out var __jsonOSBuildNumber) ? (string)__jsonOSBuildNumber : (string)OSBuildNumber;} + {_publishedDate = If( json?.PropertyT("publishedDate"), out var __jsonPublishedDate) ? global::System.DateTime.TryParse((string)__jsonPublishedDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonPublishedDateValue) ? __jsonPublishedDateValue : PublishedDate : PublishedDate;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._operatingSystem)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._operatingSystem.ToString()) : null, "operatingSystem" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._oSBuildNumber)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._oSBuildNumber.ToString()) : null, "osBuildNumber" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._publishedDate ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._publishedDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "publishedDate" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.PowerShell.cs similarity index 83% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.PowerShell.cs index d264cfce3295..28e89f77ac15 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OSDisk partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IOSDisk DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OSDisk(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.DevCenterdata.Models.Api20230401.IOSDisk DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OSDisk(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api2023040 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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. @@ -103,13 +103,13 @@ internal OSDisk(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DiskSizeGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)this).DiskSizeGb = (int?) content.GetValueForProperty("DiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)this).DiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)this).DiskSizeGb = (int?) content.GetValueForProperty("DiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)this).DiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } 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. @@ -124,7 +124,7 @@ internal OSDisk(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DiskSizeGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)this).DiskSizeGb = (int?) content.GetValueForProperty("DiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal)this).DiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)this).DiskSizeGb = (int?) content.GetValueForProperty("DiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)this).DiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.TypeConverter.cs index 7b82036f4696..3fb16ce8289c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IOSDisk ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.cs similarity index 91% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.cs index 312c780baa1f..69523b8b4bcc 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Settings for the operating system disk. public partial class OSDisk : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class OSDisk : public int? DiskSizeGb { get => this._diskSizeGb; } /// Internal Acessors for DiskSizeGb - int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDiskInternal.DiskSizeGb { get => this._diskSizeGb; set { {_diskSizeGb = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal.DiskSizeGb { get => this._diskSizeGb; set { {_diskSizeGb = value;} } } /// Creates an new instance. public OSDisk() diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.json.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.json.cs index d75fa032ceaa..657ff32bc471 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OSDisk.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OSDisk.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OSDisk partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new OSDisk(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs new file mode 100644 index 000000000000..346b386a7e23 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The current status of an async operation + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial class OperationStatus + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IOperationStatus DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new OperationStatus(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.DevCenterdata.Models.Api20231001Preview.IOperationStatus DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new OperationStatus(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.DevCenterdata.Models.Api20231001Preview.IOperationStatus FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal OperationStatus(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message, 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 OperationStatus(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusErrorTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).ResourceId, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PercentComplete")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete = (float?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).PercentComplete, (__y)=> (float) global::System.Convert.ChangeType(__y, typeof(float))); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("OperationLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = (string) content.GetValueForProperty("OperationLocation",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation, global::System.Convert.ToString); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).Message, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The current status of an async operation + [System.ComponentModel.TypeConverter(typeof(OperationStatusTypeConverter))] + public partial interface IOperationStatus + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.TypeConverter.cs new file mode 100644 index 000000000000..788c747fdf5f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationStatusTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IOperationStatus ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationStatus.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationStatus.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationStatus.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs new file mode 100644 index 000000000000..96cb0ed457ba --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.cs @@ -0,0 +1,236 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The current status of an async operation + public partial class OperationStatus : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable + { + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)Error).Code = value ?? null; } + + /// Backing field for property. + private global::System.DateTime? _endTime; + + /// The end time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? EndTime { get => this._endTime; set => this._endTime = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError _error; + + /// Operation Error message + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusError()); set => this._error = value; } + + /// Backing field for property. + private string _id; + + /// Fully qualified ID for the operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Id { get => this._id; set => this._id = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)Error).Message = value ?? null; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusError()); set { {_error = value;} } } + + /// Backing field for property. + private string _name; + + /// The operation id name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _operationLocation; + + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperationLocation { get => this._operationLocation; set => this._operationLocation = value; } + + /// Backing field for property. + private float? _percentComplete; + + /// Percent of the operation that is complete + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public float? PercentComplete { get => this._percentComplete; set => this._percentComplete = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny _property; + + /// Custom operation properties, populated only for a successful operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any()); set => this._property = value; } + + /// Backing field for property. + private string _resourceId; + + /// The id of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string ResourceId { get => this._resourceId; set => this._resourceId = value; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// The start time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; set => this._startTime = value; } + + /// Backing field for property. + private string _status; + + /// Provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Status { get => this._status; set => this._status = value; } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Operation-Location", out var __operationLocationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusInternal)this).OperationLocation = System.Linq.Enumerable.FirstOrDefault(__operationLocationHeader0) is string __headerOperationLocationHeader0 ? __headerOperationLocationHeader0 : (string)null; + } + } + + /// Creates an new instance. + public OperationStatus() + { + + } + } + /// The current status of an async operation + public partial interface IOperationStatus : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; set; } + /// The end time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The end time of the operation", + SerializedName = @"endTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? EndTime { get; set; } + /// Fully qualified ID for the operation status. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Fully qualified ID for the operation status.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; set; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; set; } + /// The operation id name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The operation id name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Operation-Location", + PossibleTypes = new [] { typeof(string) })] + string OperationLocation { get; set; } + /// Percent of the operation that is complete + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Percent of the operation that is complete", + SerializedName = @"percentComplete", + PossibleTypes = new [] { typeof(float) })] + float? PercentComplete { get; set; } + /// Custom operation properties, populated only for a successful operation. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Custom operation properties, populated only for a successful operation.", + SerializedName = @"properties", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get; set; } + /// The id of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The id of the resource.", + SerializedName = @"resourceId", + PossibleTypes = new [] { typeof(string) })] + string ResourceId { get; set; } + /// The start time of the operation + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The start time of the operation", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; set; } + /// Provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Provisioning state of the resource.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + string Status { get; set; } + + } + /// The current status of an async operation + internal partial interface IOperationStatusInternal + + { + /// The error code. + string Code { get; set; } + /// The end time of the operation + global::System.DateTime? EndTime { get; set; } + /// Operation Error message + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError Error { get; set; } + /// Fully qualified ID for the operation status. + string Id { get; set; } + /// The error message. + string Message { get; set; } + /// The operation id name + string Name { get; set; } + + string OperationLocation { get; set; } + /// Percent of the operation that is complete + float? PercentComplete { get; set; } + /// Custom operation properties, populated only for a successful operation. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IAny Property { get; set; } + /// The id of the resource. + string ResourceId { get; set; } + /// The start time of the operation + global::System.DateTime? StartTime { get; set; } + /// Provisioning state of the resource. + string Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs new file mode 100644 index 000000000000..4245fe499174 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatus.json.cs @@ -0,0 +1,124 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The current status of an async operation + public partial class OperationStatus + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new OperationStatus(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal OperationStatus(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OperationStatusError.FromJson(__jsonError) : Error;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} + {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (float?)__jsonPercentComplete : PercentComplete;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Any.FromJson(__jsonProperties) : Property;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != (((object)this._resourceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._resourceId.ToString()) : null, "resourceId" ,container.Add ); + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); + AddIf( null != this._percentComplete ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((float)this._percentComplete) : null, "percentComplete" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.PowerShell.cs similarity index 78% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.PowerShell.cs index 295914b2bdb7..c766948f36be 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OperationStatusError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IOperationStatusError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationStatusError(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.DevCenterdata.Models.Api20230401.IOperationStatusError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationStatusError(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api2023040 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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. @@ -103,17 +105,17 @@ internal OperationStatusError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)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. @@ -128,11 +130,11 @@ internal OperationStatusError(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.TypeConverter.cs index 2ccebe1b70e9..89d9fbfe9437 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IOperationStatusError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.cs index f95ecc6ddcfc..189abeb48eb9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Operation Error message public partial class OperationStatusError : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusErrorInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.json.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.json.cs index 268733b9ffdc..5a6b5f782762 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/OperationStatusError.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/OperationStatusError.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationStatusError partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatusError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatusError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new OperationStatusError(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs new file mode 100644 index 000000000000..c3616695d546 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.PowerShell.cs @@ -0,0 +1,328 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A pool of Dev Boxes. + [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] + public partial class Pool + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IPool DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Pool(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.DevCenterdata.Models.Api20231001Preview.IPool DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Pool(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.DevCenterdata.Models.Api20231001Preview.IPool FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Pool(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HardwareProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfileTypeConverter.ConvertFrom); + } + if (content.Contains("StorageProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfileTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileMemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StorageProfileOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReferenceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceName, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceVersion, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceOperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("ImageReferencePublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HardwareProfileVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReferenceOSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSDiskSizeGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Pool(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HardwareProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile) content.GetValueForProperty("HardwareProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfileTypeConverter.ConvertFrom); + } + if (content.Contains("StorageProfile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfileTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReference")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReference = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("ImageReference",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReference, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom); + } + if (content.Contains("StopOnDisconnect")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration) content.GetValueForProperty("StopOnDisconnect",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnect, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("OSType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType?) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType.CreateFrom); + } + if (content.Contains("HibernateSupport")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HibernateSupport = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport?) content.GetValueForProperty("HibernateSupport",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HibernateSupport, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport.CreateFrom); + } + if (content.Contains("LocalAdministrator")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus?) content.GetValueForProperty("LocalAdministrator",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).LocalAdministrator, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus.CreateFrom); + } + if (content.Contains("HealthStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HealthStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) content.GetValueForProperty("HealthStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HealthStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus.CreateFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileSkuName = (string) content.GetValueForProperty("HardwareProfileSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileSkuName, global::System.Convert.ToString); + } + if (content.Contains("HardwareProfileMemoryGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileMemoryGb = (int?) content.GetValueForProperty("HardwareProfileMemoryGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileMemoryGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("StorageProfileOSDisk")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfileOSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("StorageProfileOSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StorageProfileOSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); + } + if (content.Contains("ImageReferenceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceName = (string) content.GetValueForProperty("ImageReferenceName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceName, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceVersion, global::System.Convert.ToString); + } + if (content.Contains("ImageReferenceOperatingSystem")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOperatingSystem = (string) content.GetValueForProperty("ImageReferenceOperatingSystem",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOperatingSystem, global::System.Convert.ToString); + } + if (content.Contains("ImageReferencePublishedDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferencePublishedDate = (global::System.DateTime?) content.GetValueForProperty("ImageReferencePublishedDate",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferencePublishedDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HardwareProfileVCpUs")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileVCpUs = (int?) content.GetValueForProperty("HardwareProfileVCpUs",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).HardwareProfileVCpUs, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ImageReferenceOSBuildNumber")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOSBuildNumber = (string) content.GetValueForProperty("ImageReferenceOSBuildNumber",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).ImageReferenceOSBuildNumber, global::System.Convert.ToString); + } + if (content.Contains("StopOnDisconnectStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("StopOnDisconnectStatus",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectStatus, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("StopOnDisconnectGracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute = (int?) content.GetValueForProperty("StopOnDisconnectGracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).StopOnDisconnectGracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("OSDiskSizeGb")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A pool of Dev Boxes. + [System.ComponentModel.TypeConverter(typeof(PoolTypeConverter))] + public partial interface IPool + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs new file mode 100644 index 000000000000..baf08177f581 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PoolTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IPool ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Pool.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Pool.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Pool.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs new file mode 100644 index 000000000000..b16c22f7c0da --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.cs @@ -0,0 +1,428 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A pool of Dev Boxes. + public partial class Pool : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal + { + + /// Backing field for property. + private string _displayName; + + /// Display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile _hardwareProfile; + + /// Hardware settings for the Dev Boxes created in this pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile()); set => this._hardwareProfile = value; } + + /// The amount of memory available for the Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public int? HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb; } + + /// The name of the SKU + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName; } + + /// The number of vCPUs available for the Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public int? HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus _healthStatus; + + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get => this._healthStatus; set => this._healthStatus = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? _hibernateSupport; + + /// Indicates whether hibernate is enabled/disabled or unknown. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get => this._hibernateSupport; set => this._hibernateSupport = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference _imageReference; + + /// Image settings for Dev Boxes create in this pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference()); set => this._imageReference = value; } + + /// The name of the image used. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name; } + + /// The operating system build number of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber; } + + /// The operating system of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem; } + + /// The datetime that the backing image version was published. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public global::System.DateTime? ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate; } + + /// The version of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? _localAdministrator; + + /// + /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get => this._localAdministrator; set => this._localAdministrator = value; } + + /// Backing field for property. + private string _location; + + /// Azure region where Dev Boxes in the pool are located + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for HardwareProfile + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.HardwareProfile { get => (this._hardwareProfile = this._hardwareProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile()); set { {_hardwareProfile = value;} } } + + /// Internal Acessors for HardwareProfileMemoryGb + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.HardwareProfileMemoryGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).MemoryGb = value; } + + /// Internal Acessors for HardwareProfileSkuName + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.HardwareProfileSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).SkuName = value; } + + /// Internal Acessors for HardwareProfileVCpUs + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.HardwareProfileVCpUs { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfileInternal)HardwareProfile).VCpUs = value; } + + /// Internal Acessors for ImageReference + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReference { get => (this._imageReference = this._imageReference ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference()); set { {_imageReference = value;} } } + + /// Internal Acessors for ImageReferenceName + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReferenceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Name = value; } + + /// Internal Acessors for ImageReferenceOSBuildNumber + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReferenceOSBuildNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OSBuildNumber = value; } + + /// Internal Acessors for ImageReferenceOperatingSystem + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReferenceOperatingSystem { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).OperatingSystem = value; } + + /// Internal Acessors for ImageReferencePublishedDate + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReferencePublishedDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).PublishedDate = value; } + + /// Internal Acessors for ImageReferenceVersion + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReferenceInternal)ImageReference).Version = value; } + + /// Internal Acessors for OSDiskSizeGb + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb = value; } + + /// Internal Acessors for StopOnDisconnect + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfiguration()); set { {_stopOnDisconnect = value;} } } + + /// Internal Acessors for StorageProfile + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile()); set { {_storageProfile = value;} } } + + /// Internal Acessors for StorageProfileOSDisk + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolInternal.StorageProfileOSDisk { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDisk; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDisk = value; } + + /// Backing field for property. + private string _name; + + /// Pool name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// The size of the OS Disk in gigabytes. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)StorageProfile).OSDiskSizeGb; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? _oSType; + + /// The operating system type of Dev Boxes in this pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get => this._oSType; set => this._oSType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration _stopOnDisconnect; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get => (this._stopOnDisconnect = this._stopOnDisconnect ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfiguration()); set => this._stopOnDisconnect = value; } + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public int? StopOnDisconnectGracePeriodMinute { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).GracePeriodMinute = value ?? default(int); } + + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)StopOnDisconnect).Status = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile _storageProfile; + + /// Storage settings for Dev Box created in this pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile()); set => this._storageProfile = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public Pool() + { + + } + } + /// A pool of Dev Boxes. + public partial interface IPool : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Display name of the pool. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name of the pool.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// The amount of memory available for the Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The amount of memory available for the Dev Box.", + SerializedName = @"memoryGB", + PossibleTypes = new [] { typeof(int) })] + int? HardwareProfileMemoryGb { get; } + /// The name of the SKU + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the SKU", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(string) })] + string HardwareProfileSkuName { get; } + /// The number of vCPUs available for the Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The number of vCPUs available for the Dev Box.", + SerializedName = @"vCPUs", + PossibleTypes = new [] { typeof(int) })] + int? HardwareProfileVCpUs { get; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes.", + SerializedName = @"healthStatus", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get; set; } + /// Indicates whether hibernate is enabled/disabled or unknown. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether hibernate is enabled/disabled or unknown.", + SerializedName = @"hibernateSupport", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get; set; } + /// The name of the image used. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the image used.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceName { get; } + /// The operating system build number of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The operating system build number of the image.", + SerializedName = @"osBuildNumber", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceOSBuildNumber { get; } + /// The operating system of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The operating system of the image.", + SerializedName = @"operatingSystem", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceOperatingSystem { get; } + /// The datetime that the backing image version was published. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The datetime that the backing image version was published.", + SerializedName = @"publishedDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ImageReferencePublishedDate { get; } + /// The version of the image. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The version of the image.", + SerializedName = @"version", + PossibleTypes = new [] { typeof(string) })] + string ImageReferenceVersion { get; } + /// + /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes.", + SerializedName = @"localAdministrator", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// Azure region where Dev Boxes in the pool are located + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Azure region where Dev Boxes in the pool are located", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Pool name + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Pool name", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The size of the OS Disk in gigabytes. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The size of the OS Disk in gigabytes.", + SerializedName = @"diskSizeGB", + PossibleTypes = new [] { typeof(int) })] + int? OSDiskSizeGb { get; } + /// The operating system type of Dev Boxes in this pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The operating system type of Dev Boxes in this pool", + SerializedName = @"osType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// The unique URI of the pool + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the pool", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// A pool of Dev Boxes. + internal partial interface IPoolInternal + + { + /// Display name of the pool. + string DisplayName { get; set; } + /// Hardware settings for the Dev Boxes created in this pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IHardwareProfile HardwareProfile { get; set; } + /// The amount of memory available for the Dev Box. + int? HardwareProfileMemoryGb { get; set; } + /// The name of the SKU + string HardwareProfileSkuName { get; set; } + /// The number of vCPUs available for the Dev Box. + int? HardwareProfileVCpUs { get; set; } + /// + /// Overall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.PoolHealthStatus HealthStatus { get; set; } + /// Indicates whether hibernate is enabled/disabled or unknown. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.HibernateSupport? HibernateSupport { get; set; } + /// Image settings for Dev Boxes create in this pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IImageReference ImageReference { get; set; } + /// The name of the image used. + string ImageReferenceName { get; set; } + /// The operating system build number of the image. + string ImageReferenceOSBuildNumber { get; set; } + /// The operating system of the image. + string ImageReferenceOperatingSystem { get; set; } + /// The datetime that the backing image version was published. + global::System.DateTime? ImageReferencePublishedDate { get; set; } + /// The version of the image. + string ImageReferenceVersion { get; set; } + /// + /// Indicates whether owners of Dev Boxes in this pool are local administrators on the Dev Boxes. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus? LocalAdministrator { get; set; } + /// Azure region where Dev Boxes in the pool are located + string Location { get; set; } + /// Pool name + string Name { get; set; } + /// The size of the OS Disk in gigabytes. + int? OSDiskSizeGb { get; set; } + /// The operating system type of Dev Boxes in this pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.OSType? OSType { get; set; } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration StopOnDisconnect { get; set; } + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? StopOnDisconnectGracePeriodMinute { get; set; } + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus? StopOnDisconnectStatus { get; set; } + /// Storage settings for Dev Box created in this pool + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile StorageProfile { get; set; } + /// Settings for the operating system disk. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk StorageProfileOSDisk { get; set; } + /// The unique URI of the pool + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.json.cs new file mode 100644 index 000000000000..37e9791c3bca --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Pool.json.cs @@ -0,0 +1,130 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A pool of Dev Boxes. + public partial class Pool + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Pool(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal Pool(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_hardwareProfile = If( json?.PropertyT("hardwareProfile"), out var __jsonHardwareProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.HardwareProfile.FromJson(__jsonHardwareProfile) : HardwareProfile;} + {_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;} + {_imageReference = If( json?.PropertyT("imageReference"), out var __jsonImageReference) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ImageReference.FromJson(__jsonImageReference) : ImageReference;} + {_stopOnDisconnect = If( json?.PropertyT("stopOnDisconnect"), out var __jsonStopOnDisconnect) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.StopOnDisconnectConfiguration.FromJson(__jsonStopOnDisconnect) : StopOnDisconnect;} + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_oSType = If( json?.PropertyT("osType"), out var __jsonOSType) ? (string)__jsonOSType : (string)OSType;} + {_hibernateSupport = If( json?.PropertyT("hibernateSupport"), out var __jsonHibernateSupport) ? (string)__jsonHibernateSupport : (string)HibernateSupport;} + {_localAdministrator = If( json?.PropertyT("localAdministrator"), out var __jsonLocalAdministrator) ? (string)__jsonLocalAdministrator : (string)LocalAdministrator;} + {_healthStatus = If( json?.PropertyT("healthStatus"), out var __jsonHealthStatus) ? (string)__jsonHealthStatus : (string)HealthStatus;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._hardwareProfile ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._hardwareProfile.ToJson(null,serializationMode) : null, "hardwareProfile" ,container.Add ); + AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add ); + AddIf( null != this._imageReference ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._imageReference.ToJson(null,serializationMode) : null, "imageReference" ,container.Add ); + AddIf( null != this._stopOnDisconnect ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) this._stopOnDisconnect.ToJson(null,serializationMode) : null, "stopOnDisconnect" ,container.Add ); + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != (((object)this._oSType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._oSType.ToString()) : null, "osType" ,container.Add ); + AddIf( null != (((object)this._hibernateSupport)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._hibernateSupport.ToString()) : null, "hibernateSupport" ,container.Add ); + AddIf( null != (((object)this._localAdministrator)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._localAdministrator.ToString()) : null, "localAdministrator" ,container.Add ); + AddIf( null != (((object)this._healthStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._healthStatus.ToString()) : null, "healthStatus" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs new file mode 100644 index 000000000000..342d9c4856b0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The Pool list result + [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] + public partial class PoolListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IPoolListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PoolListResult(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.DevCenterdata.Models.Api20231001Preview.IPoolListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PoolListResult(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.DevCenterdata.Models.Api20231001Preview.IPoolListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PoolListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.PoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink, 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 PoolListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.PoolTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Pool list result + [System.ComponentModel.TypeConverter(typeof(PoolListResultTypeConverter))] + public partial interface IPoolListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.TypeConverter.cs new file mode 100644 index 000000000000..e997355d1a07 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PoolListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IPoolListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PoolListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PoolListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PoolListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs new file mode 100644 index 000000000000..a969d3270a66 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The Pool list result + public partial class PoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[] _value; + + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public PoolListResult() + { + + } + } + /// The Pool list result + public partial interface IPoolListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[] Value { get; set; } + + } + /// The Pool list result + internal partial interface IPoolListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// Current page of results + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs new file mode 100644 index 000000000000..c43b7cf6e8da --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/PoolListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The Pool list result + public partial class PoolListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new PoolListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal PoolListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IPool) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Pool.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.cs new file mode 100644 index 000000000000..acfa995325f3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.PowerShell.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Project details. + [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] + public partial class Project + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IProject DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Project(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.DevCenterdata.Models.Api20231001Preview.IProject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Project(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.DevCenterdata.Models.Api20231001Preview.IProject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Project(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).DisplayName, 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 Project(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("MaxDevBoxesPerUser")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser = (int?) content.GetValueForProperty("MaxDevBoxesPerUser",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).MaxDevBoxesPerUser, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal)this).DisplayName, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Project details. + [System.ComponentModel.TypeConverter(typeof(ProjectTypeConverter))] + public partial interface IProject + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs new file mode 100644 index 000000000000..6e551a7c2752 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProjectTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IProject ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Project.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Project.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Project.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.cs new file mode 100644 index 000000000000..df723d8a89bc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.cs @@ -0,0 +1,125 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Project details. + public partial class Project : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectInternal + { + + /// Backing field for property. + private string _description; + + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Description { get => this._description; set => this._description = value; } + + /// Backing field for property. + private string _displayName; + + /// Display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private int? _maxDevBoxesPerUser; + + /// + /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public int? MaxDevBoxesPerUser { get => this._maxDevBoxesPerUser; set => this._maxDevBoxesPerUser = value; } + + /// Backing field for property. + private string _name; + + /// Name of the project + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the project + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public Project() + { + + } + } + /// Project details. + public partial interface IProject : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// Description of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Description of the project.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; set; } + /// Display name of the project. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Display name of the project.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// + /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project.", + SerializedName = @"maxDevBoxesPerUser", + PossibleTypes = new [] { typeof(int) })] + int? MaxDevBoxesPerUser { get; set; } + /// Name of the project + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the project", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The unique URI of the project + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the project", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// Project details. + internal partial interface IProjectInternal + + { + /// Description of the project. + string Description { get; set; } + /// Display name of the project. + string DisplayName { get; set; } + /// + /// When specified, indicates the maximum number of Dev Boxes a single user can create across all pools in the project. + /// + int? MaxDevBoxesPerUser { get; set; } + /// Name of the project + string Name { get; set; } + /// The unique URI of the project + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.json.cs new file mode 100644 index 000000000000..7fdb9d7e958a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Project.json.cs @@ -0,0 +1,116 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Project details. + public partial class Project + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Project(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal Project(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_maxDevBoxesPerUser = If( json?.PropertyT("maxDevBoxesPerUser"), out var __jsonMaxDevBoxesPerUser) ? (int?)__jsonMaxDevBoxesPerUser : MaxDevBoxesPerUser;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + AddIf( null != this._maxDevBoxesPerUser ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((int)this._maxDevBoxesPerUser) : null, "maxDevBoxesPerUser" ,container.Add ); + AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs new file mode 100644 index 000000000000..d188aabb43b3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Results of the project list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] + public partial class ProjectListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IProjectListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProjectListResult(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.DevCenterdata.Models.Api20231001Preview.IProjectListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProjectListResult(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.DevCenterdata.Models.Api20231001Preview.IProjectListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProjectListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ProjectTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink, 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 ProjectListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ProjectTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Results of the project list operation. + [System.ComponentModel.TypeConverter(typeof(ProjectListResultTypeConverter))] + public partial interface IProjectListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.TypeConverter.cs new file mode 100644 index 000000000000..386e1863c255 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ProjectListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IProjectListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ProjectListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ProjectListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ProjectListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs new file mode 100644 index 000000000000..f70effd2ae61 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the project list operation. + public partial class ProjectListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[] _value; + + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ProjectListResult() + { + + } + } + /// Results of the project list operation. + public partial interface IProjectListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// URL to get the next set of results if there are any. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"URL to get the next set of results if there are any.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[] Value { get; set; } + + } + /// Results of the project list operation. + internal partial interface IProjectListResultInternal + + { + /// URL to get the next set of results if there are any. + string NextLink { get; set; } + /// Current page of results. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs new file mode 100644 index 000000000000..63f5d072c138 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ProjectListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Results of the project list operation. + public partial class ProjectListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ProjectListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal ProjectListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IProject) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Project.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.PowerShell.cs similarity index 78% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.PowerShell.cs index bfcd4ac658a2..2d170e7366e7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class RemoteConnection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IRemoteConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RemoteConnection(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.DevCenterdata.Models.Api20230401.IRemoteConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RemoteConnection(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api2023040 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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. @@ -103,17 +105,17 @@ internal RemoteConnection(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("WebUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).WebUrl = (string) content.GetValueForProperty("WebUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).WebUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).WebUrl = (string) content.GetValueForProperty("WebUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).WebUrl, global::System.Convert.ToString); } if (content.Contains("RdpConnectionUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).RdpConnectionUrl = (string) content.GetValueForProperty("RdpConnectionUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).RdpConnectionUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).RdpConnectionUrl = (string) content.GetValueForProperty("RdpConnectionUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).RdpConnectionUrl, 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. @@ -128,11 +130,11 @@ internal RemoteConnection(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("WebUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).WebUrl = (string) content.GetValueForProperty("WebUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).WebUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).WebUrl = (string) content.GetValueForProperty("WebUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).WebUrl, global::System.Convert.ToString); } if (content.Contains("RdpConnectionUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).RdpConnectionUrl = (string) content.GetValueForProperty("RdpConnectionUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal)this).RdpConnectionUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).RdpConnectionUrl = (string) content.GetValueForProperty("RdpConnectionUrl",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal)this).RdpConnectionUrl, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.TypeConverter.cs index 1a490640bdd7..d2918dbaf681 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IRemoteConnection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.cs index 570a743e216a..d282430657f3 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; /// Provides remote connection information for a Dev Box. public partial class RemoteConnection : - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection, - Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnectionInternal { /// Backing field for property. diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.json.cs similarity index 96% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.json.cs index cc1e1bd85d5c..b3d3e09f2cde 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/RemoteConnection.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/RemoteConnection.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RemoteConnection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new RemoteConnection(json) : null; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs new file mode 100644 index 000000000000..dd4eff5f4900 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.PowerShell.cs @@ -0,0 +1,200 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// A Schedule to execute action. + [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] + public partial class Schedule + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ISchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Schedule(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.DevCenterdata.Models.Api20231001Preview.ISchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Schedule(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.DevCenterdata.Models.Api20231001Preview.ISchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Schedule(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("SourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceUri = (string) content.GetValueForProperty("SourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceUri, global::System.Convert.ToString); + } + if (content.Contains("SourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceType = (string) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceType, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Frequency = (string) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Frequency, global::System.Convert.ToString); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).TimeZone, 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 Schedule(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Uri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Uri, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("SourceUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceUri = (string) content.GetValueForProperty("SourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceUri, global::System.Convert.ToString); + } + if (content.Contains("SourceType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceType = (string) content.GetValueForProperty("SourceType",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).SourceType, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Frequency")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Frequency = (string) content.GetValueForProperty("Frequency",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Frequency, global::System.Convert.ToString); + } + if (content.Contains("Time")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Time = (string) content.GetValueForProperty("Time",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).Time, global::System.Convert.ToString); + } + if (content.Contains("TimeZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal)this).TimeZone, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A Schedule to execute action. + [System.ComponentModel.TypeConverter(typeof(ScheduleTypeConverter))] + public partial interface ISchedule + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs new file mode 100644 index 000000000000..884b0588616e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ScheduleTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ISchedule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Schedule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Schedule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Schedule.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs new file mode 100644 index 000000000000..beff88e31494 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.cs @@ -0,0 +1,179 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A Schedule to execute action. + public partial class Schedule : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal + { + + /// Backing field for property. + private string _frequency= @"Daily"; + + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Frequency { get => this._frequency; } + + /// Internal Acessors for Frequency + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal.Frequency { get => this._frequency; set { {_frequency = value;} } } + + /// Internal Acessors for SourceType + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal.SourceType { get => this._sourceType; set { {_sourceType = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Display name for the Schedule + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Name { get => this._name; set => this._name = value; } + + /// Backing field for property. + private string _sourceType= @"Pool"; + + /// The type of the resource that this schedule belongs to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string SourceType { get => this._sourceType; } + + /// Backing field for property. + private string _sourceUri; + + /// The URI of the resource that this schedule belongs to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string SourceUri { get => this._sourceUri; set => this._sourceUri = value; } + + /// Backing field for property. + private string _time; + + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Time { get => this._time; set => this._time = value; } + + /// Backing field for property. + private string _timeZone; + + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string TimeZone { get => this._timeZone; set => this._timeZone = value; } + + /// Backing field for property. + private string _type= @"StopDevBox"; + + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Backing field for property. + private string _uri; + + /// The unique URI of the schedule + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string Uri { get => this._uri; set => this._uri = value; } + + /// Creates an new instance. + public Schedule() + { + + } + } + /// A Schedule to execute action. + public partial interface ISchedule : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The frequency of this scheduled task. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The frequency of this scheduled task.", + SerializedName = @"frequency", + PossibleTypes = new [] { typeof(string) })] + string Frequency { get; } + /// Display name for the Schedule + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Display name for the Schedule", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; set; } + /// The type of the resource that this schedule belongs to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"The type of the resource that this schedule belongs to", + SerializedName = @"sourceType", + PossibleTypes = new [] { typeof(string) })] + string SourceType { get; } + /// The URI of the resource that this schedule belongs to + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The URI of the resource that this schedule belongs to", + SerializedName = @"sourceUri", + PossibleTypes = new [] { typeof(string) })] + string SourceUri { get; set; } + /// The target time to trigger the action. The format is HH:MM. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The target time to trigger the action. The format is HH:MM.", + SerializedName = @"time", + PossibleTypes = new [] { typeof(string) })] + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The IANA timezone id at which the schedule should execute.", + SerializedName = @"timeZone", + PossibleTypes = new [] { typeof(string) })] + string TimeZone { get; set; } + /// Supported type this scheduled task represents. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = true, + Description = @"Supported type this scheduled task represents.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + /// The unique URI of the schedule + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The unique URI of the schedule", + SerializedName = @"uri", + PossibleTypes = new [] { typeof(string) })] + string Uri { get; set; } + + } + /// A Schedule to execute action. + internal partial interface IScheduleInternal + + { + /// The frequency of this scheduled task. + string Frequency { get; set; } + /// Display name for the Schedule + string Name { get; set; } + /// The type of the resource that this schedule belongs to + string SourceType { get; set; } + /// The URI of the resource that this schedule belongs to + string SourceUri { get; set; } + /// The target time to trigger the action. The format is HH:MM. + string Time { get; set; } + /// The IANA timezone id at which the schedule should execute. + string TimeZone { get; set; } + /// Supported type this scheduled task represents. + string Type { get; set; } + /// The unique URI of the schedule + string Uri { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.json.cs new file mode 100644 index 000000000000..1f404b703131 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/Schedule.json.cs @@ -0,0 +1,122 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// A Schedule to execute action. + public partial class Schedule + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new Schedule(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal Schedule(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_uri = If( json?.PropertyT("uri"), out var __jsonUri) ? (string)__jsonUri : (string)Uri;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_sourceUri = If( json?.PropertyT("sourceUri"), out var __jsonSourceUri) ? (string)__jsonSourceUri : (string)SourceUri;} + {_sourceType = If( json?.PropertyT("sourceType"), out var __jsonSourceType) ? (string)__jsonSourceType : (string)SourceType;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_frequency = If( json?.PropertyT("frequency"), out var __jsonFrequency) ? (string)__jsonFrequency : (string)Frequency;} + {_time = If( json?.PropertyT("time"), out var __jsonTime) ? (string)__jsonTime : (string)Time;} + {_timeZone = If( json?.PropertyT("timeZone"), out var __jsonTimeZone) ? (string)__jsonTimeZone : (string)TimeZone;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._uri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._uri.ToString()) : null, "uri" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._sourceUri)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._sourceUri.ToString()) : null, "sourceUri" ,container.Add ); + AddIf( null != (((object)this._sourceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._sourceType.ToString()) : null, "sourceType" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._frequency)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._frequency.ToString()) : null, "frequency" ,container.Add ); + AddIf( null != (((object)this._time)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._time.ToString()) : null, "time" ,container.Add ); + AddIf( null != (((object)this._timeZone)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._timeZone.ToString()) : null, "timeZone" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs new file mode 100644 index 000000000000..a5826c6ee795 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// The Schedule list result + [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] + public partial class ScheduleListResult + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScheduleListResult(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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScheduleListResult(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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScheduleListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink, 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 ScheduleListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ScheduleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal)this).NextLink, 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The Schedule list result + [System.ComponentModel.TypeConverter(typeof(ScheduleListResultTypeConverter))] + public partial interface IScheduleListResult + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.TypeConverter.cs new file mode 100644 index 000000000000..016dd18a9417 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ScheduleListResultTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ScheduleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ScheduleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ScheduleListResult.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs new file mode 100644 index 000000000000..2d317807d02f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.cs @@ -0,0 +1,68 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The Schedule list result + public partial class ScheduleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[] _value; + + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public ScheduleListResult() + { + + } + } + /// The Schedule list result + public partial interface IScheduleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The URL to get the next set of results. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The URL to get the next set of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// Current page of results + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Current page of results", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[] Value { get; set; } + + } + /// The Schedule list result + internal partial interface IScheduleListResultInternal + + { + /// The URL to get the next set of results. + string NextLink { get; set; } + /// Current page of results + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs new file mode 100644 index 000000000000..2a2e83a8b871 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/ScheduleListResult.json.cs @@ -0,0 +1,118 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// The Schedule list result + public partial class ScheduleListResult + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new ScheduleListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal ScheduleListResult(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.ISchedule) (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Schedule.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs new file mode 100644 index 000000000000..126e74bc1864 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.PowerShell.cs @@ -0,0 +1,154 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] + public partial class StopOnDisconnectConfiguration + { + + /// + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new StopOnDisconnectConfiguration(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.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new StopOnDisconnectConfiguration(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.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal StopOnDisconnectConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("GracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal StopOnDisconnectConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus.CreateFrom); + } + if (content.Contains("GracePeriodMinute")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute = (int?) content.GetValueForProperty("GracePeriodMinute",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal)this).GracePeriodMinute, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + 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.DevCenterdata.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + [System.ComponentModel.TypeConverter(typeof(StopOnDisconnectConfigurationTypeConverter))] + public partial interface IStopOnDisconnectConfiguration + + { + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.TypeConverter.cs new file mode 100644 index 000000000000..67fcfe6017ea --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.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.DevCenterdata.Models.Api20231001Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class StopOnDisconnectConfigurationTypeConverter : 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.DevCenterdata.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return StopOnDisconnectConfiguration.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return StopOnDisconnectConfiguration.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return StopOnDisconnectConfiguration.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/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs new file mode 100644 index 000000000000..b0db0a720c9c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.cs @@ -0,0 +1,80 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial class StopOnDisconnectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfigurationInternal + { + + /// Backing field for property. + private int? _gracePeriodMinute; + + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public int? GracePeriodMinute { get => this._gracePeriodMinute; set => this._gracePeriodMinute = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus _status; + + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get => this._status; set => this._status = value; } + + /// Creates an new instance. + public StopOnDisconnectConfiguration() + { + + } + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial interface IStopOnDisconnectConfiguration : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.", + SerializedName = @"gracePeriodMinutes", + PossibleTypes = new [] { typeof(int) })] + int? GracePeriodMinute { get; set; } + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get; set; } + + } + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + internal partial interface IStopOnDisconnectConfigurationInternal + + { + /// + /// The specified time in minutes to wait before stopping a Dev Box once disconnect is detected. + /// + int? GracePeriodMinute { get; set; } + /// + /// Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled. + /// + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.StopOnDisconnectEnableStatus Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.json.cs new file mode 100644 index 000000000000..c4322b92a82d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StopOnDisconnectConfiguration.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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Stop on disconnect configuration settings for Dev Boxes created in this pool. + public partial class StopOnDisconnectConfiguration + { + + /// + /// 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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStopOnDisconnectConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new StopOnDisconnectConfiguration(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject instance to deserialize from. + internal StopOnDisconnectConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_gracePeriodMinute = If( json?.PropertyT("gracePeriodMinutes"), out var __jsonGracePeriodMinutes) ? (int?)__jsonGracePeriodMinutes : GracePeriodMinute;} + 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.DevCenterdata.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + AddIf( null != this._gracePeriodMinute ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNumber((int)this._gracePeriodMinute) : null, "gracePeriodMinutes" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.PowerShell.cs similarity index 75% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.PowerShell.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.PowerShell.cs index e45fedd688ba..0ad565f624b4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class StorageProfile partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, 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.DevCenterdata.Models.Api20230401.IStorageProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageProfile(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.DevCenterdata.Models.Api20230401.IStorageProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageProfile(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api2023040 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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. @@ -103,17 +105,17 @@ internal StorageProfile(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("OSDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("OSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("OSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); } if (content.Contains("OSDiskSizeGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } 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. @@ -128,11 +130,11 @@ internal StorageProfile(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("OSDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOSDisk) content.GetValueForProperty("OSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDiskTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDisk = (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk) content.GetValueForProperty("OSDisk",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDisk, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDiskTypeConverter.ConvertFrom); } if (content.Contains("OSDiskSizeGb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfileInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDiskSizeGb = (int?) content.GetValueForProperty("OSDiskSizeGb",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal)this).OSDiskSizeGb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.TypeConverter.cs similarity index 97% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.TypeConverter.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.TypeConverter.cs index 38e41296e479..96e248001c54 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.TypeConverter.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Models.Api20230401.IStorageProfile ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.cs new file mode 100644 index 000000000000..ce4d695b2e7c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.cs @@ -0,0 +1,63 @@ +// 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.DevCenterdata.Models.Api20231001Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + + /// Storage settings for the Dev Box's disks + public partial class StorageProfile : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal + { + + /// Internal Acessors for OSDisk + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal.OSDisk { get => (this._oSDisk = this._oSDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDisk()); set { {_oSDisk = value;} } } + + /// Internal Acessors for OSDiskSizeGb + int? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfileInternal.OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)OSDisk).DiskSizeGb; set => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)OSDisk).DiskSizeGb = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk _oSDisk; + + /// Settings for the operating system disk. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk OSDisk { get => (this._oSDisk = this._oSDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDisk()); set => this._oSDisk = value; } + + /// The size of the OS Disk in gigabytes. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Inlined)] + public int? OSDiskSizeGb { get => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDiskInternal)OSDisk).DiskSizeGb; } + + /// Creates an new instance. + public StorageProfile() + { + + } + } + /// Storage settings for the Dev Box's disks + public partial interface IStorageProfile : + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IJsonSerializable + { + /// The size of the OS Disk in gigabytes. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The size of the OS Disk in gigabytes.", + SerializedName = @"diskSizeGB", + PossibleTypes = new [] { typeof(int) })] + int? OSDiskSizeGb { get; } + + } + /// Storage settings for the Dev Box's disks + internal partial interface IStorageProfileInternal + + { + /// Settings for the operating system disk. + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOSDisk OSDisk { get; set; } + /// The size of the OS Disk in gigabytes. + int? OSDiskSizeGb { get; set; } + + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.json.cs similarity index 95% rename from src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.json.cs rename to src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.json.cs index 391ee2940224..18738db806bd 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20230401/StorageProfile.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/Api20231001Preview/StorageProfile.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.DevCenterdata.Models.Api20230401 +namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageProfile partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IStorageProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IStorageProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonObject json ? new StorageProfile(json) : null; } @@ -77,7 +77,7 @@ internal StorageProfile(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime { return; } - {_oSDisk = If( json?.PropertyT("osDisk"), out var __jsonOSDisk) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.OSDisk.FromJson(__jsonOSDisk) : OSDisk;} + {_oSDisk = If( json?.PropertyT("osDisk"), out var __jsonOSDisk) ? Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.OSDisk.FromJson(__jsonOSDisk) : OSDisk;} AfterFromJson(json); } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.PowerShell.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.PowerShell.cs index a52e04ebd91b..c6c69ee327f4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.PowerShell.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.PowerShell.cs @@ -113,18 +113,34 @@ internal DevCenterdataIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DevBoxName = (string) content.GetValueForProperty("DevBoxName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DevBoxName, global::System.Convert.ToString); } + if (content.Contains("CustomizationGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationGroupName = (string) content.GetValueForProperty("CustomizationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationGroupName, global::System.Convert.ToString); + } + if (content.Contains("CustomizationTaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationTaskId = (string) content.GetValueForProperty("CustomizationTaskId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationTaskId, global::System.Convert.ToString); + } if (content.Contains("ActionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).ActionName, global::System.Convert.ToString); } - if (content.Contains("EnvironmentName")) + if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName = (string) content.GetValueForProperty("EnvironmentName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("CatalogName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CatalogName, global::System.Convert.ToString); } + if (content.Contains("TaskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).TaskName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName = (string) content.GetValueForProperty("EnvironmentName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName, global::System.Convert.ToString); + } if (content.Contains("DefinitionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DefinitionName, global::System.Convert.ToString); @@ -170,18 +186,34 @@ internal DevCenterdataIdentity(global::System.Management.Automation.PSObject con { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DevBoxName = (string) content.GetValueForProperty("DevBoxName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DevBoxName, global::System.Convert.ToString); } + if (content.Contains("CustomizationGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationGroupName = (string) content.GetValueForProperty("CustomizationGroupName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationGroupName, global::System.Convert.ToString); + } + if (content.Contains("CustomizationTaskId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationTaskId = (string) content.GetValueForProperty("CustomizationTaskId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CustomizationTaskId, global::System.Convert.ToString); + } if (content.Contains("ActionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).ActionName = (string) content.GetValueForProperty("ActionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).ActionName, global::System.Convert.ToString); } - if (content.Contains("EnvironmentName")) + if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName = (string) content.GetValueForProperty("EnvironmentName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("CatalogName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CatalogName = (string) content.GetValueForProperty("CatalogName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).CatalogName, global::System.Convert.ToString); } + if (content.Contains("TaskName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).TaskName, global::System.Convert.ToString); + } + if (content.Contains("EnvironmentName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName = (string) content.GetValueForProperty("EnvironmentName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).EnvironmentName, global::System.Convert.ToString); + } if (content.Contains("DefinitionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DefinitionName = (string) content.GetValueForProperty("DefinitionName",((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentityInternal)this).DefinitionName, global::System.Convert.ToString); diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.cs index 6a9585d9259e..bf93e0d140e4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.cs @@ -26,6 +26,20 @@ public partial class DevCenterdataIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + /// Backing field for property. + private string _customizationGroupName; + + /// A customization group name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CustomizationGroupName { get => this._customizationGroupName; set => this._customizationGroupName = value; } + + /// Backing field for property. + private string _customizationTaskId; + + /// A customization task ID. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string CustomizationTaskId { get => this._customizationTaskId; set => this._customizationTaskId = value; } + /// Backing field for property. private string _definitionName; @@ -54,6 +68,13 @@ public partial class DevCenterdataIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] public string Id { get => this._id; set => this._id = value; } + /// Backing field for property. + private string _operationId; + + /// The id of the operation on a Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + /// Backing field for property. private string _poolName; @@ -75,6 +96,13 @@ public partial class DevCenterdataIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] public string ScheduleName { get => this._scheduleName; set => this._scheduleName = value; } + /// Backing field for property. + private string _taskName; + + /// A customization task name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Origin(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.PropertyOrigin.Owned)] + public string TaskName { get => this._taskName; set => this._taskName = value; } + /// Backing field for property. private string _userId; @@ -109,6 +137,22 @@ public partial interface IDevCenterdataIdentity : SerializedName = @"catalogName", PossibleTypes = new [] { typeof(string) })] string CatalogName { get; set; } + /// A customization group name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A customization group name.", + SerializedName = @"customizationGroupName", + PossibleTypes = new [] { typeof(string) })] + string CustomizationGroupName { get; set; } + /// A customization task ID. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A customization task ID.", + SerializedName = @"customizationTaskId", + PossibleTypes = new [] { typeof(string) })] + string CustomizationTaskId { get; set; } /// The name of the environment definition [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, @@ -141,6 +185,14 @@ public partial interface IDevCenterdataIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } + /// The id of the operation on a Dev Box. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The id of the operation on a Dev Box.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + string OperationId { get; set; } /// The name of a pool of Dev Boxes. [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, @@ -165,6 +217,14 @@ public partial interface IDevCenterdataIdentity : SerializedName = @"scheduleName", PossibleTypes = new [] { typeof(string) })] string ScheduleName { get; set; } + /// A customization task name. + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"A customization task name.", + SerializedName = @"taskName", + PossibleTypes = new [] { typeof(string) })] + string TaskName { get; set; } /// /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// @@ -184,6 +244,10 @@ internal partial interface IDevCenterdataIdentityInternal string ActionName { get; set; } /// The name of the catalog string CatalogName { get; set; } + /// A customization group name. + string CustomizationGroupName { get; set; } + /// A customization task ID. + string CustomizationTaskId { get; set; } /// The name of the environment definition string DefinitionName { get; set; } /// The name of a Dev Box. @@ -192,12 +256,16 @@ internal partial interface IDevCenterdataIdentityInternal string EnvironmentName { get; set; } /// Resource identity path string Id { get; set; } + /// The id of the operation on a Dev Box. + string OperationId { get; set; } /// The name of a pool of Dev Boxes. string PoolName { get; set; } /// The DevCenter Project upon which to execute operations. string ProjectName { get; set; } /// The name of a schedule. string ScheduleName { get; set; } + /// A customization task name. + string TaskName { get; set; } /// /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. /// diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.json.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.json.cs index 62dd262a5365..411567d65234 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.json.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Models/DevCenterdataIdentity.json.cs @@ -69,9 +69,13 @@ internal DevCenterdataIdentity(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata. {_scheduleName = If( json?.PropertyT("scheduleName"), out var __jsonScheduleName) ? (string)__jsonScheduleName : (string)ScheduleName;} {_userId = If( json?.PropertyT("userId"), out var __jsonUserId) ? (string)__jsonUserId : (string)UserId;} {_devBoxName = If( json?.PropertyT("devBoxName"), out var __jsonDevBoxName) ? (string)__jsonDevBoxName : (string)DevBoxName;} + {_customizationGroupName = If( json?.PropertyT("customizationGroupName"), out var __jsonCustomizationGroupName) ? (string)__jsonCustomizationGroupName : (string)CustomizationGroupName;} + {_customizationTaskId = If( json?.PropertyT("customizationTaskId"), out var __jsonCustomizationTaskId) ? (string)__jsonCustomizationTaskId : (string)CustomizationTaskId;} {_actionName = If( json?.PropertyT("actionName"), out var __jsonActionName) ? (string)__jsonActionName : (string)ActionName;} - {_environmentName = If( json?.PropertyT("environmentName"), out var __jsonEnvironmentName) ? (string)__jsonEnvironmentName : (string)EnvironmentName;} + {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} {_catalogName = If( json?.PropertyT("catalogName"), out var __jsonCatalogName) ? (string)__jsonCatalogName : (string)CatalogName;} + {_taskName = If( json?.PropertyT("taskName"), out var __jsonTaskName) ? (string)__jsonTaskName : (string)TaskName;} + {_environmentName = If( json?.PropertyT("environmentName"), out var __jsonEnvironmentName) ? (string)__jsonEnvironmentName : (string)EnvironmentName;} {_definitionName = If( json?.PropertyT("definitionName"), out var __jsonDefinitionName) ? (string)__jsonDefinitionName : (string)DefinitionName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); @@ -113,9 +117,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode To AddIf( null != (((object)this._scheduleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._scheduleName.ToString()) : null, "scheduleName" ,container.Add ); AddIf( null != (((object)this._userId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._userId.ToString()) : null, "userId" ,container.Add ); AddIf( null != (((object)this._devBoxName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._devBoxName.ToString()) : null, "devBoxName" ,container.Add ); + AddIf( null != (((object)this._customizationGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._customizationGroupName.ToString()) : null, "customizationGroupName" ,container.Add ); + AddIf( null != (((object)this._customizationTaskId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._customizationTaskId.ToString()) : null, "customizationTaskId" ,container.Add ); AddIf( null != (((object)this._actionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._actionName.ToString()) : null, "actionName" ,container.Add ); - AddIf( null != (((object)this._environmentName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._environmentName.ToString()) : null, "environmentName" ,container.Add ); + AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); AddIf( null != (((object)this._catalogName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._catalogName.ToString()) : null, "catalogName" ,container.Add ); + AddIf( null != (((object)this._taskName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._taskName.ToString()) : null, "taskName" ,container.Add ); + AddIf( null != (((object)this._environmentName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._environmentName.ToString()) : null, "environmentName" ,container.Add ); AddIf( null != (((object)this._definitionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._definitionName.ToString()) : null, "definitionName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.Completer.cs new file mode 100644 index 000000000000..cc48a499d9d7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.Completer.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization group. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatusTypeConverter))] + public partial struct CustomizationGroupStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NotStarted".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NotStarted'", "NotStarted", global::System.Management.Automation.CompletionResultType.ParameterValue, "NotStarted"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Running".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Running'", "Running", global::System.Management.Automation.CompletionResultType.ParameterValue, "Running"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ValidationFailed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ValidationFailed'", "ValidationFailed", global::System.Management.Automation.CompletionResultType.ParameterValue, "ValidationFailed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.TypeConverter.cs new file mode 100644 index 000000000000..ed84d514f505 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization group. + public partial class CustomizationGroupStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => CustomizationGroupStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.cs new file mode 100644 index 000000000000..0ce56c373e5e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationGroupStatus.cs @@ -0,0 +1,109 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization group. + public partial struct CustomizationGroupStatus : + System.IEquatable + { + /// At least one task in the customization group failed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus Failed = @"Failed"; + + /// The customization group has not yet started. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus NotStarted = @"NotStarted"; + + /// The customization group is currently executing. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus Running = @"Running"; + + /// All tasks in the customization group successfully executed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus Succeeded = @"Succeeded"; + + /// At least one task in the customization group failed validation. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus ValidationFailed = @"ValidationFailed"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to CustomizationGroupStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CustomizationGroupStatus(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private CustomizationGroupStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CustomizationGroupStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CustomizationGroupStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CustomizationGroupStatus && Equals((CustomizationGroupStatus)obj); + } + + /// Returns hashCode for enum CustomizationGroupStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CustomizationGroupStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CustomizationGroupStatus + /// the value to convert to an instance of . + + public static implicit operator CustomizationGroupStatus(string value) + { + return new CustomizationGroupStatus(value); + } + + /// Implicit operator to convert CustomizationGroupStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e) + { + return e._value; + } + + /// Overriding != operator for enum CustomizationGroupStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CustomizationGroupStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationGroupStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.Completer.cs new file mode 100644 index 000000000000..58d1bb11ac98 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.Completer.cs @@ -0,0 +1,43 @@ +// 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.DevCenterdata.Support +{ + + /// Type of the parameter. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterTypeTypeConverter))] + public partial struct CustomizationTaskDefinitionParameterType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "string".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'string'", "string", global::System.Management.Automation.CompletionResultType.ParameterValue, "string"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "number".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'number'", "number", global::System.Management.Automation.CompletionResultType.ParameterValue, "number"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "boolean".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'boolean'", "boolean", global::System.Management.Automation.CompletionResultType.ParameterValue, "boolean"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.TypeConverter.cs new file mode 100644 index 000000000000..c784ab0341b3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Type of the parameter. + public partial class CustomizationTaskDefinitionParameterTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => CustomizationTaskDefinitionParameterType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.cs new file mode 100644 index 000000000000..2a6f9603cbbb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskDefinitionParameterType.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.DevCenterdata.Support +{ + + /// Type of the parameter. + public partial struct CustomizationTaskDefinitionParameterType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType Boolean = @"boolean"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType Number = @"number"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType String = @"string"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to CustomizationTaskDefinitionParameterType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CustomizationTaskDefinitionParameterType(global::System.Convert.ToString(value)); + } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private CustomizationTaskDefinitionParameterType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CustomizationTaskDefinitionParameterType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type CustomizationTaskDefinitionParameterType (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CustomizationTaskDefinitionParameterType && Equals((CustomizationTaskDefinitionParameterType)obj); + } + + /// Returns hashCode for enum CustomizationTaskDefinitionParameterType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CustomizationTaskDefinitionParameterType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CustomizationTaskDefinitionParameterType + /// the value to convert to an instance of . + + public static implicit operator CustomizationTaskDefinitionParameterType(string value) + { + return new CustomizationTaskDefinitionParameterType(value); + } + + /// Implicit operator to convert CustomizationTaskDefinitionParameterType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e) + { + return e._value; + } + + /// Overriding != operator for enum CustomizationTaskDefinitionParameterType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CustomizationTaskDefinitionParameterType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskDefinitionParameterType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.Completer.cs new file mode 100644 index 000000000000..969663b947d4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.Completer.cs @@ -0,0 +1,39 @@ +// 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.DevCenterdata.Support +{ + + /// Status of validating a list of customization tasks. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatusTypeConverter))] + public partial struct CustomizationTaskListValidationStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.TypeConverter.cs new file mode 100644 index 000000000000..13ae672a401b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Status of validating a list of customization tasks. + public partial class CustomizationTaskListValidationStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => CustomizationTaskListValidationStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.cs new file mode 100644 index 000000000000..abd5f40dacbc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskListValidationStatus.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.DevCenterdata.Support +{ + + /// Status of validating a list of customization tasks. + public partial struct CustomizationTaskListValidationStatus : + System.IEquatable + { + /// Validation failed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus Failed = @"Failed"; + + /// Validation succeeded. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus Succeeded = @"Succeeded"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to CustomizationTaskListValidationStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CustomizationTaskListValidationStatus(global::System.Convert.ToString(value)); + } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private CustomizationTaskListValidationStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CustomizationTaskListValidationStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type CustomizationTaskListValidationStatus (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CustomizationTaskListValidationStatus && Equals((CustomizationTaskListValidationStatus)obj); + } + + /// Returns hashCode for enum CustomizationTaskListValidationStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CustomizationTaskListValidationStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CustomizationTaskListValidationStatus + /// the value to convert to an instance of . + + public static implicit operator CustomizationTaskListValidationStatus(string value) + { + return new CustomizationTaskListValidationStatus(value); + } + + /// Implicit operator to convert CustomizationTaskListValidationStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e) + { + return e._value; + } + + /// Overriding != operator for enum CustomizationTaskListValidationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CustomizationTaskListValidationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskListValidationStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.Completer.cs new file mode 100644 index 000000000000..68d5e61591a7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.Completer.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization task. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatusTypeConverter))] + public partial struct CustomizationTaskStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NotStarted".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NotStarted'", "NotStarted", global::System.Management.Automation.CompletionResultType.ParameterValue, "NotStarted"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Running".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Running'", "Running", global::System.Management.Automation.CompletionResultType.ParameterValue, "Running"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "FailedValidation".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'FailedValidation'", "FailedValidation", global::System.Management.Automation.CompletionResultType.ParameterValue, "FailedValidation"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Skipped".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Skipped'", "Skipped", global::System.Management.Automation.CompletionResultType.ParameterValue, "Skipped"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TimedOut".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'TimedOut'", "TimedOut", global::System.Management.Automation.CompletionResultType.ParameterValue, "TimedOut"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.TypeConverter.cs new file mode 100644 index 000000000000..1d43187d830c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization task. + public partial class CustomizationTaskStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => CustomizationTaskStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.cs new file mode 100644 index 000000000000..cec9596de282 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/CustomizationTaskStatus.cs @@ -0,0 +1,115 @@ +// 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.DevCenterdata.Support +{ + + /// Status of a customization task. + public partial struct CustomizationTaskStatus : + System.IEquatable + { + /// The task failed to execute. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus Failed = @"Failed"; + + /// The task reference is not valid. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus FailedValidation = @"FailedValidation"; + + /// The task has not yet started. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus NotStarted = @"NotStarted"; + + /// The task is currently executing. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus Running = @"Running"; + + /// The task was skipped. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus Skipped = @"Skipped"; + + /// The task successfully executed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus Succeeded = @"Succeeded"; + + /// The task timed out. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus TimedOut = @"TimedOut"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to CustomizationTaskStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CustomizationTaskStatus(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private CustomizationTaskStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CustomizationTaskStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type CustomizationTaskStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CustomizationTaskStatus && Equals((CustomizationTaskStatus)obj); + } + + /// Returns hashCode for enum CustomizationTaskStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CustomizationTaskStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CustomizationTaskStatus + /// the value to convert to an instance of . + + public static implicit operator CustomizationTaskStatus(string value) + { + return new CustomizationTaskStatus(value); + } + + /// Implicit operator to convert CustomizationTaskStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e) + { + return e._value; + } + + /// Overriding != operator for enum CustomizationTaskStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CustomizationTaskStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.CustomizationTaskStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.Completer.cs new file mode 100644 index 000000000000..58a069052a56 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.Completer.cs @@ -0,0 +1,39 @@ +// 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.DevCenterdata.Support +{ + + /// The type of the resource which triggered the action. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceTypeTypeConverter))] + public partial struct DevBoxActionSourceType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Pool".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Pool'", "Pool", global::System.Management.Automation.CompletionResultType.ParameterValue, "Pool"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Schedule".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Schedule'", "Schedule", global::System.Management.Automation.CompletionResultType.ParameterValue, "Schedule"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.TypeConverter.cs new file mode 100644 index 000000000000..9d47c8b99dd6 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The type of the resource which triggered the action. + public partial class DevBoxActionSourceTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => DevBoxActionSourceType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.cs new file mode 100644 index 000000000000..4d7c3c322855 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxActionSourceType.cs @@ -0,0 +1,100 @@ +// 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.DevCenterdata.Support +{ + + /// The type of the resource which triggered the action. + public partial struct DevBoxActionSourceType : + System.IEquatable + { + /// The action was triggered by a Dev Box pool. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType Pool = @"Pool"; + + /// The action was triggered by a Dev Box schedule. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType Schedule = @"Schedule"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DevBoxActionSourceType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DevBoxActionSourceType(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DevBoxActionSourceType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DevBoxActionSourceType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DevBoxActionSourceType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DevBoxActionSourceType && Equals((DevBoxActionSourceType)obj); + } + + /// Returns hashCode for enum DevBoxActionSourceType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DevBoxActionSourceType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DevBoxActionSourceType + /// the value to convert to an instance of . + + public static implicit operator DevBoxActionSourceType(string value) + { + return new DevBoxActionSourceType(value); + } + + /// Implicit operator to convert DevBoxActionSourceType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e) + { + return e._value; + } + + /// Overriding != operator for enum DevBoxActionSourceType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DevBoxActionSourceType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxActionSourceType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.Completer.cs new file mode 100644 index 000000000000..f99587c39b09 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.Completer.cs @@ -0,0 +1,47 @@ +// 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.DevCenterdata.Support +{ + + /// The type of Dev Box operation. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKindTypeConverter))] + public partial struct DevBoxOperationKind : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Start".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Start'", "Start", global::System.Management.Automation.CompletionResultType.ParameterValue, "Start"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Stop".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Stop'", "Stop", global::System.Management.Automation.CompletionResultType.ParameterValue, "Stop"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Restart".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Restart'", "Restart", global::System.Management.Automation.CompletionResultType.ParameterValue, "Restart"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Repair".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Repair'", "Repair", global::System.Management.Automation.CompletionResultType.ParameterValue, "Repair"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.TypeConverter.cs new file mode 100644 index 000000000000..b57447192038 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The type of Dev Box operation. + public partial class DevBoxOperationKindTypeConverter : + 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) => true; + + /// + /// 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 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) => DevBoxOperationKind.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.cs new file mode 100644 index 000000000000..62b9b1e1f1d7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationKind.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.DevCenterdata.Support +{ + + /// The type of Dev Box operation. + public partial struct DevBoxOperationKind : + System.IEquatable + { + /// The operation represents a Dev Box repair. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Repair = @"Repair"; + + /// The operation represents a Dev Box restart. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Restart = @"Restart"; + + /// The operation represents a Dev Box start. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Start = @"Start"; + + /// The operation represents a Dev Box stop. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind Stop = @"Stop"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DevBoxOperationKind + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DevBoxOperationKind(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DevBoxOperationKind(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DevBoxOperationKind + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DevBoxOperationKind (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DevBoxOperationKind && Equals((DevBoxOperationKind)obj); + } + + /// Returns hashCode for enum DevBoxOperationKind + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DevBoxOperationKind + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DevBoxOperationKind + /// the value to convert to an instance of . + + public static implicit operator DevBoxOperationKind(string value) + { + return new DevBoxOperationKind(value); + } + + /// Implicit operator to convert DevBoxOperationKind to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e) + { + return e._value; + } + + /// Overriding != operator for enum DevBoxOperationKind + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DevBoxOperationKind + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationKind e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.Completer.cs new file mode 100644 index 000000000000..817f6e3dae1c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.Completer.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Support +{ + + /// The status of a Dev Box operation. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatusTypeConverter))] + public partial struct DevBoxOperationStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NotStarted".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NotStarted'", "NotStarted", global::System.Management.Automation.CompletionResultType.ParameterValue, "NotStarted"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Running".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Running'", "Running", global::System.Management.Automation.CompletionResultType.ParameterValue, "Running"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Canceled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Canceled'", "Canceled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Canceled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.TypeConverter.cs new file mode 100644 index 000000000000..d16830c414b8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The status of a Dev Box operation. + public partial class DevBoxOperationStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => DevBoxOperationStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.cs new file mode 100644 index 000000000000..1543fc65352c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxOperationStatus.cs @@ -0,0 +1,109 @@ +// 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.DevCenterdata.Support +{ + + /// The status of a Dev Box operation. + public partial struct DevBoxOperationStatus : + System.IEquatable + { + /// The operation was canceled. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Canceled = @"Canceled"; + + /// The operation failed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Failed = @"Failed"; + + /// The operation has not started. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus NotStarted = @"NotStarted"; + + /// The operation is running. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Running = @"Running"; + + /// The operation succeeded. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus Succeeded = @"Succeeded"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DevBoxOperationStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DevBoxOperationStatus(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DevBoxOperationStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DevBoxOperationStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DevBoxOperationStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DevBoxOperationStatus && Equals((DevBoxOperationStatus)obj); + } + + /// Returns hashCode for enum DevBoxOperationStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DevBoxOperationStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DevBoxOperationStatus + /// the value to convert to an instance of . + + public static implicit operator DevBoxOperationStatus(string value) + { + return new DevBoxOperationStatus(value); + } + + /// Implicit operator to convert DevBoxOperationStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e) + { + return e._value; + } + + /// Overriding != operator for enum DevBoxOperationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DevBoxOperationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxOperationStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.Completer.cs new file mode 100644 index 000000000000..1c39d22a3149 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.Completer.cs @@ -0,0 +1,43 @@ +// 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.DevCenterdata.Support +{ + + /// The action taken during a repair operation. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcomeTypeConverter))] + public partial struct DevBoxRepairOutcome : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "FixApplied".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'FixApplied'", "FixApplied", global::System.Management.Automation.CompletionResultType.ParameterValue, "FixApplied"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "IssuesDetected".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'IssuesDetected'", "IssuesDetected", global::System.Management.Automation.CompletionResultType.ParameterValue, "IssuesDetected"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NoIssuesDetected".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NoIssuesDetected'", "NoIssuesDetected", global::System.Management.Automation.CompletionResultType.ParameterValue, "NoIssuesDetected"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.TypeConverter.cs new file mode 100644 index 000000000000..dae12355e7bb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The action taken during a repair operation. + public partial class DevBoxRepairOutcomeTypeConverter : + 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) => true; + + /// + /// 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 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) => DevBoxRepairOutcome.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.cs new file mode 100644 index 000000000000..1387efebbca0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/DevBoxRepairOutcome.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.DevCenterdata.Support +{ + + /// The action taken during a repair operation. + public partial struct DevBoxRepairOutcome : + System.IEquatable + { + /// A fix for an issue was automatically applied to the Dev Box. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome FixApplied = @"FixApplied"; + + /// + /// One or more issues was detected on the Dev Box, but they could not be fixed automatically. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome IssuesDetected = @"IssuesDetected"; + + /// The service did not identify any issues on the Dev Box. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome NoIssuesDetected = @"NoIssuesDetected"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DevBoxRepairOutcome + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DevBoxRepairOutcome(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DevBoxRepairOutcome(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DevBoxRepairOutcome + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DevBoxRepairOutcome (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DevBoxRepairOutcome && Equals((DevBoxRepairOutcome)obj); + } + + /// Returns hashCode for enum DevBoxRepairOutcome + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DevBoxRepairOutcome + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DevBoxRepairOutcome + /// the value to convert to an instance of . + + public static implicit operator DevBoxRepairOutcome(string value) + { + return new DevBoxRepairOutcome(value); + } + + /// Implicit operator to convert DevBoxRepairOutcome to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e) + { + return e._value; + } + + /// Overriding != operator for enum DevBoxRepairOutcome + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DevBoxRepairOutcome + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.DevBoxRepairOutcome e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.Completer.cs new file mode 100644 index 000000000000..5b3302c52180 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.Completer.cs @@ -0,0 +1,39 @@ +// 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.DevCenterdata.Support +{ + + /// The type of environment operation. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKindTypeConverter))] + public partial struct EnvironmentOperationKind : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Deploy".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Deploy'", "Deploy", global::System.Management.Automation.CompletionResultType.ParameterValue, "Deploy"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Delete".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Delete'", "Delete", global::System.Management.Automation.CompletionResultType.ParameterValue, "Delete"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.TypeConverter.cs new file mode 100644 index 000000000000..d97176de913e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The type of environment operation. + public partial class EnvironmentOperationKindTypeConverter : + 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) => true; + + /// + /// 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 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) => EnvironmentOperationKind.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.cs new file mode 100644 index 000000000000..b6fe6641a58b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationKind.cs @@ -0,0 +1,100 @@ +// 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.DevCenterdata.Support +{ + + /// The type of environment operation. + public partial struct EnvironmentOperationKind : + System.IEquatable + { + /// The operation represents a delete. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Delete = @"Delete"; + + /// The operation represents a deployment. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind Deploy = @"Deploy"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to EnvironmentOperationKind + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new EnvironmentOperationKind(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private EnvironmentOperationKind(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type EnvironmentOperationKind + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type EnvironmentOperationKind (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is EnvironmentOperationKind && Equals((EnvironmentOperationKind)obj); + } + + /// Returns hashCode for enum EnvironmentOperationKind + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for EnvironmentOperationKind + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to EnvironmentOperationKind + /// the value to convert to an instance of . + + public static implicit operator EnvironmentOperationKind(string value) + { + return new EnvironmentOperationKind(value); + } + + /// Implicit operator to convert EnvironmentOperationKind to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e) + { + return e._value; + } + + /// Overriding != operator for enum EnvironmentOperationKind + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum EnvironmentOperationKind + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationKind e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.Completer.cs new file mode 100644 index 000000000000..b27a7a2c0980 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.Completer.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Support +{ + + /// The status of an environment operation. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatusTypeConverter))] + public partial struct EnvironmentOperationStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NotStarted".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NotStarted'", "NotStarted", global::System.Management.Automation.CompletionResultType.ParameterValue, "NotStarted"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Running".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Running'", "Running", global::System.Management.Automation.CompletionResultType.ParameterValue, "Running"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Succeeded".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Succeeded'", "Succeeded", global::System.Management.Automation.CompletionResultType.ParameterValue, "Succeeded"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Canceled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Canceled'", "Canceled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Canceled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Failed".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Failed'", "Failed", global::System.Management.Automation.CompletionResultType.ParameterValue, "Failed"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.TypeConverter.cs new file mode 100644 index 000000000000..a61c3ec9cfd8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// The status of an environment operation. + public partial class EnvironmentOperationStatusTypeConverter : + 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) => true; + + /// + /// 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 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) => EnvironmentOperationStatus.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.cs new file mode 100644 index 000000000000..113bbc9c43ee --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOperationStatus.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.DevCenterdata.Support +{ + + /// The status of an environment operation. + public partial struct EnvironmentOperationStatus : + System.IEquatable + { + /// The operation was canceled. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Canceled = @"Canceled"; + + /// The operation failed. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Failed = @"Failed"; + + /// The operation has not started. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus NotStarted = @"NotStarted"; + + /// The operation is running. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Running = @"Running"; + + /// The operation succeeded. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus Succeeded = @"Succeeded"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to EnvironmentOperationStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new EnvironmentOperationStatus(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private EnvironmentOperationStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type EnvironmentOperationStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type EnvironmentOperationStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is EnvironmentOperationStatus && Equals((EnvironmentOperationStatus)obj); + } + + /// Returns hashCode for enum EnvironmentOperationStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for EnvironmentOperationStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to EnvironmentOperationStatus + /// the value to convert to an instance of . + + public static implicit operator EnvironmentOperationStatus(string value) + { + return new EnvironmentOperationStatus(value); + } + + /// Implicit operator to convert EnvironmentOperationStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e) + { + return e._value; + } + + /// Overriding != operator for enum EnvironmentOperationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum EnvironmentOperationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOperationStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.Completer.cs new file mode 100644 index 000000000000..06abbc43a3cd --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.Completer.cs @@ -0,0 +1,51 @@ +// 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.DevCenterdata.Support +{ + + /// Type of the output value + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputTypeTypeConverter))] + public partial struct EnvironmentOutputType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "array".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'array'", "array", global::System.Management.Automation.CompletionResultType.ParameterValue, "array"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "boolean".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'boolean'", "boolean", global::System.Management.Automation.CompletionResultType.ParameterValue, "boolean"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "number".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'number'", "number", global::System.Management.Automation.CompletionResultType.ParameterValue, "number"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "object".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'object'", "object", global::System.Management.Automation.CompletionResultType.ParameterValue, "object"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "string".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'string'", "string", global::System.Management.Automation.CompletionResultType.ParameterValue, "string"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.TypeConverter.cs new file mode 100644 index 000000000000..da91d57ef6fc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// Type of the output value + public partial class EnvironmentOutputTypeTypeConverter : + 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) => true; + + /// + /// 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 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) => EnvironmentOutputType.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.cs new file mode 100644 index 000000000000..fe2cd925faa8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/EnvironmentOutputType.cs @@ -0,0 +1,109 @@ +// 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.DevCenterdata.Support +{ + + /// Type of the output value + public partial struct EnvironmentOutputType : + System.IEquatable + { + /// The output is an array of values. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType Array = @"array"; + + /// The output is a boolean value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType Boolean = @"boolean"; + + /// The output is a number value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType Number = @"number"; + + /// The output is an object value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType Object = @"object"; + + /// The output is a string value. + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType String = @"string"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to EnvironmentOutputType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new EnvironmentOutputType(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private EnvironmentOutputType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type EnvironmentOutputType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type EnvironmentOutputType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is EnvironmentOutputType && Equals((EnvironmentOutputType)obj); + } + + /// Returns hashCode for enum EnvironmentOutputType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for EnvironmentOutputType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to EnvironmentOutputType + /// the value to convert to an instance of . + + public static implicit operator EnvironmentOutputType(string value) + { + return new EnvironmentOutputType(value); + } + + /// Implicit operator to convert EnvironmentOutputType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e) + { + return e._value; + } + + /// Overriding != operator for enum EnvironmentOutputType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum EnvironmentOutputType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.EnvironmentOutputType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.Completer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.Completer.cs new file mode 100644 index 000000000000..31acd8a63566 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.Completer.cs @@ -0,0 +1,35 @@ +// 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.DevCenterdata.Support +{ + + /// Argument completer implementation for ListCustomizationGroupsIncludeProperty. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludePropertyTypeConverter))] + public partial struct ListCustomizationGroupsIncludeProperty : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "tasks".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'tasks'", "tasks", global::System.Management.Automation.CompletionResultType.ParameterValue, "tasks"); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.TypeConverter.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.TypeConverter.cs new file mode 100644 index 000000000000..2f63b0382a37 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.TypeConverter.cs @@ -0,0 +1,59 @@ +// 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.DevCenterdata.Support +{ + + /// TypeConverter implementation for ListCustomizationGroupsIncludeProperty. + public partial class ListCustomizationGroupsIncludePropertyTypeConverter : + 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) => true; + + /// + /// 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 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) => ListCustomizationGroupsIncludeProperty.CreateFrom(sourceValue); + + /// 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/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.cs b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.cs new file mode 100644 index 000000000000..e4d01d6946cc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/api/Support/ListCustomizationGroupsIncludeProperty.cs @@ -0,0 +1,101 @@ +// 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.DevCenterdata.Support +{ + + public partial struct ListCustomizationGroupsIncludeProperty : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty Tasks = @"tasks"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to ListCustomizationGroupsIncludeProperty + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ListCustomizationGroupsIncludeProperty(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ListCustomizationGroupsIncludeProperty + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type ListCustomizationGroupsIncludeProperty (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ListCustomizationGroupsIncludeProperty && Equals((ListCustomizationGroupsIncludeProperty)obj); + } + + /// Returns hashCode for enum ListCustomizationGroupsIncludeProperty + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private ListCustomizationGroupsIncludeProperty(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ListCustomizationGroupsIncludeProperty + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ListCustomizationGroupsIncludeProperty + /// the value to convert to an instance of . + + public static implicit operator ListCustomizationGroupsIncludeProperty(string value) + { + return new ListCustomizationGroupsIncludeProperty(value); + } + + /// Implicit operator to convert ListCustomizationGroupsIncludeProperty to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e) + { + return e._value; + } + + /// Overriding != operator for enum ListCustomizationGroupsIncludeProperty + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ListCustomizationGroupsIncludeProperty + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e1, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_Get.cs index 439520149939..84b941672e3a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserCatalog_Get")] - [global::System.Management.Automation.OutputType(typeof(string))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the specified catalog within the project")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserCatalog_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -143,24 +144,24 @@ public partial class GetAzDevCenterUserCatalog_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, CatalogName=CatalogName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog /// 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 ) { @@ -390,8 +391,8 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog - WriteObject((await response).Name); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog + WriteObject((await response)); } } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_GetViaIdentity.cs index 143bb1b6b7df..b86f8c488a67 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserCatalog_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(string))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the specified catalog within the project")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserCatalog_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserCatalog_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { 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.DevCenterdata.Models.Api20230401.ICatalog + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog /// 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,8 +387,8 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog - WriteObject((await response).Name); + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog + WriteObject((await response)); } } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_List.cs index 889f9df80f39..12d2eb8e24a0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserCatalog_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserCatalog_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all of the catalogs available for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserCatalog_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzDevCenterUserCatalog_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.ICatalogListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult /// 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) @@ -342,12 +343,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -364,7 +365,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +383,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.DevCenterdata.Models.Api20230401.ICatalogListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalogListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_Get.cs index 715b7b529e4b..88198ea4e730 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxAction_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBoxAction_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -34,20 +35,6 @@ public partial class GetAzDevCenterUserDevBoxAction_Get : global::System.Managem /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private string _actionName; - - /// The name of an action that will take place on a Dev Box. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of an action that will take place on a Dev Box.", - SerializedName = @"actionName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] - public string ActionName { get => this._actionName; set => this._actionName = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] @@ -117,6 +104,21 @@ public partial class GetAzDevCenterUserDevBoxAction_Get : global::System.Managem /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on a Dev Box.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + /// /// The instance of the that the remote call will use. /// @@ -177,24 +179,24 @@ public partial class GetAzDevCenterUserDevBoxAction_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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 +341,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DevBoxesGetAction(Endpoint, ProjectName, UserId, DevBoxName, ActionName, onOk, onDefault, this, Pipeline); + await this.Client.DevBoxesGetAction(Endpoint, ProjectName, UserId, DevBoxName, Name, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,ActionName=ActionName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -367,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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,15 +391,15 @@ 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.DevCenterdata.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -407,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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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 +426,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_GetViaIdentity.cs index d39272f12e3d..8742bea26995 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxAction_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBoxAction_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserDevBoxAction_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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) @@ -337,12 +338,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -359,7 +360,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -377,12 +378,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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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 ) { @@ -394,7 +395,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_List.cs index 9d2f221a4fb1..058547ab793e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxAction_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxAction_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists actions on a Dev Box.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBoxAction_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterUserDevBoxAction_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName }) { 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.DevCenterdata.Models.Api20230401.IDevBoxActionsListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_Get.cs new file mode 100644 index 000000000000..1d49905870a9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_Get.cs @@ -0,0 +1,433 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets a customization group. + /// + /// [OpenAPI] GetCustomizationGroup=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxCustomizationGroup_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a customization group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxCustomizationGroup_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _customizationGroupName; + + /// A customization group name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A customization group name.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A customization group name.", + SerializedName = @"customizationGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string CustomizationGroupName { get => this._customizationGroupName; set => this._customizationGroupName = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxCustomizationGroup_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesGetCustomizationGroup(Endpoint, ProjectName, UserId, DevBoxName, CustomizationGroupName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,CustomizationGroupName=CustomizationGroupName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, CustomizationGroupName=CustomizationGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, CustomizationGroupName=CustomizationGroupName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity.cs new file mode 100644 index 000000000000..f8b090ed0052 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity.cs @@ -0,0 +1,403 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets a customization group. + /// + /// [OpenAPI] GetCustomizationGroup=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a customization group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DevBoxesGetCustomizationGroupViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CustomizationGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CustomizationGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DevBoxesGetCustomizationGroup(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.DevBoxName ?? null, InputObject.CustomizationGroupName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_List.cs new file mode 100644 index 000000000000..66b3cb887313 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationGroup_List.cs @@ -0,0 +1,462 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// + /// Lists customization groups on the Dev Box. Listed customization groups exclude task information unless specified via the + /// include parameter. + /// + /// + /// [OpenAPI] ListCustomizationGroups=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxCustomizationGroup_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists customization groups on the Dev Box. Listed customization groups exclude task information unless specified via the include parameter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxCustomizationGroup_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[] _include; + + /// + /// Optional query parameter to specify what properties should be included in the response. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional query parameter to specify what properties should be included in the response.")] + [global::System.Management.Automation.AllowEmptyCollection] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional query parameter to specify what properties should be included in the response.", + SerializedName = @"include", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty))] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[] Include { get => this._include; set => this._include = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxCustomizationGroup_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListCustomizationGroups(Endpoint, ProjectName, UserId, DevBoxName, this.InvocationInformation.BoundParameters.ContainsKey("Include") ? Include : null /* arrayOf */, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,Include=this.InvocationInformation.BoundParameters.ContainsKey("Include") ? Include : null /* arrayOf */}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Include=this.InvocationInformation.BoundParameters.ContainsKey("Include") ? Include : null /* arrayOf */ }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Include=this.InvocationInformation.BoundParameters.ContainsKey("Include") ? Include : null /* arrayOf */ }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroupListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListCustomizationGroups_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_Get.cs new file mode 100644 index 000000000000..a1e23634a88d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_Get.cs @@ -0,0 +1,463 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets the log for a customization task. + /// + /// [OpenAPI] GetCustomizationTaskLog=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}/logs/{customizationTaskId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxCustomizationTaskLog_Get")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the log for a customization task.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}/logs/{customizationTaskId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxCustomizationTaskLog_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _customizationGroupName; + + /// A customization group name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A customization group name.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A customization group name.", + SerializedName = @"customizationGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string CustomizationGroupName { get => this._customizationGroupName; set => this._customizationGroupName = value; } + + /// Backing field for property. + private string _customizationTaskId; + + /// A customization task ID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A customization task ID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A customization task ID.", + SerializedName = @"customizationTaskId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string CustomizationTaskId { get => this._customizationTaskId; set => this._customizationTaskId = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Path to write output file to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path to write output file to")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + public global::System.String OutFile { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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. + /// /// 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, 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 global::System.IO.Stream 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxCustomizationTaskLog_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesGetCustomizationTaskLog(Endpoint, ProjectName, UserId, DevBoxName, CustomizationGroupName, CustomizationTaskId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,CustomizationGroupName=CustomizationGroupName,CustomizationTaskId=CustomizationTaskId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, CustomizationGroupName=CustomizationGroupName, CustomizationTaskId=CustomizationTaskId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// 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 global::System.IO.Stream 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / text/plain + // (await response) // should be global::System.IO.Stream + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + using( var stream = await response ) + { + using( var fileStream = global::System.IO.File.OpenWrite(paths[0]) ) + { + await stream.CopyToAsync(fileStream); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity.cs new file mode 100644 index 000000000000..fd6524b3992a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity.cs @@ -0,0 +1,423 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets the log for a customization task. + /// + /// [OpenAPI] GetCustomizationTaskLog=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}/logs/{customizationTaskId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the log for a customization task.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}/logs/{customizationTaskId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Path to write output file to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path to write output file to")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + public global::System.String OutFile { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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. + /// /// 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, 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 global::System.IO.Stream 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DevBoxesGetCustomizationTaskLogViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CustomizationGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CustomizationGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CustomizationTaskId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CustomizationTaskId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DevBoxesGetCustomizationTaskLog(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.DevBoxName ?? null, InputObject.CustomizationGroupName ?? null, InputObject.CustomizationTaskId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// 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 global::System.IO.Stream 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / text/plain + // (await response) // should be global::System.IO.Stream + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + using( var stream = await response ) + { + using( var fileStream = global::System.IO.File.OpenWrite(paths[0]) ) + { + await stream.CopyToAsync(fileStream); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_Get.cs new file mode 100644 index 000000000000..04adef9a17bd --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_Get.cs @@ -0,0 +1,433 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets an operation on a Dev Box. + /// + /// [OpenAPI] GetOperation=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations/{operationId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxOperation_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an operation on a Dev Box.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations/{operationId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxOperation_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _operationId; + + /// The id of the operation on a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The id of the operation on a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The id of the operation on a Dev Box.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxOperation_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesGetOperation(Endpoint, ProjectName, UserId, DevBoxName, OperationId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,OperationId=OperationId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, OperationId=OperationId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, OperationId=OperationId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_GetViaIdentity.cs new file mode 100644 index 000000000000..6f45ea1d2bba --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_GetViaIdentity.cs @@ -0,0 +1,403 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets an operation on a Dev Box. + /// + /// [OpenAPI] GetOperation=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations/{operationId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxOperation_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an operation on a Dev Box.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations/{operationId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxOperation_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxOperation_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DevBoxesGetOperationViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.OperationId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OperationId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DevBoxesGetOperation(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.DevBoxName ?? null, InputObject.OperationId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_List.cs new file mode 100644 index 000000000000..9d91faf318e0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxOperation_List.cs @@ -0,0 +1,473 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Lists operations on the Dev Box which have occurred within the past 90 days. + /// + /// [OpenAPI] ListOperations=>GET:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxOperation_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists operations on the Dev Box which have occurred within the past 90 days.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/operations", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserDevBoxOperation_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: 'top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: 'top=10'.", + SerializedName = @"top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserDevBoxOperation_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListOperations(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, UserId, DevBoxName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IDevBoxOperationListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListOperations_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_Get.cs index 750a0974e57c..55bdf1e072d6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxRemoteConnection_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets RDP Connection info")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBoxRemoteConnection_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -163,24 +164,24 @@ public partial class GetAzDevCenterUserDevBoxRemoteConnection_Get : global::Syst /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IRemoteConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection /// 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) @@ -353,12 +354,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -375,7 +376,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -393,12 +394,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.DevCenterdata.Models.Api20230401.IRemoteConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection /// 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 ) { @@ -410,7 +411,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity.cs index 7e89be039d70..ac81fb0b5fd9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBoxRemoteConnection_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets RDP Connection info")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/remoteConnection", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserDevBoxRemoteConnection_GetViaIdentity : g /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IRemoteConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.IRemoteConnection + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_Get.cs index f924f34a66a9..388566ffe29f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBox_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBox_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -160,24 +161,24 @@ public partial class GetAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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) @@ -350,12 +351,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -372,7 +373,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -390,12 +391,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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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 ) { @@ -407,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_GetViaIdentity.cs index 9783d888cbb7..7237aa614ac4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBox_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBox_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List.cs index f95c9ccb7c39..dab18ff1459a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBox_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists Dev Boxes that the caller has access to in the DevCenter.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/devboxes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBox_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -153,24 +154,24 @@ public partial class GetAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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) @@ -343,12 +344,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -365,7 +366,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -383,12 +384,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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List1.cs index 82a5d05c73b8..8d753cf88a61 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List1.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List1.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBox_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists Dev Boxes in the Dev Center for a particular user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/users/{userId}/devboxes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBox_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -169,24 +170,24 @@ public partial class GetAzDevCenterUserDevBox_List1 : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), UserId=UserId }) { 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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List2.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List2.cs index 4b3e688866f5..08949495690e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List2.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserDevBox_List2.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserDevBox_List2")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists Dev Boxes in the project for a particular user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserDevBox_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -183,24 +184,24 @@ public partial class GetAzDevCenterUserDevBox_List2 : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), ProjectName=ProjectName, UserId=UserId }) { 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.DevCenterdata.Models.Api20230401.IDevBoxListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_Get.cs new file mode 100644 index 000000000000..bba88abe9126 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_Get.cs @@ -0,0 +1,434 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Retrieve a specific environment action. + /// + /// [OpenAPI] GetAction=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentAction_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Retrieve a specific environment action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentAction_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on an Environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on an Environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on an Environment.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentAction_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsGetAction(Endpoint, ProjectName, UserId, EnvironmentName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_GetViaIdentity.cs new file mode 100644 index 000000000000..493053bc8417 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_GetViaIdentity.cs @@ -0,0 +1,403 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Retrieve a specific environment action. + /// + /// [OpenAPI] GetAction=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentAction_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Retrieve a specific environment action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentAction_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentAction_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsGetActionViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ActionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ActionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsGetAction(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, InputObject.ActionName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_List.cs new file mode 100644 index 000000000000..626827d9f2d7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentAction_List.cs @@ -0,0 +1,441 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Get all scheduled actions for a user within an environment. + /// + /// [OpenAPI] ListActions=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentAction_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Get all scheduled actions for a user within an environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentAction_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentAction_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsListActions(Endpoint, ProjectName, UserId, EnvironmentName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentActionsListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsListActions_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_Get.cs index 6936e30db241..a7567536de59 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentDefinition_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Get an environment definition from a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironmentDefinition_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -157,24 +158,24 @@ public partial class GetAzDevCenterUserEnvironmentDefinition_Get : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition /// 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) @@ -347,12 +348,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -369,7 +370,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, CatalogName=CatalogName, DefinitionName=DefinitionName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -387,12 +388,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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition /// 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 ) { @@ -404,7 +405,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity.cs index fd694eb806ce..578d0f4c8b14 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentDefinition_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Get an environment definition from a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions/{definitionName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserEnvironmentDefinition_GetViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List.cs index 0b4d2efbdbab..82fe72af5607 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentDefinition_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all environment definitions available for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/environmentDefinitions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironmentDefinition_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzDevCenterUserEnvironmentDefinition_List : global::Syst /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult /// 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) @@ -342,12 +343,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -364,7 +365,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +383,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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List1.cs index 2cfa05e8e781..4a1cff9f1c09 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List1.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentDefinition_List1.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentDefinition_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all environment definitions available within a catalog.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}/environmentDefinitions", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironmentDefinition_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -166,24 +167,24 @@ public partial class GetAzDevCenterUserEnvironmentDefinition_List1 : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult /// 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) @@ -356,12 +357,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -378,7 +379,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), CatalogName=CatalogName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -396,12 +397,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.DevCenterdata.Models.Api20230401.IEnvironmentDefinitionListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinitionListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_Get.cs new file mode 100644 index 000000000000..d5c44eb0b454 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_Get.cs @@ -0,0 +1,449 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets the logs for an operation on an environment. + /// + /// [OpenAPI] GetLogsByOperation=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentLog_Get")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the logs for an operation on an environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentLog_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _operationId; + + /// The id of the operation on an environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The id of the operation on an environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The id of the operation on an environment.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + + /// Path to write output file to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path to write output file to")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + public global::System.String OutFile { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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. + /// /// 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, 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 global::System.IO.Stream 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentLog_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsGetLogsByOperation(Endpoint, ProjectName, UserId, EnvironmentName, OperationId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName,OperationId=OperationId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, OperationId=OperationId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// 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 global::System.IO.Stream 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / text/plain + // (await response) // should be global::System.IO.Stream + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + using( var stream = await response ) + { + using( var fileStream = global::System.IO.File.OpenWrite(paths[0]) ) + { + await stream.CopyToAsync(fileStream); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_GetViaIdentity.cs new file mode 100644 index 000000000000..041d41d8e01e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentLog_GetViaIdentity.cs @@ -0,0 +1,419 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets the logs for an operation on an environment. + /// + /// [OpenAPI] GetLogsByOperation=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentLog_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets the logs for an operation on an environment.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentLog_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Path to write output file to. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path to write output file to")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + public global::System.String OutFile { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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. + /// /// 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, 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 global::System.IO.Stream 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentLog_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsGetLogsByOperationViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.OperationId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OperationId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsGetLogsByOperation(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, InputObject.OperationId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// 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 global::System.IO.Stream 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / text/plain + // (await response) // should be global::System.IO.Stream + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(OutFile, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid output path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple output paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, OutFile) ); + } + using( var stream = await response ) + { + using( var fileStream = global::System.IO.File.OpenWrite(paths[0]) ) + { + await stream.CopyToAsync(fileStream); + } + } + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_Get.cs new file mode 100644 index 000000000000..e124e348d6a3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_Get.cs @@ -0,0 +1,433 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets an environment action result. + /// + /// [OpenAPI] GetOperation=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentOperation_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an environment action result.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentOperation_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _operationId; + + /// The id of the operation on an environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The id of the operation on an environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The id of the operation on an environment.", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string OperationId { get => this._operationId; set => this._operationId = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentOperation_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsGetOperation(Endpoint, ProjectName, UserId, EnvironmentName, OperationId, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName,OperationId=OperationId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, OperationId=OperationId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, OperationId=OperationId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_GetViaIdentity.cs new file mode 100644 index 000000000000..b1fd4f88b977 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_GetViaIdentity.cs @@ -0,0 +1,403 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets an environment action result. + /// + /// [OpenAPI] GetOperation=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentOperation_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an environment action result.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentOperation_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentOperation_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsGetOperationViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.OperationId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.OperationId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsGetOperation(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, InputObject.OperationId ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_List.cs new file mode 100644 index 000000000000..e834fc4b4266 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOperation_List.cs @@ -0,0 +1,473 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Lists operations on the environment which have occurred within the past 90 days + /// + /// [OpenAPI] ListOperations=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/operations" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentOperation_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists operations on the environment which have occurred within the past 90 days")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/operations", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentOperation_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: 'top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: 'top=10'.", + SerializedName = @"top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentOperation_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsListOperations(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, UserId, EnvironmentName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperationListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsListOperations_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_Get.cs new file mode 100644 index 000000000000..4530e6723053 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_Get.cs @@ -0,0 +1,419 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets Outputs from the environment + /// + /// [OpenAPI] GetOutputs=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/outputs" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentOutput_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets Outputs from the environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/outputs", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentOutput_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentOutput_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsGetOutputs(Endpoint, ProjectName, UserId, EnvironmentName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + WriteObject((await response).Output); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_GetViaIdentity.cs new file mode 100644 index 000000000000..bba0329ac78a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentOutput_GetViaIdentity.cs @@ -0,0 +1,399 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets Outputs from the environment + /// + /// [OpenAPI] GetOutputs=>GET:"/projects/{projectName}/users/{userId}/environments/{environmentName}/outputs" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentOutput_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets Outputs from the environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/outputs", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserEnvironmentOutput_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserEnvironmentOutput_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsGetOutputsViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsGetOutputs(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs1 + WriteObject((await response).Output); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentType_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentType_List.cs index 434ad0540547..dae5d4ad3897 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentType_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironmentType_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironmentType_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all environment types configured for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/environmentTypes", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironmentType_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzDevCenterUserEnvironmentType_List : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult /// 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) @@ -342,12 +343,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -364,7 +365,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +383,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.DevCenterdata.Models.Api20230401.IEnvironmentTypeListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentTypeListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_Get.cs index e7f775a38f05..99666775411a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironment_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an environment")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironment_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -160,24 +161,24 @@ public partial class GetAzDevCenterUserEnvironment_Get : global::System.Manageme /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -350,12 +351,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -372,7 +373,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -390,12 +391,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -407,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_GetViaIdentity.cs index 1915e4db4bb8..8b3e5074692d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironment_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets an environment")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironment_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserEnvironment_GetViaIdentity : global::Syst /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List.cs index af820e9caacf..2d0ed868d785 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironment_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists the environments for a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/environments", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironment_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -152,24 +153,24 @@ public partial class GetAzDevCenterUserEnvironment_List : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult /// 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) @@ -342,12 +343,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -364,7 +365,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -382,12 +383,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.DevCenterdata.Models.Api20230401.IEnvironmentListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List1.cs index 7ab2c17c675f..cf9e7d73a15f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List1.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserEnvironment_List1.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserEnvironment_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists the environments for a project and user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserEnvironment_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -168,24 +169,24 @@ public partial class GetAzDevCenterUserEnvironment_List1 : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironmentListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult /// 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) @@ -358,12 +359,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -380,7 +381,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), ProjectName=ProjectName, UserId=UserId }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -398,12 +399,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.DevCenterdata.Models.Api20230401.IEnvironmentListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_Get.cs index d070ffddb1d2..b5c5fdaf8258 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserPool_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserPool_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -143,24 +144,24 @@ public partial class GetAzDevCenterUserPool_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, PoolName=PoolName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_GetViaIdentity.cs index 4bdfd6cccaab..571c5c908055 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserPool_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a pool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools/{poolName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserPool_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserPool_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { 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.DevCenterdata.Models.Api20230401.IPool + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool /// 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.DevCenterdata.Models.Api20230401.IPool + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_List.cs index 018a2d8628c3..ab14f8b813b1 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserPool_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserPool_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists available pools")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserPool_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -167,24 +168,24 @@ public partial class GetAzDevCenterUserPool_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IPoolListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult /// 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) @@ -357,12 +358,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -379,7 +380,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -397,12 +398,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.DevCenterdata.Models.Api20230401.IPoolListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPoolListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_Get.cs new file mode 100644 index 000000000000..0751044df215 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_Get.cs @@ -0,0 +1,445 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets a customization task. + /// + /// [OpenAPI] GetCustomizationTaskDefinition=>GET:"/projects/{projectName}/catalogs/{catalogName}/customizationTasks/{taskName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProjectCustomizationTaskDefinition_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a customization task.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}/customizationTasks/{taskName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserProjectCustomizationTaskDefinition_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Backing field for property. + private string _catalogName; + + /// The name of the catalog + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the catalog")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the catalog", + SerializedName = @"catalogName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string CatalogName { get => this._catalogName; set => this._catalogName = value; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _taskName; + + /// A customization task name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A customization task name.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A customization task name.", + SerializedName = @"taskName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string TaskName { get => this._taskName; set => this._taskName = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: 'top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: 'top=10'.", + SerializedName = @"top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserProjectCustomizationTaskDefinition_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ProjectsGetCustomizationTaskDefinition(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, CatalogName, TaskName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName,CatalogName=CatalogName,TaskName=TaskName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, CatalogName=CatalogName, TaskName=TaskName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity.cs new file mode 100644 index 000000000000..7ec2c46fcfff --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity.cs @@ -0,0 +1,432 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Gets a customization task. + /// + /// [OpenAPI] GetCustomizationTaskDefinition=>GET:"/projects/{projectName}/catalogs/{catalogName}/customizationTasks/{taskName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a customization task.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/catalogs/{catalogName}/customizationTasks/{taskName}", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: 'top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: 'top=10'.", + SerializedName = @"top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public GetAzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ProjectsGetCustomizationTaskDefinitionViaIdentity(InputObject.Id, Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CatalogName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CatalogName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TaskName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TaskName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ProjectsGetCustomizationTaskDefinition(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, InputObject.ProjectName ?? null, InputObject.CatalogName ?? null, InputObject.TaskName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_List.cs new file mode 100644 index 000000000000..745649c73b2d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProjectCustomizationTaskDefinition_List.cs @@ -0,0 +1,422 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Lists all customization tasks available to the project. + /// + /// [OpenAPI] ListCustomizationTaskDefinitions=>GET:"/projects/{projectName}/customizationTasks" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProjectCustomizationTaskDefinition_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all customization tasks available to the project.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/customizationTasks", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserProjectCustomizationTaskDefinition_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserProjectCustomizationTaskDefinition_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ProjectsListCustomizationTaskDefinitions(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinitionListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ProjectsListCustomizationTaskDefinitions_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_Get.cs index 63dfe980acd2..0dd3f4ce1d8c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProject_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserProject_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -129,24 +130,24 @@ public partial class GetAzDevCenterUserProject_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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) @@ -319,12 +320,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -341,7 +342,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -359,12 +360,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.DevCenterdata.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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 ) { @@ -376,7 +377,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_GetViaIdentity.cs index b3ff817a9a91..44e705cb6eeb 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProject_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a project.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserProject_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserProject_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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) @@ -325,12 +326,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -347,7 +348,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -365,12 +366,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.DevCenterdata.Models.Api20230401.IProject + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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 ) { @@ -382,7 +383,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_List.cs index e22c607a0f35..593e0942b25e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserProject_List.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserProject_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all projects.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserProject_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -153,24 +154,24 @@ public partial class GetAzDevCenterUserProject_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult /// 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) @@ -343,12 +344,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -365,7 +366,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -383,12 +384,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.DevCenterdata.Models.Api20230401.IProjectListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProjectListResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_Get.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_Get.cs index d9f47aa7d270..89abde331574 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_Get.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_Get.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserSchedule_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserSchedule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -157,24 +158,24 @@ public partial class GetAzDevCenterUserSchedule_Get : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule /// 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) @@ -347,12 +348,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -369,7 +370,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, PoolName=PoolName, ScheduleName=ScheduleName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -387,12 +388,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.DevCenterdata.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -404,7 +405,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_GetViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_GetViaIdentity.cs index 0c211ccdfc55..57836ee3abe3 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_GetViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_GetViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserSchedule_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Gets a schedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools/{poolName}/schedules/{scheduleName}", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserSchedule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -123,24 +124,24 @@ public partial class GetAzDevCenterUserSchedule_GetViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule /// 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) @@ -333,12 +334,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -355,7 +356,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -373,12 +374,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.DevCenterdata.Models.Api20230401.ISchedule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule /// 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 ) { @@ -390,7 +391,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List.cs index d7beed61489c..771960488862 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List.cs @@ -8,15 +8,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; using System; - /// Lists available schedules for a pool. + /// + /// Lists all schedules within a project that are configured by your project administrator. + /// /// - /// [OpenAPI] ListSchedulesByPool=>GET:"/projects/{projectName}/pools/{poolName}/schedules" + /// [OpenAPI] ListSchedulesByProject=>GET:"/projects/{projectName}/schedules" /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserSchedule_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists available schedules for a pool.")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all schedules within a project that are configured by your project administrator.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/schedules", ApiVersion = "2023-10-01-preview")] public partial class GetAzDevCenterUserSchedule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -115,20 +118,6 @@ public partial class GetAzDevCenterUserSchedule_List : global::System.Management /// private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } - /// Backing field for property. - private string _poolName; - - /// The name of a pool of Dev Boxes. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a pool of Dev Boxes.")] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of a pool of Dev Boxes.", - SerializedName = @"poolName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] - public string PoolName { get => this._poolName; set => this._poolName = value; } - /// Backing field for property. private string _projectName; @@ -181,24 +170,24 @@ public partial class GetAzDevCenterUserSchedule_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IScheduleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult /// 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) @@ -343,12 +332,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DevBoxesListSchedulesByPool(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, PoolName, onOk, onDefault, this, Pipeline); + await this.Client.DevBoxesListSchedulesByProject(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName,PoolName=PoolName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -371,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -393,15 +382,15 @@ 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.DevCenterdata.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, PoolName=PoolName }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, PoolName=PoolName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -411,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.DevCenterdata.Models.Api20230401.IScheduleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IScheduleListResult /// 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 ) { @@ -442,7 +431,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DevBoxesListSchedulesByPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.DevBoxesListSchedulesByProject_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List1.cs new file mode 100644 index 000000000000..66d1c85504d6 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/GetAzDevCenterUserSchedule_List1.cs @@ -0,0 +1,455 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// + /// Lists all schedules within a pool that are configured by your project administrator. + /// + /// + /// [OpenAPI] ListSchedulesByPool=>GET:"/projects/{projectName}/pools/{poolName}/schedules" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDevCenterUserSchedule_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Lists all schedules within a pool that are configured by your project administrator.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/pools/{poolName}/schedules", ApiVersion = "2023-10-01-preview")] + public partial class GetAzDevCenterUserSchedule_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _filter; + + /// An OData filter clause to apply to the operation. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "An OData filter clause to apply to the operation.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"An OData filter clause to apply to the operation.", + SerializedName = @"filter", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public string Filter { get => this._filter; set => this._filter = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _poolName; + + /// The name of a pool of Dev Boxes. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a pool of Dev Boxes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a pool of Dev Boxes.", + SerializedName = @"poolName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string PoolName { get => this._poolName; set => this._poolName = value; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of resources to return from the operation. Example: 'top=10'. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of resources to return from the operation. Example: 'top=10'.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of resources to return from the operation. Example: 'top=10'.", + SerializedName = @"top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DoNotExport] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDevCenterUserSchedule_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListSchedulesByPool(Endpoint, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName, PoolName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?),Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null,ProjectName=ProjectName,PoolName=PoolName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, PoolName=PoolName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), Filter=this.InvocationInformation.BoundParameters.ContainsKey("Filter") ? Filter : null, ProjectName=ProjectName, PoolName=PoolName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IScheduleListResult + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesListSchedulesByPool_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay.cs index 741d511ca952..833a40876874 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayDevBoxAction_Delay", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays the occurrence of an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -34,20 +35,6 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay : global::Syst /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private string _actionName; - - /// The name of an action that will take place on a Dev Box. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of an action that will take place on a Dev Box.", - SerializedName = @"actionName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] - public string ActionName { get => this._actionName; set => this._actionName = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] @@ -117,6 +104,21 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay : global::Syst /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on a Dev Box.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + /// /// The instance of the that the remote call will use. /// @@ -191,24 +193,24 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay : global::Syst /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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) @@ -356,12 +358,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DevBoxesDelayAction(Endpoint, ProjectName, UserId, DevBoxName, ActionName, Until, onOk, onDefault, this, Pipeline); + await this.Client.DevBoxesDelayAction(Endpoint, ProjectName, UserId, DevBoxName, Name, Until, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,ActionName=ActionName,Until=Until}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,Name=Name,Until=Until}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -384,12 +386,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -406,15 +408,15 @@ 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.DevCenterdata.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName, Until=Until }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name, Until=Until }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName, Until=Until }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name, Until=Until }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -424,12 +426,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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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 ) { @@ -441,7 +443,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay1.cs index 27a694d95fbc..515c47a103f8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay1.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_Delay1.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayDevBoxAction_Delay1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays all actions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -183,24 +184,24 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_Delay1 : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult /// 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) @@ -376,12 +377,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -398,7 +399,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Until=Until }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -416,12 +417,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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity.cs index a1607a867582..ae3fd527122c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayDevBoxAction_DelayViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays the occurrence of an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:delay", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -137,24 +138,24 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity : g /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Until=Until }) { 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.DevCenterdata.Models.Api20230401.IDevBoxAction + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction /// 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.DevCenterdata.Models.Api20230401.IDevBoxAction + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1.cs index 0c6ae6975e1a..48ed6362960d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayDevBoxAction_DelayViaIdentity1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays all actions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions:delay", ApiVersion = "2023-10-01-preview")] public partial class InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -143,24 +144,24 @@ public partial class InvokeAzDevCenterUserDelayDevBoxAction_DelayViaIdentity1 : /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult /// 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) @@ -356,12 +357,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -378,7 +379,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Until=Until }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -396,12 +397,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.DevCenterdata.Models.Api20230401.IDevBoxActionsDelayMultipleResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionsDelayMultipleResult /// 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/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_Delay.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_Delay.cs new file mode 100644 index 000000000000..1df8ed7653fc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_Delay.cs @@ -0,0 +1,451 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Delays the occurrence of an action. + /// + /// [OpenAPI] DelayAction=>POST:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:delay" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayEnvironmentAction_Delay", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays the occurrence of an action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:delay", ApiVersion = "2023-10-01-preview")] + public partial class InvokeAzDevCenterUserDelayEnvironmentAction_Delay : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on an Environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on an Environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on an Environment.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private global::System.DateTime _until; + + /// The time to delay the Environment action until. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The time to delay the Environment action until.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time to delay the Environment action until.", + SerializedName = @"until", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public global::System.DateTime Until { get => this._until; set => this._until = value; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDevCenterUserDelayEnvironmentAction_Delay() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsDelayAction' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsDelayAction(Endpoint, ProjectName, UserId, EnvironmentName, Name, Until, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName,Name=Name,Until=Until}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name, Until=Until }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name, Until=Until }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_DelayViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_DelayViaIdentity.cs new file mode 100644 index 000000000000..98248ef19d59 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/InvokeAzDevCenterUserDelayEnvironmentAction_DelayViaIdentity.cs @@ -0,0 +1,420 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Delays the occurrence of an action. + /// + /// [OpenAPI] DelayAction=>POST:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:delay" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDevCenterUserDelayEnvironmentAction_DelayViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Delays the occurrence of an action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:delay", ApiVersion = "2023-10-01-preview")] + public partial class InvokeAzDevCenterUserDelayEnvironmentAction_DelayViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private global::System.DateTime _until; + + /// The time to delay the Environment action until. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The time to delay the Environment action until.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The time to delay the Environment action until.", + SerializedName = @"until", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Query)] + public global::System.DateTime Until { get => this._until; set => this._until = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDevCenterUserDelayEnvironmentAction_DelayViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsDelayAction' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsDelayActionViaIdentity(InputObject.Id, Endpoint, Until, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ActionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ActionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsDelayAction(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, InputObject.ActionName ?? null, Until, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,Until=Until}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Until=Until }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Until=Until }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateExpanded.cs new file mode 100644 index 000000000000..ea92a04a7c5b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateExpanded.cs @@ -0,0 +1,454 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Applies customizations to the Dev Box. + /// + /// [OpenAPI] CreateCustomizationGroup=>PUT:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserDevBoxCustomizationGroup_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Applies customizations to the Dev Box.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}", ApiVersion = "2023-10-01-preview")] + public partial class NewAzDevCenterUserDevBoxCustomizationGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// Represents a list of tasks to apply to a Dev Box + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// Backing field for property. + private string _customizationGroupName; + + /// A customization group name. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "A customization group name.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"A customization group name.", + SerializedName = @"customizationGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string CustomizationGroupName { get => this._customizationGroupName; set => this._customizationGroupName = value; } + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _devBoxName; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string DevBoxName { get => this._devBoxName; set => this._devBoxName = value; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, + /// use the `include=tasks` query parameter. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => _body.Task ?? null /* arrayOf */; set => _body.Task = value; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDevCenterUserDevBoxCustomizationGroup_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DevBoxesCreateCustomizationGroup' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesCreateCustomizationGroup(Endpoint, ProjectName, UserId, DevBoxName, CustomizationGroupName, _body, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,CustomizationGroupName=CustomizationGroupName,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, CustomizationGroupName=CustomizationGroupName, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, CustomizationGroupName=CustomizationGroupName, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..620a2dacfc04 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded.cs @@ -0,0 +1,425 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Applies customizations to the Dev Box. + /// + /// [OpenAPI] CreateCustomizationGroup=>PUT:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Applies customizations to the Dev Box.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/customizationGroups/{customizationGroupName}", ApiVersion = "2023-10-01-preview")] + public partial class NewAzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// Represents a list of tasks to apply to a Dev Box + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationGroup(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, + /// use the `include=tasks` query parameter. + /// + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => _body.Task ?? null /* arrayOf */; set => _body.Task = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public NewAzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DevBoxesCreateCustomizationGroup' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DevBoxesCreateCustomizationGroupViaIdentity(InputObject.Id, Endpoint, _body, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.CustomizationGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.CustomizationGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DevBoxesCreateCustomizationGroup(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.DevBoxName ?? null, InputObject.CustomizationGroupName ?? null, _body, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateExpanded.cs index 77cdb4943c3b..f82450055dcf 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateExpanded.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserDevBox_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or replaces a Dev Box.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterUserDevBox_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterUserDevBox_CreateExpanded : global::System.Ma private string __processRecordId; /// A Dev Box - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox(); /// /// The for this operation. @@ -203,24 +204,24 @@ public partial class NewAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=_body }) { 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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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.DevCenterdata.Models.Api20230401.IDevBox + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateViaIdentityExpanded.cs index 4109cc389b33..606646a5d4c0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserDevBox_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserDevBox_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or replaces a Dev Box.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterUserDevBox_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterUserDevBox_CreateViaIdentityExpanded : global private string __processRecordId; /// A Dev Box - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.DevBox(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.DevBox(); /// /// The for this operation. @@ -162,24 +163,24 @@ public partial class NewAzDevCenterUserDevBox_CreateViaIdentityExpanded : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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) @@ -427,12 +428,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -449,7 +450,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -467,12 +468,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.DevCenterdata.Models.Api20230401.IDevBox + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox /// 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 ) { @@ -484,7 +485,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateExpanded.cs index 160efde668be..a20837996008 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateExpanded.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserEnvironment_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or updates an environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::Syst private string __processRecordId; /// Properties of an environment. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment(); /// /// The for this operation. @@ -47,13 +48,13 @@ public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } - /// Name of the catalog. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the catalog.")] + /// The name of the catalog. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the catalog. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the catalog.", + Description = @"The name of the catalog. Cannot be updated after creation.", SerializedName = @"catalogName", PossibleTypes = new [] { typeof(string) })] public string CatalogName { get => _body.CatalogName ?? null; set => _body.CatalogName = value; } @@ -85,28 +86,41 @@ public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] public string Endpoint { get => this._endpoint; set => this._endpoint = value; } - /// Name of the environment definition. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the environment definition.")] + /// The name of the environment definition. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment definition. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the environment definition.", + Description = @"The name of the environment definition. Cannot be updated after creation.", SerializedName = @"environmentDefinitionName", PossibleTypes = new [] { typeof(string) })] public string EnvironmentDefinitionName { get => _body.DefinitionName ?? null; set => _body.DefinitionName = value; } - /// Environment type. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Environment type.")] + /// The name of the environment type. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment type. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Environment type.", + Description = @"The name of the environment type. Cannot be updated after creation.", SerializedName = @"environmentType", PossibleTypes = new [] { typeof(string) })] public string EnvironmentType { get => _body.Type ?? null; set => _body.Type = value; } + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime ExpirationDate { get => _body.ExpirationDate ?? default(global::System.DateTime); set => _body.ExpirationDate = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -153,17 +167,19 @@ public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Parameters object for the environment. + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment. Can only be updated via create or replace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters object for the environment.", + Description = @"Parameters object for the environment. Can only be updated via create or replace.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } /// /// The instance of the that the remote call will use. @@ -225,24 +241,24 @@ public partial class NewAzDevCenterUserEnvironment_CreateExpanded : global::Syst /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -473,12 +489,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -495,7 +511,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +529,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -530,7 +546,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded.cs index bbfd418da8e8..8b680fe5745d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDevCenterUserEnvironment_CreateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or updates an environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : g private string __processRecordId; /// Properties of an environment. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment(); /// /// The for this operation. @@ -47,13 +48,13 @@ public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : g [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } - /// Name of the catalog. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the catalog.")] + /// The name of the catalog. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the catalog. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the catalog.", + Description = @"The name of the catalog. Cannot be updated after creation.", SerializedName = @"catalogName", PossibleTypes = new [] { typeof(string) })] public string CatalogName { get => _body.CatalogName ?? null; set => _body.CatalogName = value; } @@ -85,28 +86,41 @@ public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : g [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] public string Endpoint { get => this._endpoint; set => this._endpoint = value; } - /// Name of the environment definition. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the environment definition.")] + /// The name of the environment definition. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment definition. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the environment definition.", + Description = @"The name of the environment definition. Cannot be updated after creation.", SerializedName = @"environmentDefinitionName", PossibleTypes = new [] { typeof(string) })] public string EnvironmentDefinitionName { get => _body.DefinitionName ?? null; set => _body.DefinitionName = value; } - /// Environment type. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Environment type.")] + /// The name of the environment type. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment type. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Environment type.", + Description = @"The name of the environment type. Cannot be updated after creation.", SerializedName = @"environmentType", PossibleTypes = new [] { typeof(string) })] public string EnvironmentType { get => _body.Type ?? null; set => _body.Type = value; } + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime ExpirationDate { get => _body.ExpirationDate ?? default(global::System.DateTime); set => _body.ExpirationDate = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -146,17 +160,19 @@ public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : g [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Parameters object for the environment. + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment. Can only be updated via create or replace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters object for the environment.", + Description = @"Parameters object for the environment. Can only be updated via create or replace.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } /// /// The instance of the that the remote call will use. @@ -184,24 +200,24 @@ public partial class NewAzDevCenterUserEnvironment_CreateViaIdentityExpanded : g /// 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -449,12 +465,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -471,7 +487,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -489,12 +505,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -506,7 +522,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_Delete.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_Delete.cs index 731b563600b6..4805a6528b0e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_Delete.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_Delete.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDevCenterUserDevBox_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Deletes a Dev Box.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterUserDevBox_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -184,12 +185,12 @@ public partial class RemoveAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -206,12 +207,12 @@ public partial class RemoveAzDevCenterUserDevBox_Delete : global::System.Managem /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -441,12 +442,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -463,7 +464,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -505,12 +506,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -522,7 +523,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_DeleteViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_DeleteViaIdentity.cs index a9f35b363b36..67209105ca8b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserDevBox_DeleteViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDevCenterUserDevBox_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Deletes a Dev Box.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterUserDevBox_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -143,12 +144,12 @@ public partial class RemoveAzDevCenterUserDevBox_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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -165,12 +166,12 @@ public partial class RemoveAzDevCenterUserDevBox_DeleteViaIdentity : global::Sys /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -417,12 +418,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -439,7 +440,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -481,12 +482,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -498,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_Delete.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_Delete.cs index eee5aa706db4..12933b9d87e4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_Delete.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_Delete.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDevCenterUserEnvironment_Delete", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Deletes an environment and all its associated resources")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterUserEnvironment_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -184,12 +185,12 @@ public partial class RemoveAzDevCenterUserEnvironment_Delete : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -206,12 +207,12 @@ public partial class RemoveAzDevCenterUserEnvironment_Delete : global::System.Ma /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -441,12 +442,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -463,7 +464,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -505,12 +506,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -522,7 +523,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_DeleteViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_DeleteViaIdentity.cs index 46baa9fdf4c1..db7cced20393 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_DeleteViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RemoveAzDevCenterUserEnvironment_DeleteViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDevCenterUserEnvironment_DeleteViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Deletes an environment and all its associated resources")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class RemoveAzDevCenterUserEnvironment_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -143,12 +144,12 @@ public partial class RemoveAzDevCenterUserEnvironment_DeleteViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -165,12 +166,12 @@ public partial class RemoveAzDevCenterUserEnvironment_DeleteViaIdentity : global /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -417,12 +418,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -439,7 +440,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -481,12 +482,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -498,7 +499,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_Repair.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_Repair.cs new file mode 100644 index 000000000000..626800663d71 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_Repair.cs @@ -0,0 +1,492 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// + /// Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation. + /// + /// + /// [OpenAPI] RepairDevBox=>POST:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Repair, @"AzDevCenterUserDevBox_Repair", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair", ApiVersion = "2023-10-01-preview")] + public partial class RepairAzDevCenterUserDevBox_Repair : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of a Dev Box.", + SerializedName = @"devBoxName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DevBoxName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IOperationStatus + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RepairAzDevCenterUserDevBox_Repair + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.RepairAzDevCenterUserDevBox_Repair Clone() + { + var clone = new RepairAzDevCenterUserDevBox_Repair(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Endpoint = this.Endpoint; + clone.ProjectName = this.ProjectName; + clone.UserId = this.UserId; + clone.Name = this.Name; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DevBoxesRepairDevBox' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DevBoxesRepairDevBox(Endpoint, ProjectName, UserId, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RepairAzDevCenterUserDevBox_Repair() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IOperationStatus + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_RepairViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_RepairViaIdentity.cs new file mode 100644 index 000000000000..6800b97e62eb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RepairAzDevCenterUserDevBox_RepairViaIdentity.cs @@ -0,0 +1,468 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// + /// Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation. + /// + /// + /// [OpenAPI] RepairDevBox=>POST:"/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Repair, @"AzDevCenterUserDevBox_RepairViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Attempts automated repair steps to resolve common problems on a Dev Box. The Dev Box may restart during this operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:repair", ApiVersion = "2023-10-01-preview")] + public partial class RepairAzDevCenterUserDevBox_RepairViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IOperationStatus + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RepairAzDevCenterUserDevBox_RepairViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.RepairAzDevCenterUserDevBox_RepairViaIdentity Clone() + { + var clone = new RepairAzDevCenterUserDevBox_RepairViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Endpoint = this.Endpoint; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DevBoxesRepairDevBox' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DevBoxesRepairDevBoxViaIdentity(InputObject.Id, Endpoint, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DevBoxName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DevBoxName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DevBoxesRepairDevBox(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.DevBoxName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RepairAzDevCenterUserDevBox_RepairViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IOperationStatus + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_Restart.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_Restart.cs index bfb5add18efe..5a70e9acf1ce 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_Restart.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_Restart.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzDevCenterUserDevBox_Restart", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Restarts a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart", ApiVersion = "2023-10-01-preview")] public partial class RestartAzDevCenterUserDevBox_Restart : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -177,24 +178,24 @@ public partial class RestartAzDevCenterUserDevBox_Restart : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -424,12 +425,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -446,7 +447,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -464,12 +465,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -481,7 +482,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_RestartViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_RestartViaIdentity.cs index 6ff0de3495c8..e1210d53d7cf 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_RestartViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/RestartAzDevCenterUserDevBox_RestartViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Restart, @"AzDevCenterUserDevBox_RestartViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Restarts a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:restart", ApiVersion = "2023-10-01-preview")] public partial class RestartAzDevCenterUserDevBox_RestartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -136,24 +137,24 @@ public partial class RestartAzDevCenterUserDevBox_RestartViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -440,12 +441,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -457,7 +458,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_Replace.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_Replace.cs index e48f916a381f..1d52b98bf226 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_Replace.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_Replace.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzDevCenterUserEnvironment_Replace", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or updates an environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class SetAzDevCenterUserEnvironment_Replace : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -40,7 +41,7 @@ public partial class SetAzDevCenterUserEnvironment_Replace : global::System.Mana public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment _body; + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment _body; /// Properties of an environment. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Properties of an environment.", ValueFromPipeline = true)] @@ -49,8 +50,8 @@ public partial class SetAzDevCenterUserEnvironment_Replace : global::System.Mana ReadOnly = false, Description = @"Properties of an environment.", SerializedName = @"body", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment Body { get => this._body; set => this._body = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment Body { get => this._body; set => this._body = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -190,24 +191,24 @@ public partial class SetAzDevCenterUserEnvironment_Replace : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -438,12 +439,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -460,7 +461,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=Body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -478,12 +479,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -495,7 +496,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_ReplaceExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_ReplaceExpanded.cs index fa8ad8847c01..817bb33164ef 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_ReplaceExpanded.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SetAzDevCenterUserEnvironment_ReplaceExpanded.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"AzDevCenterUserEnvironment_ReplaceExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Creates or updates an environment.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -30,7 +31,7 @@ public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : global::Sys private string __processRecordId; /// Properties of an environment. - private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.Environment(); + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.Environment(); /// /// The for this operation. @@ -47,13 +48,13 @@ public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } - /// Name of the catalog. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the catalog.")] + /// The name of the catalog. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the catalog. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the catalog.", + Description = @"The name of the catalog. Cannot be updated after creation.", SerializedName = @"catalogName", PossibleTypes = new [] { typeof(string) })] public string CatalogName { get => _body.CatalogName ?? null; set => _body.CatalogName = value; } @@ -85,28 +86,41 @@ public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] public string Endpoint { get => this._endpoint; set => this._endpoint = value; } - /// Name of the environment definition. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the environment definition.")] + /// The name of the environment definition. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment definition. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the environment definition.", + Description = @"The name of the environment definition. Cannot be updated after creation.", SerializedName = @"environmentDefinitionName", PossibleTypes = new [] { typeof(string) })] public string EnvironmentDefinitionName { get => _body.DefinitionName ?? null; set => _body.DefinitionName = value; } - /// Environment type. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Environment type.")] + /// The name of the environment type. Cannot be updated after creation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment type. Cannot be updated after creation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Environment type.", + Description = @"The name of the environment type. Cannot be updated after creation.", SerializedName = @"environmentType", PossibleTypes = new [] { typeof(string) })] public string EnvironmentType { get => _body.Type ?? null; set => _body.Type = value; } + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime ExpirationDate { get => _body.ExpirationDate ?? default(global::System.DateTime); set => _body.ExpirationDate = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -153,17 +167,19 @@ public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : global::Sys [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Parameters object for the environment. + /// + /// Parameters object for the environment. Can only be updated via create or replace. + /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters object for the environment. Can only be updated via create or replace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters object for the environment.", + Description = @"Parameters object for the environment. Can only be updated via create or replace.", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters) })] - public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters Parameter { get => _body.Parameter ?? null /* object */; set => _body.Parameter = value; } /// /// The instance of the that the remote call will use. @@ -225,24 +241,24 @@ public partial class SetAzDevCenterUserEnvironment_ReplaceExpanded : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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) @@ -473,12 +489,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -495,7 +511,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=_body }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +529,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.DevCenterdata.Models.Api20230401.IEnvironment + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment /// 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 ) { @@ -530,7 +546,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_Skip.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_Skip.cs index e093e1a1c921..1b516c015c95 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_Skip.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_Skip.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Skips an occurrence of an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip", ApiVersion = "2023-10-01-preview")] public partial class SkipAzDevCenterUserDevBoxAction_Skip : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -34,20 +35,6 @@ public partial class SkipAzDevCenterUserDevBoxAction_Skip : global::System.Manag /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private string _actionName; - - /// The name of an action that will take place on a Dev Box. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of an action that will take place on a Dev Box.", - SerializedName = @"actionName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] - public string ActionName { get => this._actionName; set => this._actionName = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] @@ -117,6 +104,21 @@ public partial class SkipAzDevCenterUserDevBoxAction_Skip : global::System.Manag /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on a Dev Box. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on a Dev Box.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on a Dev Box.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// @@ -184,12 +186,12 @@ public partial class SkipAzDevCenterUserDevBoxAction_Skip : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -339,12 +341,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DevBoxesSkipAction(Endpoint, ProjectName, UserId, DevBoxName, ActionName, onNoContent, onDefault, this, Pipeline); + await this.Client.DevBoxesSkipAction(Endpoint, ProjectName, UserId, DevBoxName, Name, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,ActionName=ActionName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,DevBoxName=DevBoxName,Name=Name}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -375,12 +377,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -397,15 +399,15 @@ 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.DevCenterdata.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName }) + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, ActionName=ActionName }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, DevBoxName=DevBoxName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_SkipViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_SkipViaIdentity.cs index e28ba446b039..48a7bc46ba63 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_SkipViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserDevBoxAction_SkipViaIdentity.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Skips an occurrence of an action.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}/actions/{actionName}:skip", ApiVersion = "2023-10-01-preview")] public partial class SkipAzDevCenterUserDevBoxAction_SkipViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -130,12 +131,12 @@ public partial class SkipAzDevCenterUserDevBoxAction_SkipViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 @@ -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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_Skip.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_Skip.cs new file mode 100644 index 000000000000..12787a425ab6 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_Skip.cs @@ -0,0 +1,442 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Skips an occurrence of an action. + /// + /// [OpenAPI] SkipAction=>POST:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:skip" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Skip, @"AzDevCenterUserEnvironmentAction_Skip", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Skips an occurrence of an action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:skip", ApiVersion = "2023-10-01-preview")] + public partial class SkipAzDevCenterUserEnvironmentAction_Skip : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// Backing field for property. + private string _environmentName; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string EnvironmentName { get => this._environmentName; set => this._environmentName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of an action that will take place on an Environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of an action that will take place on an Environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of an action that will take place on an Environment.", + SerializedName = @"actionName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("ActionName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsSkipAction' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsSkipAction(Endpoint, ProjectName, UserId, EnvironmentName, Name, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,EnvironmentName=EnvironmentName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public SkipAzDevCenterUserEnvironmentAction_Skip() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, EnvironmentName=EnvironmentName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_SkipViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_SkipViaIdentity.cs new file mode 100644 index 000000000000..a2065d0b9412 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/SkipAzDevCenterUserEnvironmentAction_SkipViaIdentity.cs @@ -0,0 +1,411 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Skips an occurrence of an action. + /// + /// [OpenAPI] SkipAction=>POST:"/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:skip" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Skip, @"AzDevCenterUserEnvironmentAction_SkipViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Skips an occurrence of an action.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}/actions/{actionName}:skip", ApiVersion = "2023-10-01-preview")] + public partial class SkipAzDevCenterUserEnvironmentAction_SkipViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsSkipAction' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsSkipActionViaIdentity(InputObject.Id, Endpoint, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ActionName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ActionName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsSkipAction(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, InputObject.ActionName ?? null, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public SkipAzDevCenterUserEnvironmentAction_SkipViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_Start.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_Start.cs index 28a4d1800e97..d9abce1cd703 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_Start.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_Start.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDevCenterUserDevBox_Start", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Starts a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterUserDevBox_Start : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -177,24 +178,24 @@ public partial class StartAzDevCenterUserDevBox_Start : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -424,12 +425,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -446,7 +447,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -464,12 +465,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -481,7 +482,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_StartViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_StartViaIdentity.cs index 8938d4d42c3b..7f859b937272 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_StartViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StartAzDevCenterUserDevBox_StartViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzDevCenterUserDevBox_StartViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Starts a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:start", ApiVersion = "2023-10-01-preview")] public partial class StartAzDevCenterUserDevBox_StartViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -136,24 +137,24 @@ public partial class StartAzDevCenterUserDevBox_StartViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -440,12 +441,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -457,7 +458,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_Stop.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_Stop.cs index 655a5e467ba3..c5ac64ff8bb2 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_Stop.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_Stop.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzDevCenterUserDevBox_Stop", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Stops a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", ApiVersion = "2023-10-01-preview")] public partial class StopAzDevCenterUserDevBox_Stop : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -191,24 +192,24 @@ public partial class StopAzDevCenterUserDevBox_Stop : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -439,12 +440,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -461,7 +462,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, Hibernate=this.InvocationInformation.BoundParameters.ContainsKey("Hibernate") ? Hibernate : default(global::System.Management.Automation.SwitchParameter?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -479,12 +480,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -496,7 +497,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_StopViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_StopViaIdentity.cs index 6996ccd334e8..55dac83f64a0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_StopViaIdentity.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/StopAzDevCenterUserDevBox_StopViaIdentity.cs @@ -14,9 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Stop, @"AzDevCenterUserDevBox_StopViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus))] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Stops a Dev Box")] [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/devboxes/{devBoxName}:stop", ApiVersion = "2023-10-01-preview")] public partial class StopAzDevCenterUserDevBox_StopViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener { @@ -150,24 +151,24 @@ public partial class StopAzDevCenterUserDevBox_StopViaIdentity : 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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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) @@ -415,12 +416,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.DevCenterdata.Models.Api20230401.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICloudError /// 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 ) { @@ -437,7 +438,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.DevCenterdata.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, Hibernate=this.InvocationInformation.BoundParameters.ContainsKey("Hibernate") ? Hibernate : default(global::System.Management.Automation.SwitchParameter?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -455,12 +456,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.DevCenterdata.Models.Api20230401.IOperationStatus + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus /// 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 ) { @@ -472,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus WriteObject((await response)); } } diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_Validate.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_Validate.cs new file mode 100644 index 000000000000..98730f6972d3 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_Validate.cs @@ -0,0 +1,431 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Validates a list of customization tasks. + /// + /// [OpenAPI] ValidateCustomizationTasks=>POST:"/projects/{projectName}/customizationTasks:validateGroup" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDevCenterUserProjectCustomizationTask_Validate", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Validates a list of customization tasks.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/customizationTasks:validateGroup", ApiVersion = "2023-10-01-preview")] + public partial class TestAzDevCenterUserProjectCustomizationTask_Validate : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList _body; + + /// Represents a list of tasks to apply to a Dev Box + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a list of tasks to apply to a Dev Box", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a list of tasks to apply to a Dev Box", + SerializedName = @"body", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList Body { get => this._body; set => this._body = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of TestAzDevCenterUserProjectCustomizationTask_Validate + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.TestAzDevCenterUserProjectCustomizationTask_Validate Clone() + { + var clone = new TestAzDevCenterUserProjectCustomizationTask_Validate(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Endpoint = this.Endpoint; + clone.ProjectName = this.ProjectName; + clone.Body = this.Body; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ProjectsValidateCustomizationTasks' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ProjectsValidateCustomizationTasks(Endpoint, ProjectName, Body, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,body=Body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzDevCenterUserProjectCustomizationTask_Validate() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded.cs new file mode 100644 index 000000000000..ef272c06183c --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded.cs @@ -0,0 +1,435 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Validates a list of customization tasks. + /// + /// [OpenAPI] ValidateCustomizationTasks=>POST:"/projects/{projectName}/customizationTasks:validateGroup" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDevCenterUserProjectCustomizationTask_ValidateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Validates a list of customization tasks.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/customizationTasks:validateGroup", ApiVersion = "2023-10-01-preview")] + public partial class TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// Represents a list of tasks to apply to a Dev Box + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskList(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tasks to apply. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tasks to apply.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => _body.Task ?? null /* arrayOf */; set => _body.Task = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded Clone() + { + var clone = new TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._body = this._body; + clone.Endpoint = this.Endpoint; + clone.ProjectName = this.ProjectName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ProjectsValidateCustomizationTasks' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.ProjectsValidateCustomizationTasks(Endpoint, ProjectName, _body, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public TestAzDevCenterUserProjectCustomizationTask_ValidateExpanded() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity.cs new file mode 100644 index 000000000000..7644e490182a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity.cs @@ -0,0 +1,439 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Validates a list of customization tasks. + /// + /// [OpenAPI] ValidateCustomizationTasks=>POST:"/projects/{projectName}/customizationTasks:validateGroup" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDevCenterUserProjectCustomizationTask_ValidateViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Validates a list of customization tasks.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/customizationTasks:validateGroup", ApiVersion = "2023-10-01-preview")] + public partial class TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList _body; + + /// Represents a list of tasks to apply to a Dev Box + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents a list of tasks to apply to a Dev Box", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Represents a list of tasks to apply to a Dev Box", + SerializedName = @"body", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList Body { get => this._body; set => this._body = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity Clone() + { + var clone = new TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Endpoint = this.Endpoint; + clone.Body = this.Body; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ProjectsValidateCustomizationTasks' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ProjectsValidateCustomizationTasksViaIdentity(InputObject.Id, Endpoint, Body, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ProjectsValidateCustomizationTasks(Endpoint, InputObject.ProjectName ?? null, Body, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,body=Body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentity() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded.cs new file mode 100644 index 000000000000..0ff6aae6cadc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded.cs @@ -0,0 +1,441 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Validates a list of customization tasks. + /// + /// [OpenAPI] ValidateCustomizationTasks=>POST:"/projects/{projectName}/customizationTasks:validateGroup" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Validates a list of customization tasks.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/customizationTasks:validateGroup", ApiVersion = "2023-10-01-preview")] + public partial class TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// Represents a list of tasks to apply to a Dev Box + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.CustomizationTaskList(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tasks to apply. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tasks to apply.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tasks to apply.", + SerializedName = @"tasks", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[] Task { get => _body.Task ?? null /* arrayOf */; set => _body.Task = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Cmdlets.TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded Clone() + { + var clone = new TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._body = this._body; + clone.Endpoint = this.Endpoint; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'ProjectsValidateCustomizationTasks' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.ProjectsValidateCustomizationTasksViaIdentity(InputObject.Id, Endpoint, _body, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.ProjectsValidateCustomizationTasks(Endpoint, InputObject.ProjectName ?? null, _body, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the + /// cmdlet class. + /// + public TestAzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_Patch.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_Patch.cs new file mode 100644 index 000000000000..659bd172a848 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_Patch.cs @@ -0,0 +1,438 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Partially updates an environment + /// + /// [OpenAPI] PatchEnvironment=>PATCH:"/projects/{projectName}/users/{userId}/environments/{environmentName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterUserEnvironment_Patch", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Partially updates an environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] + public partial class UpdateAzDevCenterUserEnvironment_Patch : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties _body; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Properties of an environment. These properties can be updated via PATCH after the resource has been created.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Properties of an environment. These properties can be updated via PATCH after the resource has been created.", + SerializedName = @"body", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties Body { get => this._body; set => this._body = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("EnvironmentName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsPatchEnvironment' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsPatchEnvironment(Endpoint, ProjectName, UserId, Name, Body, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,Name=Name,body=Body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDevCenterUserEnvironment_Patch() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchExpanded.cs new file mode 100644 index 000000000000..5dd8f2f957b7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchExpanded.cs @@ -0,0 +1,441 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Partially updates an environment + /// + /// [OpenAPI] PatchEnvironment=>PATCH:"/projects/{projectName}/users/{userId}/environments/{environmentName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterUserEnvironment_PatchExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Partially updates an environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] + public partial class UpdateAzDevCenterUserEnvironment_PatchExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime ExpirationDate { get => _body.ExpirationDate ?? default(global::System.DateTime); set => _body.ExpirationDate = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the environment. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the environment.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the environment.", + SerializedName = @"environmentName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("EnvironmentName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _projectName; + + /// The DevCenter Project upon which to execute operations. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter Project upon which to execute operations.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter Project upon which to execute operations.", + SerializedName = @"projectName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string ProjectName { get => this._projectName; set => this._projectName = 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _userId; + + /// + /// The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.", + SerializedName = @"userId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"""me""")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public string UserId { get => this._userId; set => this._userId = 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsPatchEnvironment' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.EnvironmentsPatchEnvironment(Endpoint, ProjectName, UserId, Name, _body, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,ProjectName=ProjectName,UserId=UserId,Name=Name,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDevCenterUserEnvironment_PatchExpanded() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, ProjectName=ProjectName, UserId=UserId, Name=Name, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentity.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentity.cs new file mode 100644 index 000000000000..957a1421fd04 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentity.cs @@ -0,0 +1,417 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Partially updates an environment + /// + /// [OpenAPI] PatchEnvironment=>PATCH:"/projects/{projectName}/users/{userId}/environments/{environmentName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterUserEnvironment_PatchViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Partially updates an environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] + public partial class UpdateAzDevCenterUserEnvironment_PatchViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties _body; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Properties of an environment. These properties can be updated via PATCH after the resource has been created.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Properties of an environment. These properties can be updated via PATCH after the resource has been created.", + SerializedName = @"body", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties) })] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties Body { get => this._body; set => this._body = value; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsPatchEnvironment' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsPatchEnvironmentViaIdentity(InputObject.Id, Endpoint, Body, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsPatchEnvironment(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, Body, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,body=Body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDevCenterUserEnvironment_PatchViaIdentity() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=Body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentityExpanded.cs b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentityExpanded.cs new file mode 100644 index 000000000000..9ecdf88c6bb9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/generated/cmdlets/UpdateAzDevCenterUserEnvironment_PatchViaIdentityExpanded.cs @@ -0,0 +1,420 @@ +// 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.DevCenterdata.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Extensions; + using System; + + /// Partially updates an environment + /// + /// [OpenAPI] PatchEnvironment=>PATCH:"/projects/{projectName}/users/{userId}/environments/{environmentName}" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDevCenterUserEnvironment_PatchViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Description(@"Partially updates an environment")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.HttpPath(Path = "/projects/{projectName}/users/{userId}/environments/{environmentName}", ApiVersion = "2023-10-01-preview")] + public partial class UpdateAzDevCenterUserEnvironment_PatchViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// Properties of an environment. These properties can be updated via PATCH after the resource has been created. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties _body = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.EnvironmentPatchProperties(); + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.DevCenterdata Client => Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _endpoint; + + /// The DevCenter-specific URI to operate on. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The DevCenter-specific URI to operate on.")] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The DevCenter-specific URI to operate on.", + SerializedName = @"endpoint", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Uri)] + public string Endpoint { get => this._endpoint; set => this._endpoint = value; } + + /// + /// The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted.", + SerializedName = @"expirationDate", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + public global::System.DateTime ExpirationDate { get => _body.ExpirationDate ?? default(global::System.DateTime); set => _body.ExpirationDate = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.HttpPipeline Pipeline { get; set; } + + /// 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")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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); + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'EnvironmentsPatchEnvironment' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.EnvironmentsPatchEnvironmentViaIdentity(InputObject.Id, Endpoint, _body, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ProjectName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ProjectName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.UserId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.UserId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.EnvironmentName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.EnvironmentName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.EnvironmentsPatchEnvironment(Endpoint, InputObject.ProjectName ?? null, InputObject.UserId ?? null, InputObject.EnvironmentName ?? null, _body, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint,body=_body}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDevCenterUserEnvironment_PatchViaIdentityExpanded() + { + + } + + /// + /// 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.DevCenterdata.Models.Api20231001Preview.ICloudError + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Endpoint=Endpoint, body=_body }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// 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.DevCenterdata.Models.Api20231001Preview.IEnvironment + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index be3938de3820..015577447338 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 4872c9a5dce5..383344a4f776 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs index 52aecc559c45..1e743efb452a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 4e98960bdcf5..77d7b3a7ba48 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/DevCenter/DevCenterData.AutoRest/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.DevCenterdata.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.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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.DevCenterdata.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/PsAttributes.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/PsAttributes.cs index 1d2ee740c7b8..138e8306d16f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttribute.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttribute.cs index cc783571de2a..1be6cb20bbce 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttribute.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttribute.cs @@ -168,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; @@ -175,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) + { + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) { - psCmdlet.WriteWarning(this._message); + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttributeHelper.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttributeHelper.cs index 658681d463f1..b68c9714bfc9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/MessageAttributeHelper.cs +++ b/src/DevCenter/DevCenterData.AutoRest/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/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.Designer.cs b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.Designer.cs index dd2463b81e0c..947966c0649e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.Designer.cs @@ -3135,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 { diff --git a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.resx b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.resx index 613700a3a418..a08a2e50172b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.resx +++ b/src/DevCenter/DevCenterData.AutoRest/generated/runtime/Properties/Resources.resx @@ -1736,7 +1736,10 @@ 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}' diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Az.DevCenterdata.md b/src/DevCenter/DevCenterData.AutoRest/help/Az.DevCenterdata.md new file mode 100644 index 000000000000..8b1f148f596f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Az.DevCenterdata.md @@ -0,0 +1,101 @@ +--- +Module Name: Az.DevCenterdata +Module Guid: a5a2a512-ec9f-44e2-9943-c4cc9c42a4ad +Download Help Link: https://learn.microsoft.com/powershell/module/az.devcenterdata +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.DevCenterdata Module +## Description +Microsoft Azure PowerShell: DevCenterdata cmdlets + +## Az.DevCenterdata Cmdlets +### [Deploy-AzDevCenterUserEnvironment](Deploy-AzDevCenterUserEnvironment.md) +Creates or updates an environment. + +### [Get-AzDevCenterUserCatalog](Get-AzDevCenterUserCatalog.md) +Gets the specified catalog within the project + +### [Get-AzDevCenterUserDevBox](Get-AzDevCenterUserDevBox.md) +Gets a Dev Box + +### [Get-AzDevCenterUserDevBoxAction](Get-AzDevCenterUserDevBoxAction.md) +Gets an action. + +### [Get-AzDevCenterUserDevBoxOperation](Get-AzDevCenterUserDevBoxOperation.md) +Gets an operation on a Dev Box. + +### [Get-AzDevCenterUserDevBoxRemoteConnection](Get-AzDevCenterUserDevBoxRemoteConnection.md) +Gets RDP Connection info + +### [Get-AzDevCenterUserEnvironment](Get-AzDevCenterUserEnvironment.md) +Gets an environment + +### [Get-AzDevCenterUserEnvironmentAction](Get-AzDevCenterUserEnvironmentAction.md) +Retrieve a specific environment action. + +### [Get-AzDevCenterUserEnvironmentDefinition](Get-AzDevCenterUserEnvironmentDefinition.md) +Get an environment definition from a catalog. + +### [Get-AzDevCenterUserEnvironmentLog](Get-AzDevCenterUserEnvironmentLog.md) +Gets the logs for an operation on an environment. + +### [Get-AzDevCenterUserEnvironmentOperation](Get-AzDevCenterUserEnvironmentOperation.md) +Gets an environment action result. + +### [Get-AzDevCenterUserEnvironmentOutput](Get-AzDevCenterUserEnvironmentOutput.md) +Gets Outputs from the environment + +### [Get-AzDevCenterUserEnvironmentType](Get-AzDevCenterUserEnvironmentType.md) +Lists all environment types configured for a project. + +### [Get-AzDevCenterUserPool](Get-AzDevCenterUserPool.md) +Gets a pool + +### [Get-AzDevCenterUserProject](Get-AzDevCenterUserProject.md) +Gets a project. + +### [Get-AzDevCenterUserSchedule](Get-AzDevCenterUserSchedule.md) +Gets a schedule. + +### [Invoke-AzDevCenterUserDelayDevBoxAction](Invoke-AzDevCenterUserDelayDevBoxAction.md) +Delays the occurrence of an action. + +### [Invoke-AzDevCenterUserDelayEnvironmentAction](Invoke-AzDevCenterUserDelayEnvironmentAction.md) +Delays the occurrence of an action. + +### [New-AzDevCenterUserDevBox](New-AzDevCenterUserDevBox.md) +Creates or replaces a Dev Box. + +### [New-AzDevCenterUserEnvironment](New-AzDevCenterUserEnvironment.md) +Creates or updates an environment. + +### [Remove-AzDevCenterUserDevBox](Remove-AzDevCenterUserDevBox.md) +Deletes a Dev Box. + +### [Remove-AzDevCenterUserEnvironment](Remove-AzDevCenterUserEnvironment.md) +Deletes an environment and all its associated resources + +### [Repair-AzDevCenterUserDevBox](Repair-AzDevCenterUserDevBox.md) +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. + +### [Restart-AzDevCenterUserDevBox](Restart-AzDevCenterUserDevBox.md) +Restarts a Dev Box + +### [Skip-AzDevCenterUserDevBoxAction](Skip-AzDevCenterUserDevBoxAction.md) +Skips an occurrence of an action. + +### [Skip-AzDevCenterUserEnvironmentAction](Skip-AzDevCenterUserEnvironmentAction.md) +Skips an occurrence of an action. + +### [Start-AzDevCenterUserDevBox](Start-AzDevCenterUserDevBox.md) +Starts a Dev Box + +### [Stop-AzDevCenterUserDevBox](Stop-AzDevCenterUserDevBox.md) +Stops a Dev Box + +### [Update-AzDevCenterUserEnvironment](Update-AzDevCenterUserEnvironment.md) +Partially updates an environment + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Deploy-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/help/Deploy-AzDevCenterUserEnvironment.md similarity index 78% rename from src/DevCenter/DevCenterData.AutoRest/docs/Deploy-AzDevCenterUserEnvironment.md rename to src/DevCenter/DevCenterData.AutoRest/help/Deploy-AzDevCenterUserEnvironment.md index 25083459339d..37535ce10d38 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Deploy-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Deploy-AzDevCenterUserEnvironment.md @@ -16,30 +16,32 @@ Creates or updates an environment. ``` Deploy-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName -CatalogName -EnvironmentDefinitionName -EnvironmentType [-UserId ] - [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### CreateExpandedByDevCenter ``` -Deploy-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName +Deploy-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName -CatalogName -EnvironmentDefinitionName -EnvironmentType [-UserId ] - [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` Deploy-AzDevCenterUserEnvironment -Endpoint -InputObject - -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -CatalogName -EnvironmentDefinitionName -EnvironmentType + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpandedByDevCenter ``` -Deploy-AzDevCenterUserEnvironment -DevCenter -InputObject - -CatalogName -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Deploy-AzDevCenterUserEnvironment -DevCenterName -InputObject + -CatalogName -EnvironmentDefinitionName -EnvironmentType + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -58,7 +60,7 @@ This command deploys an environment named "envtest" to the project "DevProject". ### Example 2: Deploy an environment by dev center ```powershell -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest ``` This command deploys an environment named "envtest" to the project "DevProject". @@ -79,7 +81,7 @@ This command deploys an environment named "envtest" to the project "DevProject". $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } -Deploy-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Deploy-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters ``` This command deploys an environment named "envtest" to the project "DevProject". @@ -132,13 +134,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateExpandedByDevCenter, CreateViaIdentityExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -192,6 +194,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: System.DateTime +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. @@ -328,24 +345,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserCatalog.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserCatalog.md similarity index 76% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserCatalog.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserCatalog.md index 7939b06da9ba..d35d028616ae 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserCatalog.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserCatalog.md @@ -26,7 +26,7 @@ Get-AzDevCenterUserCatalog -Endpoint -CatalogName -ProjectName ### GetByDevCenter ``` -Get-AzDevCenterUserCatalog -DevCenter -CatalogName -ProjectName +Get-AzDevCenterUserCatalog -DevCenterName -CatalogName -ProjectName [-DefaultProfile ] [] ``` @@ -38,13 +38,13 @@ Get-AzDevCenterUserCatalog -Endpoint -InputObject -InputObject +Get-AzDevCenterUserCatalog -DevCenterName -InputObject [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserCatalog -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserCatalog -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -62,7 +62,7 @@ This command lists catalogs in the project "DevProject". ### Example 2: List catalogs by dev center ```powershell -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject ``` This command lists catalogs in the project "DevProject". @@ -76,7 +76,7 @@ This command gets a catalog named "CentralCatalog" in the project "DevProject". ### Example 4: Get a catalog by dev center ```powershell -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog ``` This command gets a catalog named "CentralCatalog" in the project "DevProject". @@ -92,7 +92,7 @@ This command gets a catalog named "CentralCatalog" in the project "DevProject". ### Example 6: Get a catalog by dev center and InputObject ```powershell $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput ``` This command gets a catalog named "CentralCatalog" in the project "DevProject". @@ -130,13 +130,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -200,30 +200,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog ### System.String ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBox.md similarity index 78% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBox.md index 4f3157be8562..c32edd59ccc4 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBox.md @@ -25,7 +25,7 @@ Get-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName -UserId +Get-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName -UserId [-DefaultProfile ] [] ``` @@ -37,7 +37,7 @@ Get-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Get-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [] ``` @@ -49,7 +49,7 @@ Get-AzDevCenterUserDevBox -Endpoint -UserId [-DefaultProfile < ### List1ByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter -UserId [-DefaultProfile ] +Get-AzDevCenterUserDevBox -DevCenterName -UserId [-DefaultProfile ] [] ``` @@ -61,13 +61,13 @@ Get-AzDevCenterUserDevBox -Endpoint -ProjectName -UserId -ProjectName -UserId +Get-AzDevCenterUserDevBox -DevCenterName -ProjectName -UserId [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserDevBox -DevCenter [-DefaultProfile ] [] +Get-AzDevCenterUserDevBox -DevCenterName [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -98,21 +98,21 @@ This command lists dev boxes under the project "DevProject" assigned to the curr ### Example 4: List dev boxes by dev center name ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso +Get-AzDevCenterUserDevBox -DevCenterName Contoso ``` This command lists dev boxes under the dev center "Contoso". ### Example 5: List dev boxes by dev center and user id ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" ``` This command lists dev boxes under the dev center "Contoso" assigned to the currently signed-in user. ### Example 6: List dev boxes by dev center, user id, and project ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 ``` This command lists dev boxes under the project "DevProject" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -126,7 +126,7 @@ This command gets the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89 ### Example 8: Get a dev box by dev center ```powershell -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command gets the dev box "myDevBox" assigned to the currently signed-in user. @@ -142,7 +142,7 @@ This command gets the dev box "myDevBox" assigned to the currently signed-in use ### Example 10: Get a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -165,13 +165,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, List1ByDevCenter, List2ByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -266,28 +266,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxAction.md new file mode 100644 index 000000000000..130bd12e0c88 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxAction.md @@ -0,0 +1,239 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxaction +schema: 2.0.0 +--- + +# Get-AzDevCenterUserDevBoxAction + +## SYNOPSIS +Gets an action. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -Name -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserDevBoxAction -DevCenterName -DevBoxName -Name + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserDevBoxAction -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserDevBoxAction -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserDevBoxAction -DevCenterName -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an action. + +## EXAMPLES + +### Example 1: List actions on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +``` + +This command lists the actions on the dev box "myDevBox". + +### Example 2: List actions on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +``` + +This command lists the actions on the dev box "myDevBox". + +### Example 3: Get an action on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" +``` + +This command gets the action "schedule-default" for the dev box "myDevBox". + +### Example 4: Get an action on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" +``` + +This command gets the action "schedule-default" for the dev box "myDevBox". + +### Example 5: Get an action on the dev box by endpoint and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +This command gets the action "schedule-default" for the dev box "myDevBox". + +### Example 6: Get an action on the dev box by dev center and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput +``` + +This command gets the action "schedule-default" for the dev box "myDevBox". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevBoxName +The name of a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxOperation.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxOperation.md new file mode 100644 index 000000000000..ef7fc4b10371 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxOperation.md @@ -0,0 +1,239 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserdevboxoperation +schema: 2.0.0 +--- + +# Get-AzDevCenterUserDevBoxOperation + +## SYNOPSIS +Gets an operation on a Dev Box. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -DevBoxName -OperationId + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -DevBoxName -OperationId + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserDevBoxOperation -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserDevBoxOperation -DevCenterName -DevBoxName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an operation on a Dev Box. + +## EXAMPLES + +### Example 1: List operations on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +``` + +This command lists the operations on the dev box "myDevBox". + +### Example 2: List operations on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +``` + +This command lists the operations on the dev box "myDevBox". + +### Example 3: Get an operation on the dev box by endpoint +```powershell +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 4: Get an operation on the dev box by dev center +```powershell +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 5: Get an operation on the dev box by endpoint and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +### Example 6: Get an operation on the dev box by dev center and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the dev box "myDevBox". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevBoxName +The name of a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxRemoteConnection.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxRemoteConnection.md similarity index 77% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxRemoteConnection.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxRemoteConnection.md index 32a31b6ed967..eb1bcd38c848 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserDevBoxRemoteConnection.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserDevBoxRemoteConnection.md @@ -20,7 +20,7 @@ Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint -DevBoxName -DevBoxName -ProjectName +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName -DevBoxName -ProjectName [-UserId ] [-DefaultProfile ] [] ``` @@ -32,7 +32,7 @@ Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint -InputObject -InputObject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName -InputObject [-DefaultProfile ] [] ``` @@ -50,7 +50,7 @@ This commands gets the remote connection for the dev box "myDevBox". ### Example 2: Get the remote connection on the dev box by dev center ```powershell -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject ``` This commands gets the remote connection for the dev box "myDevBox". @@ -66,7 +66,7 @@ This commands gets the remote connection for the dev box "myDevBox". ### Example 4: Get the remote connection on the dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput ``` This commands gets the remote connection for the dev box "myDevBox". @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -190,28 +190,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironment.md similarity index 78% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironment.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironment.md index 2f367759b97d..cbb3a0095951 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironment.md @@ -26,7 +26,7 @@ Get-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName -Name -ProjectName -UserId +Get-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName -UserId [-DefaultProfile ] [] ``` @@ -38,7 +38,7 @@ Get-AzDevCenterUserEnvironment -Endpoint -InputObject -InputObject +Get-AzDevCenterUserEnvironment -DevCenterName -InputObject [-DefaultProfile ] [] ``` @@ -50,13 +50,13 @@ Get-AzDevCenterUserEnvironment -Endpoint -ProjectName -UserId ### List1ByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -ProjectName -UserId +Get-AzDevCenterUserEnvironment -DevCenterName -ProjectName -UserId [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironment -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserEnvironment -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -77,7 +77,7 @@ This command lists environments under the project "DevProject". ### Example 2: List environments by dev center and project ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject ``` This command lists environments under the project "DevProject". @@ -91,7 +91,7 @@ This command lists environments under the project "DevProject" assigned to the c ### Example 4: List environments by dev center, user id, and project ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" ``` This command lists environments under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -105,7 +105,7 @@ This command gets the environment "myEnv" under the project "DevProject" assigne ### Example 6: Get an environment by dev center ```powershell -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv ``` This command gets the environment "myEnv" under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -121,7 +121,7 @@ This command gets the environment "myEnv" under the project "DevProject" assigne ### Example 8: Get an environment by dev center and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput ``` This command gets the environment "myEnv" under the project "DevProject" assigned to the currently signed-in user. @@ -144,13 +144,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -245,28 +245,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..6dfa45ac5767 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,239 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentaction +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentAction + +## SYNOPSIS +Retrieve a specific environment action. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -EnvironmentName -Name + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -EnvironmentName -Name + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentAction -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserEnvironmentAction -DevCenterName -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Retrieve a specific environment action. + +## EXAMPLES + +### Example 1: List actions on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command lists the actions on the environment "myEnvironment". + +### Example 2: List actions on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command lists the actions on the environment "myEnvironment". + +### Example 3: Get an action on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 4: Get an action on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 5: Get an action on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 6: Get an action on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` + +This command gets the action "myEnvironment-Delete" for the environment "myEnvironment". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on an Environment. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentDefinition.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentDefinition.md similarity index 77% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentDefinition.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentDefinition.md index ba283989c0c2..7119fed80b19 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentDefinition.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentDefinition.md @@ -26,8 +26,8 @@ Get-AzDevCenterUserEnvironmentDefinition -Endpoint -CatalogName -CatalogName -DefinitionName - -ProjectName [-DefaultProfile ] [] +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -CatalogName + -DefinitionName -ProjectName [-DefaultProfile ] [] ``` ### GetViaIdentity @@ -38,7 +38,7 @@ Get-AzDevCenterUserEnvironmentDefinition -Endpoint -InputObject -InputObject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -InputObject [-DefaultProfile ] [] ``` @@ -50,13 +50,13 @@ Get-AzDevCenterUserEnvironmentDefinition -Endpoint -CatalogName -CatalogName -ProjectName +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -CatalogName -ProjectName [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironmentDefinition -DevCenter -ProjectName +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -77,7 +77,7 @@ This command lists environment definitions under the project "DevProject". ### Example 2: List environment definitions by dev center and project ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject ``` This command lists environment definitions under the project "DevProject". @@ -91,7 +91,7 @@ This command lists environment definitions under the project "DevProject" and th ### Example 4: List environment definitions by dev center, catalog, and project ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog ``` This command lists environment definitions under the project "DevProject" and the catalog "CentralCatalog". @@ -105,7 +105,7 @@ This command gets the environment definition "Sandbox" under the project "DevPro ### Example 6: Get an environment definition by dev center ```powershell -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox ``` This command gets the environment definition "Sandbox" under the project "DevProject" and the catalog "CentralCatalog". @@ -121,7 +121,7 @@ This command gets the environment definition "Sandbox" under the project "DevPro ### Example 8: Get an environment definition by dev center and InputObject ```powershell $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput ``` This command gets the environment definition "Sandbox" under the project "DevProject" and the catalog "CentralCatalog". @@ -174,13 +174,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -244,28 +244,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentLog.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentLog.md new file mode 100644 index 000000000000..fb17e7b442b9 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentLog.md @@ -0,0 +1,201 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentlog +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentLog + +## SYNOPSIS +Gets the logs for an operation on an environment. + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterUserEnvironmentLog -Endpoint -EnvironmentName -OperationId + -ProjectName -OutFile [-UserId ] [-DefaultProfile ] [-PassThru] + [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentLog -DevCenterName -EnvironmentName -OperationId + -ProjectName -OutFile [-UserId ] [-DefaultProfile ] [-PassThru] + [] +``` + +## DESCRIPTION +Gets the logs for an operation on an environment. + +## EXAMPLES + +### Example 1: Get environment logs by endpoint +```powershell +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` + +This command gets the logs on the environment "myEnvironment" for the operation id "d0954a94-3550-4919-bcbe-1c94ed79e0cd" and outputs the logs to the file "output_logs.txt". + +### Example 2: Get environment logs by dev center +```powershell +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +``` + +This command gets the logs on the environment "myEnvironment" for the operation id "d0954a94-3550-4919-bcbe-1c94ed79e0cd" and outputs the logs to the file "output_logs.txt". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on an environment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OutFile +Path to write output file to + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOperation.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOperation.md new file mode 100644 index 000000000000..0c3cd5e8e95d --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOperation.md @@ -0,0 +1,240 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoperation +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentOperation + +## SYNOPSIS +Gets an environment action result. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -EnvironmentName -OperationId + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -EnvironmentName + -OperationId -ProjectName [-UserId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentOperation -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserEnvironmentOperation -DevCenterName -EnvironmentName + -ProjectName [-UserId ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an environment action result. + +## EXAMPLES + +### Example 1: List operations on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command lists the operations on the environment "myEnvironment". + +### Example 2: List operations on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command lists the operations on the environment "myEnvironment". + +### Example 3: Get an operation on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 4: Get an operation on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 5: Get an operation on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +### Example 6: Get an operation on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput +``` + +This command gets the operation "d0954a94-3550-4919-bcbe-1c94ed79e0cd" for the environment "myEnvironment". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OperationId +The id of the operation on an environment. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, ListByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOutput.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOutput.md new file mode 100644 index 000000000000..17002f898b6b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentOutput.md @@ -0,0 +1,198 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserenvironmentoutput +schema: 2.0.0 +--- + +# Get-AzDevCenterUserEnvironmentOutput + +## SYNOPSIS +Gets Outputs from the environment + +## SYNTAX + +### Get (Default) +``` +Get-AzDevCenterUserEnvironmentOutput -Endpoint -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserEnvironmentOutput -DevCenterName -EnvironmentName -ProjectName + [-UserId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserEnvironmentOutput -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserEnvironmentOutput -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets Outputs from the environment + +## EXAMPLES + +### Example 1: Get the outputs on the environment by endpoint +```powershell +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command gets the outputs for the environment "myEnvironment". + +### Example 2: Get the outputs on the environment by dev center +```powershell +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +``` + +This command gets the outputs for the environment "myEnvironment". + +### Example 3: Get the outputs on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +This command gets the outputs for the environment "myEnvironment". + +### Example 4: Get the outputs on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput +``` + +This command gets the outputs for the environment "myEnvironment". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentType.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentType.md similarity index 91% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentType.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentType.md index aa6e44d30957..7303a81f1e11 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserEnvironmentType.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserEnvironmentType.md @@ -20,7 +20,7 @@ Get-AzDevCenterUserEnvironmentType -Endpoint -ProjectName [-De ### ListByDevCenter ``` -Get-AzDevCenterUserEnvironmentType -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserEnvironmentType -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -38,7 +38,7 @@ This command lists environment types under the project "DevProject". ### Example 2: List environment types by dev center and project ```powershell -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject ``` This command lists environment types under the project "DevProject". @@ -61,13 +61,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -113,11 +113,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserPool.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserPool.md similarity index 75% rename from src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserPool.md rename to src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserPool.md index e545cd797fa4..c4762d1da534 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Get-AzDevCenterUserPool.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserPool.md @@ -26,7 +26,7 @@ Get-AzDevCenterUserPool -Endpoint -PoolName -ProjectName -PoolName -ProjectName +Get-AzDevCenterUserPool -DevCenterName -PoolName -ProjectName [-DefaultProfile ] [] ``` @@ -38,13 +38,13 @@ Get-AzDevCenterUserPool -Endpoint -InputObject ### GetViaIdentityByDevCenter ``` -Get-AzDevCenterUserPool -DevCenter -InputObject [-DefaultProfile ] - [] +Get-AzDevCenterUserPool -DevCenterName -InputObject + [-DefaultProfile ] [] ``` ### ListByDevCenter ``` -Get-AzDevCenterUserPool -DevCenter -ProjectName [-DefaultProfile ] +Get-AzDevCenterUserPool -DevCenterName -ProjectName [-DefaultProfile ] [] ``` @@ -62,7 +62,7 @@ This command lists the pools in the project "DevProject". ### Example 2: List pools by dev center ```powershell -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject ``` This command lists the pools in the project "DevProject". @@ -76,7 +76,7 @@ This command gets the pool "DevPool" in the project "DevProject". ### Example 4: Get pool by dev center ```powershell -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool ``` This command gets the pool "DevPool" in the project "DevProject". @@ -92,7 +92,7 @@ This command gets the pool "DevPool" in the project "DevProject". ### Example 6: Get pool by dev center and InputObject ```powershell $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput ``` This command gets the pool "DevPool" in the project "DevProject". @@ -115,13 +115,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -200,28 +200,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserProject.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserProject.md new file mode 100644 index 000000000000..3dd2b2d12679 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserProject.md @@ -0,0 +1,191 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserproject +schema: 2.0.0 +--- + +# Get-AzDevCenterUserProject + +## SYNOPSIS +Gets a project. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserProject -Endpoint [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDevCenterUserProject -Endpoint -ProjectName [-DefaultProfile ] + [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserProject -DevCenterName -ProjectName [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserProject -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserProject -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserProject -DevCenterName [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets a project. + +## EXAMPLES + +### Example 1: List projects by endpoint +```powershell +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +``` + +This command lists the projects under the endpoint. + +### Example 2: List projects by dev center +```powershell +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +``` + +This command lists the projects under the dev center. + +### Example 3: Get project by endpoint +```powershell +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +``` + +This command gets the project "DevProject". + +### Example 4: Get project by dev center +```powershell +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +``` + +This command gets the project "DevProject". + +### Example 5: Get project by endpoint and InputObject +```powershell +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +This command gets the project "DevProject". + +### Example 6: Get project by dev center and InputObject +```powershell +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput +``` + +This command gets the project "DevProject". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, ListByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserSchedule.md b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserSchedule.md new file mode 100644 index 000000000000..83fb37bcee45 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Get-AzDevCenterUserSchedule.md @@ -0,0 +1,249 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/get-azdevcenteruserschedule +schema: 2.0.0 +--- + +# Get-AzDevCenterUserSchedule + +## SYNOPSIS +Gets a schedule. + +## SYNTAX + +### List (Default) +``` +Get-AzDevCenterUserSchedule -Endpoint -ProjectName [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName -ScheduleName + [-DefaultProfile ] [] +``` + +### GetByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -PoolName -ProjectName + -ScheduleName [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDevCenterUserSchedule -Endpoint -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -InputObject + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzDevCenterUserSchedule -Endpoint -PoolName -ProjectName + [-DefaultProfile ] [] +``` + +### List1ByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -PoolName -ProjectName + [-DefaultProfile ] [] +``` + +### ListByDevCenter +``` +Get-AzDevCenterUserSchedule -DevCenterName -ProjectName [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets a schedule. + +## EXAMPLES + +### Example 1: Get schedule by endpoint +```powershell +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default +``` + +This command gets the schedule in the pool "DevPool". + +### Example 2: Get schedule by dev center +```powershell +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default +``` + +This command gets the schedule in the pool "DevPool". + +### Example 3: Get schedule by endpoint and InputObject +```powershell +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +This command gets the schedule in the pool "DevPool". + +### Example 4: Get schedule by dev center and InputObject +```powershell +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput +``` + +This command gets the schedule in the pool "DevPool". + +### Example 5: List schedule by project and endpoint +```powershell +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +``` + +This command lists the schedules in the project "DevProject". + +### Example 6: List schedule by project and dev center +```powershell +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +``` + +This command lists the schedules in the project "DevProject". + +### Example 7: List schedule by pool and endpoint +```powershell +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +``` + +This command lists the schedules in the pool "DevPool". + +### Example 8: List schedule by pool and dev center +```powershell +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool +``` + +This command lists the schedules in the pool "DevPool". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: GetByDevCenter, GetViaIdentityByDevCenter, List1ByDevCenter, ListByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentity, List, List1 +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: GetViaIdentity, GetViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PoolName +The name of a pool of Dev Boxes. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List1, List1ByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter, List, List1, List1ByDevCenter, ListByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ScheduleName +The name of a schedule. + +```yaml +Type: System.String +Parameter Sets: Get, GetByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Invoke-AzDevCenterUserDelayDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayDevBoxAction.md similarity index 86% rename from src/DevCenter/DevCenterData.AutoRest/docs/Invoke-AzDevCenterUserDelayDevBoxAction.md rename to src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayDevBoxAction.md index eb85c4cfbf40..69677085cbb8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Invoke-AzDevCenterUserDelayDevBoxAction.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayDevBoxAction.md @@ -21,21 +21,21 @@ Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint -DevBoxName ### Delay ``` -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint -ActionName -DevBoxName +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint -DevBoxName -Name -ProjectName -DelayTime [-UserId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### Delay1ByDevCenter ``` -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter -DevBoxName -ProjectName +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName -DevBoxName -ProjectName -DelayTime [-UserId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ### DelayByDevCenter ``` -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter -ActionName -DevBoxName +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName -DevBoxName -Name -ProjectName -DelayTime [-UserId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` @@ -54,42 +54,27 @@ This command delays all actions on the dev box "myDevBox" to the time 1 hour and ### Example 2: Delay all actions on the dev box by dev center ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" ``` This command delays all actions on the dev box "myDevBox" to the time 2 hours from the earliest scheduled action. ### Example 3: Delay an action on the dev box by endpoint ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" ``` This command delays the action "schedule-default" for the dev box "myDevBox" for 30 minutes. ### Example 4: Delay an action on the dev box by dev center ```powershell -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" ``` This command delays the action "schedule-default" for the dev box "myDevBox" for 5 hours and 15 minutes. ## PARAMETERS -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Delay, DelayByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -137,13 +122,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: Delay1ByDevCenter, DelayByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -167,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Delay, DelayByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The DevCenter Project upon which to execute operations. @@ -238,13 +238,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult ## NOTES -ALIASES - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md new file mode 100644 index 000000000000..527ccbc906a7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Invoke-AzDevCenterUserDelayEnvironmentAction.md @@ -0,0 +1,218 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/invoke-azdevcenteruserdelayenvironmentaction +schema: 2.0.0 +--- + +# Invoke-AzDevCenterUserDelayEnvironmentAction + +## SYNOPSIS +Delays the occurrence of an action. + +## SYNTAX + +### Delay (Default) +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint -EnvironmentName -Name + -ProjectName -DelayTime [-UserId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### DelayByDevCenter +``` +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName -EnvironmentName -Name + -ProjectName -DelayTime [-UserId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Delays the occurrence of an action. + +## EXAMPLES + +### Example 1: Delay an action on the environment by endpoint +```powershell +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +``` + +This command delays the action "schedule-default" for the environment "myEnvironment" for 30 minutes. + +### Example 2: Delay an action on the environment by dev center +```powershell +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" +``` + +This command delays the action "myEnvironment-Delete" for the environment "myEnvironment" for 5 hours and 15 minutes. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DelayTime +The delayed timespan from the scheduled action time. +Format HH:MM. + +```yaml +Type: System.TimeSpan +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: DelayByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Delay +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```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 an action that will take place on an Environment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserDevBox.md similarity index 83% rename from src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserDevBox.md index 1fecec968aad..77a2d4aac8fc 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserDevBox.md @@ -21,7 +21,7 @@ New-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName -PoolName +New-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName -PoolName [-UserId ] [-LocalAdministrator ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -35,7 +35,7 @@ New-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject -PoolName +New-AzDevCenterUserDevBox -DevCenterName -InputObject -PoolName [-LocalAdministrator ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -54,7 +54,7 @@ This command creates the dev box "myDevBox" for the user "786a823c-8037-48ab-89b ### Example 2: Create a dev box by dev center ```powershell -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool ``` This command creates the dev box "myDevBox" for the currently signed-in user. @@ -70,7 +70,7 @@ This command creates the dev box "myDevBox" for the currently signed-in user. ### Example 4: Create a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool ``` This command creates the dev box "myDevBox" for the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -108,13 +108,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateExpandedByDevCenter, CreateViaIdentityExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -285,28 +285,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox ## 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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserEnvironment.md similarity index 75% rename from src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserEnvironment.md rename to src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserEnvironment.md index 3f0f46d78345..b2abc0f14114 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/New-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/New-AzDevCenterUserEnvironment.md @@ -15,29 +15,33 @@ Creates or updates an environment. ### CreateExpanded (Default) ``` New-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName -CatalogName - -EnvironmentDefinitionName -EnvironmentType [-UserId ] [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -EnvironmentDefinitionName -EnvironmentType [-UserId ] [-ExpirationDate ] + [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### CreateExpandedByDevCenter ``` -New-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName -CatalogName - -EnvironmentDefinitionName -EnvironmentType [-UserId ] [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + -CatalogName -EnvironmentDefinitionName -EnvironmentType [-UserId ] + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` New-AzDevCenterUserEnvironment -Endpoint -InputObject -CatalogName - -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -EnvironmentDefinitionName -EnvironmentType [-ExpirationDate ] + [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### CreateViaIdentityExpandedByDevCenter ``` -New-AzDevCenterUserEnvironment -DevCenter -InputObject -CatalogName - -EnvironmentDefinitionName -EnvironmentType [-Parameter ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzDevCenterUserEnvironment -DevCenterName -InputObject + -CatalogName -EnvironmentDefinitionName -EnvironmentType + [-ExpirationDate ] [-Parameter ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -48,15 +52,20 @@ Creates or updates an environment. ### Example 1: Create an environment by endpoint ```powershell $functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". ### Example 2: Create an environment by dev center ```powershell -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". @@ -64,10 +73,10 @@ This command creates an environment named envtest" to the project "DevProject". ### Example 3: Create an environment by endpoint and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". @@ -76,8 +85,10 @@ This command creates an environment named envtest" to the project "DevProject". ```powershell $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months ``` This command creates an environment named envtest" to the project "DevProject". @@ -130,13 +141,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: CreateExpandedByDevCenter, CreateViaIdentityExpandedByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -190,6 +201,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: System.DateTime +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. @@ -326,24 +352,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/README.md b/src/DevCenter/DevCenterData.AutoRest/help/README.md similarity index 100% rename from src/DevCenter/DevCenterData.AutoRest/docs/README.md rename to src/DevCenter/DevCenterData.AutoRest/help/README.md diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserDevBox.md similarity index 82% rename from src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserDevBox.md index ae7e24195805..74e3e1241c90 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserDevBox.md @@ -20,7 +20,7 @@ Remove-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName [-UserId ] +Remove-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -32,7 +32,7 @@ Remove-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Remove-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -50,7 +50,7 @@ This command deletes the dev box "myDevBox" assigned to user "786a823c-8037-48ab ### Example 2: Delete a dev box by dev center ```powershell -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command deletes the dev box "myDevBox" assigned to the currently signed-in user. @@ -66,7 +66,7 @@ This command deletes the dev box "myDevBox" assigned to the currently signed-in ### Example 4: Delete a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command deletes the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: DeleteByDevCenter, DeleteViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -270,24 +270,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserEnvironment.md similarity index 81% rename from src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserEnvironment.md rename to src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserEnvironment.md index 0bd70a65e76f..3b02fa564c9a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Remove-AzDevCenterUserEnvironment.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Remove-AzDevCenterUserEnvironment.md @@ -20,8 +20,9 @@ Remove-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName ### DeleteByDevCenter ``` -Remove-AzDevCenterUserEnvironment -DevCenter -Name -ProjectName [-UserId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] ``` ### DeleteViaIdentity @@ -32,7 +33,7 @@ Remove-AzDevCenterUserEnvironment -Endpoint -InputObject -InputObject +Remove-AzDevCenterUserEnvironment -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -50,7 +51,7 @@ This command deletes the environment "myEnv" under the project "DevProject" assi ### Example 2: Delete an environment by dev center ```powershell -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv ``` This command deletes the environment "myEnv" under the project "DevProject" assigned to the user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -66,7 +67,7 @@ This command deletes the environment "myEnv" under the project "DevProject" assi ### Example 4: Delete an environment by dev center and InputObject ```powershell $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput ``` This command deletes the environment "myEnv" under the project "DevProject" assigned to the currently signed-in user. @@ -104,13 +105,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: DeleteByDevCenter, DeleteViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -270,24 +271,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Repair-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Repair-AzDevCenterUserDevBox.md new file mode 100644 index 000000000000..c626908e83cc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Repair-AzDevCenterUserDevBox.md @@ -0,0 +1,261 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/repair-azdevcenteruserdevbox +schema: 2.0.0 +--- + +# Repair-AzDevCenterUserDevBox + +## SYNOPSIS +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. + +## SYNTAX + +### Repair (Default) +``` +Repair-AzDevCenterUserDevBox -Endpoint -Name -ProjectName [-UserId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### RepairByDevCenter +``` +Repair-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### RepairViaIdentity +``` +Repair-AzDevCenterUserDevBox -Endpoint -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### RepairViaIdentityByDevCenter +``` +Repair-AzDevCenterUserDevBox -DevCenterName -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. + +## EXAMPLES + +### Example 1: Reapir dev box by endpoint +```powershell +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +``` + +This command repairs the dev box "myDevBox". + +### Example 2: Repair dev box by dev center +```powershell +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +``` + +This command repairs the dev box "myDevBox". + +### Example 3: Repair dev box by endpoint and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +``` + +This command repairs the dev box "myDevBox". + +### Example 4: Reapir dev box by dev center and InputObject +```powershell +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput +``` + +This command repairs the dev box "myDevBox". + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: RepairByDevCenter, RepairViaIdentityByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Repair, RepairViaIdentity +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: RepairViaIdentity, RepairViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Repair, RepairByDevCenter +Aliases: DevBoxName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Repair, RepairByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Repair, RepairByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Restart-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Restart-AzDevCenterUserDevBox.md similarity index 81% rename from src/DevCenter/DevCenterData.AutoRest/docs/Restart-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/Restart-AzDevCenterUserDevBox.md index 7ef91aab3864..68deac8af40d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Restart-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Restart-AzDevCenterUserDevBox.md @@ -20,7 +20,7 @@ Restart-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName [-UserId ] +Restart-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -32,7 +32,7 @@ Restart-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Restart-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -50,7 +50,7 @@ This command restarts the dev box "myDevBox" assigned to user "786a823c-8037-48a ### Example 2: Restart a dev box by dev center ```powershell -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command restarts the dev box "myDevBox" assigned to the currently signed-in user. @@ -66,7 +66,7 @@ This command restarts the dev box "myDevBox" assigned to the currently signed-in ### Example 4: Restart a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command restarts the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: RestartByDevCenter, RestartViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -255,24 +255,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Skip-AzDevCenterUserDevBoxAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserDevBoxAction.md similarity index 77% rename from src/DevCenter/DevCenterData.AutoRest/docs/Skip-AzDevCenterUserDevBoxAction.md rename to src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserDevBoxAction.md index 1572d9fe5da3..b85f2c1d7fe5 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Skip-AzDevCenterUserDevBoxAction.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserDevBoxAction.md @@ -14,14 +14,13 @@ Skips an occurrence of an action. ### Skip (Default) ``` -Skip-AzDevCenterUserDevBoxAction -Endpoint -ActionName -DevBoxName - -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] - [] +Skip-AzDevCenterUserDevBoxAction -Endpoint -DevBoxName -Name -ProjectName + [-UserId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` ### SkipByDevCenter ``` -Skip-AzDevCenterUserDevBoxAction -DevCenter -ActionName -DevBoxName +Skip-AzDevCenterUserDevBoxAction -DevCenterName -DevBoxName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -34,7 +33,7 @@ Skip-AzDevCenterUserDevBoxAction -Endpoint -InputObject -InputObject +Skip-AzDevCenterUserDevBoxAction -DevCenterName -InputObject [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] ``` @@ -45,14 +44,14 @@ Skips an occurrence of an action. ### Example 1: Skip an action on the dev box by endpoint ```powershell -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command skips the action "schedule-default" for the dev box "myDevBox". ### Example 2: Skip an action on the dev box by dev center ```powershell -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" ``` This command skips the action "schedule-default" for the dev box "myDevBox". @@ -68,28 +67,13 @@ This command skips the action "schedule-default" for the dev box "myDevBox". ### Example 4: Skip an action on the dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput ``` This command skips the action "schedule-default" for the dev box "myDevBox". ## PARAMETERS -### -ActionName -The name of an action that will take place on a Dev Box. - -```yaml -Type: System.String -Parameter Sets: Skip, SkipByDevCenter -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -121,13 +105,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: SkipByDevCenter, SkipViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -167,6 +151,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -Name +The name of an action that will take place on a Dev Box. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds @@ -257,24 +256,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserEnvironmentAction.md b/src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserEnvironmentAction.md new file mode 100644 index 000000000000..39ac7c290ffb --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Skip-AzDevCenterUserEnvironmentAction.md @@ -0,0 +1,261 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/skip-azdevcenteruserenvironmentaction +schema: 2.0.0 +--- + +# Skip-AzDevCenterUserEnvironmentAction + +## SYNOPSIS +Skips an occurrence of an action. + +## SYNTAX + +### Skip (Default) +``` +Skip-AzDevCenterUserEnvironmentAction -Endpoint -EnvironmentName -Name + -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### SkipByDevCenter +``` +Skip-AzDevCenterUserEnvironmentAction -DevCenterName -EnvironmentName -Name + -ProjectName [-UserId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### SkipViaIdentity +``` +Skip-AzDevCenterUserEnvironmentAction -Endpoint -InputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### SkipViaIdentityByDevCenter +``` +Skip-AzDevCenterUserEnvironmentAction -DevCenterName -InputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Skips an occurrence of an action. + +## EXAMPLES + +### Example 1: Skip an action on the environment by endpoint +```powershell +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 2: Skip an action on the environment by dev center +```powershell +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +``` + +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 3: Skip an action on the environment by endpoint and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +``` + +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +### Example 4: Skip an action on the environment by dev center and InputObject +```powershell +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput +``` + +This command skips the action "myEnvironment-Delete" for the environment "myEnvironment". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: SkipByDevCenter, SkipViaIdentityByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnvironmentName +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: True +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: SkipViaIdentity, SkipViaIdentityByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of an action that will take place on an Environment. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: ActionName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: Skip, SkipByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Start-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Start-AzDevCenterUserDevBox.md similarity index 81% rename from src/DevCenter/DevCenterData.AutoRest/docs/Start-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/Start-AzDevCenterUserDevBox.md index 4632d9b136df..3881dac07e7f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Start-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Start-AzDevCenterUserDevBox.md @@ -20,7 +20,7 @@ Start-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName [-UserId ] +Start-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -32,7 +32,7 @@ Start-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject +Start-AzDevCenterUserDevBox -DevCenterName -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -50,7 +50,7 @@ This command starts the dev box "myDevBox" assigned to user "786a823c-8037-48ab- ### Example 2: Start a dev box by dev center ```powershell -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command starts the dev box "myDevBox" assigned to the currently signed-in user. @@ -66,7 +66,7 @@ This command starts the dev box "myDevBox" assigned to the currently signed-in u ### Example 4: Start a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command starts the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: StartByDevCenter, StartViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -255,24 +255,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/docs/Stop-AzDevCenterUserDevBox.md b/src/DevCenter/DevCenterData.AutoRest/help/Stop-AzDevCenterUserDevBox.md similarity index 82% rename from src/DevCenter/DevCenterData.AutoRest/docs/Stop-AzDevCenterUserDevBox.md rename to src/DevCenter/DevCenterData.AutoRest/help/Stop-AzDevCenterUserDevBox.md index c5f51d0e6bcf..0d39e5fb1c96 100644 --- a/src/DevCenter/DevCenterData.AutoRest/docs/Stop-AzDevCenterUserDevBox.md +++ b/src/DevCenter/DevCenterData.AutoRest/help/Stop-AzDevCenterUserDevBox.md @@ -20,7 +20,7 @@ Stop-AzDevCenterUserDevBox -Endpoint -Name -ProjectName -Name -ProjectName [-UserId ] +Stop-AzDevCenterUserDevBox -DevCenterName -Name -ProjectName [-UserId ] [-Hibernate] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -32,7 +32,7 @@ Stop-AzDevCenterUserDevBox -Endpoint -InputObject -InputObject [-Hibernate] +Stop-AzDevCenterUserDevBox -DevCenterName -InputObject [-Hibernate] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -50,7 +50,7 @@ This command stops the dev box "myDevBox" assigned to user "786a823c-8037-48ab-8 ### Example 2: Stop a dev box by dev center ```powershell -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox ``` This command stops the dev box "myDevBox" assigned to the currently signed-in user. @@ -66,7 +66,7 @@ This command stops the dev box "myDevBox" assigned to the currently signed-in us ### Example 4: Stop a dev box by dev center and InputObject ```powershell $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput ``` This command stops the dev box "myDevBox" assigned to user "786a823c-8037-48ab-89b8-8599901e67d0". @@ -104,13 +104,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DevCenter +### -DevCenterName The DevCenter upon which to execute operations. ```yaml Type: System.String Parameter Sets: StopByDevCenter, StopViaIdentityByDevCenter -Aliases: +Aliases: DevCenter Required: True Position: Named @@ -270,24 +270,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 - - `[ActionName ]`: The name of an action that will take place on a Dev Box. - - `[CatalogName ]`: The name of the catalog - - `[DefinitionName ]`: The name of the environment definition - - `[DevBoxName ]`: The name of a Dev Box. - - `[EnvironmentName ]`: The name of the environment. - - `[Id ]`: Resource identity path - - `[PoolName ]`: The name of a pool of Dev Boxes. - - `[ProjectName ]`: The DevCenter Project upon which to execute operations. - - `[ScheduleName ]`: The name of a schedule. - - `[UserId ]`: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. - ## RELATED LINKS diff --git a/src/DevCenter/DevCenterData.AutoRest/help/Update-AzDevCenterUserEnvironment.md b/src/DevCenter/DevCenterData.AutoRest/help/Update-AzDevCenterUserEnvironment.md new file mode 100644 index 000000000000..813d927c48cf --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/help/Update-AzDevCenterUserEnvironment.md @@ -0,0 +1,259 @@ +--- +external help file: +Module Name: Az.DevCenterdata +online version: https://learn.microsoft.com/powershell/module/az.devcenter/update-azdevcenteruserenvironment +schema: 2.0.0 +--- + +# Update-AzDevCenterUserEnvironment + +## SYNOPSIS +Partially updates an environment + +## SYNTAX + +### PatchExpanded (Default) +``` +Update-AzDevCenterUserEnvironment -Endpoint -Name -ProjectName [-UserId ] + [-ExpirationDate ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchExpandedByDevCenter +``` +Update-AzDevCenterUserEnvironment -DevCenterName -Name -ProjectName + [-UserId ] [-ExpirationDate ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### PatchViaIdentityExpanded +``` +Update-AzDevCenterUserEnvironment -Endpoint -InputObject + [-ExpirationDate ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchViaIdentityExpandedByDevCenter +``` +Update-AzDevCenterUserEnvironment -DevCenterName -InputObject + [-ExpirationDate ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Partially updates an environment + +## EXAMPLES + +### Example 1: Update an environment by endpoint +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +``` + +This command updates an environment named "envtest" to the project "DevProject". + +### Example 2: Update an environment by dev center +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +``` + +This command updates an environment named "envtest" to the project "DevProject". + +### Example 3: Update an environment by endpoint and InputObject +```powershell +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + +``` + +This command updates an environment named "envtest" to the project "DevProject". + +### Example 4: Update an environment by dev center and InputObject +```powershell +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months +``` + +This command updates an environment named "envtest" to the project "DevProject". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```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 +``` + +### -DevCenterName +The DevCenter upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: PatchExpandedByDevCenter, PatchViaIdentityExpandedByDevCenter +Aliases: DevCenter + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Endpoint +The DevCenter-specific URI to operate on. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, PatchViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpirationDate +The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +```yaml +Type: System.DateTime +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.DevCenterdata.Models.IDevCenterdataIdentity +Parameter Sets: PatchViaIdentityExpanded, PatchViaIdentityExpandedByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the environment. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: EnvironmentName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +The DevCenter Project upon which to execute operations. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserId +The AAD object id of the user. +If value is 'me', the identity is taken from the authentication context. + +```yaml +Type: System.String +Parameter Sets: PatchExpanded, PatchExpandedByDevCenter +Aliases: + +Required: False +Position: Named +Default value: "me" +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.DevCenterdata.Models.IDevCenterdataIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment + +## NOTES + +## RELATED LINKS + diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserCatalog.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserCatalog.ps1 index b313e1adc839..a390ca338eb7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserCatalog.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserCatalog.ps1 @@ -22,24 +22,22 @@ Gets the specified catalog within the project .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" =" DevProject" } Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $catalogInput .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog -.Outputs -System.String +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -48,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenterusercatalog #> function Get-AzDevCenterUserCatalog { -[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBox.ps1 index a03fc02f2ecb..456e8d469fec 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBox.ps1 @@ -26,26 +26,26 @@ Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870e .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso +Get-AzDevCenterUserDevBox -DevCenterName Contoso .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 .Example Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -54,19 +54,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevbox #> function Get-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxAction.ps1 index bc2664319b6a..eb8e3f80d2cd 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxAction.ps1 @@ -22,22 +22,22 @@ Gets an action. .Example Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxaction #> function Get-AzDevCenterUserDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -68,17 +72,18 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + # The name of a Dev Box. + ${DevBoxName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The name of an action that will take place on a Dev Box. + ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationGroup.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationGroup.ps1 new file mode 100644 index 000000000000..ed76a4d725ba --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationGroup.ps1 @@ -0,0 +1,202 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets a customization group. +.Description +Gets a customization group. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxcustomizationgroup +#> +function Get-AzDevCenterUserDevBoxCustomizationGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[]] + # Optional query parameter to specify what properties should be included in the response. + ${Include}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationTaskLog.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationTaskLog.ps1 new file mode 100644 index 000000000000..025e373605ee --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxCustomizationTaskLog.ps1 @@ -0,0 +1,209 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets the log for a customization task. +.Description +Gets the log for a customization task. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxcustomizationtasklog +#> +function Get-AzDevCenterUserDevBoxCustomizationTaskLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization task ID. + ${CustomizationTaskId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationTaskLog_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxOperation.ps1 new file mode 100644 index 000000000000..edc8b79a98fc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxOperation.ps1 @@ -0,0 +1,204 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an operation on a Dev Box. +.Description +Gets an operation on a Dev Box. +.Example +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +.Example +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +.Example +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxoperation +#> +function Get-AzDevCenterUserDevBoxOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on a Dev Box. + ${OperationId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 index 44cb58b22af0..69444c85c9c7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserDevBoxRemoteConnection.ps1 @@ -22,18 +22,18 @@ Gets RDP Connection info .Example Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxremoteconnection #> function Get-AzDevCenterUserDevBoxRemoteConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironment.ps1 index 8606fe6f6d9d..7b04347ebed1 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironment.ps1 @@ -22,26 +22,26 @@ Gets an environment .Example .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" .Example Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example $envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Notes COMPLEX PARAMETER PROPERTIES @@ -50,19 +50,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironment #> function Get-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..0f3d83a72f2b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,205 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Retrieve a specific environment action. +.Description +Retrieve a specific environment action. +.Example +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentaction +#> +function Get-AzDevCenterUserEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentDefinition.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentDefinition.ps1 index 27917d17d8c1..f77262eb8b0d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentDefinition.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentDefinition.ps1 @@ -22,26 +22,26 @@ Get an environment definition from a catalog. .Example .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -50,19 +50,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentdefinition #> function Get-AzDevCenterUserEnvironmentDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentLog.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentLog.ps1 new file mode 100644 index 000000000000..dec9dc701649 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentLog.ps1 @@ -0,0 +1,203 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets the logs for an operation on an environment. +.Description +Gets the logs for an operation on an environment. +.Example +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" +.Example +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentlog +#> +function Get-AzDevCenterUserEnvironmentLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentLog_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentLog_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOperation.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOperation.ps1 new file mode 100644 index 000000000000..591a61f42dac --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOperation.ps1 @@ -0,0 +1,204 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets an environment action result. +.Description +Gets an environment action result. +.Example +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentoperation +#> +function Get-AzDevCenterUserEnvironmentOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOutput.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOutput.ps1 new file mode 100644 index 000000000000..85f417acd128 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentOutput.ps1 @@ -0,0 +1,190 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets Outputs from the environment +.Description +Gets Outputs from the environment +.Example +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentoutput +#> +function Get-AzDevCenterUserEnvironmentOutput { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOutput_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOutput_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentType.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentType.ps1 index a594cfd0d1e1..d46f7ec566ae 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentType.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserEnvironmentType.ps1 @@ -22,15 +22,15 @@ Lists all environment types configured for a project. .Example Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmenttype #> function Get-AzDevCenterUserEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserPool.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserPool.ps1 index 00315aa9506c..dd50e23789d7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserPool.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserPool.ps1 @@ -22,22 +22,22 @@ Gets a pool .Example Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool .Example $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserpool #> function Get-AzDevCenterUserPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProject.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProject.ps1 index 663f48e136ab..d644b375af5d 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProject.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProject.ps1 @@ -22,22 +22,22 @@ Gets a project. .Example Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject .Example $devBoxInput = @{"ProjectName" = "DevProject";} Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject .Notes COMPLEX PARAMETER PROPERTIES @@ -46,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserproject #> function Get-AzDevCenterUserProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProjectCustomizationTaskDefinition.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProjectCustomizationTaskDefinition.ps1 new file mode 100644 index 000000000000..f04ad60eff5e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserProjectCustomizationTaskDefinition.ps1 @@ -0,0 +1,181 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Gets a customization task. +.Description +Gets a customization task. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserprojectcustomizationtaskdefinition +#> +function Get-AzDevCenterUserProjectCustomizationTaskDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the catalog + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization task name. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserSchedule.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserSchedule.ps1 index 555c8d091802..c091d0cade06 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserSchedule.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Get-AzDevCenterUserSchedule.ps1 @@ -20,20 +20,28 @@ Gets a schedule. .Description Gets a schedule. .Example -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default .Example -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +50,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserschedule #> function Get-AzDevCenterUserSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -64,7 +76,7 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a pool of Dev Boxes. @@ -72,6 +84,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. @@ -151,6 +164,7 @@ begin { Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_Get'; GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_GetViaIdentity'; List = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_List'; + List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_List1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 index 3afdf18ba439..b9f8a3ba8aa5 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayDevBoxAction.ps1 @@ -22,18 +22,18 @@ Delays the occurrence of an action. .Example Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/invoke-azdevcenteruserdelaydevboxaction #> function Invoke-AzDevCenterUserDelayDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult])] [CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -64,17 +68,18 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='Delay1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + # The name of a Dev Box. + ${DevBoxName}, [Parameter(ParameterSetName='Delay', Mandatory)] - [Parameter(ParameterSetName='Delay1', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The name of an action that will take place on a Dev Box. + ${Name}, [Parameter(ParameterSetName='Delay', Mandatory)] [Parameter(ParameterSetName='Delay1', Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 new file mode 100644 index 000000000000..c656493652a2 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Invoke-AzDevCenterUserDelayEnvironmentAction.ps1 @@ -0,0 +1,197 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/invoke-azdevcenteruserdelayenvironmentaction +#> +function Invoke-AzDevCenterUserDelayEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='Delay', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delay')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DelayViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.DateTime] + # The time to delay the Environment action until. + ${Until}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Delay = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayEnvironmentAction_Delay'; + DelayViaIdentity = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayEnvironmentAction_DelayViaIdentity'; + } + if (('Delay') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBox.ps1 index d7ace43bcd25..c5f3394e1c0a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Creates or replaces a Dev Box. .Example New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool .Example -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserdevbox #> function New-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBoxCustomizationGroup.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBoxCustomizationGroup.ps1 new file mode 100644 index 000000000000..a2d2f2ffb26a --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserDevBoxCustomizationGroup.ps1 @@ -0,0 +1,206 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Applies customizations to the Dev Box. +.Description +Applies customizations to the Dev Box. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + +TASK : Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserdevboxcustomizationgroup +#> +function New-AzDevCenterUserDevBoxCustomizationGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]] + # Tasks to apply. + # Note by default tasks are excluded from the response when listing customization groups. + # To include them, use the `include=tasks` query parameter. + # To construct, see NOTES section for TASK properties and create a hash table. + ${Task}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBoxCustomizationGroup_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserEnvironment.ps1 index cebce098108f..41fe03bd31ab 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/New-AzDevCenterUserEnvironment.ps1 @@ -21,26 +21,33 @@ Creates or updates an environment. Creates or updates an environment. .Example $functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months .Example -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months .Example $functionAppParameters = @{"name" = "testfuncApp" } $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Notes COMPLEX PARAMETER PROPERTIES @@ -49,19 +56,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserenvironment #> function New-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -101,26 +112,36 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Name of the catalog. + # The name of the catalog. + # Cannot be updated after creation. ${CatalogName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Name of the environment definition. + # The name of the environment definition. + # Cannot be updated after creation. ${EnvironmentDefinitionName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Environment type. + # The name of the environment type. + # Cannot be updated after creation. ${EnvironmentType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. + # Can only be updated via create or replace. ${Parameter}, [Parameter()] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/ProxyCmdletDefinitions.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/ProxyCmdletDefinitions.ps1 index 3f20a53c4910..657b5cb1ab33 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/ProxyCmdletDefinitions.ps1 @@ -22,24 +22,22 @@ Gets the specified catalog within the project .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject .Example Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserCatalog -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserCatalog -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" =" DevProject" } Get-AzDevCenterUserCatalog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $catalogInput .Example $catalogInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserCatalog -DevCenter Contoso -InputObject $catalogInput +Get-AzDevCenterUserCatalog -DevCenterName Contoso -InputObject $catalogInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog -.Outputs -System.String +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog .Notes COMPLEX PARAMETER PROPERTIES @@ -48,19 +46,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenterusercatalog #> function Get-AzDevCenterUserCatalog { -[OutputType([System.String], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ICatalog])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICatalog])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -190,22 +192,22 @@ Gets an action. .Example Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Get-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Get-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction .Notes COMPLEX PARAMETER PROPERTIES @@ -214,19 +216,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxaction #> function Get-AzDevCenterUserDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -236,17 +242,18 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + # The name of a Dev Box. + ${DevBoxName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The name of an action that will take place on a Dev Box. + ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] @@ -369,24 +376,18 @@ end { <# .Synopsis -Gets RDP Connection info +Gets a customization group. .Description -Gets RDP Connection info +Gets a customization group. .Example -Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -.Example -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -.Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +{{ Add code here }} .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter Contoso -InputObject $devBoxInput +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup .Notes COMPLEX PARAMETER PROPERTIES @@ -395,20 +396,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxremoteconnection +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxcustomizationgroup #> -function Get-AzDevCenterUserDevBoxRemoteConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IRemoteConnection])] -[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +function Get-AzDevCenterUserDevBoxCustomizationGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -419,16 +424,25 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] # The name of a Dev Box. ${DevBoxName}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -443,6 +457,14 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='List')] + [AllowEmptyCollection()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.ListCustomizationGroupsIncludeProperty[]] + # Optional query parameter to specify what properties should be included in the response. + ${Include}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -501,10 +523,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxRemoteConnection_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxRemoteConnection_GetViaIdentity'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationGroup_List'; } - if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -540,36 +563,18 @@ end { <# .Synopsis -Gets a Dev Box +Gets the log for a customization task. .Description -Gets a Dev Box -.Example -Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -.Example -Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -.Example -Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -.Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -.Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -UserId "me" +Gets the log for a customization task. .Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -.Example -Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -.Example -Get-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -.Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +{{ Add code here }} .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Get-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -578,20 +583,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxcustomizationtasklog #> -function Get-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDevCenterUserDevBoxCustomizationTaskLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -600,23 +609,32 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization task ID. + ${CustomizationTaskId}, + + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. - ${Name}, + ${DevBoxName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] - [Parameter(ParameterSetName='List2', Mandatory)] + [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] # The AAD object id of the user. # If value is 'me', the identity is taken from the authentication context. @@ -629,6 +647,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -658,6 +683,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -687,11 +718,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List'; - List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List1'; - List2 = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List2'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationTaskLog_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxCustomizationTaskLog_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -726,32 +757,28 @@ end { <# .Synopsis -Get an environment definition from a catalog. +Gets an operation on a Dev Box. .Description -Get an environment definition from a catalog. -.Example - -.Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject +Gets an operation on a Dev Box. .Example -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject .Example -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } -Get-AzDevCenterUserEnvironmentDefinition -DevCenter Contoso -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserDevBoxOperation -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation .Notes COMPLEX PARAMETER PROPERTIES @@ -760,19 +787,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentdefinition +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxoperation #> -function Get-AzDevCenterUserEnvironmentDefinition { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentDefinition])] +function Get-AzDevCenterUserDevBoxOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -782,26 +813,34 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the catalog - ${CatalogName}, + # The name of a Dev Box. + ${DevBoxName}, [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment definition - ${DefinitionName}, + # The id of the operation on a Dev Box. + ${OperationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] @@ -867,10 +906,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_List'; - List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_List1'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxOperation_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -905,22 +946,50 @@ end { <# .Synopsis -Lists all environment types configured for a project. +Gets RDP Connection info .Description -Lists all environment types configured for a project. +Gets RDP Connection info .Example -Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject +.Example +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBoxRemoteConnection -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -Get-AzDevCenterUserEnvironmentType -DevCenter Contoso -ProjectName DevProject +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName Contoso -InputObject $devBoxInput +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmenttype +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevboxremoteconnection #> -function Get-AzDevCenterUserEnvironmentType { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentType])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDevCenterUserDevBoxRemoteConnection { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IRemoteConnection])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -928,12 +997,33 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, + [Parameter(ParameterSetName='Get')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -992,7 +1082,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentType_List'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxRemoteConnection_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBoxRemoteConnection_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1027,32 +1121,36 @@ end { <# .Synopsis -Gets an environment +Gets a Dev Box .Description -Gets an environment +Gets a Dev Box .Example - +Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -UserId 786a823c-8037-48ab-89b8-8599901e67d0 .Example -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" +Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +Get-AzDevCenterUserDevBox -DevCenterName Contoso .Example -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +Get-AzDevCenterUserDevBox -DevCenterName Contoso -UserId "me" .Example -Get-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 .Example -$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Get-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Get-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Get-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox .Notes COMPLEX PARAMETER PROPERTIES @@ -1061,19 +1159,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserdevbox #> -function Get-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] +function Get-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1083,15 +1185,14 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('EnvironmentName')] + [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. + # The name of a Dev Box. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. @@ -1099,6 +1200,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The AAD object id of the user. @@ -1170,10 +1272,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_List'; - List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_List1'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List'; + List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List1'; + List2 = 'Az.DevCenterdata.private\Get-AzDevCenterUserDevBox_List2'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1208,28 +1311,28 @@ end { <# .Synopsis -Gets a pool +Retrieve a specific environment action. .Description -Gets a pool +Retrieve a specific environment action. .Example -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject .Example -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -Get-AzDevCenterUserPool -DevCenter Contoso -ProjectName DevProject -PoolName DevPool +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserPool -DevCenter Contoso -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction .Notes COMPLEX PARAMETER PROPERTIES @@ -1238,19 +1341,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserpool +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentaction #> -function Get-AzDevCenterUserPool { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IPool])] +function Get-AzDevCenterUserEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1260,17 +1367,34 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a pool of Dev Boxes. - ${PoolName}, + # The name of the environment. + ${EnvironmentName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The DevCenter Project upon which to execute operations. - ${ProjectName}, + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -1337,9 +1461,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_List'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentAction_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1374,28 +1501,32 @@ end { <# .Synopsis -Gets a project. +Get an environment definition from a catalog. .Description -Gets a project. +Get an environment definition from a catalog. .Example -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject + .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject .Example -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog .Example -Get-AzDevCenterUserProject -DevCenter Contoso -ProjectName DevProject +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog .Example -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox .Example -$devBoxInput = @{"ProjectName" = "DevProject";} -Get-AzDevCenterUserProject -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -ProjectName DevProject -CatalogName CentralCatalog -DefinitionName Sandbox +.Example +$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } +Get-AzDevCenterUserEnvironmentDefinition -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +.Example +$envInput = @{"CatalogName" = "CentralCatalog"; "ProjectName" = "DevProject"; "DefinitionName" = "Sandbox" } +Get-AzDevCenterUserEnvironmentDefinition -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition .Notes COMPLEX PARAMETER PROPERTIES @@ -1404,19 +1535,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserproject +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentdefinition #> -function Get-AzDevCenterUserProject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IProject])] +function Get-AzDevCenterUserEnvironmentDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1426,6 +1561,21 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the catalog + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment definition + ${DefinitionName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. @@ -1496,9 +1646,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_List'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_List'; + List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentDefinition_List1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1533,24 +1684,18 @@ end { <# .Synopsis -Gets a schedule. +Gets the logs for an operation on an environment. .Description -Gets a schedule. +Gets the logs for an operation on an environment. .Example -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -.Example -Get-AzDevCenterUserSchedule -DevCenter Contoso -ProjectName DevProject -PoolName DevPool -.Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" .Example -$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } -Get-AzDevCenterUserSchedule -DevCenter Contoso -InputObject $devBoxInput +Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" -Outfile "../output_logs.txt" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -1559,20 +1704,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserschedule +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentlog #> -function Get-AzDevCenterUserSchedule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.ISchedule])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDevCenterUserEnvironmentLog { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -1581,24 +1730,30 @@ param( ${Endpoint}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a pool of Dev Boxes. - ${PoolName}, + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The id of the operation on an environment. + ${OperationId}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] - # The name of a schedule. - ${ScheduleName}, + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] @@ -1607,6 +1762,13 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(Mandatory)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # Path to write output file to + ${OutFile}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1636,6 +1798,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -1665,9 +1833,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_Get'; - GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_GetViaIdentity'; - List = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_List'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentLog_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentLog_GetViaIdentity'; + } + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -1702,24 +1872,28 @@ end { <# .Synopsis -Delays the occurrence of an action. +Gets an environment action result. .Description -Delays the occurrence of an action. +Gets an environment action result. .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" -DelayTime "00:30" +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" .Example -Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -ActionName "schedule-default" -DelayTime "05:15" +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd"} +Get-AzDevCenterUserEnvironmentOperation -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation .Notes COMPLEX PARAMETER PROPERTIES @@ -1728,20 +1902,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/invoke-azdevcenteruserdelaydevboxaction +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentoperation #> -function Invoke-AzDevCenterUserDelayDevBoxAction { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBoxActionDelayResult])] -[CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDevCenterUserEnvironmentOperation { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOperation])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -1749,28 +1927,28 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + # The name of the environment. + ${EnvironmentName}, - [Parameter(ParameterSetName='Delay', Mandatory)] - [Parameter(ParameterSetName='Delay1', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The id of the operation on an environment. + ${OperationId}, - [Parameter(ParameterSetName='Delay', Mandatory)] - [Parameter(ParameterSetName='Delay1', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Delay')] - [Parameter(ParameterSetName='Delay1')] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -1778,20 +1956,13 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='DelayViaIdentity', Mandatory, ValueFromPipeline)] - [Parameter(ParameterSetName='DelayViaIdentity1', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] - [System.DateTime] - # The time to delay the Dev Box action or actions until. - ${Until}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1850,12 +2021,11 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delay = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_Delay'; - Delay1 = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_Delay1'; - DelayViaIdentity = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_DelayViaIdentity'; - DelayViaIdentity1 = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_DelayViaIdentity1'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOperation_List'; } - if (('Delay', 'Delay1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -1891,24 +2061,24 @@ end { <# .Synopsis -Creates or replaces a Dev Box. +Gets Outputs from the environment .Description -Creates or replaces a Dev Box. +Gets Outputs from the environment .Example -New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject .Example -New-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -New-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput -PoolName DevPool +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject";} +Get-AzDevCenterUserEnvironmentOutput -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs .Notes COMPLEX PARAMETER PROPERTIES @@ -1917,20 +2087,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmentoutput #> -function New-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IDevBox])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDevCenterUserEnvironmentOutput { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentOutputs])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -1938,20 +2112,19 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${Name}, + # The name of the environment. + ${EnvironmentName}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='Get')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -1959,26 +2132,13 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # The name of the Dev Box pool this machine belongs to. - ${PoolName}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus])] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus] - # Indicates whether the owner of the Dev Box is a local administrator. - ${LocalAdministrator}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1988,12 +2148,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2014,12 +2168,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -2049,10 +2197,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBox_CreateExpanded'; - CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBox_CreateViaIdentityExpanded'; + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOutput_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentOutput_GetViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -2088,53 +2236,22 @@ end { <# .Synopsis -Creates or updates an environment. +Lists all environment types configured for a project. .Description -Creates or updates an environment. -.Example -$functionAppParameters = @{"name" = "testfuncApp" } - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -.Example -New-AzDevCenterUserEnvironment -DevCenter Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest +Lists all environment types configured for a project. .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } - - -New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest - +Get-AzDevCenterUserEnvironmentType -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject .Example -$functionAppParameters = @{"name" = "testfuncApp" } -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } - -New-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters +Get-AzDevCenterUserEnvironmentType -DevCenterName Contoso -ProjectName DevProject -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment -.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 - [ActionName ]: The name of an action that will take place on a Dev Box. - [CatalogName ]: The name of the catalog - [DefinitionName ]: The name of the environment definition - [DevBoxName ]: The name of a Dev Box. - [EnvironmentName ]: The name of the environment. - [Id ]: Resource identity path - [PoolName ]: The name of a pool of Dev Boxes. - [ProjectName ]: The DevCenter Project upon which to execute operations. - [ScheduleName ]: The name of a schedule. - [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironmenttype #> -function New-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDevCenterUserEnvironmentType { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentType])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2142,20 +2259,2620 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Alias('EnvironmentName')] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. - ${Name}, + # The DevCenter Project upon which to execute operations. + ${ProjectName}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironmentType_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets an environment +.Description +Gets an environment +.Example + +.Example +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" +.Example +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" +.Example +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +.Example +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +.Example +$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Get-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Get-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserenvironment +#> +function Get-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_List'; + List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserEnvironment_List1'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a pool +.Description +Gets a pool +.Example +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserPool -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +Get-AzDevCenterUserPool -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool" } +Get-AzDevCenterUserPool -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserpool +#> +function Get-AzDevCenterUserPool { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IPool])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a pool of Dev Boxes. + ${PoolName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserPool_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a customization task. +.Description +Gets a customization task. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserprojectcustomizationtaskdefinition +#> +function Get-AzDevCenterUserProjectCustomizationTaskDefinition { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskDefinition])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the catalog + ${CatalogName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization task name. + ${TaskName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserProjectCustomizationTaskDefinition_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a project. +.Description +Gets a project. +.Example +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserProject -DevCenterName Contoso -ProjectName DevProject +.Example +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject";} +Get-AzDevCenterUserProject -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.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. + +INPUTOBJECT : Identity Parameter + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserproject +#> +function Get-AzDevCenterUserProject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IProject])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserProject_List'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Gets a schedule. +.Description +Gets a schedule. +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool -ScheduleName default +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool -ScheduleName default +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"ProjectName" = "DevProject"; "PoolName" = "DevPool"; "ScheduleName" = "default" } +Get-AzDevCenterUserSchedule -DevCenterName Contoso -InputObject $devBoxInput +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject +.Example +Get-AzDevCenterUserSchedule -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -PoolName DevPool +.Example +Get-AzDevCenterUserSchedule -DevCenterName Contoso -ProjectName DevProject -PoolName DevPool + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/get-azdevcenteruserschedule +#> +function Get-AzDevCenterUserSchedule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ISchedule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a pool of Dev Boxes. + ${PoolName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a schedule. + ${ScheduleName}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Get = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_Get'; + GetViaIdentity = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_GetViaIdentity'; + List = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_List'; + List1 = 'Az.DevCenterdata.private\Get-AzDevCenterUserSchedule_List1'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -DelayTime "01:30" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -DelayTime "02:00" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -UserId "me" -ProjectName DevProject -Name "schedule-default" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/invoke-azdevcenteruserdelaydevboxaction +#> +function Invoke-AzDevCenterUserDelayDevBoxAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxAction], [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBoxActionDelayResult])] +[CmdletBinding(DefaultParameterSetName='Delay1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='Delay1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Parameter(ParameterSetName='Delay1', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delay')] + [Parameter(ParameterSetName='Delay1')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DelayViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='DelayViaIdentity1', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.DateTime] + # The time to delay the Dev Box action or actions until. + ${Until}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Delay = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_Delay'; + Delay1 = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_Delay1'; + DelayViaIdentity = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_DelayViaIdentity'; + DelayViaIdentity1 = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayDevBoxAction_DelayViaIdentity1'; + } + if (('Delay', 'Delay1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Delays the occurrence of an action. +.Description +Delays the occurrence of an action. +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "00:30" +.Example +Invoke-AzDevCenterUserDelayEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -UserId "me" -ProjectName DevProject -Name "myEnvironment-Delete" -DelayTime "05:15" + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/invoke-azdevcenteruserdelayenvironmentaction +#> +function Invoke-AzDevCenterUserDelayEnvironmentAction { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentAction])] +[CmdletBinding(DefaultParameterSetName='Delay', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Delay', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delay')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DelayViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.DateTime] + # The time to delay the Environment action until. + ${Until}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Delay = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayEnvironmentAction_Delay'; + DelayViaIdentity = 'Az.DevCenterdata.private\Invoke-AzDevCenterUserDelayEnvironmentAction_DelayViaIdentity'; + } + if (('Delay') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Applies customizations to the Dev Box. +.Description +Applies customizations to the Dev Box. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + +TASK : Tasks to apply. Note by default tasks are excluded from the response when listing customization groups. To include them, use the `include=tasks` query parameter. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserdevboxcustomizationgroup +#> +function New-AzDevCenterUserDevBoxCustomizationGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationGroup])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # A customization group name. + ${CustomizationGroupName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]] + # Tasks to apply. + # Note by default tasks are excluded from the response when listing customization groups. + # To include them, use the `include=tasks` query parameter. + # To construct, see NOTES section for TASK properties and create a hash table. + ${Task}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBoxCustomizationGroup_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBoxCustomizationGroup_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Creates or replaces a Dev Box. +.Description +Creates or replaces a Dev Box. +.Example +New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -PoolName DevPool +.Example +New-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -PoolName DevPool +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +New-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput -PoolName DevPool +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +New-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput -PoolName DevPool + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserdevbox +#> +function New-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IDevBox])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the Dev Box pool this machine belongs to. + ${PoolName}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus])] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Support.LocalAdminStatus] + # Indicates whether the owner of the Dev Box is a local administrator. + ${LocalAdministrator}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBox_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserDevBox_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Creates or updates an environment. +.Description +Creates or updates an environment. +.Example +$functionAppParameters = @{"name" = "testfuncApp" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName Sandbox -EnvironmentType DevTest -ExpirationDate $dateIn8Months +.Example +$functionAppParameters = @{"name" = "testfuncApp" } +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +New-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -CatalogName CentralCatalog -EnvironmentDefinitionName FunctionApp -EnvironmentType DevTest -Parameter $functionAppParameters -ExpirationDate $dateIn8Months + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/new-azdevcenteruserenvironment +#> +function New-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the catalog. + # Cannot be updated after creation. + ${CatalogName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the environment definition. + # Cannot be updated after creation. + ${EnvironmentDefinitionName}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the environment type. + # Cannot be updated after creation. + ${EnvironmentType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] + [System.Collections.Hashtable] + # Parameters object for the environment. + # Can only be updated via create or replace. + ${Parameter}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserEnvironment_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserEnvironment_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Deletes a Dev Box. +.Description +Deletes a Dev Box. +.Example +Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +.Example +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserdevbox +#> +function Remove-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Delete = 'Az.DevCenterdata.private\Remove-AzDevCenterUserDevBox_Delete'; + DeleteViaIdentity = 'Az.DevCenterdata.private\Remove-AzDevCenterUserDevBox_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Deletes an environment and all its associated resources +.Description +Deletes an environment and all its associated resources +.Example +Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +.Example +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +.Example +$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserenvironment +#> +function Remove-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Delete = 'Az.DevCenterdata.private\Remove-AzDevCenterUserEnvironment_Delete'; + DeleteViaIdentity = 'Az.DevCenterdata.private\Remove-AzDevCenterUserEnvironment_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Description +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Example +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +.Example +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/repair-azdevcenteruserdevbox +#> +function Repair-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Repair', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Repair')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Repair = 'Az.DevCenterdata.private\Repair-AzDevCenterUserDevBox_Repair'; + RepairViaIdentity = 'Az.DevCenterdata.private\Repair-AzDevCenterUserDevBox_RepairViaIdentity'; + } + if (('Repair') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} + +<# +.Synopsis +Restarts a Dev Box +.Description +Restarts a Dev Box +.Example +Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +.Example +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/restart-azdevcenteruserdevbox +#> +function Restart-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Restart', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Restart', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='CreateExpanded')] + [Parameter(ParameterSetName='Restart')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2163,38 +4880,13 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the catalog. - ${CatalogName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the environment definition. - ${EnvironmentDefinitionName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Environment type. - ${EnvironmentType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] - [System.Collections.Hashtable] - # Parameters object for the environment. - ${Parameter}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2265,10 +4957,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserEnvironment_CreateExpanded'; - CreateViaIdentityExpanded = 'Az.DevCenterdata.private\New-AzDevCenterUserEnvironment_CreateViaIdentityExpanded'; + Restart = 'Az.DevCenterdata.private\Restart-AzDevCenterUserDevBox_Restart'; + RestartViaIdentity = 'Az.DevCenterdata.private\Restart-AzDevCenterUserDevBox_RestartViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -2304,46 +4996,45 @@ end { <# .Synopsis -Deletes a Dev Box. +Creates or updates an environment. .Description -Deletes a Dev Box. -.Example -Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox -.Example -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Creates or updates an environment. .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +{{ Add code here }} .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +{{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .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 - [ActionName ]: The name of an action that will take place on a Dev Box. - [CatalogName ]: The name of the catalog - [DefinitionName ]: The name of the environment definition - [DevBoxName ]: The name of a Dev Box. - [EnvironmentName ]: The name of the environment. - [Id ]: Resource identity path - [PoolName ]: The name of a pool of Dev Boxes. - [ProjectName ]: The DevCenter Project upon which to execute operations. - [ScheduleName ]: The name of a schedule. - [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +BODY : Properties of an environment. + CatalogName : The name of the catalog. Cannot be updated after creation. + DefinitionName : The name of the environment definition. Cannot be updated after creation. + Type : The name of the environment type. Cannot be updated after creation. + [Parameter ]: Parameters object for the environment. Can only be updated via create or replace. + [(Any) ]: This indicates any property can be added to this object. + [ExpirationDate ]: The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + [Code ]: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + [Detail ]: A list of additional details about the error. + Code : An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + Message : A message describing the error, intended to be suitable for display in a user interface. + [Detail ]: A list of additional details about the error. + [Target ]: The target of the particular error. For example, the name of the property in error. + [Message ]: A message describing the error, intended to be suitable for display in a user interface. + [OperationLocation ]: + [Target ]: The target of the particular error. For example, the name of the property in error. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/set-azdevcenteruserenvironment #> -function Remove-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Set-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='ReplaceExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2351,20 +5042,20 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DevBoxName')] + [Parameter(Mandatory)] + [Alias('EnvironmentName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of the environment. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Delete')] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2372,12 +5063,47 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, + [Parameter(ParameterSetName='Replace', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment] + # Properties of an environment. + # To construct, see NOTES section for BODY properties and create a hash table. + ${Body}, + + [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the catalog. + # Cannot be updated after creation. + ${CatalogName}, + + [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the environment definition. + # Cannot be updated after creation. + ${EnvironmentDefinitionName}, + + [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.String] + # The name of the environment type. + # Cannot be updated after creation. + ${EnvironmentType}, + + [Parameter(ParameterSetName='ReplaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter(ParameterSetName='ReplaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] + [System.Collections.Hashtable] + # Parameters object for the environment. + # Can only be updated via create or replace. + ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -2420,12 +5146,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -2455,10 +5175,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.DevCenterdata.private\Remove-AzDevCenterUserDevBox_Delete'; - DeleteViaIdentity = 'Az.DevCenterdata.private\Remove-AzDevCenterUserDevBox_DeleteViaIdentity'; + Replace = 'Az.DevCenterdata.private\Set-AzDevCenterUserEnvironment_Replace'; + ReplaceExpanded = 'Az.DevCenterdata.private\Set-AzDevCenterUserEnvironment_ReplaceExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Replace', 'ReplaceExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -2494,24 +5214,24 @@ end { <# .Synopsis -Deletes an environment and all its associated resources +Skips an occurrence of an action. .Description -Deletes an environment and all its associated resources +Skips an occurrence of an action. .Example -Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -$envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -2520,20 +5240,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenterdata/skip-azdevcenteruserdevboxaction #> -function Remove-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Skip-AzDevCenterUserDevBoxAction { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2541,20 +5265,26 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('EnvironmentName')] + [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. + # The name of a Dev Box. + ${DevBoxName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on a Dev Box. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='Skip')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2562,7 +5292,7 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -2578,12 +5308,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2604,12 +5328,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2645,10 +5363,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Delete = 'Az.DevCenterdata.private\Remove-AzDevCenterUserEnvironment_Delete'; - DeleteViaIdentity = 'Az.DevCenterdata.private\Remove-AzDevCenterUserEnvironment_DeleteViaIdentity'; + Skip = 'Az.DevCenterdata.private\Skip-AzDevCenterUserDevBoxAction_Skip'; + SkipViaIdentity = 'Az.DevCenterdata.private\Skip-AzDevCenterUserDevBoxAction_SkipViaIdentity'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Skip') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -2684,24 +5402,24 @@ end { <# .Synopsis -Restarts a Dev Box +Skips an occurrence of an action. .Description -Restarts a Dev Box +Skips an occurrence of an action. .Example -Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES @@ -2710,20 +5428,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/restart-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/skip-azdevcenteruserenvironmentaction #> -function Restart-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Skip-AzDevCenterUserEnvironmentAction { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2731,20 +5453,26 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Restart', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. ${Name}, - [Parameter(ParameterSetName='Restart', Mandatory)] + [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Restart')] + [Parameter(ParameterSetName='Skip')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2752,7 +5480,7 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='RestartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter @@ -2765,14 +5493,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. - # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] @@ -2797,8 +5519,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, + # Returns true when the command succeeds + ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] @@ -2829,10 +5551,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Restart = 'Az.DevCenterdata.private\Restart-AzDevCenterUserDevBox_Restart'; - RestartViaIdentity = 'Az.DevCenterdata.private\Restart-AzDevCenterUserDevBox_RestartViaIdentity'; + Skip = 'Az.DevCenterdata.private\Skip-AzDevCenterUserEnvironmentAction_Skip'; + SkipViaIdentity = 'Az.DevCenterdata.private\Skip-AzDevCenterUserEnvironmentAction_SkipViaIdentity'; } - if (('Restart') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Skip') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -2868,44 +5590,50 @@ end { <# .Synopsis -Creates or updates an environment. +Starts a Dev Box .Description -Creates or updates an environment. +Starts a Dev Box .Example -{{ Add code here }} +Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -{{ Add code here }} +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .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. -BODY : Properties of an environment. - CatalogName : Name of the catalog. - DefinitionName : Name of the environment definition. - Type : Environment type. - [Parameter ]: Parameters object for the environment. - [(Any) ]: This indicates any property can be added to this object. - [Code ]: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - [Detail ]: A list of additional details about the error. - Code : An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - Message : A message describing the error, intended to be suitable for display in a user interface. - [Detail ]: A list of additional details about the error. - [Target ]: The target of the particular error. For example, the name of the property in error. - [Message ]: A message describing the error, intended to be suitable for display in a user interface. - [OperationLocation ]: - [Target ]: The target of the particular error. For example, the name of the property in error. +INPUTOBJECT : Identity Parameter + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/set-azdevcenteruserenvironment +https://learn.microsoft.com/powershell/module/az.devcenterdata/start-azdevcenteruserdevbox #> -function Set-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] -[CmdletBinding(DefaultParameterSetName='ReplaceExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Start-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -2913,20 +5641,20 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(Mandatory)] - [Alias('EnvironmentName')] + [Parameter(ParameterSetName='Start', Mandatory)] + [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of the environment. + # The name of a Dev Box. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Start', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter()] + [Parameter(ParameterSetName='Start')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -2934,37 +5662,12 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='Replace', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment] - # Properties of an environment. - # To construct, see NOTES section for BODY properties and create a hash table. - ${Body}, - - [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the catalog. - ${CatalogName}, - - [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Name of the environment definition. - ${EnvironmentDefinitionName}, - - [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [System.String] - # Environment type. - ${EnvironmentType}, - - [Parameter(ParameterSetName='ReplaceExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] - [System.Collections.Hashtable] - # Parameters object for the environment. - ${Parameter}, + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3036,10 +5739,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Replace = 'Az.DevCenterdata.private\Set-AzDevCenterUserEnvironment_Replace'; - ReplaceExpanded = 'Az.DevCenterdata.private\Set-AzDevCenterUserEnvironment_ReplaceExpanded'; + Start = 'Az.DevCenterdata.private\Start-AzDevCenterUserDevBox_Start'; + StartViaIdentity = 'Az.DevCenterdata.private\Start-AzDevCenterUserDevBox_StartViaIdentity'; } - if (('Replace', 'ReplaceExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -3075,24 +5778,24 @@ end { <# .Synopsis -Skips an occurrence of an action. +Stops a Dev Box .Description -Skips an occurrence of an action. +Stops a Dev Box .Example -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } +Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -3101,20 +5804,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/skip-azdevcenteruserdevboxaction +https://learn.microsoft.com/powershell/module/az.devcenterdata/stop-azdevcenteruserdevbox #> -function Skip-AzDevCenterUserDevBoxAction { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Stop-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -3122,25 +5829,20 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Skip', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, - - [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='Stop', Mandatory)] + [Alias('DevBoxName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The name of a Dev Box. - ${DevBoxName}, + ${Name}, - [Parameter(ParameterSetName='Skip', Mandatory)] + [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Skip')] + [Parameter(ParameterSetName='Stop')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3148,13 +5850,19 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional parameter to hibernate the dev box. + ${Hibernate}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3164,6 +5872,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3187,8 +5901,8 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, + # Run the command asynchronously + ${NoWait}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] @@ -3219,10 +5933,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Skip = 'Az.DevCenterdata.private\Skip-AzDevCenterUserDevBoxAction_Skip'; - SkipViaIdentity = 'Az.DevCenterdata.private\Skip-AzDevCenterUserDevBoxAction_SkipViaIdentity'; + Stop = 'Az.DevCenterdata.private\Stop-AzDevCenterUserDevBox_Stop'; + StopViaIdentity = 'Az.DevCenterdata.private\Stop-AzDevCenterUserDevBox_StopViaIdentity'; } - if (('Skip') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } @@ -3258,46 +5972,59 @@ end { <# .Synopsis -Starts a Dev Box +Validates a list of customization tasks. .Description -Starts a Dev Box -.Example -Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +Validates a list of customization tasks. .Example -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox -.Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +{{ Add code here }} .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +{{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +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. +BODY : Represents a list of tasks to apply to a Dev Box + [Task ]: Tasks to apply. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. + INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + +TASK : Tasks to apply. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/start-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/test-azdevcenteruserprojectcustomizationtask #> -function Start-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Test-AzDevCenterUserProjectCustomizationTask { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -3305,34 +6032,38 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Start', Mandatory)] - [Alias('DevBoxName')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [System.String] - # The name of a Dev Box. - ${Name}, - - [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Start')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] - [System.String] - # The AAD object id of the user. - # If value is 'me', the identity is taken from the authentication context. - ${UserId}, - - [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, + [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList] + # Represents a list of tasks to apply to a Dev Box + # To construct, see NOTES section for BODY properties and create a hash table. + ${Body}, + + [Parameter(ParameterSetName='ValidateExpanded')] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]] + # Tasks to apply. + # To construct, see NOTES section for TASK properties and create a hash table. + ${Task}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3403,11 +6134,10 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Start = 'Az.DevCenterdata.private\Start-AzDevCenterUserDevBox_Start'; - StartViaIdentity = 'Az.DevCenterdata.private\Start-AzDevCenterUserDevBox_StartViaIdentity'; - } - if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { - $PSBoundParameters['UserId'] = "me" + Validate = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_Validate'; + ValidateExpanded = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateExpanded'; + ValidateViaIdentity = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateViaIdentity'; + ValidateViaIdentityExpanded = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -3442,46 +6172,69 @@ end { <# .Synopsis -Stops a Dev Box +Partially updates an environment .Description -Stops a Dev Box +Partially updates an environment .Example -Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months .Example -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + .Example -$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .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. +BODY : Properties of an environment. These properties can be updated via PATCH after the resource has been created. + [ExpirationDate ]: The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link -https://learn.microsoft.com/powershell/module/az.devcenterdata/stop-azdevcenteruserdevbox +https://learn.microsoft.com/powershell/module/az.devcenterdata/update-azdevcenteruserenvironment #> -function Stop-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] -[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] @@ -3489,20 +6242,23 @@ param( # The DevCenter-specific URI to operate on. ${Endpoint}, - [Parameter(ParameterSetName='Stop', Mandatory)] - [Alias('DevBoxName')] + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Alias('EnvironmentName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. + # The name of the environment. ${Name}, - [Parameter(ParameterSetName='Stop', Mandatory)] + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] # The DevCenter Project upon which to execute operations. ${ProjectName}, - [Parameter(ParameterSetName='Stop')] + [Parameter(ParameterSetName='Patch')] + [Parameter(ParameterSetName='PatchExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] [System.String] @@ -3510,18 +6266,29 @@ param( # If value is 'me', the identity is taken from the authentication context. ${UserId}, - [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Query')] - [System.Management.Automation.SwitchParameter] - # Optional parameter to hibernate the dev box. - ${Hibernate}, + [Parameter(ParameterSetName='Patch', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties] + # Properties of an environment. + # These properties can be updated via PATCH after the resource has been created. + # To construct, see NOTES section for BODY properties and create a hash table. + ${Body}, + + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -3532,12 +6299,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3558,12 +6319,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] [System.Uri] @@ -3593,10 +6348,12 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - Stop = 'Az.DevCenterdata.private\Stop-AzDevCenterUserDevBox_Stop'; - StopViaIdentity = 'Az.DevCenterdata.private\Stop-AzDevCenterUserDevBox_StopViaIdentity'; + Patch = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_Patch'; + PatchExpanded = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchExpanded'; + PatchViaIdentity = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchViaIdentity'; + PatchViaIdentityExpanded = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchViaIdentityExpanded'; } - if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + if (('Patch', 'PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { $PSBoundParameters['UserId'] = "me" } diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserDevBox.ps1 index 6c87428f5648..130ae65faa05 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Deletes a Dev Box. .Example Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Remove-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Remove-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Remove-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Remove-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserdevbox #> function Remove-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserEnvironment.ps1 index a0e9f00feadd..cf82ce5df30e 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Remove-AzDevCenterUserEnvironment.ps1 @@ -22,18 +22,18 @@ Deletes an environment and all its associated resources .Example Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId "me" -Name myEnv .Example -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -ProjectName DevProject -UserId "786a823c-8037-48ab-89b8-8599901e67d0" -Name myEnv .Example $envInput = @{"UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } Remove-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput .Example $envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "myEnv" } -Remove-AzDevCenterUserEnvironment -DevCenter Contoso -InputObject $envInput +Remove-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/remove-azdevcenteruserenvironment #> function Remove-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Repair-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Repair-AzDevCenterUserDevBox.ps1 new file mode 100644 index 000000000000..132db1edaa7b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Repair-AzDevCenterUserDevBox.ps1 @@ -0,0 +1,205 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Description +Attempts automated repair steps to resolve common problems on a Dev Box. +The Dev Box may restart during this operation. +.Example +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name myDevBox -ProjectName DevProject +.Example +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -Name myDevBox -ProjectName DevProject +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput +.Example +$devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject";} +Repair-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/repair-azdevcenteruserdevbox +#> +function Repair-AzDevCenterUserDevBox { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] +[CmdletBinding(DefaultParameterSetName='Repair', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Alias('DevBoxName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of a Dev Box. + ${Name}, + + [Parameter(ParameterSetName='Repair', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Repair')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='RepairViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Repair = 'Az.DevCenterdata.private\Repair-AzDevCenterUserDevBox_Repair'; + RepairViaIdentity = 'Az.DevCenterdata.private\Repair-AzDevCenterUserDevBox_RepairViaIdentity'; + } + if (('Repair') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Restart-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Restart-AzDevCenterUserDevBox.ps1 index a0ab044c2bf2..f580bce3e949 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Restart-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Restart-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Restarts a Dev Box .Example Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Restart-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Restart-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Restart-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Restart-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/restart-azdevcenteruserdevbox #> function Restart-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Restart', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Set-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Set-AzDevCenterUserEnvironment.ps1 index 2b7f440c79b5..4484854d2efc 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Set-AzDevCenterUserEnvironment.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Set-AzDevCenterUserEnvironment.ps1 @@ -25,20 +25,21 @@ Creates or updates an environment. {{ Add code here }} .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment .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. BODY : Properties of an environment. - CatalogName : Name of the catalog. - DefinitionName : Name of the environment definition. - Type : Environment type. - [Parameter ]: Parameters object for the environment. + CatalogName : The name of the catalog. Cannot be updated after creation. + DefinitionName : The name of the environment definition. Cannot be updated after creation. + Type : The name of the environment type. Cannot be updated after creation. + [Parameter ]: Parameters object for the environment. Can only be updated via create or replace. [(Any) ]: This indicates any property can be added to this object. + [ExpirationDate ]: The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. [Code ]: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. [Detail ]: A list of additional details about the error. Code : An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -52,7 +53,7 @@ BODY : Properties of an environment. https://learn.microsoft.com/powershell/module/az.devcenterdata/set-azdevcenteruserenvironment #> function Set-AzDevCenterUserEnvironment { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] [CmdletBinding(DefaultParameterSetName='ReplaceExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -84,7 +85,7 @@ param( [Parameter(ParameterSetName='Replace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironment] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment] # Properties of an environment. # To construct, see NOTES section for BODY properties and create a hash table. ${Body}, @@ -92,26 +93,36 @@ param( [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Name of the catalog. + # The name of the catalog. + # Cannot be updated after creation. ${CatalogName}, [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Name of the environment definition. + # The name of the environment definition. + # Cannot be updated after creation. ${EnvironmentDefinitionName}, [Parameter(ParameterSetName='ReplaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] [System.String] - # Environment type. + # The name of the environment type. + # Cannot be updated after creation. ${EnvironmentType}, [Parameter(ParameterSetName='ReplaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IEnvironmentUpdatePropertiesParameters]))] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter(ParameterSetName='ReplaceExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentUpdatePropertiesParameters]))] [System.Collections.Hashtable] # Parameters object for the environment. + # Can only be updated via create or replace. ${Parameter}, [Parameter()] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserDevBoxAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserDevBoxAction.ps1 index f466a0dca861..527c12493fc7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserDevBoxAction.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserDevBoxAction.ps1 @@ -20,15 +20,15 @@ Skips an occurrence of an action. .Description Skips an occurrence of an action. .Example -Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -DevBoxName myDevBox -ProjectName DevProject -ActionName "schedule-default" +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -DevBoxName myDevBox -ProjectName DevProject -Name "schedule-default" .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} Skip-AzDevCenterUserDevBoxAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "schedule-default"} -Skip-AzDevCenterUserDevBoxAction -DevCenter Contoso -InputObject $devBoxInput +Skip-AzDevCenterUserDevBoxAction -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity @@ -42,13 +42,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/skip-azdevcenteruserdevboxaction @@ -66,14 +70,15 @@ param( [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of an action that will take place on a Dev Box. - ${ActionName}, + # The name of a Dev Box. + ${DevBoxName}, [Parameter(ParameterSetName='Skip', Mandatory)] + [Alias('ActionName')] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] [System.String] - # The name of a Dev Box. - ${DevBoxName}, + # The name of an action that will take place on a Dev Box. + ${Name}, [Parameter(ParameterSetName='Skip', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserEnvironmentAction.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserEnvironmentAction.ps1 new file mode 100644 index 000000000000..a941c7787210 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Skip-AzDevCenterUserEnvironmentAction.ps1 @@ -0,0 +1,203 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Skips an occurrence of an action. +.Description +Skips an occurrence of an action. +.Example +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete" +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput +.Example +$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"} +Skip-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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 + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/skip-azdevcenteruserenvironmentaction +#> +function Skip-AzDevCenterUserEnvironmentAction { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Skip', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${EnvironmentName}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Alias('ActionName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of an action that will take place on an Environment. + ${Name}, + + [Parameter(ParameterSetName='Skip', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Skip')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='SkipViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # 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.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Skip = 'Az.DevCenterdata.private\Skip-AzDevCenterUserEnvironmentAction_Skip'; + SkipViaIdentity = 'Az.DevCenterdata.private\Skip-AzDevCenterUserEnvironmentAction_SkipViaIdentity'; + } + if (('Skip') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Start-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Start-AzDevCenterUserDevBox.ps1 index 6139427bce2b..4bbf3051220b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Start-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Start-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Starts a Dev Box .Example Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Start-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Start-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Start-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Start-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Start-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/start-azdevcenteruserdevbox #> function Start-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Stop-AzDevCenterUserDevBox.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Stop-AzDevCenterUserDevBox.ps1 index e399e642b388..f03c594ebf6a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/internal/Stop-AzDevCenterUserDevBox.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Stop-AzDevCenterUserDevBox.ps1 @@ -22,18 +22,18 @@ Stops a Dev Box .Example Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -ProjectName DevProject -UserId 786a823c-8037-48ab-89b8-8599901e67d0 -Name myDevBox .Example -Stop-AzDevCenterUserDevBox -DevCenter Contoso -ProjectName DevProject -UserId "me" -Name myDevBox +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -ProjectName DevProject -UserId "me" -Name myDevBox .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" } Stop-AzDevCenterUserDevBox -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $devBoxInput .Example $devBoxInput = @{"DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" } -Stop-AzDevCenterUserDevBox -DevCenter Contoso -InputObject $devBoxInput +Stop-AzDevCenterUserDevBox -DevCenterName Contoso -InputObject $devBoxInput .Inputs Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus .Notes COMPLEX PARAMETER PROPERTIES @@ -42,19 +42,23 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [ActionName ]: The name of an action that will take place on a Dev Box. [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. [DefinitionName ]: The name of the environment definition [DevBoxName ]: The name of a Dev Box. [EnvironmentName ]: The name of the environment. [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. [PoolName ]: The name of a pool of Dev Boxes. [ProjectName ]: The DevCenter Project upon which to execute operations. [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. .Link https://learn.microsoft.com/powershell/module/az.devcenterdata/stop-azdevcenteruserdevbox #> function Stop-AzDevCenterUserDevBox { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20230401.IOperationStatus])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IOperationStatus])] [CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Test-AzDevCenterUserProjectCustomizationTask.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Test-AzDevCenterUserProjectCustomizationTask.ps1 new file mode 100644 index 000000000000..75596fd278c4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Test-AzDevCenterUserProjectCustomizationTask.ps1 @@ -0,0 +1,215 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Validates a list of customization tasks. +.Description +Validates a list of customization tasks. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.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. + +BODY : Represents a list of tasks to apply to a Dev Box + [Task ]: Tasks to apply. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. + +INPUTOBJECT : Identity Parameter + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. + +TASK : Tasks to apply. + Name : Name of the task. + [DisplayName ]: Display name to help differentiate multiple instances of the same task. + [Parameter ]: Parameters for the task. + [(Any) ]: This indicates any property can be added to this object. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/test-azdevcenteruserprojectcustomizationtask +#> +function Test-AzDevCenterUserProjectCustomizationTask { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Validate', Mandatory)] + [Parameter(ParameterSetName='ValidateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTaskList] + # Represents a list of tasks to apply to a Dev Box + # To construct, see NOTES section for BODY properties and create a hash table. + ${Body}, + + [Parameter(ParameterSetName='ValidateExpanded')] + [Parameter(ParameterSetName='ValidateViaIdentityExpanded')] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.ICustomizationTask[]] + # Tasks to apply. + # To construct, see NOTES section for TASK properties and create a hash table. + ${Task}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Validate = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_Validate'; + ValidateExpanded = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateExpanded'; + ValidateViaIdentity = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateViaIdentity'; + ValidateViaIdentityExpanded = 'Az.DevCenterdata.private\Test-AzDevCenterUserProjectCustomizationTask_ValidateViaIdentityExpanded'; + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/internal/Update-AzDevCenterUserEnvironment.ps1 b/src/DevCenter/DevCenterData.AutoRest/internal/Update-AzDevCenterUserEnvironment.ps1 new file mode 100644 index 000000000000..833dbfcb0ad0 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/internal/Update-AzDevCenterUserEnvironment.ps1 @@ -0,0 +1,232 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Partially updates an environment +.Description +Partially updates an environment +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -Name "envtest" -ProjectName DevProject -ExpirationDate $dateIn8Months +.Example +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +Update-AzDevCenterUserEnvironment -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $envInput -ExpirationDate $dateIn8Months + +.Example +$currentDate = Get-Date +$dateIn8Months = $currentDate.AddMonths(8) + +$envInput = @{"UserId" = "me"; "ProjectName" = "DevProject"; "EnvironmentName" = "envtest" } + +Update-AzDevCenterUserEnvironment -DevCenterName Contoso -InputObject $envInput -ExpirationDate $dateIn8Months + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment +.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. + +BODY : Properties of an environment. These properties can be updated via PATCH after the resource has been created. + [ExpirationDate ]: The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + +INPUTOBJECT : Identity Parameter + [ActionName ]: The name of an action that will take place on a Dev Box. + [CatalogName ]: The name of the catalog + [CustomizationGroupName ]: A customization group name. + [CustomizationTaskId ]: A customization task ID. + [DefinitionName ]: The name of the environment definition + [DevBoxName ]: The name of a Dev Box. + [EnvironmentName ]: The name of the environment. + [Id ]: Resource identity path + [OperationId ]: The id of the operation on a Dev Box. + [PoolName ]: The name of a pool of Dev Boxes. + [ProjectName ]: The DevCenter Project upon which to execute operations. + [ScheduleName ]: The name of a schedule. + [TaskName ]: A customization task name. + [UserId ]: The AAD object id of the user. If value is 'me', the identity is taken from the authentication context. +.Link +https://learn.microsoft.com/powershell/module/az.devcenterdata/update-azdevcenteruserenvironment +#> +function Update-AzDevCenterUserEnvironment { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironment])] +[CmdletBinding(DefaultParameterSetName='PatchExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Uri')] + [System.String] + # The DevCenter-specific URI to operate on. + ${Endpoint}, + + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Alias('EnvironmentName')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The name of the environment. + ${Name}, + + [Parameter(ParameterSetName='Patch', Mandatory)] + [Parameter(ParameterSetName='PatchExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [System.String] + # The DevCenter Project upon which to execute operations. + ${ProjectName}, + + [Parameter(ParameterSetName='Patch')] + [Parameter(ParameterSetName='PatchExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.DefaultInfo(Script='"me"')] + [System.String] + # The AAD object id of the user. + # If value is 'me', the identity is taken from the authentication context. + ${UserId}, + + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.IDevCenterdataIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Patch', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='PatchViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Models.Api20231001Preview.IEnvironmentPatchProperties] + # Properties of an environment. + # These properties can be updated via PATCH after the resource has been created. + # To construct, see NOTES section for BODY properties and create a hash table. + ${Body}, + + [Parameter(ParameterSetName='PatchExpanded')] + [Parameter(ParameterSetName='PatchViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Body')] + [System.DateTime] + # The time the expiration date will be triggered (UTC), after which the environment and associated resources will be deleted. + ${ExpirationDate}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DevCenterdata.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 + + $mapping = @{ + Patch = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_Patch'; + PatchExpanded = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchExpanded'; + PatchViaIdentity = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchViaIdentity'; + PatchViaIdentityExpanded = 'Az.DevCenterdata.private\Update-AzDevCenterUserEnvironment_PatchViaIdentityExpanded'; + } + if (('Patch', 'PatchExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('UserId')) { + $PSBoundParameters['UserId'] = "me" + } + + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Recording.json index 04f62bf57e71..094075eea681 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Recording.json @@ -1,8 +1,8 @@ { - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01+1": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview", "Content": "{\r\n \"parameters\": {\r\n \"name\": \"tijokm\"\r\n },\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"FunctionApp\"\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:20:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "ba7448dc-d0ed-45c0-a997-71844c7d2470" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:21:40.4809104Z" ], @@ -34,10 +34,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+2": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -57,11 +57,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:21:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4d248ec0-deec-4e12-9ab6-47f36c07efa8" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:22:11.4317670Z" ], @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+3": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -98,11 +98,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:21:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "16426f3e-0c5f-490f-a5e6-7aa469c75e96" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:22:41.8133551Z" ], @@ -116,10 +116,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+4": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -139,11 +139,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:22:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f3c1c5aa-f2c2-454c-8b18-c0f8c3052605" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:23:12.1939550Z" ], @@ -157,10 +157,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+5": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -180,11 +180,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:22:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c1af62f6-87e4-45dc-8136-ad9240e99527" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:23:19.9778174Z" ], @@ -198,10 +198,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+6": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -221,11 +221,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:23:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "11f9abcb-2026-4e7a-92ea-a6485aa9095b" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:23:43.5128615Z" ], @@ -239,10 +239,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+7": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -262,11 +262,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:23:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d1aa946c-a90b-4570-b637-bf32c845aa9e" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:24:43.2071706Z" ], @@ -280,10 +280,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true+8": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -303,11 +303,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:24:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8ea21349-b3c3-48fa-8372-61c1adffa946" ], "x-ms-client-request-id": [ "43fc3610-011e-4a12-8aac-11469ab667c1" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d5ed8c8d-6616-4189-be7f-7f530872b4bd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:25:13.5111428Z" ], @@ -321,10 +321,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01+9": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -359,10 +359,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01+10": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview+10": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview", "Content": "{\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"Sandbox\"\r\n}", "isContentBase64": false, "Headers": { @@ -377,10 +377,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:24:28 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "05be41f7-ef77-452f-a8b8-6e12a5012774" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:25:13.5111428Z" ], @@ -394,10 +394,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+11": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -417,11 +417,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:24:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c21f723f-140e-4326-aec9-da290b57488b" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:25:13.5111428Z" ], @@ -435,10 +435,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+12": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -458,11 +458,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:25:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a819e7d8-a53e-431a-8584-62985b249c8f" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:26:29.2083411Z" ], @@ -476,10 +476,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+13": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -499,11 +499,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:25:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "fdebb48e-241c-4d74-b390-8cb3705daaca" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:26:35.2220575Z" ], @@ -517,10 +517,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+14": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -540,11 +540,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:26:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3876b931-5bbc-4833-9c5d-0666e447f51d" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:27:29.8606371Z" ], @@ -558,10 +558,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+15": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -581,11 +581,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:27:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8738f731-ca33-4b78-8a4e-df59af3cea44" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:28:00.2201036Z" ], @@ -599,10 +599,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+16": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -622,11 +622,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:27:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "02735d51-d323-4dac-8aa6-a51f6b1993f6" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:28:13.5232191Z" ], @@ -640,10 +640,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true+17": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -663,11 +663,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:28:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5b27e2c1-071f-4d5f-b4ed-7b99722d7ec3" ], "x-ms-client-request-id": [ "a3af054d-a4f5-4807-a26c-94894a6639b4" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/511b5ca6-83de-4c45-9961-82c68fe06369?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:29:00.8827474Z" ], @@ -681,10 +681,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01+18": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -719,10 +719,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01+1": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview", "Content": "{\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"Sandbox\"\r\n}", "isContentBase64": false, "Headers": { @@ -737,10 +737,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:28:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "bfaad66a-1b07-4dd1-91a6-94ae7cf1ffad" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "295" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:28:13.5232191Z" ], @@ -754,10 +754,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+2": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -777,11 +777,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:28:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a36f42ed-ba86-4b9d-84a4-e73d32d129ba" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:29:00.8827474Z" ], @@ -795,10 +795,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+3": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -818,11 +818,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:29:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "50a41772-0f00-43b7-8288-6a5bc95fb046" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:30:02.7634586Z" ], @@ -836,10 +836,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+4": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -859,11 +859,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:29:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "fa3a5b1e-8fe6-4e50-b30f-7c48fcbed466" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:30:33.0478194Z" ], @@ -877,10 +877,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+5": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -900,11 +900,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:30:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "291e97e6-84c0-47fa-a396-ce5eba71126a" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:31:03.5358093Z" ], @@ -918,10 +918,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+6": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -941,11 +941,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:30:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "da451079-67ad-4703-8ab9-38610269fb76" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:31:33.8363550Z" ], @@ -959,10 +959,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+7": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -982,11 +982,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:31:04 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0b8a2cc4-de9f-4c18-a9bc-0d97cd8c4fee" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:31:50.0148611Z" ], @@ -1000,10 +1000,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true+8": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1023,11 +1023,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:31:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "71c32744-fbe7-42e4-8db8-42bc8e473121" ], "x-ms-client-request-id": [ "9c170406-e952-4545-ba07-bde7930cbcf5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/d250b0f3-d04d-4e89-ac9f-d89c0999120c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:32:34.5203659Z" ], @@ -1041,10 +1041,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01+9": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1079,10 +1079,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01+10": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview+10": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview", "Content": "{\r\n \"parameters\": {\r\n \"name\": \"2jwit4\"\r\n },\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"FunctionApp\"\r\n}", "isContentBase64": false, "Headers": { @@ -1097,10 +1097,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:31:36 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "1989581e-4822-4efe-8c58-3e28898dfeae" ], "x-ms-client-request-id": [ "5e3fd6b3-517e-43c0-b6de-4966aaed76a9" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:32:36.0762430Z" ], @@ -1114,10 +1114,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true+11": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1137,11 +1137,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:32:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "00fd22ae-d6ea-4b05-b08c-8841a45dbebb" ], "x-ms-client-request-id": [ "5e3fd6b3-517e-43c0-b6de-4966aaed76a9" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:32:34.5203659Z" ], @@ -1155,10 +1155,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true+12": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1178,11 +1178,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:32:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0799585c-af45-4dec-83f9-85777ba8137c" ], "x-ms-client-request-id": [ "5e3fd6b3-517e-43c0-b6de-4966aaed76a9" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:33:36.9129481Z" ], @@ -1196,10 +1196,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true+13": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1219,11 +1219,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:33:07 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "fe62a795-806d-4bdc-bca1-7bc95f6d270f" ], "x-ms-client-request-id": [ "5e3fd6b3-517e-43c0-b6de-4966aaed76a9" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:34:07.1688886Z" ], @@ -1237,10 +1237,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true+14": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1260,11 +1260,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 18:33:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0213d98f-73fe-47c3-bc2f-f34254518c09" ], "x-ms-client-request-id": [ "5e3fd6b3-517e-43c0-b6de-4966aaed76a9" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/4c65040e-08dc-412f-9dd3-ce1634cc74b0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T18:34:37.4245443Z" ], @@ -1278,10 +1278,10 @@ "isContentBase64": false } }, - "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01+15": { + "Deploy-AzDevCenterUserEnvironment+[NoContext]+ReplaceViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Tests.ps1 index 2a70a2f5360f..5843d462372b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Deploy-AzDevCenterUserEnvironment.Tests.ps1 @@ -25,7 +25,7 @@ Describe 'Deploy-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = Deploy-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -Name "envtest2" -ProjectName $env.projectName -CatalogName $env.catalogName -EnvironmentDefinitionName $env.sandbox -EnvironmentType $env.environmentTypeName + $environment = Deploy-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -Name "envtest2" -ProjectName $env.projectName -CatalogName $env.catalogName -EnvironmentDefinitionName $env.sandbox -EnvironmentType $env.environmentTypeName $environment.CatalogName | Should -Be $env.catalogName $environment.DefinitionName | Should -Be $env.sandbox $environment.Name | Should -Be "envtest2" @@ -48,7 +48,7 @@ Describe 'Deploy-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = Deploy-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -InputObject $envInput2 -CatalogName $env.catalogName -EnvironmentDefinitionName $env.functionApp -EnvironmentType $env.environmentTypeName -Parameter $functionAppParameters + $environment = Deploy-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -InputObject $envInput2 -CatalogName $env.catalogName -EnvironmentDefinitionName $env.functionApp -EnvironmentType $env.environmentTypeName -Parameter $functionAppParameters $environment.CatalogName | Should -Be $env.catalogName $environment.DefinitionName | Should -Be $env.functionApp $environment.Name | Should -Be "envtest8" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Recording.json index 69f2dca232f7..9eb1c7db91f0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserCatalog+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-04-01+1": { + "Get-AzDevCenterUserCatalog+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserCatalog+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-04-01+2": { + "Get-AzDevCenterUserCatalog+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserCatalog+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01+1": { + "Get-AzDevCenterUserCatalog+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserCatalog+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01+2": { + "Get-AzDevCenterUserCatalog+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserCatalog+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01+1": { + "Get-AzDevCenterUserCatalog+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserCatalog+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01+2": { + "Get-AzDevCenterUserCatalog+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Tests.ps1 index e0feda055199..b55248c91ac2 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserCatalog.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-AzDevCenterUserCatalog' { $listOfCatalogs.Count | Should -Be 1 if ($Record -or $Live) { - $listOfCatalogs = Get-AzDevCenterUserCatalog -DevCenter $env.devCenterName -ProjectName $env.projectName + $listOfCatalogs = Get-AzDevCenterUserCatalog -DevCenterName $env.devCenterName -ProjectName $env.projectName $listOfCatalogs.Count | Should -Be 1 } @@ -27,22 +27,22 @@ Describe 'Get-AzDevCenterUserCatalog' { It 'Get' { $catalog = Get-AzDevCenterUserCatalog -Endpoint $env.endpoint -ProjectName $env.projectName -CatalogName $env.catalogName - $catalog | Should -Be $env.catalogName + $catalog.Name | Should -Be $env.catalogName if ($Record -or $Live) { - $catalog = Get-AzDevCenterUserCatalog -DevCenter $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName - $catalog | Should -Be $env.catalogName + $catalog = Get-AzDevCenterUserCatalog -DevCenterName $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName + $catalog.Name | Should -Be $env.catalogName } } It 'GetViaIdentity' { $catalogInput = @{"CatalogName" = $env.catalogName; "ProjectName" = $env.projectName } $catalog = Get-AzDevCenterUserCatalog -Endpoint $env.endpoint -InputObject $catalogInput - $catalog | Should -Be $env.catalogName + $catalog.Name | Should -Be $env.catalogName if ($Record -or $Live) { - $catalog = Get-AzDevCenterUserCatalog -DevCenter $env.devCenterName -InputObject $catalogInput - $catalog | Should -Be $env.catalogName + $catalog = Get-AzDevCenterUserCatalog -DevCenterName $env.devCenterName -InputObject $catalogInput + $catalog.Name | Should -Be $env.catalogName } } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Recording.json index 9da0c750f713..1d516f33a8e6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes?api-version=2023-04-01+3": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-04-01+4": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/me/devboxes?api-version=2023-04-01+5": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/me/devboxes?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/me/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/users/me/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProjt69b30/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-04-01+6": { + "Get-AzDevCenterUserDevBox+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProjt69b30/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProjt69b30/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProjt69b30/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -227,10 +227,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/k507fd?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBox+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/k507fd?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -265,10 +265,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBox+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -303,10 +303,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBox+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -341,10 +341,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBox+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBox+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Tests.ps1 index 104f0ef0c50e..baa76af0a244 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBox.Tests.ps1 @@ -25,13 +25,13 @@ Describe 'Get-AzDevCenterUserDevBox' { $listOfDevBoxes.Count | Should -BeGreaterOrEqual 1 if ($Record -or $Live) { - $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenter $env.devCenterName + $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenterName $env.devCenterName $listOfDevBoxes.Count | Should -BeGreaterOrEqual 2 - $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenter $env.devCenterName -UserId "me" + $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -UserId "me" $listOfDevBoxes.Count | Should -BeGreaterOrEqual 2 - $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenter $env.devCenterName -ProjectName $env.projectName2 -UserId $env.userObjectId + $listOfDevBoxes = Get-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -ProjectName $env.projectName2 -UserId $env.userObjectId $listOfDevBoxes.Count | Should -Be 1 } @@ -60,7 +60,7 @@ Describe 'Get-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $devBox = Get-AzDevCenterUserDevBox -DevCenter $env.devCenterName -ProjectName $env.projectName -UserId "me" -Name $env.devboxName + $devBox = Get-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -ProjectName $env.projectName -UserId "me" -Name $env.devboxName $devBox.Name | Should -Be $env.devboxName $devBox.User | Should -Be $env.userObjectId @@ -108,7 +108,7 @@ Describe 'Get-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $devBox = Get-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput + $devBox = Get-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput $devBox.Name | Should -Be $env.devboxName $devBox.User | Should -Be $env.userObjectId diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Recording.json index 9ca5709d16e8..4185ecac352b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserDevBoxAction+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxAction+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxAction+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxAction+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxAction+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxAction+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBoxAction+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Tests.ps1 index bd14ec001480..95699742aa75 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxAction.Tests.ps1 @@ -19,20 +19,20 @@ Describe 'Get-AzDevCenterUserDevBoxAction' { $listOfActions.Count | Should -BeGreaterOrEqual 2 if ($Record -or $Live) { - $listOfActions = Get-AzDevCenterUserDevBoxAction -DevCenter $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName + $listOfActions = Get-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName $listOfActions.Count | Should -BeGreaterOrEqual 2 } } It 'Get' { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName -ProjectName $env.projectName -Name "schedule-default" $action.Name | Should -Be "schedule-default" $action.ActionType | Should -Be "Stop" if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -DevCenter $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName -Name "schedule-default" $action.Name | Should -Be "schedule-default" $action.ActionType | Should -Be "Stop" @@ -49,7 +49,7 @@ Describe 'Get-AzDevCenterUserDevBoxAction' { $action.ActionType | Should -Be "Stop" if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -DevCenter $env.devCenterName -InputObject $devBoxInput + $action = Get-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -InputObject $devBoxInput $action.Name | Should -Be "schedule-default" $action.ActionType | Should -Be "Stop" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Recording.json new file mode 100644 index 000000000000..a21c483ce4ac --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Recording.json @@ -0,0 +1,154 @@ +{ + "Get-AzDevCenterUserDevBoxOperation+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserDevBoxOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserDevBoxOperation_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:39 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "a8b224c9-5fd6-45b6-8396-cdac122f9545" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "1141" ] + }, + "Content": "{\n \"value\": [\n {\n \"result\": {\n \"repairOutcome\": \"NoIssuesDetected\"\n },\n \"kind\": \"Repair\",\n \"operationId\": \"d0954a94-3550-4919-bcbe-1c94ed79e0cd\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-09-07T00:48:31.9293316+00:00\",\n \"endTime\": \"2023-09-07T00:54:06.5248103+00:00\"\n },\n {\n \"result\": {\n \"repairOutcome\": \"NoIssuesDetected\"\n },\n \"kind\": \"Repair\",\n \"operationId\": \"beff5efc-c7f3-436c-b73e-0606d2026056\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-09-13T03:03:10.2738217+00:00\",\n \"endTime\": \"2023-09-13T03:08:27.2184158+00:00\"\n },\n {\n \"result\": {\n \"repairOutcome\": \"NoIssuesDetected\"\n },\n \"kind\": \"Repair\",\n \"operationId\": \"4500d7ed-03ad-4e65-aeb7-99162e526780\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-09-13T03:12:37.4470924+00:00\",\n \"endTime\": \"2023-09-13T03:17:27.7096542+00:00\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserDevBoxOperation+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/actions?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "56538d70-e8b3-4338-9337-3407086e6ad9" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserDevBoxAction" ], + "FullCommandName": [ "Get-AzDevCenterUserDevBoxAction_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:44 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "07b63771-1c19-4386-b078-438d7c2b2dfb" ], + "x-ms-client-request-id": [ "56538d70-e8b3-4338-9337-3407086e6ad9" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:44.8968439Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "663" ] + }, + "Content": "{\n \"value\": [\n {\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/k507fd/actions/schedule-default\",\n \"name\": \"schedule-default\",\n \"actionType\": \"Stop\",\n \"sourceId\": \"/projects/pwshProja68gny/pools/pool/schedules/default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool/schedules/default\",\n \"sourceType\": \"Schedule\",\n \"next\": {\n \"scheduledTime\": \"2023-09-14T02:00:00.000000Z\"\n }\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserDevBoxOperation+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations/d0954a94-3550-4919-bcbe-1c94ed79e0cd?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations/d0954a94-3550-4919-bcbe-1c94ed79e0cd?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserDevBoxOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserDevBoxOperation_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:39 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "a8b224c9-5fd6-45b6-8396-cdac122f9545" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "1141" ] + }, + "Content": "{\n \"result\": {\n \"repairOutcome\": \"NoIssuesDetected\"\n },\n \"kind\": \"Repair\",\n \"operationId\": \"d0954a94-3550-4919-bcbe-1c94ed79e0cd\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-09-07T00:48:31.9293316+00:00\",\n \"endTime\": \"2023-09-07T00:54:06.5248103+00:00\"\n }", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserDevBoxOperation+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations/d0954a94-3550-4919-bcbe-1c94ed79e0cd?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/operations/d0954a94-3550-4919-bcbe-1c94ed79e0cd?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserDevBoxOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserDevBoxOperation_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:39 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "a8b224c9-5fd6-45b6-8396-cdac122f9545" ], + "x-ms-client-request-id": [ "06213ff3-33bf-4a1f-8b79-53f93cb42de1" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "1141" ] + }, + "Content": "{\n \"result\": {\n \"repairOutcome\": \"NoIssuesDetected\"\n },\n \"kind\": \"Repair\",\n \"operationId\": \"d0954a94-3550-4919-bcbe-1c94ed79e0cd\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-09-07T00:48:31.9293316+00:00\",\n \"endTime\": \"2023-09-07T00:54:06.5248103+00:00\"\n }", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Tests.ps1 new file mode 100644 index 000000000000..939ee4f6fa4e --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxOperation.Tests.ps1 @@ -0,0 +1,42 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserDevBoxOperation')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterUserDevBoxOperation.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 'Get-AzDevCenterUserDevBoxOperation' { + It 'List' { + $listOfOperations = Get-AzDevCenterUserDevBoxOperation -Endpoint $env.endpoint -ProjectName $env.projectName -DevBoxName $env.devboxName + $listOfOperations.Count | Should -BeGreaterOrEqual 1 + + if ($Record -or $Live) { + $listOfOperations = Get-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName + $listOfOperations.Count | Should -BeGreaterOrEqual 1 + } + + } + + It 'Get' { + $operation = Get-AzDevCenterUserDevBoxOperation -Endpoint $env.endpoint -ProjectName $env.projectName -DevBoxName $env.devboxName -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd" + $operation.Kind | Should -Be "Repair" + $operation.ResultRepairOutcome | Should -Be "NoIssuesDetected" + $operation.Status | Should -Be "Succeeded" + } + + It 'GetViaIdentity' { + $devBoxInput = @{"DevBoxName" = $env.devBoxName; "UserId" = "me"; "ProjectName" = $env.projectName; "OperationId" = "d0954a94-3550-4919-bcbe-1c94ed79e0cd" } + $operation = Get-AzDevCenterUserDevBoxOperation -Endpoint $env.endpoint -InputObject $devBoxInput + $operation.Kind | Should -Be "Repair" + $operation.ResultRepairOutcome | Should -Be "NoIssuesDetected" + $operation.Status | Should -Be "Succeeded" + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Recording.json index 0d077ee593c5..bbfd8edcd221 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01+1": { + "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01+2": { + "Get-AzDevCenterUserDevBoxRemoteConnection+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd/remoteConnection?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Tests.ps1 index 4062646a729d..13d89db4506a 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserDevBoxRemoteConnection.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Get-AzDevCenterUserDevBoxRemoteConnection' { $connection.WebUrl | Should -Not -BeNullOrEmpty if ($Record -or $Live) { - $connection = Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName + $connection = Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName $env.devCenterName -DevBoxName $env.devboxName -ProjectName $env.projectName $connection.RdpConnectionUrl | Should -Not -BeNullOrEmpty $connection.WebUrl | Should -Not -BeNullOrEmpty } @@ -36,7 +36,7 @@ Describe 'Get-AzDevCenterUserDevBoxRemoteConnection' { $connection.WebUrl | Should -Not -BeNullOrEmpty if ($Record -or $Live) { - $connection = Get-AzDevCenterUserDevBoxRemoteConnection -DevCenter $env.devCenterName -InputObject $devBoxInput + $connection = Get-AzDevCenterUserDevBoxRemoteConnection -DevCenterName $env.devCenterName -InputObject $devBoxInput $connection.RdpConnectionUrl | Should -Not -BeNullOrEmpty $connection.WebUrl | Should -Not -BeNullOrEmpty } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Recording.json index a5c40c710c09..04be48ff0f41 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserEnvironment+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironment+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironment+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environments?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironment+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kecfh8?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironment+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kecfh8?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kecfh8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kecfh8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironment+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironment+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -227,10 +227,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironment+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -265,10 +265,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironment+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironment+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/smv3q9?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Tests.ps1 index e1f7715338ce..cad00e951335 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironment.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Get-AzDevCenterUserEnvironment' { $listOfEnvs.Count | Should -BeGreaterOrEqual 2 if ($Record -or $Live) { - $listOfEnvs = Get-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -ProjectName $env.projectName + $listOfEnvs = Get-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -ProjectName $env.projectName $listOfEnvs.Count | Should -BeGreaterOrEqual 2 } } @@ -32,7 +32,7 @@ Describe 'Get-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = Get-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -ProjectName $env.projectName -UserId "me" -Name $env.envName2 + $environment = Get-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -ProjectName $env.projectName -UserId "me" -Name $env.envName2 $environment.Parameter.Keys[0] | Should -Be "name" $environment.Parameter.Values[0] | Should -Be $env.functionAppName1 $environment.CatalogName | Should -Be $env.catalogName @@ -48,7 +48,7 @@ Describe 'Get-AzDevCenterUserEnvironment' { $listOfEnvs.Count | Should -BeGreaterOrEqual 2 if ($Record -or $Live) { - $listOfEnvs = Get-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -ProjectName $env.projectName -UserId "me" + $listOfEnvs = Get-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -ProjectName $env.projectName -UserId "me" $listOfEnvs.Count | Should -BeGreaterOrEqual 2 } @@ -65,7 +65,7 @@ Describe 'Get-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = Get-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -InputObject $envInput + $environment = Get-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -InputObject $envInput $environment.CatalogName | Should -Be $env.catalogName $environment.DefinitionName | Should -Be $env.sandbox $environment.Name | Should -Be $env.envName diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Recording.json new file mode 100644 index 000000000000..0385111944c8 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Recording.json @@ -0,0 +1,125 @@ +{ + "Get-AzDevCenterUserEnvironmentAction+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "da4ca2e0-3415-452f-9603-a8897d929041" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:44 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "d427c0cb-6cca-4fdc-861d-572eaf2dd441" ], + "x-ms-client-request-id": [ "da4ca2e0-3415-452f-9603-a8897d929041" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:44.7743353Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "520" ] + }, + "Content": "{\n \"value\": [\n {\n \"name\": \"Delete\",\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh/environmentactions/Delete\",\n \"actionType\": \"Delete\",\n \"next\": {\n \"scheduledTime\": \"2023-12-01T07:35:00.000000Z\"\n },\n \"lastModifiedBy\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"lastModifiedAt\": \"2023-11-13T04:39:13.5195132+00:00\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserEnvironmentAction+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "c3a4040d-80d7-47e8-a5d0-4ee2abe830b5" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:45 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "0083cea8-36c0-4e6b-b6fe-2f486f475727" ], + "x-ms-client-request-id": [ "c3a4040d-80d7-47e8-a5d0-4ee2abe830b5" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:45.2819510Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "459" ] + }, + "Content": "{\n \"name\": \"Delete\",\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh/environmentactions/Delete\",\n \"actionType\": \"Delete\",\n \"next\": {\n \"scheduledTime\": \"2023-12-01T07:35:00.000000Z\"\n },\n \"lastModifiedBy\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"lastModifiedAt\": \"2023-11-13T04:39:13.5195132+00:00\"\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserEnvironmentAction+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7219ed12-ea78-41fd-b26b-fa12b735ef4b" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:46 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "16bcdf5d-0097-4454-9d08-abcecf767401" ], + "x-ms-client-request-id": [ "7219ed12-ea78-41fd-b26b-fa12b735ef4b" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:45.7932060Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "459" ] + }, + "Content": "{\n \"name\": \"Delete\",\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh/environmentactions/Delete\",\n \"actionType\": \"Delete\",\n \"next\": {\n \"scheduledTime\": \"2023-12-01T07:35:00.000000Z\"\n },\n \"lastModifiedBy\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"lastModifiedAt\": \"2023-11-13T04:39:13.5195132+00:00\"\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Tests.ps1 new file mode 100644 index 000000000000..e980be73b520 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentAction.Tests.ps1 @@ -0,0 +1,39 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserEnvironmentAction')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterUserEnvironmentAction.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 'Get-AzDevCenterUserEnvironmentAction' { + It 'List' { + $listOfActions = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 + $listOfActions.Count | Should -BeGreaterOrEqual 1 + } + + It 'Get' { + $action = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -Name "Delete" + + $action.Name | Should -Be "Delete" + $action.ActionType | Should -Be "Delete" + } + + It 'GetViaIdentity' { + $environmentInput = @{"EnvironmentName" = $env.envName10; "UserId" = "me"; "ProjectName" = $env.projectName10; "ActionName" = "Delete" } + + $action = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -InputObject $environmentInput + + $action.Name | Should -Be "Delete" + $action.ActionType | Should -Be "Delete" + } + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Recording.json index 9deba407ca26..4a5be92d86c0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentDefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+List1+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/FunctionApp?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/FunctionApp?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/FunctionApp?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/FunctionApp?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -227,10 +227,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -265,10 +265,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironmentDefinition+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/catalogs/x3vu7b/environmentDefinitions/Sandbox?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Tests.ps1 index a02240af6996..fac19001c0ce 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentDefinition.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-AzDevCenterUserEnvironmentDefinition' { $listOfEnvDefs.Count | Should -Be 3 if ($Record -or $Live) { - $listOfEnvDefs = Get-AzDevCenterUserEnvironmentDefinition -DevCenter $env.devCenterName -ProjectName $env.projectName + $listOfEnvDefs = Get-AzDevCenterUserEnvironmentDefinition -DevCenterName $env.devCenterName -ProjectName $env.projectName $listOfEnvDefs.Count | Should -Be 3 } @@ -31,7 +31,7 @@ Describe 'Get-AzDevCenterUserEnvironmentDefinition' { $listOfEnvDefs.Count | Should -Be 3 if ($Record -or $Live) { - $listOfEnvDefs = Get-AzDevCenterUserEnvironmentDefinition -DevCenter $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName + $listOfEnvDefs = Get-AzDevCenterUserEnvironmentDefinition -DevCenterName $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName $listOfEnvDefs.Count | Should -Be 3 } } @@ -44,7 +44,7 @@ Describe 'Get-AzDevCenterUserEnvironmentDefinition' { if ($Record -or $Live) { - $envDef = Get-AzDevCenterUserEnvironmentDefinition -DevCenter $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName -DefinitionName $env.functionApp + $envDef = Get-AzDevCenterUserEnvironmentDefinition -DevCenterName $env.devCenterName -ProjectName $env.projectName -CatalogName $env.catalogName -DefinitionName $env.functionApp $envDef.CatalogName | Should -Be $env.catalogName $envDef.Name | Should -Be $env.functionApp $envDef.TemplatePath | Should -Be "Environments/FunctionApp/azuredeploy.json" @@ -62,7 +62,7 @@ Describe 'Get-AzDevCenterUserEnvironmentDefinition' { $envDef.TemplatePath | Should -Be "Environments/Sandbox/azuredeploy.json" if ($Record -or $Live) { - $envDef = Get-AzDevCenterUserEnvironmentDefinition -DevCenter $env.devCenterName -InputObject $envDefInput + $envDef = Get-AzDevCenterUserEnvironmentDefinition -DevCenterName $env.devCenterName -InputObject $envDefInput $envDef.CatalogName | Should -Be $env.catalogName $envDef.Name | Should -Be $env.sandbox $envDef.TemplatePath | Should -Be "Environments/Sandbox/azuredeploy.json" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Recording.json new file mode 100644 index 000000000000..ed5b56ee1fce --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Recording.json @@ -0,0 +1,43 @@ +{ + "Get-AzDevCenterUserEnvironmentLog+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68/logs?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68/logs?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "44eaebda-fa80-4bd8-a2a8-35e8f32d3fac" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentLog" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentLog_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:47 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "abac72df-0833-4009-9c0b-f012d83a4815" ], + "x-ms-client-request-id": [ "44eaebda-fa80-4bd8-a2a8-35e8f32d3fac" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:44.7743353Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "text/plain" ], + "Content-Length": [ "1110" ] + }, + "Content": "{\"id\":\"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshproj3stxlh-amlim-pwsh/providers/Microsoft.Resources/deployments/pwshproj3stxlh.amlim-pwsh.133443186791697888\",\"name\":\"pwshproj3stxlh.amlim-pwsh.133443186791697888\",\"type\":\"Microsoft.Resources/deployments\",\"location\":null,\"properties\":{\"provisioningState\":\"Succeeded\",\"correlationId\":\"ba132096-ecce-47fb-a3cd-d1a82d376c42\",\"timestamp\":\"2023-11-13T03:11:22.7515479Z\",\"duration\":\"PT1.1408739S\",\"outputs\":null,\"providers\":[],\"dependencies\":[],\"templateLink\":{\"uri\":\"https://pf27qwjresc6gqyl.blob.core.windows.net/templates/pwshproj3stxlh.amlim-pwsh.133443186791697888/Environments/Sandbox/azuredeploy.json\",\"id\":null,\"relativePath\":null,\"contentVersion\":\"1.0.0.0\",\"queryString\":null},\"parameters\":null,\"parametersLink\":null,\"mode\":\"Incremental\",\"debugSetting\":null,\"onErrorDeployment\":null,\"templateHash\":\"17750672647523699609\",\"outputResources\":[],\"validatedResources\":null,\"error\":null},\"tags\":{\"AdeEnvironmentName\":\"amlim-pwsh\",\"AdeProjectName\":\"pwshproj3stxlh\",\"AdeDevCenterName\":\"pwshtestdevcenter\",\"AdeEnvironmentTypeName\":\"dev\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Tests.ps1 new file mode 100644 index 000000000000..b14c426f21f5 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentLog.Tests.ps1 @@ -0,0 +1,23 @@ +if (($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserEnvironmentLog')) { + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterUserEnvironmentLog.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 'Get-AzDevCenterUserEnvironmentLog' { + It 'Get' { + if ($Record -or $Live) { + Get-AzDevCenterUserEnvironmentLog -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -OperationId "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" -OutFile "C:\Users\amlim\repos\testing.txt" + } + } + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Recording.json new file mode 100644 index 000000000000..a069e014c549 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Recording.json @@ -0,0 +1,125 @@ +{ + "Get-AzDevCenterUserEnvironmentOperation+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "7669c848-bc7c-4d91-b41f-46ba379e46c4" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentOperation_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:47 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "35532056-4b76-4214-ac51-7366b477cac2" ], + "x-ms-client-request-id": [ "7669c848-bc7c-4d91-b41f-46ba379e46c4" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:45.2819510Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "625" ] + }, + "Content": "{\n \"value\": [\n {\n \"kind\": \"Deploy\",\n \"operationId\": \"4d48a4d5-7edc-437d-9bfa-30e9b4328f68\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-11-13T03:08:28.5822052+00:00\",\n \"endTime\": \"2023-11-13T03:12:21.9723838+00:00\"\n },\n {\n \"kind\": \"Deploy\",\n \"operationId\": \"07b3a726-9a08-4161-96ac-8e0db04b4683\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-11-13T04:24:58.1855596+00:00\",\n \"endTime\": \"2023-11-13T04:26:44.5115634+00:00\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserEnvironmentOperation+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "d7b2aaa8-3c39-4e83-89c2-a2461f9588a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentOperation_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:47 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "17171238-a7fc-44bd-bad9-82c55a1b1205" ], + "x-ms-client-request-id": [ "d7b2aaa8-3c39-4e83-89c2-a2461f9588a2" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:45.7932060Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"kind\": \"Deploy\",\n \"operationId\": \"4d48a4d5-7edc-437d-9bfa-30e9b4328f68\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-11-13T03:08:28.5822052+00:00\",\n \"endTime\": \"2023-11-13T03:12:21.9723838+00:00\"\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserEnvironmentOperation+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/operations/4d48a4d5-7edc-437d-9bfa-30e9b4328f68?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "f3072333-def9-4095-a0b9-82fd05b3bc26" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentOperation" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentOperation_GetViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 05:19:48 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "7ef70433-a8f4-4bec-afeb-f31913da900e" ], + "x-ms-client-request-id": [ "f3072333-def9-4095-a0b9-82fd05b3bc26" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "297" ], + "X-Rate-Limit-Reset": [ "2023-11-13T05:20:44.7743353Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"kind\": \"Deploy\",\n \"operationId\": \"4d48a4d5-7edc-437d-9bfa-30e9b4328f68\",\n \"status\": \"Succeeded\",\n \"createdByObjectId\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"startTime\": \"2023-11-13T03:08:28.5822052+00:00\",\n \"endTime\": \"2023-11-13T03:12:21.9723838+00:00\"\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Tests.ps1 new file mode 100644 index 000000000000..89f303fa1ef4 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOperation.Tests.ps1 @@ -0,0 +1,38 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserEnvironmentOperation')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterUserEnvironmentOperation.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 'Get-AzDevCenterUserEnvironmentOperation' { + It 'List' { + $listOfOperations = Get-AzDevCenterUserEnvironmentOperation -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 + $listOfOperations.Count | Should -BeGreaterOrEqual 1 + } + + It 'Get' { + $operation = Get-AzDevCenterUserEnvironmentOperation -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -OperationId "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" + $operation.Kind | Should -Be "Deploy" + $operation.OperationId | Should -Be "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" + $operation.Status | Should -Be "Succeeded" + + } + + It 'GetViaIdentity' { + $environmentInput = @{"EnvironmentName" = $env.envName10; "UserId" = "me"; "ProjectName" = $env.projectName10; "OperationId" = "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" } + $operation = Get-AzDevCenterUserEnvironmentOperation -Endpoint $env.endpoint10 -InputObject $environmentInput + $operation.Kind | Should -Be "Deploy" + $operation.OperationId | Should -Be "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" + $operation.Status | Should -Be "Succeeded" + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOutput.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOutput.Tests.ps1 new file mode 100644 index 000000000000..0dd0a889bc15 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentOutput.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserEnvironmentOutput')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDevCenterUserEnvironmentOutput.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 'Get-AzDevCenterUserEnvironmentOutput' { + It 'Get' -skip { + Get-AzDevCenterUserEnvironmentOutput -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -OperationId "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" + + } + + It 'GetViaIdentity' -skip { + $environmentInput = @{"EnvironmentName" = $env.envName10; "UserId" = "me"; "ProjectName" = $env.projectName10; "OperationId" = "4d48a4d5-7edc-437d-9bfa-30e9b4328f68" } + Get-AzDevCenterUserDevBoxOperation -Endpoint $env.endpoint10 -InputObject $environmentInput + } + + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Recording.json index a664044d6c5a..25aa3cfd0a4b 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserEnvironmentType+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-04-01+1": { + "Get-AzDevCenterUserEnvironmentType+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserEnvironmentType+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-04-01+2": { + "Get-AzDevCenterUserEnvironmentType+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/environmentTypes?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Tests.ps1 index cf2dd0bbc708..fc30c1b4331c 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserEnvironmentType.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-AzDevCenterUserEnvironmentType' { $listOfEnvTypes.Count | Should -Be 1 if ($Record -or $Live) { - $listOfEnvTypes = Get-AzDevCenterUserEnvironmentType -DevCenter $env.devCenterName -ProjectName $env.projectName + $listOfEnvTypes = Get-AzDevCenterUserEnvironmentType -DevCenterName $env.devCenterName -ProjectName $env.projectName $listOfEnvTypes.Count | Should -Be 1 } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Recording.json index b2166ddb7de8..017673fb0405 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserPool+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-04-01+1": { + "Get-AzDevCenterUserPool+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserPool+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-04-01+2": { + "Get-AzDevCenterUserPool+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserPool+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01+1": { + "Get-AzDevCenterUserPool+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserPool+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01+2": { + "Get-AzDevCenterUserPool+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserPool+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01+1": { + "Get-AzDevCenterUserPool+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserPool+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01+2": { + "Get-AzDevCenterUserPool+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Tests.ps1 index 02063e522888..5765ef9b22ef 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserPool.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-AzDevCenterUserPool' { $listOfPools.Count | Should -Be 1 if ($Record -or $Live) { - $listOfPools = Get-AzDevCenterUserPool -DevCenter $env.devCenterName -ProjectName $env.projectName + $listOfPools = Get-AzDevCenterUserPool -DevCenterName $env.devCenterName -ProjectName $env.projectName $listOfPools.Count | Should -Be 1 } @@ -43,7 +43,7 @@ Describe 'Get-AzDevCenterUserPool' { $pool.StopOnDisconnectStatus | Should -Be "Enabled" if ($Record -or $Live) { - $pool = Get-AzDevCenterUserPool -DevCenter $env.devCenterName -ProjectName $env.projectName -PoolName $env.poolName + $pool = Get-AzDevCenterUserPool -DevCenterName $env.devCenterName -ProjectName $env.projectName -PoolName $env.poolName $pool.HardwareProfileMemoryGb | Should -Be 32 $pool.HardwareProfileSkuName | Should -Be $env.skuName $pool.HardwareProfileVCpUs | Should -Be 8 @@ -81,7 +81,7 @@ Describe 'Get-AzDevCenterUserPool' { $pool.StopOnDisconnectStatus | Should -Be "Enabled" if ($Record -or $Live) { - $pool = Get-AzDevCenterUserPool -DevCenter $env.devCenterName -InputObject $poolInput + $pool = Get-AzDevCenterUserPool -DevCenterName $env.devCenterName -InputObject $poolInput $pool.HardwareProfileMemoryGb | Should -Be 32 $pool.HardwareProfileSkuName | Should -Be $env.skuName $pool.HardwareProfileVCpUs | Should -Be 8 diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Recording.json index 29d01985e8b9..428050928d29 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzDevCenterUserProject+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-04-01+1": { + "Get-AzDevCenterUserProject+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserProject+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-04-01+2": { + "Get-AzDevCenterUserProject+[NoContext]+List+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserProject+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01+1": { + "Get-AzDevCenterUserProject+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserProject+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01+2": { + "Get-AzDevCenterUserProject+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserProject+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01+1": { + "Get-AzDevCenterUserProject+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Get-AzDevCenterUserProject+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01+2": { + "Get-AzDevCenterUserProject+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Tests.ps1 index 46317e382e5b..4202ced02420 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserProject.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-AzDevCenterUserProject' { $listOfProjects.Count | Should -Be 2 if ($Record -or $Live) { - $listOfProjects = Get-AzDevCenterUserProject -DevCenter $env.devCenterName + $listOfProjects = Get-AzDevCenterUserProject -DevCenterName $env.devCenterName $listOfProjects.Count | Should -Be 2 } @@ -31,7 +31,7 @@ Describe 'Get-AzDevCenterUserProject' { $project.MaxDevBoxesPerUser | Should -Be 20 if ($Record -or $Live) { - $project = Get-AzDevCenterUserProject -DevCenter $env.devCenterName -ProjectName $env.projectName + $project = Get-AzDevCenterUserProject -DevCenterName $env.devCenterName -ProjectName $env.projectName $project.Name | Should -Be $env.projectName $project.MaxDevBoxesPerUser | Should -Be 20 } @@ -44,7 +44,7 @@ Describe 'Get-AzDevCenterUserProject' { $project.MaxDevBoxesPerUser | Should -Be 20 if ($Record -or $Live) { - $project = Get-AzDevCenterUserProject -DevCenter $env.devCenterName -InputObject $poolInput + $project = Get-AzDevCenterUserProject -DevCenterName $env.devCenterName -InputObject $poolInput $project.Name | Should -Be $env.projectName $project.MaxDevBoxesPerUser | Should -Be 20 } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Recording.json index cb1d165d95e9..7f43a61ffac9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Recording.json @@ -1,13 +1,165 @@ { - "Get-AzDevCenterUserSchedule+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01+1": { + "Get-AzDevCenterUserSchedule+[NoContext]+ListByProject+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/schedules?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/schedules?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "97" ], - "x-ms-client-request-id": [ "4a7e7298-34f7-4971-b5ba-e473c3b5816d" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "cdc73ea1-a0df-4b5d-8016-5435460de851" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], + "FullCommandName": [ "Get-AzDevCenterUserSchedule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:45 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "044d1315-d1cf-443f-aaae-3110f1817292" ], + "x-ms-client-request-id": [ "cdc73ea1-a0df-4b5d-8016-5435460de851" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:45.4265144Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "510" ] + }, + "Content": "{\n \"value\": [\n {\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserSchedule+[NoContext]+ListByProject+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/schedules?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/schedules?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "4fc355d7-9e5e-49ac-b21a-3909b61d9d26" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], + "FullCommandName": [ "Get-AzDevCenterUserSchedule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:46 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "3e96a1ec-984f-4e24-bc56-8ba2d755c8e7" ], + "x-ms-client-request-id": [ "4fc355d7-9e5e-49ac-b21a-3909b61d9d26" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "510" ] + }, + "Content": "{\n \"value\": [\n {\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserSchedule+[NoContext]+ListByPool+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "87e972a9-fa3d-4004-85c0-72a57cdd602b" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], + "FullCommandName": [ "Get-AzDevCenterUserSchedule_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:46 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "3a8821c6-3f8d-4ee8-81f2-53c2881d21c1" ], + "x-ms-client-request-id": [ "87e972a9-fa3d-4004-85c0-72a57cdd602b" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:44.8968439Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "510" ] + }, + "Content": "{\n \"value\": [\n {\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserSchedule+[NoContext]+ListByPool+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "eb5ab2ac-ba94-4b46-8eb4-39ba858fffd5" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], + "FullCommandName": [ "Get-AzDevCenterUserSchedule_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:22:47 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "dcf0fae2-1436-496b-96f3-bfd1ce431511" ], + "x-ms-client-request-id": [ "eb5ab2ac-ba94-4b46-8eb4-39ba858fffd5" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:45.4265144Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "510" ] + }, + "Content": "{\n \"value\": [\n {\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n }\n ]\n}", + "isContentBase64": false + } + }, + "Get-AzDevCenterUserSchedule+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "ffdff9c6-740c-447b-abab-5aebff3470c6" ], "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], "FullCommandName": [ "Get-AzDevCenterUserSchedule_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -20,32 +172,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 28 Jul 2023 00:24:44 GMT" ], + "Date": [ "Wed, 13 Sep 2023 03:22:47 GMT" ], "Connection": [ "keep-alive" ], - "x-ms-correlation-request-id": [ "d3514a63-17cb-4b89-9702-0bab9d67c37f" ], - "x-ms-client-request-id": [ "4a7e7298-34f7-4971-b5ba-e473c3b5816d" ], + "x-ms-correlation-request-id": [ "c49a4d7d-c282-41e1-9715-660e200da161" ], + "x-ms-client-request-id": [ "ffdff9c6-740c-447b-abab-5aebff3470c6" ], "X-Rate-Limit-Limit": [ "1m" ], - "X-Rate-Limit-Remaining": [ "295" ], - "X-Rate-Limit-Reset": [ "2023-07-28T00:25:35.7861307Z" ], + "X-Rate-Limit-Remaining": [ "297" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Content-Length": [ "127" ] + "Content-Length": [ "449" ] }, - "Content": "{\n \"name\": \"default\",\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"18:30\",\n \"timeZone\": \"America/Los_Angeles\"\n}", + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n}", "isContentBase64": false } }, - "Get-AzDevCenterUserSchedule+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01+2": { + "Get-AzDevCenterUserSchedule+[NoContext]+Get+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "98" ], - "x-ms-client-request-id": [ "f2912430-d047-4444-9eb3-1c5393e279a9" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0e9e7c11-866c-439c-b3ff-6c73f98e41cc" ], "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], "FullCommandName": [ "Get-AzDevCenterUserSchedule_Get" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -58,32 +210,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 28 Jul 2023 00:24:46 GMT" ], + "Date": [ "Wed, 13 Sep 2023 03:22:48 GMT" ], "Connection": [ "keep-alive" ], - "x-ms-correlation-request-id": [ "b2c50ed7-4710-4f5c-9fe6-6dff52481c2f" ], - "x-ms-client-request-id": [ "f2912430-d047-4444-9eb3-1c5393e279a9" ], + "x-ms-correlation-request-id": [ "fef6c2cb-b5d6-4512-ac82-7730ebf73b91" ], + "x-ms-client-request-id": [ "0e9e7c11-866c-439c-b3ff-6c73f98e41cc" ], "X-Rate-Limit-Limit": [ "1m" ], - "X-Rate-Limit-Remaining": [ "281" ], - "X-Rate-Limit-Reset": [ "2023-07-28T00:25:06.1677347Z" ], + "X-Rate-Limit-Remaining": [ "297" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:44.8968439Z" ], "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Content-Length": [ "127" ] + "Content-Length": [ "449" ] }, - "Content": "{\n \"name\": \"default\",\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"18:30\",\n \"timeZone\": \"America/Los_Angeles\"\n}", + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n}", "isContentBase64": false } }, - "Get-AzDevCenterUserSchedule+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01+1": { + "Get-AzDevCenterUserSchedule+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "99" ], - "x-ms-client-request-id": [ "8c65bdea-66e1-45fe-a8c9-99017cc6cfe8" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2d703eed-b9e1-4ce7-975f-5d510aebb4cb" ], "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], "FullCommandName": [ "Get-AzDevCenterUserSchedule_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -96,32 +248,32 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 28 Jul 2023 00:24:46 GMT" ], + "Date": [ "Wed, 13 Sep 2023 03:22:48 GMT" ], "Connection": [ "keep-alive" ], - "x-ms-correlation-request-id": [ "536fb2cc-7a43-4c20-b80e-73f8f73f8e36" ], - "x-ms-client-request-id": [ "8c65bdea-66e1-45fe-a8c9-99017cc6cfe8" ], + "x-ms-correlation-request-id": [ "2c4f20fd-171a-40bc-acab-f25ff5edc627" ], + "x-ms-client-request-id": [ "2d703eed-b9e1-4ce7-975f-5d510aebb4cb" ], "X-Rate-Limit-Limit": [ "1m" ], - "X-Rate-Limit-Remaining": [ "280" ], - "X-Rate-Limit-Reset": [ "2023-07-28T00:25:05.1191295Z" ], + "X-Rate-Limit-Remaining": [ "297" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:45.4265144Z" ], "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Content-Length": [ "127" ] + "Content-Length": [ "449" ] }, - "Content": "{\n \"name\": \"default\",\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"18:30\",\n \"timeZone\": \"America/Los_Angeles\"\n}", + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n}", "isContentBase64": false } }, - "Get-AzDevCenterUserSchedule+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01+2": { + "Get-AzDevCenterUserSchedule+[NoContext]+GetViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "100" ], - "x-ms-client-request-id": [ "1efc15f8-6dc7-4d37-bb3f-817f3b348c6a" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "1e56fb20-736a-4b04-aef7-0625c9173214" ], "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserSchedule" ], "FullCommandName": [ "Get-AzDevCenterUserSchedule_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], @@ -134,20 +286,20 @@ "Response": { "StatusCode": 200, "Headers": { - "Date": [ "Fri, 28 Jul 2023 00:24:47 GMT" ], - "Connection": [ "close" ], - "x-ms-correlation-request-id": [ "a0eea303-fd32-455e-b7c3-04df846dff1d" ], - "x-ms-client-request-id": [ "1efc15f8-6dc7-4d37-bb3f-817f3b348c6a" ], + "Date": [ "Wed, 13 Sep 2023 03:22:49 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "7f9264e0-c5ce-43c9-a1da-1cc1e1e0039f" ], + "x-ms-client-request-id": [ "1e56fb20-736a-4b04-aef7-0625c9173214" ], "X-Rate-Limit-Limit": [ "1m" ], - "X-Rate-Limit-Remaining": [ "294" ], - "X-Rate-Limit-Reset": [ "2023-07-28T00:25:35.7861307Z" ], + "X-Rate-Limit-Remaining": [ "296" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:23:33.6357941Z" ], "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Content-Length": [ "127" ] + "Content-Length": [ "449" ] }, - "Content": "{\n \"name\": \"default\",\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"18:30\",\n \"timeZone\": \"America/Los_Angeles\"\n}", + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/nzboe1/schedules/default\",\n \"name\": \"default\",\n \"sourceUri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/pools/pool\",\n \"sourceType\": {},\n \"type\": \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"19:00\",\n \"timeZone\": \"America/Los_Angeles\"\n}", "isContentBase64": false } } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Tests.ps1 index ae0c199df992..8f7c69f33f42 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Get-AzDevCenterUserSchedule.Tests.ps1 @@ -14,39 +14,60 @@ if (($null -eq $TestName) -or ($TestName -contains 'Get-AzDevCenterUserSchedule' } Describe 'Get-AzDevCenterUserSchedule' { + It 'ListByProject' { + $listofSchedules = Get-AzDevCenterUserSchedule -Endpoint $env.endpoint -ProjectName $env.projectName + $listofSchedules.Count | Should -Be 1 + + if ($Record -or $Live) { + $listofSchedules = Get-AzDevCenterUserSchedule -DevCenterName $env.devCenterName -ProjectName $env.projectName + $listofSchedules.Count | Should -Be 1 + + } + } + + It 'ListByPool' { + $listofSchedules = Get-AzDevCenterUserSchedule -Endpoint $env.endpoint -PoolName $env.poolName -ProjectName $env.projectName + $listofSchedules.Count | Should -Be 1 + + if ($Record -or $Live) { + $listofSchedules = Get-AzDevCenterUserSchedule -DevCenterName $env.devCenterName -PoolName $env.poolName -ProjectName $env.projectName + $listofSchedules.Count | Should -Be 1 + } + } + It 'Get' { - $schedule = Get-AzDevCenterUserSchedule -Endpoint $env.endpoint -PoolName $env.poolName -ProjectName $env.projectName + $schedule = Get-AzDevCenterUserSchedule -Endpoint $env.endpoint -PoolName $env.poolName -ProjectName $env.projectName -ScheduleName "default" $schedule.Frequency | Should -Be "Daily" $schedule.Name | Should -Be "default" - $schedule.Time | Should -Be "18:30" + $schedule.Time | Should -Be "19:00" $schedule.TimeZone | Should -Be "America/Los_Angeles" $schedule.Type | Should -Be "StopDevBox" if ($Record -or $Live) { - $schedule = Get-AzDevCenterUserSchedule -DevCenter $env.devCenterName -PoolName $env.poolName -ProjectName $env.projectName + $schedule = Get-AzDevCenterUserSchedule -DevCenterName $env.devCenterName -PoolName $env.poolName -ProjectName $env.projectName -ScheduleName "default" $schedule.Frequency | Should -Be "Daily" $schedule.Name | Should -Be "default" - $schedule.Time | Should -Be "18:30" + $schedule.Time | Should -Be "19:00" $schedule.TimeZone | Should -Be "America/Los_Angeles" $schedule.Type | Should -Be "StopDevBox" } } It 'GetViaIdentity' { - $scheduleInput = @{"ProjectName" = $env.projectName; "PoolName" = $env.poolName } + $scheduleInput = @{"ProjectName" = $env.projectName; "PoolName" = $env.poolName; "ScheduleName" = "default" } $schedule = Get-AzDevCenterUserSchedule -Endpoint $env.endpoint -InputObject $scheduleInput $schedule.Frequency | Should -Be "Daily" $schedule.Name | Should -Be "default" - $schedule.Time | Should -Be "18:30" + $schedule.Time | Should -Be "19:00" $schedule.TimeZone | Should -Be "America/Los_Angeles" $schedule.Type | Should -Be "StopDevBox" if ($Record -or $Live) { - $schedule = Get-AzDevCenterUserSchedule -DevCenter $env.devCenterName -InputObject $scheduleInput + $schedule = Get-AzDevCenterUserSchedule -DevCenterName $env.devCenterName -InputObject $scheduleInput $schedule.Frequency | Should -Be "Daily" $schedule.Name | Should -Be "default" - $schedule.Time | Should -Be "18:30" + $schedule.Time | Should -Be "19:00" $schedule.TimeZone | Should -Be "America/Los_Angeles" $schedule.Type | Should -Be "StopDevBox" } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Recording.json index 0a6b337f9f42..6b6c865ef971 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Recording.json @@ -1,8 +1,8 @@ { - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay1+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-04-01\u0026until=2023-07-29T01:50:00.0000000Z+1": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay1+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T01:50:00.0000000Z+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-04-01\u0026until=2023-07-29T01:50:00.0000000Z", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T01:50:00.0000000Z", "Content": null, "isContentBase64": false, "Headers": { @@ -37,10 +37,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-04-01+1": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-04-01\u0026until=2023-07-29T01:55:00.0000000Z+2": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T01:55:00.0000000Z+2": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-04-01\u0026until=2023-07-29T01:55:00.0000000Z", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T01:55:00.0000000Z", "Content": null, "isContentBase64": false, "Headers": { @@ -113,10 +113,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay1ByDevCenter+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-04-01\u0026until=2023-07-29T02:00:00.0000000Z+1": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+Delay1ByDevCenter+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T02:00:00.0000000Z+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-04-01\u0026until=2023-07-29T02:00:00.0000000Z", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T02:00:00.0000000Z", "Content": null, "isContentBase64": false, "Headers": { @@ -151,10 +151,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+DelayByDevCenter+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-04-01+1": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+DelayByDevCenter+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -189,10 +189,10 @@ "isContentBase64": false } }, - "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+DelayByDevCenter+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-04-01\u0026until=2023-07-29T02:05:00.0000000Z+2": { + "Invoke-AzDevCenterUserDelayDevBoxAction+[NoContext]+DelayByDevCenter+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T02:05:00.0000000Z+2": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-04-01\u0026until=2023-07-29T02:05:00.0000000Z", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd/actions/schedule-default:delay?api-version=2023-10-01-preview\u0026until=2023-07-29T02:05:00.0000000Z", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Tests.ps1 index 74d88d2c54cb..9afec084a2a1 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayDevBoxAction.Tests.ps1 @@ -23,27 +23,27 @@ Describe 'Invoke-AzDevCenterUserDelayDevBoxAction' { It 'Delay' { if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -Name "schedule-default" $delayTime = New-TimeSpan -Minutes 5 $newScheduledTime = $action.NextScheduledTime + $delayTime - $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -ActionName "schedule-default" -DelayTime "00:05" + $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -Name "schedule-default" -DelayTime "00:05" $delayAction.NextScheduledTime | Should -Be $newScheduledTime } } It 'Delay1ByDevCenter' { if ($Record -or $Live) { - $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter $env.devCenterName -DevBoxName $env.devboxName3 -ProjectName $env.projectName -DelayTime "00:05" + $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.devboxName3 -ProjectName $env.projectName -DelayTime "00:05" $delayAction.Count | Should -Be 2 } } It 'DelayByDevCenter' { if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.devboxName3 -ProjectName $env.projectName -Name "schedule-default" $delayTime = New-TimeSpan -Minutes 5 $newScheduledTime = $action.NextScheduledTime + $delayTime - $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -DevCenter $env.devCenterName -DevBoxName $env.devboxName3 -ProjectName $env.projectName -ActionName "schedule-default" -DelayTime "00:05" + $delayAction = Invoke-AzDevCenterUserDelayDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.devboxName3 -ProjectName $env.projectName -Name "schedule-default" -DelayTime "00:05" $delayAction.NextScheduledTime | Should -Be $newScheduledTime } } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Recording.json new file mode 100644 index 000000000000..336bbc33eac7 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Recording.json @@ -0,0 +1,84 @@ +{ + "Invoke-AzDevCenterUserDelayEnvironmentAction+[NoContext]+Delay+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "0189a73e-9dbf-4948-87d7-3bdf78a7967f" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.17", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Tue, 28 Nov 2023 07:19:09 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "bdb0461f-4e1e-40f9-8bb3-c449ce0468c0" ], + "x-ms-client-request-id": [ "0189a73e-9dbf-4948-87d7-3bdf78a7967f" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-11-28T07:19:57.9227999Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "460" ] + }, + "Content": "{\n \"name\": \"Delete\",\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh2/environmentactions/Delete\",\n \"actionType\": \"Delete\",\n \"next\": {\n \"scheduledTime\": \"2023-12-02T11:45:00.000000Z\"\n },\n \"lastModifiedBy\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"lastModifiedAt\": \"2023-11-28T07:18:57.9471829+00:00\"\n}", + "isContentBase64": false + } + }, + "Invoke-AzDevCenterUserDelayEnvironmentAction+[NoContext]+Delay+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete:delay?api-version=2023-10-01-preview\u0026until=2023-12-02T11:50:00.0000000Z+2": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete:delay?api-version=2023-10-01-preview\u0026until=2023-12-02T11:50:00.0000000Z", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "6bdeeb9d-ef58-45b9-b5b8-6bb601f1338a" ], + "CommandName": [ "Az.DevCenterdata.internal\\Invoke-AzDevCenterUserDelayEnvironmentAction" ], + "FullCommandName": [ "Invoke-AzDevCenterUserDelayEnvironmentAction_Delay" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.17", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Tue, 28 Nov 2023 07:19:10 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "632c3aad-b324-4494-b955-1bedb7fdfb01" ], + "x-ms-client-request-id": [ "6bdeeb9d-ef58-45b9-b5b8-6bb601f1338a" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-11-28T07:20:09.8305280Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "460" ] + }, + "Content": "{\n \"name\": \"Delete\",\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh2/environmentactions/Delete\",\n \"actionType\": \"Delete\",\n \"next\": {\n \"scheduledTime\": \"2023-12-02T11:50:00.000000Z\"\n },\n \"lastModifiedBy\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"lastModifiedAt\": \"2023-11-28T07:19:10.1235094+00:00\"\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Tests.ps1 new file mode 100644 index 000000000000..84703bab889f --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Invoke-AzDevCenterUserDelayEnvironmentAction.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzDevCenterUserDelayEnvironmentAction')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzDevCenterUserDelayEnvironmentAction.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 'Invoke-AzDevCenterUserDelayEnvironmentAction' { + It 'Delay' { + if ($Record -or $Live) { + $action = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName11 -ProjectName $env.projectName10 -Name "Delete" + $delayTime = New-TimeSpan -Minutes 5 + $newScheduledTime = $action.NextScheduledTime + $delayTime + $delayAction = Invoke-AzDevCenterUserDelayEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName11 -ProjectName $env.projectName10 -Name "Delete" -DelayTime "00:05" + $delayAction.NextScheduledTime | Should -Be $newScheduledTime + } + } + + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Recording.json index 574f9265bb73..a8b4c8c13424 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-04-01+1": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-10-01-preview", "Content": "{\r\n \"poolName\": \"nzboe1\"\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:20:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "834863fe-2764-4952-8cb0-37b12610b407" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:20:34.3267446Z" ], @@ -34,10 +34,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+2": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -57,11 +57,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:20:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6963d386-2394-4f4a-aaab-0d0a1aee0a4e" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:21:40.1937059Z" ], @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+3": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -98,11 +98,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:21:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "67419c7b-96bb-42c9-88e0-988991fb133c" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:22:10.4603544Z" ], @@ -116,10 +116,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+4": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -139,11 +139,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:21:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a3ef88ef-7563-4a1f-8d8f-9cfedbb2735a" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:22:07.6302989Z" ], @@ -157,10 +157,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+5": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -180,11 +180,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:22:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6de0c7ef-6370-4e80-abd0-547b1f678ca3" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:23:08.4274144Z" ], @@ -198,10 +198,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+6": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -221,11 +221,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:22:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8b85c948-3113-43c6-bf11-0d55e4ad6e79" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:23:41.2889963Z" ], @@ -239,10 +239,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+7": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -262,11 +262,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:23:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "970caa2b-8d9b-4aee-92bb-d0de76006c98" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:24:11.5707047Z" ], @@ -280,10 +280,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+8": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -303,11 +303,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:23:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1aeba887-9895-45f0-b411-978d93b9c6e4" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:24:41.7957448Z" ], @@ -321,10 +321,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+9": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -344,11 +344,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:24:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "56c0dac1-94ba-45c9-a042-1a2816255dd8" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:25:12.0018110Z" ], @@ -362,10 +362,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+10": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -385,11 +385,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:24:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cfc327e8-642f-439f-88c6-c72462f95ff9" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:25:42.2643926Z" ], @@ -403,10 +403,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+11": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -426,11 +426,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:25:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "40128485-fb0f-4c5a-bec8-a2b6ab1215ba" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:26:12.5712613Z" ], @@ -444,10 +444,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+12": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -467,11 +467,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:25:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "aac820df-c481-4566-b5a8-ba506accd12f" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:26:36.5260218Z" ], @@ -485,10 +485,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+13": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -508,11 +508,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:26:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f59187b3-644a-4496-b81e-756e0e4c77ae" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:27:13.4733540Z" ], @@ -526,10 +526,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+14": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -549,11 +549,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:26:44 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9aec2c3e-45bd-4a77-9a8b-5275a62bf7cd" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:27:43.7936525Z" ], @@ -567,10 +567,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+15": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -590,11 +590,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:27:14 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5215ff55-a1b1-4f38-89fb-9bf1b0e67007" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:27:36.5431138Z" ], @@ -608,10 +608,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+16": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -631,11 +631,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:27:44 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a224ad8e-65da-45f3-a81c-a190f40bb1c9" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:28:13.8424847Z" ], @@ -649,10 +649,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+17": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -672,11 +672,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:28:14 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f1d5ab9c-af4b-40de-a036-867b4ea75b64" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:29:08.4221152Z" ], @@ -690,10 +690,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+18": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -713,11 +713,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:28:45 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "14f02618-5fe1-4e11-8d80-3b9608333bce" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:29:45.0959219Z" ], @@ -731,10 +731,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+19": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -754,11 +754,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:29:15 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f7f43eac-6943-499c-8824-594dfd4fa99d" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:30:08.0294504Z" ], @@ -772,10 +772,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+20": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -795,11 +795,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:29:46 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e2c120da-9e10-4bc7-9048-a1b6023d1c69" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:30:45.8621822Z" ], @@ -813,10 +813,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+21": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -836,11 +836,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:30:16 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "22c9d3c2-53aa-4c7f-bfe5-19b523276ebb" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:31:16.1030603Z" ], @@ -854,10 +854,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+22": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -877,11 +877,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:30:46 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5010de80-9e58-45d6-9560-7a9a79a420a0" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:31:08.3922902Z" ], @@ -895,10 +895,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+23": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -918,11 +918,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:31:17 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2c6f48bb-81b2-4e67-9955-73abc193ff05" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:31:45.9579613Z" ], @@ -936,10 +936,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+24": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -959,11 +959,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:31:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "52388f72-878a-4f5d-8701-01c62d2f4b88" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:32:47.1426600Z" ], @@ -977,10 +977,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+25": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1000,11 +1000,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:32:17 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "36b12ff8-fe00-4dd1-8c57-d7eadec13a42" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:33:17.4378560Z" ], @@ -1018,10 +1018,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+26": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1041,11 +1041,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:32:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "de852ca5-2325-4e73-a80a-ff568274edca" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:33:47.7156900Z" ], @@ -1059,10 +1059,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+27": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1082,11 +1082,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:33:18 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5b99ba90-b258-407a-96b9-92912f3057a3" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:34:08.1610351Z" ], @@ -1100,10 +1100,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+28": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1123,11 +1123,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:33:48 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c3fa749a-803f-4e71-b39f-697149def60d" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:34:48.3917682Z" ], @@ -1141,10 +1141,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+29": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1164,11 +1164,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:34:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d5b7f0e9-f6d7-4d0e-8f4c-a14617f5d1c3" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:35:18.7867009Z" ], @@ -1182,10 +1182,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+30": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+30": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1205,11 +1205,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:34:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "aac14ef9-547f-4365-bbf5-efeba66440cb" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:35:38.7056359Z" ], @@ -1223,10 +1223,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+31": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+31": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1246,11 +1246,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:35:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2ed36638-e41d-4b1e-8cba-b7684cc15b1e" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:36:19.5633119Z" ], @@ -1264,10 +1264,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+32": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+32": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1287,11 +1287,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:35:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a45b45e6-861b-45ba-a9c8-a1e832a18f74" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:36:50.0067662Z" ], @@ -1305,10 +1305,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+33": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+33": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1328,11 +1328,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:36:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a4ff2bfe-e233-45dc-b99d-08f812169e21" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:37:20.2894807Z" ], @@ -1346,10 +1346,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+34": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+34": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1369,11 +1369,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:36:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "555220d0-2e82-46a1-af95-2fd00e59ba60" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:37:50.7708188Z" ], @@ -1387,10 +1387,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+35": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+35": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1410,11 +1410,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:37:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6092967a-f288-4616-97c0-9c3bd3e74704" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:38:21.0060796Z" ], @@ -1428,10 +1428,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+36": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+36": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1451,11 +1451,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:37:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c4b8707c-1dda-4e38-aa2b-31cfc6f44a22" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:38:51.2648606Z" ], @@ -1469,10 +1469,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+37": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+37": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1492,11 +1492,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:38:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9f55e21a-8df8-4526-8783-8f9fc981ae6a" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:39:08.1801278Z" ], @@ -1510,10 +1510,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+38": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+38": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1533,11 +1533,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:38:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "586d6c12-498f-4cf2-bad5-510bcae7f6f2" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:39:51.8410715Z" ], @@ -1551,10 +1551,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+39": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+39": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1574,11 +1574,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:39:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c48b6bb8-3709-41bd-9cd0-962cfeb7950d" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:40:08.2800459Z" ], @@ -1592,10 +1592,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+40": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+40": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1615,11 +1615,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:39:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3fe69d2e-fda8-4d7c-902e-98fa40c3bfcd" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:40:08.7135925Z" ], @@ -1633,10 +1633,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+41": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+41": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1656,11 +1656,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:40:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1e7fa201-21a3-4ced-b579-04c65dfda1f7" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:41:22.8367268Z" ], @@ -1674,10 +1674,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+42": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+42": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1697,11 +1697,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:40:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3dfc50a6-997d-4614-853d-44f9e3960e36" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:41:08.3466862Z" ], @@ -1715,10 +1715,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+43": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+43": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1738,11 +1738,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:41:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "67d83d04-ef5f-41ae-9ac4-19705e90fddb" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:41:36.5359691Z" ], @@ -1756,10 +1756,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+44": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+44": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1779,11 +1779,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:41:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "13ffae9a-a8bc-4263-8aab-e9085b28d7d1" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:42:53.7995827Z" ], @@ -1797,10 +1797,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+45": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+45": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1820,11 +1820,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:42:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d1e527bb-2086-44ae-83aa-36803377fd39" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:43:24.0741213Z" ], @@ -1838,10 +1838,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+46": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+46": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1861,11 +1861,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:42:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cad6e91f-1f6c-40fd-809e-167cba1befbb" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:43:08.2120454Z" ], @@ -1879,10 +1879,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+47": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+47": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1902,11 +1902,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:43:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5f340d45-6f77-4402-8cf8-5a2ab30d319a" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:44:07.9186583Z" ], @@ -1920,10 +1920,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+48": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+48": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1943,11 +1943,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:43:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "33fd8a52-2b13-4cec-ae26-efa3d34bb2b8" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:44:54.8728358Z" ], @@ -1961,10 +1961,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+49": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+49": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1984,11 +1984,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:44:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "63ada69c-49d3-49e2-8170-276181e607b5" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:45:25.2819547Z" ], @@ -2002,10 +2002,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+50": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+50": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2025,11 +2025,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:44:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f8f53d02-1e4a-430f-961f-b4f2ec1c504b" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:45:38.6855941Z" ], @@ -2043,10 +2043,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+51": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+51": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2066,11 +2066,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:45:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ebc318cd-495a-4c20-9425-d894b3b08777" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:46:25.7638458Z" ], @@ -2084,10 +2084,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+52": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+52": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2107,11 +2107,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:45:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "bc697cf2-f0e4-4713-8854-bfd22b0490ee" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:46:56.0722843Z" ], @@ -2125,10 +2125,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+53": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+53": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2148,11 +2148,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:46:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e3610577-6536-407f-a9ec-c51cbb11d225" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:47:26.4630190Z" ], @@ -2166,10 +2166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true+54": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true+54": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2189,11 +2189,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:46:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "639c727f-92f9-4cba-a813-50b46d0353fd" ], "x-ms-client-request-id": [ "7d6e8723-479a-40d3-9180-51728a88f300" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7181d09f-c3a5-4e4c-b8f9-0a451fdb1612?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:47:56.7097436Z" ], @@ -2207,10 +2207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-04-01+55": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-10-01-preview+55": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -2245,10 +2245,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-04-01+56": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-10-01-preview+56": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-10-01-preview", "Content": "{\r\n \"poolName\": \"nzboe1\"\r\n}", "isContentBase64": false, "Headers": { @@ -2263,10 +2263,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:47:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "292fa275-781d-4184-9c65-674104f26044" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:47:56.7097436Z" ], @@ -2280,10 +2280,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+57": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+57": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2303,11 +2303,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:47:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "19f63659-62f0-47da-9cbb-5e9739bf03f1" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:48:41.7743964Z" ], @@ -2321,10 +2321,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+58": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+58": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2344,11 +2344,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:48:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "eda53752-db20-4e7c-b068-e3bf26cfbf23" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:49:12.1611492Z" ], @@ -2362,10 +2362,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+59": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+59": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2385,11 +2385,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:48:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0e8ec484-236e-433b-9d65-33d9f9cbc90b" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:49:42.4416701Z" ], @@ -2403,10 +2403,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+60": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+60": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2426,11 +2426,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:49:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "034f0850-2480-4a1c-b29f-f818a7519a9a" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:50:12.7286679Z" ], @@ -2444,10 +2444,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+61": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+61": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2467,11 +2467,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:49:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4405973f-110e-4bdb-88a7-ac04e2255822" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:50:43.4309353Z" ], @@ -2485,10 +2485,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+62": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+62": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2508,11 +2508,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:50:14 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "34134c16-ff73-4254-af9f-1cb558d4a304" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:51:06.5564915Z" ], @@ -2526,10 +2526,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+63": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+63": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2549,11 +2549,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:50:44 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cf69f524-1ea5-4eb3-872b-22c83f9dbc18" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:51:44.1577679Z" ], @@ -2567,10 +2567,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+64": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+64": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2590,11 +2590,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:51:14 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9f74b2dc-94cd-42b2-8366-1bc5d4490252" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:51:57.2521537Z" ], @@ -2608,10 +2608,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+65": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+65": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2631,11 +2631,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:51:45 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e2769448-fad4-4add-96c9-4b69a38ede00" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:52:34.3627838Z" ], @@ -2649,10 +2649,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+66": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+66": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2672,11 +2672,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:52:15 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e303b0dc-71ed-4ad5-a526-703f0a7f966a" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:53:15.1711370Z" ], @@ -2690,10 +2690,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+67": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+67": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2713,11 +2713,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:52:45 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "79b14f7e-1db3-4eaa-8143-5f0cdade4113" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:53:45.4708879Z" ], @@ -2731,10 +2731,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+68": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+68": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2754,11 +2754,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:53:16 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "713245e4-79cb-4114-a843-9f398b1a1e4b" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:54:15.9112555Z" ], @@ -2772,10 +2772,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+69": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+69": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2795,11 +2795,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:53:46 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cb95bdc3-b551-47d3-a9f7-33b024bf1d98" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:54:46.1359998Z" ], @@ -2813,10 +2813,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+70": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+70": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2836,11 +2836,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:54:16 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "34fa7dbb-e5bd-496d-ac20-4a6af94890f1" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:54:43.8482435Z" ], @@ -2854,10 +2854,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+71": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+71": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2877,11 +2877,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:54:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cd491173-01f7-40aa-80a4-91ac5fef9a48" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:55:46.8863102Z" ], @@ -2895,10 +2895,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+72": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+72": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2918,11 +2918,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:55:17 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0e93c095-9b5c-41c0-bb9f-bb0bf2fd5329" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:56:17.2114630Z" ], @@ -2936,10 +2936,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+73": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+73": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2959,11 +2959,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:55:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9444a82d-0308-4ed0-97b8-f99f5b23ecec" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:56:47.6784341Z" ], @@ -2977,10 +2977,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+74": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+74": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3000,11 +3000,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:56:18 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a5eb3adc-656c-4b5a-8604-6b68ba61eb7f" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "295" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:57:08.1745167Z" ], @@ -3018,10 +3018,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+75": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+75": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3041,11 +3041,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:56:48 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "160be677-515e-4c42-860f-ac750ae49f1f" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "295" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:57:18.6680454Z" ], @@ -3059,10 +3059,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+76": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+76": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3082,11 +3082,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:57:18 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3c381058-2c5a-43dd-bfa8-4d3f860e367a" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:58:18.5075658Z" ], @@ -3100,10 +3100,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+77": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+77": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3123,11 +3123,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:57:48 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "506f6c5e-51c3-4c82-a4bc-186b4ffa16da" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:58:08.4252880Z" ], @@ -3141,10 +3141,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+78": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+78": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3164,11 +3164,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:58:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f8011cfc-92fc-40e8-8670-e4a47621d1ee" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:59:07.9579887Z" ], @@ -3182,10 +3182,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+79": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+79": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3205,11 +3205,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:58:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d99bbf2b-65df-4783-9c60-175d3c0acb02" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:59:49.4383559Z" ], @@ -3223,10 +3223,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+80": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+80": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3246,11 +3246,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:59:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1579d830-2b41-4c67-abe7-0a68654e677a" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:00:19.6963067Z" ], @@ -3264,10 +3264,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+81": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+81": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3287,11 +3287,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:59:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a5b3b75c-4d0b-473b-b978-f257d5a532d8" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:00:49.9305312Z" ], @@ -3305,10 +3305,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+82": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+82": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3328,11 +3328,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:00:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "423f0f3c-59a3-4078-bf38-180a304b5f83" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:01:08.2522450Z" ], @@ -3346,10 +3346,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+83": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+83": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3369,11 +3369,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:00:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "09453d7c-546c-452c-93a5-cd8c78b0ef4a" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:01:50.3850916Z" ], @@ -3387,10 +3387,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+84": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+84": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3410,11 +3410,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:01:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "186f5efc-ced0-44c0-84d1-18ffa27a1f7b" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:02:08.3685225Z" ], @@ -3428,10 +3428,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+85": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+85": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3451,11 +3451,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:01:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "59e29402-4cf2-41c4-a098-141e0724bb13" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:02:51.3613248Z" ], @@ -3469,10 +3469,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+86": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+86": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3492,11 +3492,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:02:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "68228cfd-5537-435f-881b-ecfb5d768a15" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:03:21.6629770Z" ], @@ -3510,10 +3510,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+87": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+87": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3533,11 +3533,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:02:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c3e7b5b6-a345-46d0-ab9b-108b2d76de0d" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:03:51.9791512Z" ], @@ -3551,10 +3551,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+88": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+88": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3574,11 +3574,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:03:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "af0bb2c5-1be5-417d-9dfb-c3725f975929" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:04:22.2530176Z" ], @@ -3592,10 +3592,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+89": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+89": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3615,11 +3615,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:03:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "03aeec64-36cb-41c7-9ed7-aa3ef5d63ac7" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:04:38.7161595Z" ], @@ -3633,10 +3633,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+90": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+90": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3656,11 +3656,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:04:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "31738aac-0b1d-498d-a301-48721e3a6e10" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:05:22.9987461Z" ], @@ -3674,10 +3674,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+91": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+91": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3697,11 +3697,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:04:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f70eb5ab-b556-4923-bc7d-c72ceef355bd" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:05:53.3860750Z" ], @@ -3715,10 +3715,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+92": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+92": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3738,11 +3738,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:05:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e97a6b90-6926-44e4-967a-b6109d505919" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:06:23.7981177Z" ], @@ -3756,10 +3756,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+93": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+93": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3779,11 +3779,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:05:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8d90bd0a-b3bf-4387-a72d-74a9cf0feca1" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:06:54.0022274Z" ], @@ -3797,10 +3797,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+94": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+94": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3820,11 +3820,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:06:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "32e00f65-04c9-4c9c-8b4e-c11a4f71cd75" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:07:24.2227831Z" ], @@ -3838,10 +3838,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+95": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+95": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3861,11 +3861,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:06:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "16915586-e590-40cd-861d-62dc341dcc57" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:07:54.6467809Z" ], @@ -3879,10 +3879,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+96": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+96": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3902,11 +3902,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:07:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1aebc792-b72b-437d-91fe-ec0c21220f93" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:07:57.2773418Z" ], @@ -3920,10 +3920,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+97": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+97": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3943,11 +3943,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:07:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d97992b8-2c7e-49d8-a705-3a1f1296a1e1" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:08:55.4302672Z" ], @@ -3961,10 +3961,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+98": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+98": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3984,11 +3984,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:08:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "763eb0a3-01a5-428e-a50a-d4a4b7716f8d" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:09:25.7386778Z" ], @@ -4002,10 +4002,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+99": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+99": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4025,11 +4025,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:08:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5fb1bdac-863e-4f2e-a41d-32de210e48f2" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:09:56.1646717Z" ], @@ -4043,10 +4043,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+100": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+100": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4066,11 +4066,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:09:26 GMT" ], "Connection": [ "close" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "687f751f-10b9-4aa0-ad82-d4d2a3400afa" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:10:26.3864305Z" ], @@ -4084,10 +4084,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+101": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+101": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4107,11 +4107,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:09:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9a3bd045-b188-408e-bae2-e91bb2df47c8" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:10:43.8850559Z" ], @@ -4125,10 +4125,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+102": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+102": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4148,11 +4148,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:10:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1c02415d-dade-405e-894f-d02ba3afa7e2" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:11:27.1497580Z" ], @@ -4166,10 +4166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+103": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+103": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4189,11 +4189,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:10:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5afd1e75-3ac1-4d31-aef1-7ff398063d05" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:11:27.1497580Z" ], @@ -4207,10 +4207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true+104": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true+104": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4230,11 +4230,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:11:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "78c41a48-5070-4cd4-81e9-99073c6284b7" ], "x-ms-client-request-id": [ "a8c0e7bc-1955-4f32-9adf-f3675858c550" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0a510d55-770c-443c-9e6b-c7390dce67f0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:12:27.6637461Z" ], @@ -4248,10 +4248,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-04-01+105": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-10-01-preview+105": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -4286,10 +4286,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-04-01+1": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-10-01-preview", "Content": "{\r\n \"poolName\": \"nzboe1\"\r\n}", "isContentBase64": false, "Headers": { @@ -4304,10 +4304,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:11:28 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "52962968-6514-497c-88bf-894da1107504" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:12:28.3846757Z" ], @@ -4321,10 +4321,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+2": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4344,11 +4344,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:11:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "602c1eed-16de-4b1c-8b05-facdd8aea6d5" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:12:27.6637461Z" ], @@ -4362,10 +4362,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+3": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4385,11 +4385,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:12:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "abe0dea0-2828-43da-9f31-694c6e5e9b0b" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:13:29.2021335Z" ], @@ -4403,10 +4403,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+4": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4426,11 +4426,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:12:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "54dfec39-aa01-42b4-b0ad-977cb9537ca1" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:13:59.7215295Z" ], @@ -4444,10 +4444,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+5": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4467,11 +4467,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:13:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5533cd1b-9241-45a4-80cf-a197e9425248" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:14:14.1663794Z" ], @@ -4485,10 +4485,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+6": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4508,11 +4508,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:14:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "24f2544e-75d4-423b-8947-8e387e9b54ce" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:15:00.2593377Z" ], @@ -4526,10 +4526,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+7": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4549,11 +4549,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:14:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6fc8d28a-4321-466f-9f37-c9cdadebfa95" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:15:27.2832816Z" ], @@ -4567,10 +4567,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+8": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4590,11 +4590,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:15:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2a9ea791-b5e6-4f1f-be93-4e274a034bbf" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:16:00.9462609Z" ], @@ -4608,10 +4608,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+9": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4631,11 +4631,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:15:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "90f2816d-7ec3-416e-8c8d-64061f556b65" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:16:31.1757854Z" ], @@ -4649,10 +4649,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+10": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4672,11 +4672,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:16:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "dcf315ac-4038-47c9-a4ea-5ab7a9ed738e" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:17:01.6632346Z" ], @@ -4690,10 +4690,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+11": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4713,11 +4713,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:16:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ccf3f635-6b23-44ca-84eb-d7d5b966be59" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:17:32.0553825Z" ], @@ -4731,10 +4731,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+12": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4754,11 +4754,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:17:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "46aa8baa-ee57-4331-982d-6904be922d43" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:17:34.3917850Z" ], @@ -4772,10 +4772,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+13": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4795,11 +4795,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:17:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cf004422-6308-4146-9c02-c9ae6c8eb97c" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:18:32.6097054Z" ], @@ -4813,10 +4813,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+14": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4836,11 +4836,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:18:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b3a9824d-27ec-4646-bc96-43d74faf09cf" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:19:02.8878789Z" ], @@ -4854,10 +4854,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+15": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4877,11 +4877,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:18:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6b36e57b-a3f2-4406-8078-3ed8bfdcbce4" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:19:33.2864812Z" ], @@ -4895,10 +4895,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+16": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4918,11 +4918,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:19:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ae54f351-e79c-4c93-874e-c5ebace106a8" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:20:03.6031778Z" ], @@ -4936,10 +4936,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+17": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4959,11 +4959,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:19:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "838568a8-837d-403a-94ce-60ee6f4e2f68" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:20:33.9590242Z" ], @@ -4977,10 +4977,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+18": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5000,11 +5000,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:20:04 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2127d6d7-4bcb-4d65-aed5-aed28fe1cea0" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:21:04.4061581Z" ], @@ -5018,10 +5018,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+19": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5041,11 +5041,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:20:35 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e0afb274-e3fb-4286-a42b-87885ce5bdd2" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:21:34.7268806Z" ], @@ -5059,10 +5059,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+20": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5082,11 +5082,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:21:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "15079ee7-4e64-457c-8ef8-8ba3c8c8f173" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:22:04.3954271Z" ], @@ -5100,10 +5100,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+21": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5123,11 +5123,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:21:35 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "93b47793-dfc8-4a37-b601-1544f4de43c2" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:22:35.6231807Z" ], @@ -5141,10 +5141,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+22": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5164,11 +5164,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:22:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "af78e4d6-544d-466c-a2e1-de1d91cb6245" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:23:05.8984213Z" ], @@ -5182,10 +5182,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+23": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5205,11 +5205,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:22:36 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a7b3dc7a-e92e-423d-9eb7-e23e875a0315" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:22:57.2671176Z" ], @@ -5223,10 +5223,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+24": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5246,11 +5246,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:23:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0cd6e3e5-50c7-4b17-a0a1-d6fdd1b2731a" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:24:06.4619233Z" ], @@ -5264,10 +5264,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+25": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5287,11 +5287,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:23:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f0477685-0b15-4888-b187-9adb2c6bef1e" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:24:36.9003195Z" ], @@ -5305,10 +5305,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+26": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5328,11 +5328,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:24:07 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "41b86153-f240-48ce-bb6b-1d118923ccd0" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:24:27.2831524Z" ], @@ -5346,10 +5346,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+27": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5369,11 +5369,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:24:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ef1c21d9-7410-41ee-8322-80b148ff54a3" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:25:37.7829742Z" ], @@ -5387,10 +5387,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+28": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5410,11 +5410,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:25:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "60ecc3a7-1540-4d29-825c-e897cacdc062" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:26:08.0788877Z" ], @@ -5428,10 +5428,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+29": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5451,11 +5451,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:25:38 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a6b57ac5-1921-4b0e-b92c-f1c8bfcda57a" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:26:38.4767852Z" ], @@ -5469,10 +5469,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+30": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+30": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5492,11 +5492,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:26:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9361067a-582a-44a7-a536-9c5b3c5ea7f1" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:27:08.9989103Z" ], @@ -5510,10 +5510,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+31": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+31": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5533,11 +5533,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:26:39 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3367e11b-9a6f-4f3e-ac9e-08306393d6d1" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:27:08.7224060Z" ], @@ -5551,10 +5551,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+32": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+32": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5574,11 +5574,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:27:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6a4e4861-9b81-4244-af94-6a76c93b554c" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:27:43.9008854Z" ], @@ -5592,10 +5592,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+33": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+33": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5615,11 +5615,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:27:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6b291db3-8cf8-43e3-8b1c-e1cc981da126" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:28:27.2731853Z" ], @@ -5633,10 +5633,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+34": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+34": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5656,11 +5656,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:28:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "96adc381-5a90-42b9-be7e-22075c9ecef7" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:28:38.7607993Z" ], @@ -5674,10 +5674,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+35": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+35": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5697,11 +5697,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:28:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5a739c24-46f4-4aac-aa67-59d8c2063aec" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:29:06.5478295Z" ], @@ -5715,10 +5715,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+36": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+36": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5738,11 +5738,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:29:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "07d71517-1a45-4c40-a510-1b5ab3a68c9e" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:29:57.2814943Z" ], @@ -5756,10 +5756,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+37": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+37": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5779,11 +5779,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:29:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "366c4eb5-dbc1-40d3-9f27-0b71e13bad6c" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:30:41.1910733Z" ], @@ -5797,10 +5797,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+38": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+38": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5820,11 +5820,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:30:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5a82a7c7-deeb-4e2b-acee-2c2f259261c1" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:31:11.5374900Z" ], @@ -5838,10 +5838,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+39": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+39": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5861,11 +5861,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:30:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c31cdadb-d932-4afc-83a7-90203c7827c3" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:31:41.7591822Z" ], @@ -5879,10 +5879,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+40": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+40": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5902,11 +5902,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:31:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2214a279-daf9-4bb5-a5f3-9f982731112a" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:31:41.7591822Z" ], @@ -5920,10 +5920,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+41": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+41": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5943,11 +5943,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:31:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e90c3c82-e85b-4dca-b5fa-ef14338991ed" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:32:06.5987282Z" ], @@ -5961,10 +5961,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+42": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+42": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5984,11 +5984,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:32:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9e3c7710-92d4-4488-8567-921bfd056cf5" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:32:36.6187441Z" ], @@ -6002,10 +6002,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+43": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+43": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6025,11 +6025,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:32:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b0052d27-4bc5-43a3-af8c-5e1451a0520d" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:33:43.1375826Z" ], @@ -6043,10 +6043,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+44": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+44": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6066,11 +6066,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:33:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6bee58ca-85ba-47f7-871c-33a0e0626761" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:34:13.5374382Z" ], @@ -6084,10 +6084,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+45": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+45": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6107,11 +6107,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:33:44 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8d1c04e6-1944-4f99-8957-959feba09916" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:34:43.9365291Z" ], @@ -6125,10 +6125,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+46": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+46": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6148,11 +6148,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:34:14 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4adfe4ee-a947-47d7-a193-912455650b3d" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:35:14.2319798Z" ], @@ -6166,10 +6166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+47": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+47": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6189,11 +6189,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:34:44 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4565b9b6-22ba-462f-8a70-7ffff25883fe" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:35:34.4070035Z" ], @@ -6207,10 +6207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true+48": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true+48": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6230,11 +6230,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:35:15 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0ad4abc2-713a-49aa-8e99-ae9f99952535" ], "x-ms-client-request-id": [ "0d0e670c-dad9-4031-94e3-255f30fcdd5e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1893c4d1-cf1b-4b5a-a5e2-9ae4344b5315?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:36:14.9717627Z" ], @@ -6248,10 +6248,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-04-01+49": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-10-01-preview+49": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox5?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -6286,10 +6286,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-04-01+50": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-10-01-preview+50": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-10-01-preview", "Content": "{\r\n \"poolName\": \"nzboe1\"\r\n}", "isContentBase64": false, "Headers": { @@ -6304,10 +6304,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:35:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "8e3ab65a-0dc5-41bd-900b-d181d8270f8d" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:35:34.4070035Z" ], @@ -6321,10 +6321,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+51": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+51": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6344,11 +6344,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:35:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "de2e2a9a-75a3-4c75-99e9-3985906df519" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:36:14.9717627Z" ], @@ -6362,10 +6362,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+52": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+52": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6385,11 +6385,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:36:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0f1caa65-fccd-44ae-9ac4-5b77e0a8d1dd" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:37:08.7446256Z" ], @@ -6403,10 +6403,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+53": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+53": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6426,11 +6426,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:36:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ed54b0a6-c7b1-49e8-8e6a-7fe52cfe7bbd" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:37:55.6491138Z" ], @@ -6444,10 +6444,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+54": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+54": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6467,11 +6467,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:37:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "062747cb-938a-4402-a97b-9f3b7c22da81" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:38:25.8829195Z" ], @@ -6485,10 +6485,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+55": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+55": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6508,11 +6508,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:37:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f58712c2-61be-4e45-9f00-93053e5a8cb3" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:38:13.8881309Z" ], @@ -6526,10 +6526,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+56": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+56": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6549,11 +6549,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:38:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "22bc1c78-f23f-4347-8cff-210748d46b45" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:39:26.4817827Z" ], @@ -6567,10 +6567,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+57": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+57": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6590,11 +6590,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:38:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1d53a234-f132-46ba-9d2e-70637826f62e" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:39:06.6207999Z" ], @@ -6608,10 +6608,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+58": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+58": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6631,11 +6631,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:39:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "bd4bf3a1-bca0-4bf8-9b47-f8f9177ffe9a" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:40:27.2163732Z" ], @@ -6649,10 +6649,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+59": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+59": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6672,11 +6672,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:39:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "746129af-3e3b-4112-922c-da8c1a23d883" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:40:57.5502284Z" ], @@ -6690,10 +6690,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+60": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+60": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6713,11 +6713,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:40:28 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "0bd44f09-de41-43e2-acdc-c88498009202" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:40:36.6213650Z" ], @@ -6731,10 +6731,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+61": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+61": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6754,11 +6754,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:40:58 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "058476b3-acf0-4c21-9d70-5504793475ca" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:41:58.2704200Z" ], @@ -6772,10 +6772,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+62": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+62": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6795,11 +6795,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:41:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "27fb93e5-0139-442e-86d7-231a6983d691" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:42:28.7662465Z" ], @@ -6813,10 +6813,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+63": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+63": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6836,11 +6836,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:41:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1807919d-d8e0-4c69-b927-9dde5bc13a4b" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:42:59.2060076Z" ], @@ -6854,10 +6854,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+64": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+64": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6877,11 +6877,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:42:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a73f0dd3-1a01-41d9-bc60-d44bacd29adb" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:43:04.4050685Z" ], @@ -6895,10 +6895,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+65": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+65": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6918,11 +6918,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:43:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3cc3ed82-38a9-41c9-b5e8-164e980d973c" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:43:57.2950304Z" ], @@ -6936,10 +6936,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+66": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+66": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -6959,11 +6959,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:43:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "62ba5d0c-2f53-45d3-a36f-c5db2e5194ea" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:44:27.2972930Z" ], @@ -6977,10 +6977,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+67": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+67": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7000,11 +7000,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:44:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cc85acd4-c006-421e-8399-5794ab412c9e" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:45:00.7241466Z" ], @@ -7018,10 +7018,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+68": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+68": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7041,11 +7041,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:44:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6370d5b9-390b-4ebf-bd9a-a625adf4100c" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:45:31.0875278Z" ], @@ -7059,10 +7059,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+69": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+69": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7082,11 +7082,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:45:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b3cdc80c-b0b2-4521-a257-d6042a2ebb09" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:46:01.3230484Z" ], @@ -7100,10 +7100,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+70": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+70": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7123,11 +7123,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:45:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "db12c617-db54-4389-b378-a8c5cfa600e3" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:46:31.5729803Z" ], @@ -7141,10 +7141,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+71": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+71": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7164,11 +7164,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:46:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "78c0cc61-4598-4144-ba72-2f922070fa8e" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:47:01.7867871Z" ], @@ -7182,10 +7182,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+72": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+72": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7205,11 +7205,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:46:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ac292953-4f9a-44f5-88a1-e760d61318dc" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:47:32.0735050Z" ], @@ -7223,10 +7223,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+73": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+73": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7246,11 +7246,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:47:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4de47e85-9659-4e35-9be7-bfd43b5c2c09" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:48:02.3242606Z" ], @@ -7264,10 +7264,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+74": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+74": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7287,11 +7287,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:47:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f25815a4-8129-44ec-98fb-20317c943e09" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:48:32.5968428Z" ], @@ -7305,10 +7305,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+75": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+75": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7328,11 +7328,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:48:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "01e95880-a946-4f44-8751-d607582e03fa" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:49:02.8801024Z" ], @@ -7346,10 +7346,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+76": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+76": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7369,11 +7369,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:48:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "df2756f1-d264-4015-9e22-c084ad0ef5a1" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:49:08.7473760Z" ], @@ -7387,10 +7387,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+77": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+77": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7410,11 +7410,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:49:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "87dbeec2-a113-4c95-86de-5a48d92c9a34" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:50:03.5132096Z" ], @@ -7428,10 +7428,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+78": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+78": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7451,11 +7451,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:49:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e44e54ef-3564-4ff1-9984-72ec1033770f" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:50:33.9844844Z" ], @@ -7469,10 +7469,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+79": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+79": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7492,11 +7492,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:50:04 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4b546c06-9fd9-4798-a5fc-ea8cb285cfa3" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:51:04.3000073Z" ], @@ -7510,10 +7510,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+80": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+80": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7533,11 +7533,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:50:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b27153cb-f2cb-4bdb-b87b-fda42935da6f" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:51:06.6151751Z" ], @@ -7551,10 +7551,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+81": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+81": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7574,11 +7574,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:51:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "db2ea04e-e3c5-4f66-8fc1-da6f8f822ac5" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:52:05.0939082Z" ], @@ -7592,10 +7592,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+82": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+82": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7615,11 +7615,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:51:36 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "94a9fe2e-8555-4407-8846-678b5f1078dc" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:52:35.6818706Z" ], @@ -7633,10 +7633,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+83": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+83": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7656,11 +7656,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:52:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c53fece6-437e-4f35-b6d4-fc93521ca699" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:53:06.2169684Z" ], @@ -7674,10 +7674,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+84": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+84": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7697,11 +7697,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:52:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c73e5608-e793-4379-8bf8-c6737d3663db" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:53:36.6926145Z" ], @@ -7715,10 +7715,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+85": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+85": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7738,11 +7738,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:53:07 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "92a2ea57-40b7-4d51-bea3-460e331ddd81" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:53:43.8943124Z" ], @@ -7756,10 +7756,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+86": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+86": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7779,11 +7779,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:53:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "98b49b7b-53cb-46cc-8eac-49c1d8baee7c" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:54:27.3028578Z" ], @@ -7797,10 +7797,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+87": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+87": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7820,11 +7820,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:54:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a37c88cc-330a-4897-ace4-688e6161f430" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:55:08.0353327Z" ], @@ -7838,10 +7838,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+88": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+88": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7861,11 +7861,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:54:38 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5d445885-f69f-4a3d-b84f-ac89d90ea716" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:55:38.4704466Z" ], @@ -7879,10 +7879,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+89": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+89": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7902,11 +7902,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:55:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ba33bd83-c60c-4077-a877-00a2408a50ac" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:56:08.8547975Z" ], @@ -7920,10 +7920,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+90": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+90": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7943,11 +7943,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:55:39 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "414024d3-ac67-4a4f-9485-18cb8e97317a" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:56:39.4563694Z" ], @@ -7961,10 +7961,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+91": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+91": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -7984,11 +7984,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:56:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5b07c0ce-a185-4f39-a2e2-68871f1e03ad" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:57:09.8899499Z" ], @@ -8002,10 +8002,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+92": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+92": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -8025,11 +8025,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:56:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "bfeb7a84-2b3d-4bee-a5ae-ec0db583d71e" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:57:27.2943810Z" ], @@ -8043,10 +8043,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+93": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+93": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -8066,11 +8066,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:57:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5c97d53b-cfc2-433d-926f-692217151d7e" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:58:10.8501319Z" ], @@ -8084,10 +8084,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+94": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+94": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -8107,11 +8107,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:57:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5818b133-a5ce-4791-af07-34c8f3cfda33" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:58:41.2418398Z" ], @@ -8125,10 +8125,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+95": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+95": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -8148,11 +8148,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:58:11 GMT" ], "Connection": [ "close" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "891eb2ac-0c2a-47c7-ba83-b2df39ea2c4f" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:59:11.6408007Z" ], @@ -8166,10 +8166,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true+96": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true+96": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -8189,11 +8189,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 02:58:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "371040a8-1359-4f07-8f3f-a2a2ef7ca615" ], "x-ms-client-request-id": [ "ff8102d5-07a4-4005-ae9e-62e44eafcf54" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e445a572-65f8-4172-ad95-7f3f6f47794c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T02:59:42.2659129Z" ], @@ -8207,10 +8207,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-04-01+97": { + "New-AzDevCenterUserDevBox+[NoContext]+CreateViaIdentityExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-10-01-preview+97": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/devbox6?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Tests.ps1 index 7e6a0a5322a2..23a9e5a35cff 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserDevBox.Tests.ps1 @@ -36,7 +36,7 @@ Describe 'New-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $devBox = New-AzDevCenterUserDevBox -DevCenter $env.devCenterName -Name "devbox2" -ProjectName $env.projectName -PoolName $env.poolName + $devBox = New-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -Name "devbox2" -ProjectName $env.projectName -PoolName $env.poolName $devBox.Name | Should -Be "devbox2" $devBox.User | Should -Be $env.userObjectId $devBox.ProjectName | Should -Be $env.projectName @@ -83,7 +83,7 @@ Describe 'New-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $devBox = New-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput2 -PoolName $env.poolName + $devBox = New-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput2 -PoolName $env.poolName $devBox.Name | Should -Be "devbox6" $devBox.User | Should -Be $env.userObjectId $devBox.ProjectName | Should -Be $env.projectName diff --git a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Recording.json index 8a94ec7501f3..6ffff01326ee 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Recording.json @@ -1,8 +1,8 @@ { - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01+1": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview", "Content": "{\r\n \"parameters\": {\r\n \"name\": \"95itx0\"\r\n },\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"FunctionApp\"\r\n}", "isContentBase64": false, "Headers": { @@ -17,10 +17,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:24:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "163b439e-ae28-4e10-82b1-cb9b8d7fb9e4" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:25:48.7279159Z" ], @@ -34,10 +34,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+2": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -57,11 +57,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:25:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "baac0c78-94ed-4cca-8d87-31f7e8d311af" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:25:48.9255830Z" ], @@ -75,10 +75,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+3": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -98,11 +98,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:25:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5327ee03-89e1-4bcc-b8af-0bb961e20347" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:26:55.0184689Z" ], @@ -116,10 +116,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+4": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -139,11 +139,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:26:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e2774638-c849-4a84-9f7c-b05408cf8ec7" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:26:57.4564418Z" ], @@ -157,10 +157,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+5": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -180,11 +180,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:26:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "927520a9-c680-40ca-a2d2-730568bdea52" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:27:55.5077341Z" ], @@ -198,10 +198,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+6": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -221,11 +221,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:27:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6459c423-3846-4456-ab58-db1faded6223" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:28:26.3044671Z" ], @@ -239,10 +239,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+7": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -262,11 +262,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:27:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e263d9d2-10bc-4ed2-a785-4600718bff27" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:28:56.5938617Z" ], @@ -280,10 +280,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true+8": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -303,11 +303,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:28:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "157e2152-ffc8-4b46-bcd4-1b6c8042e6e7" ], "x-ms-client-request-id": [ "5cd770b6-b37a-4248-9edc-71a5903349d5" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0e0866b5-ff2a-407b-a718-f99398e5f5b4?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:28:58.7424115Z" ], @@ -321,10 +321,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01+9": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -359,10 +359,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01+10": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview+10": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview", "Content": "{\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"Sandbox\"\r\n}", "isContentBase64": false, "Headers": { @@ -377,10 +377,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:28:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "ec4ad4ae-c3fe-46b7-b5dc-fa23fb811a7a" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:28:56.5938617Z" ], @@ -394,10 +394,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true+11": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -417,11 +417,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:28:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3b7c24d9-8d4a-4221-b60f-9cfe00223cdb" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:29:59.4567543Z" ], @@ -435,10 +435,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true+12": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -458,11 +458,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:29:29 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "95540e2b-f066-47f7-891e-b638f5a68f3e" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:30:29.6838235Z" ], @@ -476,10 +476,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true+13": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -499,11 +499,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:30:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "57240e64-a08a-499a-957a-6d4f0b67d11b" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:30:59.9709557Z" ], @@ -517,10 +517,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true+14": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -540,11 +540,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:30:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ceab00b3-f457-4df8-8a15-265e23e18b2e" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:31:27.4737939Z" ], @@ -558,10 +558,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true+15": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -581,11 +581,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:31:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "91a96dab-052f-4dd1-86aa-d0682059d278" ], "x-ms-client-request-id": [ "18f7290b-55ea-44bd-9799-2f0dfc6cc27a" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/76f15ce5-8866-4013-9984-1cc625fccabb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:32:00.5385311Z" ], @@ -599,10 +599,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01+16": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateExpanded+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -637,10 +637,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01+1": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview+1": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview", "Content": "{\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"Sandbox\"\r\n}", "isContentBase64": false, "Headers": { @@ -655,10 +655,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:31:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "cdf3ad25-a779-406e-a3a3-a155c593b1d2" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:31:27.4737939Z" ], @@ -672,10 +672,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true+2": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -695,11 +695,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:31:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2dcbb641-d2aa-4eb1-b864-0b3ab2f7acc9" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:32:00.5385311Z" ], @@ -713,10 +713,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true+3": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -736,11 +736,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:32:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "2d41202d-36d0-4ee9-abb9-d2f91c43aff4" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:33:02.1432053Z" ], @@ -754,10 +754,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true+4": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -777,11 +777,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:32:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "60ee9676-c631-4c87-8602-cf675d3c98a7" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:33:32.3796007Z" ], @@ -795,10 +795,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true+5": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -818,11 +818,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:33:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4fd25a5c-9dee-4cd1-8119-105457859d26" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:34:02.6386040Z" ], @@ -836,10 +836,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true+6": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -859,11 +859,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:33:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ae6e003e-b279-4122-9d0f-67d72258f06b" ], "x-ms-client-request-id": [ "afe9881f-8bc6-44f3-9b05-27c4e1d27bca" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1525f277-8499-46c5-b45a-b947a4edb46c?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:34:32.9447373Z" ], @@ -877,10 +877,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01+7": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest7?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -915,10 +915,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01+8": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$PUT+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview+8": { "Request": { "Method": "PUT", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview", "Content": "{\r\n \"parameters\": {\r\n \"name\": \"2jwit4\"\r\n },\r\n \"environmentType\": \"m780es\",\r\n \"catalogName\": \"x3vu7b\",\r\n \"environmentDefinitionName\": \"FunctionApp\"\r\n}", "isContentBase64": false, "Headers": { @@ -933,10 +933,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:33:42 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "e7853f73-55b6-4e45-9bee-e08ddf108d63" ], "x-ms-client-request-id": [ "3d535da7-aa2b-4a70-a060-4c43ea5dd909" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:34:02.6386040Z" ], @@ -950,10 +950,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true+9": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -973,11 +973,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:34:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "294622d0-8eb3-4066-b681-b30dcdf0e2fd" ], "x-ms-client-request-id": [ "3d535da7-aa2b-4a70-a060-4c43ea5dd909" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:34:33.4245848Z" ], @@ -991,10 +991,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true+10": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1014,11 +1014,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:34:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "648645d9-fe33-4724-a2f4-d0f6a8158082" ], "x-ms-client-request-id": [ "3d535da7-aa2b-4a70-a060-4c43ea5dd909" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:35:20.8174009Z" ], @@ -1032,10 +1032,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true+11": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1055,11 +1055,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:35:13 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "dc0061a6-0fd0-4b63-bfe3-e65f12d32106" ], "x-ms-client-request-id": [ "3d535da7-aa2b-4a70-a060-4c43ea5dd909" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:35:40.7906873Z" ], @@ -1073,10 +1073,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true+12": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1096,11 +1096,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:35:43 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f5ec4688-b30a-4225-a8f7-33d9b9f2d806" ], "x-ms-client-request-id": [ "3d535da7-aa2b-4a70-a060-4c43ea5dd909" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/7d0f141b-2d2a-46c9-89e2-73ab103d9659?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:35:50.7754850Z" ], @@ -1114,10 +1114,10 @@ "isContentBase64": false } }, - "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01+13": { + "New-AzDevCenterUserEnvironment+[NoContext]+CreateViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/envtest8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Tests.ps1 index 8bf39f8ad27f..9f0e3b3e71a0 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/New-AzDevCenterUserEnvironment.Tests.ps1 @@ -25,7 +25,7 @@ Describe 'New-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = New-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -Name "envtest2" -ProjectName $env.projectName -CatalogName $env.catalogName -EnvironmentDefinitionName $env.sandbox -EnvironmentType $env.environmentTypeName + $environment = New-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -Name "envtest2" -ProjectName $env.projectName -CatalogName $env.catalogName -EnvironmentDefinitionName $env.sandbox -EnvironmentType $env.environmentTypeName $environment.CatalogName | Should -Be $env.catalogName $environment.DefinitionName | Should -Be $env.sandbox $environment.Name | Should -Be "envtest2" @@ -48,7 +48,7 @@ Describe 'New-AzDevCenterUserEnvironment' { $environment.User | Should -Be $env.userObjectId if ($Record -or $Live) { - $environment = New-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -InputObject $envInput2 -CatalogName $env.catalogName -EnvironmentDefinitionName $env.functionApp -EnvironmentType $env.environmentTypeName -Parameter $functionAppParameters + $environment = New-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -InputObject $envInput2 -CatalogName $env.catalogName -EnvironmentDefinitionName $env.functionApp -EnvironmentType $env.environmentTypeName -Parameter $functionAppParameters $environment.CatalogName | Should -Be $env.catalogName $environment.DefinitionName | Should -Be $env.functionApp $environment.Name | Should -Be "envtest8" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Recording.json index a6c52e13d106..7320fcc86a6f 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01+1": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,10 +22,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:51:59 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "f0401e1f-7635-4cdd-8f9b-f121a8692338" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:52:59.2590741Z" ], @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+2": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -62,11 +62,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:52:30 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "41eb2108-6f1d-4c5d-a38a-9aa8a30d9235" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:53:08.0347300Z" ], @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+3": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -103,11 +103,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:53:00 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8ca364c8-ba87-4094-a45e-62c4752821ad" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:53:14.1083972Z" ], @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+4": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -144,11 +144,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:53:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "20f9e0a8-3a17-4cea-9a3c-84da803ea18c" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:54:30.7515038Z" ], @@ -162,10 +162,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+5": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -185,11 +185,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:54:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c18a3d0b-9486-4bce-bc23-48bee5599d72" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:55:01.1869818Z" ], @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+6": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -226,11 +226,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:54:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c3aeffac-9bf5-43b7-b0e9-19fd3ef2fdae" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:55:31.5876094Z" ], @@ -244,10 +244,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+7": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -267,11 +267,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:55:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "00772e18-9808-477a-9025-5bc6b20ca7f9" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:56:01.8623460Z" ], @@ -285,10 +285,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+8": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -308,11 +308,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:55:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6db44aed-05c0-46f5-87e3-a30221800e76" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:56:32.1526648Z" ], @@ -326,10 +326,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+9": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -349,11 +349,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:56:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "92985394-f6b9-4465-acb2-032f3cf3babf" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:57:03.0785191Z" ], @@ -367,10 +367,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+10": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -390,11 +390,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:56:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1cb82174-6af2-4578-b6cc-42bb4206fdf5" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:57:33.4587872Z" ], @@ -408,10 +408,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+11": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -431,11 +431,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:57:04 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "de20bf6d-dff2-4927-bb73-3f10950cf209" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:58:03.7560866Z" ], @@ -449,10 +449,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+12": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -472,11 +472,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:57:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6f9ef92f-7a1d-4f8c-a16a-4cb5c7a85cae" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:58:26.9862178Z" ], @@ -490,10 +490,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+13": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -513,11 +513,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:58:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c9c90d26-20e0-455e-8efc-27f2e0b13ed4" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:59:04.7202646Z" ], @@ -531,10 +531,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+14": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -554,11 +554,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:58:35 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6d56f72b-04f0-4d2a-84f9-624df55b4646" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:59:34.2999615Z" ], @@ -572,10 +572,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+15": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -595,11 +595,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:59:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "eb43dd9c-9fa2-41fc-86bd-2a1034c84d22" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:00:05.3686919Z" ], @@ -613,10 +613,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true+16": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -636,11 +636,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:59:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "7ba83e25-9248-4ce3-b8ef-2cceb9913a3e" ], "x-ms-client-request-id": [ "4e42fe9f-fe23-4744-a6e9-d556157f7d9f" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/73f7138d-6371-429d-8e47-ee64c6e376e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T00:59:43.8085086Z" ], @@ -654,10 +654,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01+17": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -692,10 +692,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01+18": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview+18": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -715,10 +715,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:59:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "b00df5ff-5c61-41d9-9ed7-7ea7d9291eca" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:00:05.3686919Z" ], @@ -732,10 +732,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+19": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -755,11 +755,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 00:59:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "dfddd64f-fa7b-4764-8240-4864b3e6e9d9" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:00:50.4078061Z" ], @@ -773,10 +773,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+20": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -796,11 +796,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:00:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5b064025-730f-4201-96c9-8bdedb2ca555" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:00:56.9771802Z" ], @@ -814,10 +814,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+21": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -837,11 +837,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:00:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "15ce8a07-16b4-4685-8854-8cd92bfb4556" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:01:26.9637200Z" ], @@ -855,10 +855,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+22": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -878,11 +878,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:01:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "79b0fd6f-acb9-41db-a8b3-41df7ab585a0" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:02:07.5559813Z" ], @@ -896,10 +896,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+23": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -919,11 +919,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:01:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9e9f492c-e3c2-43e8-9507-6f3165629bec" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:02:51.6111715Z" ], @@ -937,10 +937,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+24": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -960,11 +960,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:02:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "001a67b2-d78e-4222-b097-d8e33ad2f267" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:03:21.8793926Z" ], @@ -978,10 +978,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+25": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1001,11 +1001,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:02:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6ef5bd9b-ee96-40dd-845e-ce7792436a21" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:03:43.8198041Z" ], @@ -1019,10 +1019,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+26": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1042,11 +1042,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:03:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9b68c38c-f2d9-435c-81ce-b2c7eb7f44fd" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:04:22.5229224Z" ], @@ -1060,10 +1060,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+27": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1083,11 +1083,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:03:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "97ca81dd-5eb8-43ae-ab8a-529792329c45" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:04:52.8214988Z" ], @@ -1101,10 +1101,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+28": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1124,11 +1124,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:04:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cf627ae9-7f25-4e4a-ba38-5d55e1686775" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:05:23.1012660Z" ], @@ -1142,10 +1142,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+29": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1165,11 +1165,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:04:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a3e7ae52-dd45-4bc4-b7dd-c4b7d9ec7eee" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:05:53.5295508Z" ], @@ -1183,10 +1183,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true+30": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true+30": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1206,11 +1206,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:04:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6cf682ea-bd30-468a-99d3-8a1c09ae66e3" ], "x-ms-client-request-id": [ "05bff464-14fe-4c51-9a14-4ea6617799e3" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a03882af-9722-41a9-85a0-a76fcaae35d0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:05:53.9174379Z" ], @@ -1224,10 +1224,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01+31": { + "Remove-AzDevCenterUserDevBox+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview+31": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1262,10 +1262,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01+1": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1285,10 +1285,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:04:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "8544139c-c03f-4d6d-aa88-fa58d40d8b93" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:05:53.5295508Z" ], @@ -1302,10 +1302,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+2": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1325,11 +1325,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:05:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "95b53f75-944e-41fa-849d-f6e10352540b" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:05:53.9174379Z" ], @@ -1343,10 +1343,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+3": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1366,11 +1366,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:05:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c486265b-c20c-4b66-8512-a78c98ee295e" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:06:55.0770041Z" ], @@ -1384,10 +1384,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+4": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1407,11 +1407,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:06:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b3b13429-da87-4e21-b316-541e2563881c" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:07:08.8389534Z" ], @@ -1425,10 +1425,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+5": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1448,11 +1448,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:06:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c6d23b7a-3bd8-4f9a-8e83-4e5f4e510729" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:07:55.6950419Z" ], @@ -1466,10 +1466,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+6": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1489,11 +1489,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:07:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e1e2eeaa-52b3-4a9d-b29e-f74980ab594c" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:08:26.1388504Z" ], @@ -1507,10 +1507,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+7": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1530,11 +1530,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:07:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a84e9083-e2e6-4a36-af4f-1dad5fac86f7" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:08:56.5811634Z" ], @@ -1548,10 +1548,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+8": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1571,11 +1571,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:08:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d64069e7-4983-457f-951c-3133e703948c" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:09:26.8582115Z" ], @@ -1589,10 +1589,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+9": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1612,11 +1612,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:08:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6d9f5273-ac19-49bf-9944-93dd595df8af" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:09:57.1004149Z" ], @@ -1630,10 +1630,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+10": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1653,11 +1653,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:09:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "359cf910-065c-4632-b422-d447d8f14e88" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:10:27.4242552Z" ], @@ -1671,10 +1671,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+11": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1694,11 +1694,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:09:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "80909423-e925-4b32-948f-ed99c3da97bc" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:10:57.7075892Z" ], @@ -1712,10 +1712,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+12": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1735,11 +1735,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:10:28 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "255b0e44-7b56-4c27-a840-c221116d1c59" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:11:07.4959421Z" ], @@ -1753,10 +1753,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+13": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1776,11 +1776,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:10:58 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c262907a-17cf-4280-8c2d-4f2649d3279c" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:11:58.4117180Z" ], @@ -1794,10 +1794,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true+14": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1817,11 +1817,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:10:58 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c4412678-4aa3-42af-8893-794fdb4ad682" ], "x-ms-client-request-id": [ "87ad0228-95f4-475d-8376-a0772cfff5b7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/38bc068a-85a1-46a3-9d75-1d009b9e2322?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:11:58.7206485Z" ], @@ -1835,10 +1835,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01+15": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1873,10 +1873,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01+16": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview+16": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1896,10 +1896,10 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:11:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "57297055-2aa9-4d69-9938-2e4ea7120478" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:11:58.4117180Z" ], @@ -1913,10 +1913,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+17": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1936,11 +1936,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:11:38 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5e491520-c336-47b8-b10a-32323cd9ba36" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:11:58.7206485Z" ], @@ -1954,10 +1954,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+18": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1977,11 +1977,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:12:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e2cac9bf-2052-4563-a905-4103b0995d6f" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:13:08.7522781Z" ], @@ -1995,10 +1995,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+19": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2018,11 +2018,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:12:39 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "07941e29-6fbc-428c-80e3-33657f1dd2de" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:13:06.5208378Z" ], @@ -2036,10 +2036,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+20": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2059,11 +2059,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:13:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b87221da-773a-458f-9d79-3af30fa9d22e" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:14:09.3405929Z" ], @@ -2077,10 +2077,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+21": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2100,11 +2100,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:13:39 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "bb51bbce-f196-4517-a3eb-3ae29c31bf2c" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:14:39.6718858Z" ], @@ -2118,10 +2118,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+22": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2141,11 +2141,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:14:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d26280df-92c2-468a-9885-9c9a9f3cf170" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:15:10.0109057Z" ], @@ -2159,10 +2159,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+23": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2182,11 +2182,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:14:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e8372102-7a98-4ac6-845a-6ba1c1a06a53" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:15:40.2794520Z" ], @@ -2200,10 +2200,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+24": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2223,11 +2223,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:15:10 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3dd248b3-8b81-40d9-be8e-28e3e660c211" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:16:04.3237480Z" ], @@ -2241,10 +2241,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+25": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2264,11 +2264,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:15:40 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "550da00e-523c-4823-8df0-9c651256ab9c" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:16:40.7443151Z" ], @@ -2282,10 +2282,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+26": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2305,11 +2305,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:16:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "eac03fdd-bbcf-4715-a67d-04210ff43091" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:17:11.0251967Z" ], @@ -2323,10 +2323,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+27": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2346,11 +2346,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:16:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f0005c8f-beeb-4b78-b30e-196b3530bcbf" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:17:41.2710343Z" ], @@ -2364,10 +2364,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+28": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2387,11 +2387,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:17:11 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "70577092-fa1a-4fa1-98aa-a4e53c2c9d01" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:18:11.5094672Z" ], @@ -2405,10 +2405,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+29": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2428,11 +2428,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:17:41 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "881205a9-ee80-44ba-83db-a5eac55d46d1" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:18:41.8079689Z" ], @@ -2446,10 +2446,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+30": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+30": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2469,11 +2469,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:18:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e1261913-d402-4e4c-ba68-706435e4df31" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:19:12.0663603Z" ], @@ -2487,10 +2487,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true+31": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true+31": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2510,11 +2510,11 @@ "Headers": { "Date": [ "Sat, 29 Jul 2023 01:18:12 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c4188a02-1fef-49f4-87c9-1b45c2f742be" ], "x-ms-client-request-id": [ "f1de9d04-7d60-4d35-9f67-b3ecdd421256" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/0acf16ab-4dad-4f35-8e9f-5a8816f45920?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-29T01:19:12.3464009Z" ], @@ -2528,10 +2528,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01+32": { + "Remove-AzDevCenterUserDevBox+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview+32": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Tests.ps1 index 1509f7c780fb..04ce295458a3 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserDevBox.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Remove-AzDevCenterUserDevBox' { { Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.deleteDevBox1 } | Should -Throw if ($Record -or $Live) { - Remove-AzDevCenterUserDevBox -DevCenter $env.devCenterName -Name $env.deleteDevBox2 -ProjectName $env.projectName + Remove-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -Name $env.deleteDevBox2 -ProjectName $env.projectName { Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.deleteDevBox2 } | Should -Throw } @@ -33,7 +33,7 @@ Describe 'Remove-AzDevCenterUserDevBox' { { Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.deleteDevBox3 } | Should -Throw if ($Record -or $Live) { - Remove-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput2 + Remove-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput2 { Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.deleteDevBox4 } | Should -Throw } } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Recording.json index 5f56fcde987a..01a16be92033 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Recording.json @@ -1,8 +1,8 @@ { - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-04-01+1": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,10 +22,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:55:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "5a2d9708-d839-4919-9da0-336270708897" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "291" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:56:02.9431410Z" ], @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true+2": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -62,11 +62,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:56:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b82e3626-91c0-4936-97d1-d4733cc5f48f" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "292" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:56:30.0720809Z" ], @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true+3": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -103,11 +103,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:56:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e058fe12-61ca-453a-b167-7f4c97d2a2aa" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:57:49.5740812Z" ], @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true+4": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -144,11 +144,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:57:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "102e7f6a-952d-4057-bb52-25f730dbbad4" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:58:19.9516280Z" ], @@ -162,10 +162,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true+5": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -185,11 +185,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:57:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "979e4ce3-3e4c-41ad-adde-652bc73be68f" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:58:50.3730969Z" ], @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true+6": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -226,11 +226,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:57:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4795b2b0-cad7-4841-b926-21030cb6f5b7" ], "x-ms-client-request-id": [ "40000905-dab4-4b8e-9373-6b70c49b9c97" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a1ceb38a-5004-46bf-a813-af3eb841ac16?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:58:50.7541041Z" ], @@ -244,10 +244,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-04-01+7": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-10-01-preview+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/uwqne8?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -282,10 +282,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-04-01+8": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-10-01-preview+8": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -305,10 +305,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:57:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "fabeac9c-3875-4f08-9b4e-9f3f161c4342" ], "x-ms-client-request-id": [ "7010821c-4d89-4d0e-89b0-2d38e5e75979" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:58:50.3730969Z" ], @@ -322,10 +322,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true+9": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -345,11 +345,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:58:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "faa4ee73-6cce-4310-b387-87a1478af099" ], "x-ms-client-request-id": [ "7010821c-4d89-4d0e-89b0-2d38e5e75979" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:58:50.7541041Z" ], @@ -363,10 +363,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true+10": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -386,11 +386,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:58:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1899a056-e1dd-4014-bffd-133c06d1dbce" ], "x-ms-client-request-id": [ "7010821c-4d89-4d0e-89b0-2d38e5e75979" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:59:53.0623598Z" ], @@ -404,10 +404,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true+11": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -427,11 +427,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:59:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "459b8556-f522-41f1-a8e9-fe60d2a6b330" ], "x-ms-client-request-id": [ "7010821c-4d89-4d0e-89b0-2d38e5e75979" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:00:23.3336860Z" ], @@ -445,10 +445,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true+12": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -468,11 +468,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:59:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ded4af18-7cbc-478f-bbef-19a8118bef62" ], "x-ms-client-request-id": [ "7010821c-4d89-4d0e-89b0-2d38e5e75979" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e390e78d-5536-4e60-bf93-1ea1b343b081?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:00:23.6030329Z" ], @@ -486,10 +486,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-04-01+13": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+Delete+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/c5dqaf?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -524,10 +524,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-04-01+1": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-10-01-preview+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -547,10 +547,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:59:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "355b859e-ab01-4a81-9d22-85e1676560fa" ], "x-ms-client-request-id": [ "49f70f6c-a858-4a60-8523-ffc078171c57" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:00:23.3336860Z" ], @@ -564,10 +564,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true+2": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -587,11 +587,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:59:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "16ebffa2-5077-4c82-93f4-33be842f2ef8" ], "x-ms-client-request-id": [ "49f70f6c-a858-4a60-8523-ffc078171c57" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:00:23.6030329Z" ], @@ -605,10 +605,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true+3": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -628,11 +628,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:00:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "55a985e9-f8ac-4955-abc9-c3f8f358a468" ], "x-ms-client-request-id": [ "49f70f6c-a858-4a60-8523-ffc078171c57" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:01:24.8948673Z" ], @@ -646,10 +646,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true+4": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -669,11 +669,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:00:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5a414879-c795-4949-9db7-1946adb883e6" ], "x-ms-client-request-id": [ "49f70f6c-a858-4a60-8523-ffc078171c57" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/5d8a1b16-0189-40c8-984b-5e7af834aacd?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:01:25.2709029Z" ], @@ -687,10 +687,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-04-01+5": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-10-01-preview+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/q52klh?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -725,10 +725,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-04-01+6": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$DELETE+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-10-01-preview+6": { "Request": { "Method": "DELETE", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -748,10 +748,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:00:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "19b8305e-5480-4e49-bf23-03b000a019bc" ], "x-ms-client-request-id": [ "339c6786-3caf-4013-bfcf-56f09b854407" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:01:24.8948673Z" ], @@ -765,10 +765,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true+7": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -788,11 +788,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:00:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "5763855d-93bd-479d-8cb7-a807b7aece0f" ], "x-ms-client-request-id": [ "339c6786-3caf-4013-bfcf-56f09b854407" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:01:25.2709029Z" ], @@ -806,10 +806,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true+8": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -829,11 +829,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:01:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "43a95d6d-86ae-4c7d-bd64-4e70d0ab28d1" ], "x-ms-client-request-id": [ "339c6786-3caf-4013-bfcf-56f09b854407" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:02:27.7434885Z" ], @@ -847,10 +847,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true+9": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -870,11 +870,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 02:01:28 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "74250d9a-cbed-44d0-a146-577f56c9acf7" ], "x-ms-client-request-id": [ "339c6786-3caf-4013-bfcf-56f09b854407" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7c955f9-dd06-44ce-8637-1b154ca9f5f1?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T02:02:27.9766524Z" ], @@ -888,10 +888,10 @@ "isContentBase64": false } }, - "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-04-01+10": { + "Remove-AzDevCenterUserEnvironment+[NoContext]+DeleteViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-10-01-preview+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/environments/kfh3c4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Tests.ps1 index 86d118b5fc3c..7339526c1196 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Remove-AzDevCenterUserEnvironment.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Remove-AzDevCenterUserEnvironment' { { Get-AzDevCenterUserEnvironment -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.envNameToDelete } | Should -Throw if ($Record -or $Live) { - Remove-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -Name $env.envNameToDelete2 -ProjectName $env.projectName + Remove-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -Name $env.envNameToDelete2 -ProjectName $env.projectName { Get-AzDevCenterUserEnvironment -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.envNameToDelete2 } | Should -Throw } @@ -33,7 +33,7 @@ Describe 'Remove-AzDevCenterUserEnvironment' { { Get-AzDevCenterUserEnvironment -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.envNameToDelete3 } | Should -Throw if ($Record -or $Live) { - Remove-AzDevCenterUserEnvironment -DevCenter $env.devCenterName -InputObject $envInput2 + Remove-AzDevCenterUserEnvironment -DevCenterName $env.devCenterName -InputObject $envInput2 { Get-AzDevCenterUserEnvironment -Endpoint $env.endpoint -ProjectName $env.projectName -UserId "me" -Name $env.envNameToDelete4 } | Should -Throw } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Recording.json new file mode 100644 index 000000000000..bd75ab8f25c1 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Recording.json @@ -0,0 +1,2868 @@ +{ + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox2:repair?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox2:repair?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:35:31 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "x-ms-correlation-request-id": [ "74debe8f-2870-4e02-abb7-01738d95939a" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:36:31.5336502Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "271" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"NotStarted\",\n \"resourceId\": \"/projects/amlim-project/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/devbox2\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:36:01 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "464287e9-b5f0-4789-8ac2-69c9c6693a7b" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:37:01.8864828Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:36:32 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "f6d5907c-6188-4477-9600-4500c26d7358" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:37:32.1242419Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:37:02 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "bd0d646c-4d05-4446-91cc-2a416848b422" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:38:02.2873542Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:37:32 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "a56ee516-6e5f-4330-a21b-e73c04a25601" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:38:32.4276852Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:38:02 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "d03a88d5-db54-4f23-9cfb-b5e992b89665" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:39:02.5654283Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:38:32 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "26c702eb-e30d-4fe6-be13-73f74a1221b0" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:39:32.8329794Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:39:03 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "d9ed73bc-9cd9-41e4-a564-bad7d3348c4e" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:40:02.9773067Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:39:33 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "ef5aa264-9e6c-46ea-9d00-a3b97270387c" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:40:33.1104839Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:40:03 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "b0cde278-dc96-4733-ad88-31c75594b306" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:41:03.2868586Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:40:33 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "ff84fbd4-3a1c-4a8a-bce2-cc51afea19c9" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:41:33.4272465Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:41:03 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "9a1eb235-252b-4adc-a150-033144ed2a65" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:42:03.5488907Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:41:33 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "43780ed1-33e5-4ff6-b683-8a90359a05b0" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:42:33.7717514Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:42:04 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "b927cb3a-f4dd-4073-b7de-73cdcdf3b964" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:43:03.9922154Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\",\n \"endTime\": \"2023-09-13T03:41:35.8127376+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:42:04 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "0267d546-3eaf-4940-bc57-a73ace95b71d" ], + "x-ms-client-request-id": [ "7192ea47-d6e7-4f83-85b3-be254694c6a2" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:43:04.1898036Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"name\": \"cab60f1e-2656-45d4-9374-db1fb8d3057e\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:35:31.5570459+00:00\",\n \"endTime\": \"2023-09-13T03:41:35.8127376+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox3:repair?api-version=2023-10-01-preview+16": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox3:repair?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:42:17 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "x-ms-correlation-request-id": [ "0b81c6eb-d9b1-42d7-9b3c-8bfbd5dd14d3" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:42:33.7717514Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "271" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"NotStarted\",\n \"resourceId\": \"/projects/amlim-project/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/devbox3\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:42:47 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "1bf94de3-147f-44a1-9108-1703d7d107f9" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:43:03.9922154Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:43:17 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "289d16ac-0052-4284-84db-c85675f56cf9" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:44:17.4555187Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:43:47 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "b7f26d52-b911-4cec-af86-7b52ac3141c6" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:44:47.5847543Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:44:17 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "cbfbe37e-401e-4e98-8f1d-2034d26a38ab" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:45:17.7296503Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:44:47 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "40ee4aaf-1083-49f0-b7d3-ac624abbcef7" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:45:47.8518759Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:45:18 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "9135909e-3e2f-47d1-b6fa-b5ca191a3e6c" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:46:17.9906749Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:45:48 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "25ae8f36-4639-42bf-83a8-825559e8b854" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:46:48.1384176Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:46:18 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "71d29785-8ad2-47e8-a53d-d36f6753581e" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:47:18.2888261Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:46:48 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "25afed5e-031d-477b-8853-c79396dc9f56" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:47:48.5790877Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:47:18 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "8185f586-a266-4790-beb8-bb74b1640b5a" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:48:18.8388331Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:47:49 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "998e94bc-1dea-4770-bb82-a52ba7d2d200" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:48:49.0421093Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:48:19 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "42a74047-e627-405b-ba9f-101a349efe58" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:49:19.1752322Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+29": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:48:49 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "05cfddea-c99e-49c6-81fa-98b0a43a628b" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:49:49.3947142Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+30": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:49:19 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "5447f103-905d-4762-a432-4f04647f776c" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:50:19.5544117Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+31": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:49:49 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "90f81914-cacd-46ea-83d5-7dbc27ecdc05" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:50:49.7129775Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+32": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:50:19 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "26c872e3-8046-4512-96aa-31658114a9f2" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:51:19.8681824Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+33": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:50:50 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "dee90101-5196-4881-ba28-2fc6a5cf6e69" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:51:50.0072091Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+34": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:51:20 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "60cffd2f-9fc9-48b5-b6c1-f2ba61fec904" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:52:20.1615128Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+35": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:51:50 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "27512f4d-0606-4e22-bafc-5d89bf2df84f" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:52:50.3003457Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+36": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:52:20 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "871a210a-d027-4d4e-8739-13cb282ea630" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:53:20.5242120Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+37": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:52:50 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "e1f216d7-6fc8-4074-9399-441a019c18c6" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:53:50.6538551Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+38": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:53:21 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "028b4d9a-61b4-417c-a613-cc373cb74cb8" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:54:21.3596352Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+39": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:53:51 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "cadb20e9-5abf-4226-9d19-6b01a3125ff4" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:54:51.5207070Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+40": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:54:21 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "8d74469e-511d-48f0-8165-806414265520" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:55:21.8928980Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+41": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:54:52 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "46c82bee-1e19-4431-a7f0-cf728e5670f1" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:55:52.0177414Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\",\n \"endTime\": \"2023-09-13T03:54:51.3980305+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+Repair+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true+42": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_Repair" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:54:52 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "48a6476c-e427-46a1-9a24-4cd84907e988" ], + "x-ms-client-request-id": [ "0e6c0ea6-6bab-4cff-b2a3-751cc9c18391" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:55:52.1627441Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"name\": \"b1c27c76-2038-4d15-bf3c-8ed6c676aaf9\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:42:17.1203144+00:00\",\n \"endTime\": \"2023-09-13T03:54:51.3980305+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox4:repair?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox4:repair?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:54:53 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "x-ms-correlation-request-id": [ "a988847a-de62-4230-907d-5ff6388d67aa" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:55:21.8928980Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "271" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"NotStarted\",\n \"resourceId\": \"/projects/amlim-project/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/devbox4\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:55:23 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "5906f658-655a-45e7-ad1f-cbaeaff4fff5" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:55:52.0177414Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:55:53 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "47f1dd88-fb2f-452c-ad94-b7e5cdc1d094" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:56:53.3197745Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:56:23 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "49fa1aee-dd3d-4d3e-994c-3ef0df5b4d03" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:57:23.4565968Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:56:53 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "82e68e8a-f4e9-4874-830e-c53b147e4fb0" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:57:53.6056673Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:57:23 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "12c14c97-cdc9-43e4-8544-9972368e2282" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:58:23.8590815Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:57:54 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "54b27786-104f-4641-8c6e-4b0d0dd9366b" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:58:54.0078505Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:58:24 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "bda1b6db-fd7d-4697-aadc-4c84bd0c757a" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:59:24.2184612Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:58:54 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "cf7ce661-fc4b-4169-83e3-c4001fcf7b88" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T03:59:54.3758727Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:59:24 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "078efb31-45f5-4c52-9834-32280e7ff292" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:00:24.5394835Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 03:59:54 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "9ffa2bf9-d3b2-4563-8c59-5dc9a36cb198" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:00:54.6867953Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:00:24 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "f27ae081-3a2a-4c8b-bf40-deed72f9028b" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:01:24.8640733Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:00:55 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "cc1d8e42-9c21-49d7-8578-58b7548e5f1c" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:01:55.0890612Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\",\n \"endTime\": \"2023-09-13T04:00:46.6334696+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:00:55 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "7f99ff43-14f9-40ee-b2f8-d9f96b70074f" ], + "x-ms-client-request-id": [ "372cdc40-a16c-4864-9da8-f5fad86ffc7e" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:01:55.3543958Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"name\": \"4ed062f6-3e1b-47ad-8163-8f4c8d3d8d70\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T03:54:52.4599955+00:00\",\n \"endTime\": \"2023-09-13T04:00:46.6334696+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox4:repair?api-version=2023-10-01-preview+15": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/users/me/devboxes/devbox4:repair?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:01:03 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "x-ms-correlation-request-id": [ "714dc41c-2976-449d-bb61-e4683718d984" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:01:24.8640733Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "271" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"NotStarted\",\n \"resourceId\": \"/projects/amlim-project/users/c3c951b7-d307-4c40-9495-70bd562d98d5/devboxes/devbox4\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+16": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:01:34 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "022efe10-2280-420b-9390-e57fc7bf3c22" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "298" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:01:55.3543958Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+17": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:02:04 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "1f6e0161-4823-462a-b5ba-4db1a955962b" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:03:04.1522912Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+18": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:02:34 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "3491a121-00ae-4245-b115-2721848f0bd7" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:03:34.2913048Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+19": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:03:04 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "ab9d544c-37d1-4c33-8b20-345e329f96e9" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:04:04.4474790Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+20": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:03:34 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "656b53fa-624b-4846-a397-b717c6f14c45" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:04:34.6105305Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+21": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:04:04 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "912b9c6e-394b-45b5-a2d6-63cc343a4072" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:05:04.7773025Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+22": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:04:35 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "8a716ca8-ddd1-484a-a07a-b960a4d043cb" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:05:35.0562642Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+23": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:05:05 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "02c1915a-9c1a-4a80-98ab-872aa5cab0b4" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:06:05.2254536Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+24": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:05:35 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "0b33125f-2d54-4a7a-8aaa-de8131de07b0" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:06:35.3611355Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+25": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:06:05 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "814e9dca-3c6c-41cd-a6b1-20107063571f" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:07:05.5727987Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+26": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:06:35 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "31b52448-5bc5-42ab-8a37-30e883d94b99" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:07:35.7801665Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "217" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Running\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+27": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:07:05 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "72c4a3d9-76a7-41d3-80d9-28f6a2271b8d" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:08:05.9383879Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\",\n \"endTime\": \"2023-09-13T04:06:42.2463993+00:00\"\n}", + "isContentBase64": false + } + }, + "Repair-AzDevCenterUserDevBox+[NoContext]+RepairViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true+28": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "CommandName": [ "Az.DevCenterdata.internal\\Repair-AzDevCenterUserDevBox" ], + "FullCommandName": [ "Repair-AzDevCenterUserDevBox_RepairViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v9.4.0", "PSVersion/v7.2.13", "Az.DevCenterdata/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Wed, 13 Sep 2023 04:07:06 GMT" ], + "Connection": [ "keep-alive" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview\u0026monitor=true" ], + "Retry-After": [ "30" ], + "x-ms-correlation-request-id": [ "a417ed3a-806d-4f37-a105-69f90cc5c84d" ], + "x-ms-client-request-id": [ "d3bcd15b-0345-4c66-a3fb-551d25611bc1" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/projects/amlim-project/operationstatuses/319a5541-6189-45ce-b203-9e83545c574a?api-version=2023-10-01-preview" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "299" ], + "X-Rate-Limit-Reset": [ "2023-09-13T04:08:06.0929212Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "269" ] + }, + "Content": "{\n \"id\": \"/projects/amlim-project/operationStatuses/319a5541-6189-45ce-b203-9e83545c574a\",\n \"name\": \"319a5541-6189-45ce-b203-9e83545c574a\",\n \"status\": \"Succeeded\",\n \"startTime\": \"2023-09-13T04:01:03.7710812+00:00\",\n \"endTime\": \"2023-09-13T04:06:42.2463993+00:00\"\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Tests.ps1 new file mode 100644 index 000000000000..3bf0e045e927 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Repair-AzDevCenterUserDevBox.Tests.ps1 @@ -0,0 +1,37 @@ +if (($null -eq $TestName) -or ($TestName -contains 'Repair-AzDevCenterUserDevBox')) { + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Repair-AzDevCenterUserDevBox.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 'Repair-AzDevCenterUserDevBox' { + It 'Repair' { + $repairOperation = Repair-AzDevCenterUserDevBox -Endpoint "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/" -Name "devbox2" -ProjectName "amlim-project" + $repairOperation.Status | Should -Be "Succeeded" + + if ($Record -or $Live) { + $repairOperation = Repair-AzDevCenterUserDevBox -DevCenterName "amlim-dc-euap" -Name "devbox3" -ProjectName "amlim-project" + $repairOperation.Status | Should -Be "Succeeded" + } } + + It 'RepairViaIdentity' { + $devBoxInput = @{"DevBoxName" = "devbox4"; "UserId" = "me"; "ProjectName" = "amlim-project" } + + $repairOperation = Repair-AzDevCenterUserDevBox -Endpoint "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-amlim-dc-euap.centraluseuap.devcenter.azure.com/" -InputObject $devBoxInput + $repairOperation.Status | Should -Be "Succeeded" + + if ($Record -or $Live) { + $repairOperation = Repair-AzDevCenterUserDevBox -DevCenterName "amlim-dc-euap" -InputObject $devBoxInput + $repairOperation.Status | Should -Be "Succeeded" + } + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Recording.json index 6817c3730a86..4ef803fcfe57 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01+1": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,10 +22,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:40:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "524fcd4f-7135-4d40-b661-3e9259cb3746" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:40:50.8162048Z" ], @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+2": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -62,11 +62,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:40:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "867a8ef9-f5ff-476d-afc9-3a390f0bea00" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:41:22.7483694Z" ], @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+3": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -103,11 +103,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:41:24 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d882b603-a0a4-4bcb-9e98-2d024b0e7cc6" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:42:24.3392804Z" ], @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+4": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -144,11 +144,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:41:54 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "a0fb1789-8bf9-4374-b950-0f856eff75ae" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:42:54.5860403Z" ], @@ -162,10 +162,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+5": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -185,11 +185,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:42:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d14f8a8a-b3b9-42cb-a5b7-f36206fe3291" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:43:24.8733504Z" ], @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+6": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -226,11 +226,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:42:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "474e4efd-6ab3-4790-b6aa-769a90b91c8b" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:43:55.6407977Z" ], @@ -244,10 +244,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+7": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -267,11 +267,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:43:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "89035d97-2f53-4798-a624-75acd6d1596b" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:44:25.9249574Z" ], @@ -285,10 +285,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+8": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -308,11 +308,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:43:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "78c27b18-6213-40f6-8f40-976748e2a390" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:44:56.2124627Z" ], @@ -326,10 +326,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+9": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -349,11 +349,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:44:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d9cf1131-bb61-445c-830d-95eeb4fe94fd" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:45:26.5091136Z" ], @@ -367,10 +367,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+10": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -390,11 +390,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:44:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3771e1e0-bc93-466c-b876-9650f604ceda" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:45:56.9834963Z" ], @@ -408,10 +408,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+11": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -431,11 +431,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:45:27 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f2cafefa-14b1-4113-bb78-9bdc24837e6b" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:46:27.2609673Z" ], @@ -449,10 +449,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+12": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -472,11 +472,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:45:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "677ff7ea-a4a7-49a3-9d0a-f33e33c46796" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:46:57.5041460Z" ], @@ -490,10 +490,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true+13": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -513,11 +513,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:45:57 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "510bc4fa-488e-47d0-8ce7-571cefad09cc" ], "x-ms-client-request-id": [ "af99222f-1c30-4527-a981-236f6c8824b0" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/71368dbc-9d47-49e1-b7d3-8bef3c7e1400?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:46:27.2609673Z" ], @@ -531,10 +531,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+14": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -569,10 +569,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01+15": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview+15": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -592,10 +592,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:46:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "22a50355-ec38-4e32-b4d1-eae80c8d3018" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:46:57.5041460Z" ], @@ -609,10 +609,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+16": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -632,11 +632,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:46:31 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "48cec2b8-5f5e-4c9c-b68d-41c8ec2fb146" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:47:31.2503915Z" ], @@ -650,10 +650,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+17": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -673,11 +673,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:47:01 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "59960e0b-d100-49f3-9833-56f7a5ef7ae6" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:48:01.6732921Z" ], @@ -691,10 +691,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+18": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -714,11 +714,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:47:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e34d7fbf-8315-498a-8924-790b300a1220" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:48:31.9155322Z" ], @@ -732,10 +732,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+19": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -755,11 +755,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:48:02 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "544b22f3-09b1-457c-b8b1-a6246474e217" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:48:50.8346698Z" ], @@ -773,10 +773,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+20": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -796,11 +796,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:48:32 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1dc2c3ea-6fa9-4787-b3e9-c88993c66a65" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:49:32.7374905Z" ], @@ -814,10 +814,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+21": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -837,11 +837,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:49:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "816c5719-5d09-489e-b9fb-f73bd9cd9dca" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:50:03.0273524Z" ], @@ -855,10 +855,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+22": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -878,11 +878,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:49:33 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "61efff7f-424e-41fd-b7b7-0e1d383f0dd5" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:49:50.8222148Z" ], @@ -896,10 +896,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+23": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -919,11 +919,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:50:03 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ed140851-c18c-4ead-95f4-f4c3da421ec9" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:51:03.6289486Z" ], @@ -937,10 +937,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+24": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -960,11 +960,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:50:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "cee8aba9-ff4d-497a-858c-6682c5869450" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:51:33.8888706Z" ], @@ -978,10 +978,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+25": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1001,11 +1001,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:51:04 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "43e62791-4b55-4837-9ef8-026c548ede0e" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:52:04.1570503Z" ], @@ -1019,10 +1019,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+26": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1042,11 +1042,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:51:34 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9d7a348f-996c-4c9a-8dbd-4f0f79e59803" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:52:34.5389519Z" ], @@ -1060,10 +1060,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+27": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1083,11 +1083,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:52:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b69c7734-6dcf-48a3-8a25-d50b521e0115" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:53:04.8037157Z" ], @@ -1101,10 +1101,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true+28": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1124,11 +1124,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:52:05 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "64ec5ddf-b278-4d29-8e86-bd6378c686e1" ], "x-ms-client-request-id": [ "143939e8-c4fe-4d93-b5da-77206e1788cf" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/a7053b54-814d-4cad-afc1-fdc025a11690?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:53:05.1023293Z" ], @@ -1142,10 +1142,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+29": { + "Restart-AzDevCenterUserDevBox+[NoContext]+Restart+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1180,10 +1180,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01+1": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1203,10 +1203,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:52:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "cc6c334d-3e95-4feb-a9ac-f0b87de15ff7" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:53:04.8037157Z" ], @@ -1220,10 +1220,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+2": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1243,11 +1243,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:52:36 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "7b752fd3-e62e-454f-ae86-fe5186540d7c" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:53:05.1023293Z" ], @@ -1261,10 +1261,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+3": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1284,11 +1284,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:53:06 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d0a87eec-e24b-4d26-bf33-951426040a18" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:54:06.5062988Z" ], @@ -1302,10 +1302,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+4": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1325,11 +1325,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:53:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "6c089ed4-d349-4cd9-97b5-bab61a80a87c" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:54:36.7846360Z" ], @@ -1343,10 +1343,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+5": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1366,11 +1366,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:54:07 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "760ffb0b-daee-43d7-b5bb-62f1833f2576" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:55:07.1197523Z" ], @@ -1384,10 +1384,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+6": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1407,11 +1407,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:54:37 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b3a31174-970c-4bb2-8c32-cda84e1cb8c0" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:55:37.4664767Z" ], @@ -1425,10 +1425,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+7": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1448,11 +1448,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:55:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9c50c554-1450-4bc4-b555-1a8eba2df8e0" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:56:07.7714333Z" ], @@ -1466,10 +1466,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+8": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1489,11 +1489,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:55:38 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d0f362c5-bd56-4e62-9a62-65bb49dd7a84" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:56:38.1108516Z" ], @@ -1507,10 +1507,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+9": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1530,11 +1530,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:56:08 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c828cbb3-4572-4355-bf5a-b051225eb944" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:56:50.8209463Z" ], @@ -1548,10 +1548,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+10": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1571,11 +1571,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:56:39 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "900291d1-b0d2-491e-a861-435be09a4db9" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:57:38.8238504Z" ], @@ -1589,10 +1589,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+11": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1612,11 +1612,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:57:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4fbdb293-f7b7-4d37-8388-9d6f1629f137" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:58:09.1352995Z" ], @@ -1630,10 +1630,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true+12": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1653,11 +1653,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:57:09 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c93b30b0-685b-4b39-a977-23fb61d0f454" ], "x-ms-client-request-id": [ "d8585b36-0a6c-4e8c-b32b-e9226a66b6e7" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/51bf03ed-83d3-4c0f-b97e-dc8e445dc8e9?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:58:09.5318486Z" ], @@ -1671,10 +1671,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+13": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1709,10 +1709,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01+14": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview+14": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd:restart?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1732,10 +1732,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:57:18 GMT" ], "Connection": [ "close" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "c4d759d3-3817-478c-8a7a-219bb7bcc3e7" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:58:09.1352995Z" ], @@ -1749,10 +1749,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+15": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1772,11 +1772,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:57:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9caa6902-db48-4c34-8962-d96c59cd2b7d" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:58:48.9721127Z" ], @@ -1790,10 +1790,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+16": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1813,11 +1813,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:58:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "eec47915-a8ca-44c1-af78-866272045b7b" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:59:19.2421203Z" ], @@ -1831,10 +1831,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+17": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1854,11 +1854,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:58:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "afb323a7-02a7-4758-bf3f-35fca0abf8c2" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:59:49.4787273Z" ], @@ -1872,10 +1872,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+18": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1895,11 +1895,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:59:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "b6ec2fcd-88c0-4e46-b883-5bcd18ba7788" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T00:59:50.7591004Z" ], @@ -1913,10 +1913,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+19": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1936,11 +1936,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 00:59:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8b09c05f-b148-46a3-8e77-cc1f00b244b4" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:00:40.8004127Z" ], @@ -1954,10 +1954,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+20": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1977,11 +1977,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:00:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ea3d32af-8fbd-47fd-a87e-c764346f180b" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:01:20.5793247Z" ], @@ -1995,10 +1995,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+21": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2018,11 +2018,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:00:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "17fd0d2c-f180-4c0d-882f-7b8a1e4fffdd" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:01:50.9051599Z" ], @@ -2036,10 +2036,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+22": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2059,11 +2059,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:01:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "f5c3eba8-35b4-479f-9f21-8bbbab16dcde" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:02:21.2051397Z" ], @@ -2077,10 +2077,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+23": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2100,11 +2100,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:01:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "265c265a-7cc2-401d-ae56-3dc47e1523d4" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:02:51.7085943Z" ], @@ -2118,10 +2118,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+24": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2141,11 +2141,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:02:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1c4e5aa3-88d8-469b-9100-cad3cd5732c0" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:03:22.0224043Z" ], @@ -2159,10 +2159,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+25": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2182,11 +2182,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:02:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1bca8103-5e55-4b9a-95ab-ac3d5823bcc7" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:03:52.3386537Z" ], @@ -2200,10 +2200,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true+26": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2223,11 +2223,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 01:02:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "4b98143e-1cd0-4b5a-bd31-a512b45fff83" ], "x-ms-client-request-id": [ "cb396122-973c-4b27-a6d3-d29e6d74651e" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/2a8e229f-ed55-4de6-a5c8-7a5b8bed04d5?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T01:03:52.6203218Z" ], @@ -2241,10 +2241,10 @@ "isContentBase64": false } }, - "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01+27": { + "Restart-AzDevCenterUserDevBox+[NoContext]+RestartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k507fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Tests.ps1 index d018880e050f..ab10ee058ab6 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Restart-AzDevCenterUserDevBox.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Restart-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $restartOperation = Restart-AzDevCenterUserDevBox -DevCenter $env.devCenterName -Name $env.devBoxName -ProjectName $env.projectName + $restartOperation = Restart-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -Name $env.devBoxName -ProjectName $env.projectName $restartOperation.Status | Should -Be "Succeeded" $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.devBoxName -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Started" @@ -40,7 +40,7 @@ Describe 'Restart-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $restartOperation = Restart-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput + $restartOperation = Restart-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput $restartOperation.Status | Should -Be "Succeeded" $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.devBoxName -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Started" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Recording.json index 25cf33450e49..cadc21d83d01 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Recording.json @@ -1,8 +1,8 @@ { - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-04-01+1": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -72,10 +72,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default:skip?api-version=2023-04-01+2": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default:skip?api-version=2023-10-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default:skip?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default:skip?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -138,10 +138,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-04-01+3": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -211,10 +211,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-04-01+4": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -284,10 +284,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default:skip?api-version=2023-04-01+5": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default:skip?api-version=2023-10-01-preview+5": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default:skip?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default:skip?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -350,10 +350,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-04-01+6": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -423,10 +423,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-04-01+1": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-10-01-preview+1": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -496,10 +496,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default:skip?api-version=2023-04-01+2": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default:skip?api-version=2023-10-01-preview+2": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default:skip?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default:skip?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -562,10 +562,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-04-01+3": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-10-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -635,10 +635,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-04-01+4": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-10-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -708,10 +708,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default:skip?api-version=2023-04-01+5": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default:skip?api-version=2023-10-01-preview+5": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default:skip?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default:skip?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -774,10 +774,10 @@ "isContentBase64": false } }, - "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-04-01+6": { + "Skip-AzDevCenterUserDevBoxAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3/actions/schedule-default?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Tests.ps1 index 1e3f3fee3236..da54bcddc5ca 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserDevBoxAction.Tests.ps1 @@ -15,21 +15,21 @@ if (($null -eq $TestName) -or ($TestName -contains 'Skip-AzDevCenterUserDevBoxAc Describe 'Skip-AzDevCenterUserDevBoxAction' { It 'Skip' { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -Name "schedule-default" $skipTimeSpan = New-TimeSpan -Days 1 $newScheduledTime = $action.NextScheduledTime + $skipTimeSpan - Skip-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -ActionName "schedule-default" - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -ActionName "schedule-default" + Skip-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -Name "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox1 -ProjectName $env.projectName -Name "schedule-default" $action.NextScheduledTime | Should -Be $newScheduledTime if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -Name "schedule-default" $skipTimeSpan = New-TimeSpan -Days 1 $newScheduledTime = $action.NextScheduledTime + $skipTimeSpan - Skip-AzDevCenterUserDevBoxAction -DevCenter $env.devCenterName -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -ActionName "schedule-default" - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -ActionName "schedule-default" + Skip-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -Name "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox4 -ProjectName $env.projectName -Name "schedule-default" $action.NextScheduledTime | Should -Be $newScheduledTime } @@ -39,19 +39,19 @@ Describe 'Skip-AzDevCenterUserDevBoxAction' { $actionInput = @{"ProjectName" = $env.projectName; "DevBoxName" = $env.skipDevBox2; "ActionName" = "schedule-default"; "UserId" = "me" } $actionInput2 = @{"ProjectName" = $env.projectName; "DevBoxName" = $env.skipDevBox3; "ActionName" = "schedule-default"; "UserId" = "me"} - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox2 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox2 -ProjectName $env.projectName -Name "schedule-default" $skipTimeSpan = New-TimeSpan -Days 1 $newScheduledTime = $action.NextScheduledTime + $skipTimeSpan Skip-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -InputObject $actionInput - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox2 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox2 -ProjectName $env.projectName -Name "schedule-default" $action.NextScheduledTime | Should -Be $newScheduledTime if ($Record -or $Live) { - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox3 -ProjectName $env.projectName -ActionName "schedule-default" + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox3 -ProjectName $env.projectName -Name "schedule-default" $skipTimeSpan = New-TimeSpan -Days 1 $newScheduledTime = $action.NextScheduledTime + $skipTimeSpan - Skip-AzDevCenterUserDevBoxAction -DevCenter $env.devCenterName -InputObject $actionInput2 - $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox3 -ProjectName $env.projectName -ActionName "schedule-default" + Skip-AzDevCenterUserDevBoxAction -DevCenterName $env.devCenterName -InputObject $actionInput2 + $action = Get-AzDevCenterUserDevBoxAction -Endpoint $env.endpoint -DevBoxName $env.skipDevBox3 -ProjectName $env.projectName -Name "schedule-default" $action.NextScheduledTime | Should -Be $newScheduledTime } } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Recording.json new file mode 100644 index 000000000000..5f444e7f7637 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Recording.json @@ -0,0 +1,162 @@ +{ + "Skip-AzDevCenterUserEnvironmentAction+[NoContext]+Skip+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete:skip?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions/Delete:skip?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "c88ed6f8-1bcb-44e7-a48b-e49d79341834" ], + "CommandName": [ "Az.DevCenterdata.internal\\Skip-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Skip-AzDevCenterUserEnvironmentAction_Skip" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:02 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "6543f981-0a91-4143-876e-64881978cec8" ], + "x-ms-client-request-id": [ "c88ed6f8-1bcb-44e7-a48b-e49d79341834" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "293" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:19.9072809Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + }, + "Content": null, + "isContentBase64": false + } + }, + "Skip-AzDevCenterUserEnvironmentAction+[NoContext]+Skip+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh/actions?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "fa453b62-0124-4573-8806-be4a15618e3f" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:02 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "80464c98-bfed-4649-b9db-397460f12ea8" ], + "x-ms-client-request-id": [ "fa453b62-0124-4573-8806-be4a15618e3f" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "295" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:20.3990084Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "17" ] + }, + "Content": "{\n \"value\": []\n}", + "isContentBase64": false + } + }, + "Skip-AzDevCenterUserEnvironmentAction+[NoContext]+SkipViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete:skip?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions/Delete:skip?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3b507720-3143-4201-93a2-62dec9971970" ], + "CommandName": [ "Az.DevCenterdata.internal\\Skip-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Skip-AzDevCenterUserEnvironmentAction_SkipViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:03 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "251dd2c3-9a13-4ab9-bb2d-3d0ba4afbfa1" ], + "x-ms-client-request-id": [ "3b507720-3143-4201-93a2-62dec9971970" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "295" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:19.2886182Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + }, + "Content": null, + "isContentBase64": false + } + }, + "Skip-AzDevCenterUserEnvironmentAction+[NoContext]+SkipViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions?api-version=2023-10-01-preview+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh2/actions?api-version=2023-10-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "411bcaac-45f4-4dbb-8d97-0d7098cac458" ], + "CommandName": [ "Az.DevCenterdata.internal\\Get-AzDevCenterUserEnvironmentAction" ], + "FullCommandName": [ "Get-AzDevCenterUserEnvironmentAction_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.16", "Az.DevCenterdata/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:03 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "8cac707d-f796-4df8-a5d2-660cb58f6b3c" ], + "x-ms-client-request-id": [ "411bcaac-45f4-4dbb-8d97-0d7098cac458" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "292" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:19.9072809Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "17" ] + }, + "Content": "{\n \"value\": []\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Tests.ps1 new file mode 100644 index 000000000000..6c1eb12664fc --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Skip-AzDevCenterUserEnvironmentAction.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Skip-AzDevCenterUserEnvironmentAction')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Skip-AzDevCenterUserEnvironmentAction.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 'Skip-AzDevCenterUserEnvironmentAction' { + It 'Skip' { + Skip-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -Name "Delete" + $listOfActions = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 + $listOfActions.Count | Should -Be 0 + + } + + It 'SkipViaIdentity' { + $environmentInput = @{"EnvironmentName" = $env.envName11; "UserId" = "me"; "ProjectName" = $env.projectName10; "ActionName" = "Delete" } + + + Skip-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -InputObject $environmentInput + + $listOfActions = Get-AzDevCenterUserEnvironmentAction -Endpoint $env.endpoint10 -EnvironmentName $env.envName11 -ProjectName $env.projectName10 + $listOfActions.Count | Should -Be 0 + } + + +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Recording.json index a141ea91b6d2..55fcc9e459f8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01+1": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -22,10 +22,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:25:16 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "003b80f5-86bc-4eea-a76b-169aa2372800" ], "x-ms-client-request-id": [ "c9d14d86-99cd-478e-b100-5a7ae0c31292" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:26:04.5176440Z" ], @@ -39,10 +39,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true+2": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -62,11 +62,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:25:46 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "537add1b-57df-4f51-9293-2a5e4bec2bb4" ], "x-ms-client-request-id": [ "c9d14d86-99cd-478e-b100-5a7ae0c31292" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:26:12.5281379Z" ], @@ -80,10 +80,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true+3": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -103,11 +103,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:26:17 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "903749bb-6d8a-42b9-b0fc-23d994106b82" ], "x-ms-client-request-id": [ "c9d14d86-99cd-478e-b100-5a7ae0c31292" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:27:16.9986692Z" ], @@ -121,10 +121,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true+4": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -144,11 +144,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:26:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3f524693-35ee-41bb-90d9-41e8c2e85529" ], "x-ms-client-request-id": [ "c9d14d86-99cd-478e-b100-5a7ae0c31292" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:27:04.7841607Z" ], @@ -162,10 +162,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true+5": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -185,11 +185,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:26:47 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "46e5e40f-4d05-45fa-8762-d238e8228bdf" ], "x-ms-client-request-id": [ "c9d14d86-99cd-478e-b100-5a7ae0c31292" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/533c0c3f-e602-402f-82ac-5d007aaf6a7a?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:27:19.7728048Z" ], @@ -203,10 +203,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01+6": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -241,10 +241,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01+7": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview+7": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -264,10 +264,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:26:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "9bf24a93-2c84-4e35-a2f3-6c8f8167042e" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:27:04.7841607Z" ], @@ -281,10 +281,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true+8": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -304,11 +304,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:27:19 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d11dbc39-63d7-41ea-8614-7a060fc9dc93" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:27:19.7728048Z" ], @@ -322,10 +322,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true+9": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -345,11 +345,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:27:49 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "3c11bd90-8545-4ca5-936e-a9c8d5877277" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:28:49.7399907Z" ], @@ -363,10 +363,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true+10": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -386,11 +386,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:28:20 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "ecfe975f-414f-41a1-974a-200ef9e16645" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:28:24.1511196Z" ], @@ -404,10 +404,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true+11": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -427,11 +427,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:28:50 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "791502ce-8d8a-423b-83f7-cff8511cea9c" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:29:50.5950462Z" ], @@ -445,10 +445,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true+12": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -468,11 +468,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:28:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "8ce9a54f-5d7d-4ea5-bed1-29d89720ee7c" ], "x-ms-client-request-id": [ "863a4c12-f234-453a-8f98-e5a045863355" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/f748043f-bbed-48f8-8af0-238ed519dad0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:29:49.7934481Z" ], @@ -486,10 +486,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01+13": { + "Start-AzDevCenterUserDevBox+[NoContext]+Start+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -524,10 +524,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01+1": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -547,10 +547,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:28:51 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "3fe76762-d50e-40a8-b3ce-79c1e16f6bc0" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:29:50.5950462Z" ], @@ -564,10 +564,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+2": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -587,11 +587,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:29:21 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "7a2da7d5-f3a0-4650-bf9b-814c10a8608c" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "296" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:29:51.0892414Z" ], @@ -605,10 +605,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+3": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -628,11 +628,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:29:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9ea23e16-f97b-44d7-ae49-a73ba8558978" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:30:52.0008408Z" ], @@ -646,10 +646,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+4": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -669,11 +669,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:30:22 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "9e593954-f05a-4b73-90e5-8cbb10972f05" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:30:54.1381530Z" ], @@ -687,10 +687,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+5": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -710,11 +710,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:30:52 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "15e3b23c-fc0f-4da2-899d-0abfcaeb5d37" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:31:48.1157921Z" ], @@ -728,10 +728,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+6": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -751,11 +751,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:31:23 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "38229124-bfea-4965-868f-373d539428ad" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:31:54.1302186Z" ], @@ -769,10 +769,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+7": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -792,11 +792,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:31:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "1b832ea2-d132-46e4-8224-c7b3a161152e" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:32:53.2301260Z" ], @@ -810,10 +810,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true+8": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -833,11 +833,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:31:53 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "65beea2f-8c4a-40a8-bec8-e5455d13df84" ], "x-ms-client-request-id": [ "b55a21f3-e338-481d-afc4-16fba6d95116" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/e2bc01a7-8547-41a7-a1d6-fa579116d6cb?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:31:54.1302186Z" ], @@ -851,10 +851,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01+9": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview+9": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -889,10 +889,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01+10": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview+10": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd:start?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -912,10 +912,10 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:31:55 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "b8522cc8-3c5e-4189-80fa-dd74c9d860e8" ], "x-ms-client-request-id": [ "5292a2fa-354c-4de0-babc-4eab17d0fcab" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "297" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:32:53.2301260Z" ], @@ -929,10 +929,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true+11": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -952,11 +952,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:32:25 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "c6c862a7-19f8-406b-9f74-67dd4d6dff46" ], "x-ms-client-request-id": [ "5292a2fa-354c-4de0-babc-4eab17d0fcab" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "298" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:33:01.2786528Z" ], @@ -970,10 +970,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true+12": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -993,11 +993,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:32:56 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "d4bbbc76-74b3-41b0-bbcf-de29c896c432" ], "x-ms-client-request-id": [ "5292a2fa-354c-4de0-babc-4eab17d0fcab" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:33:55.9042465Z" ], @@ -1011,10 +1011,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true+13": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1034,11 +1034,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:33:26 GMT" ], "Connection": [ "keep-alive" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "e51ac04d-b475-4a68-a80c-91516ed95061" ], "x-ms-client-request-id": [ "5292a2fa-354c-4de0-babc-4eab17d0fcab" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:34:26.3319842Z" ], @@ -1052,10 +1052,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true+14": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1075,11 +1075,11 @@ "Headers": { "Date": [ "Fri, 28 Jul 2023 16:33:26 GMT" ], "Connection": [ "close" ], - "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01\u0026monitor=true" ], + "Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" ], "x-ms-correlation-request-id": [ "15e7504a-16b9-415f-afe0-6d15e7329fcc" ], "x-ms-client-request-id": [ "5292a2fa-354c-4de0-babc-4eab17d0fcab" ], - "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-04-01" ], + "Operation-Location": [ "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/1386e748-5186-45d8-a02c-d59048a5ff4f?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" ], "X-Rate-Limit-Remaining": [ "299" ], "X-Rate-Limit-Reset": [ "2023-07-28T16:34:26.6729785Z" ], @@ -1093,10 +1093,10 @@ "isContentBase64": false } }, - "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01+15": { + "Start-AzDevCenterUserDevBox+[NoContext]+StartViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/k607fd?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Tests.ps1 index 2976ce2645a4..796743d41d66 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Start-AzDevCenterUserDevBox.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Start-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $startOperation = Start-AzDevCenterUserDevBox -DevCenter $env.devCenterName -Name $env.devboxName3 -ProjectName $env.projectName + $startOperation = Start-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -Name $env.devboxName3 -ProjectName $env.projectName $startOperation.Status | Should -Be "Succeeded" $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.devboxName3 -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Started" @@ -42,7 +42,7 @@ Describe 'Start-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Running" if ($Record -or $Live) { - $startOperation = Start-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput + $startOperation = Start-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput $startOperation.Status | Should -Be "Succeeded" $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.devboxName3 -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Started" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Recording.json index ec0c5d6491dc..d59a7f9e22c7 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Recording.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Recording.json @@ -1,8 +1,8 @@ { - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1:stop?api-version=2023-04-01+1": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1:stop?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1:stop?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1:stop?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -42,7 +42,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "9fd138d8-1edd-49cf-93ff-feb191fa0e19" @@ -51,7 +51,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -78,10 +78,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+2": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -121,7 +121,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -133,7 +133,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -160,10 +160,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+3": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -203,7 +203,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -215,7 +215,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -242,10 +242,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+4": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -285,7 +285,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -297,7 +297,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -324,10 +324,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+5": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -367,7 +367,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -379,7 +379,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -406,10 +406,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+6": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -449,7 +449,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -461,7 +461,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -488,10 +488,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true+7": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -531,7 +531,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -543,7 +543,7 @@ "bb3ed875-c2c1-4011-9113-8ccba64ad256" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/43d327a1-1358-4950-ac3a-b686ed20847d?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -570,10 +570,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01+8": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox1?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -643,10 +643,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2:stop?api-version=2023-04-01+9": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2:stop?api-version=2023-10-01-preview+9": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2:stop?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2:stop?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -686,7 +686,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "c4e1139c-cde7-482b-9daf-9cf7430e8810" @@ -695,7 +695,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -722,10 +722,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true+10": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -765,7 +765,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -777,7 +777,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -804,10 +804,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true+11": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -847,7 +847,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -859,7 +859,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -886,10 +886,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true+12": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -929,7 +929,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -941,7 +941,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -968,10 +968,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true+13": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1011,7 +1011,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1023,7 +1023,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1050,10 +1050,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true+14": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1093,7 +1093,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1105,7 +1105,7 @@ "9f36a26f-bf7c-447f-ba04-ceb5dd9882b8" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/6763cc55-5438-4100-9c92-2a584d5d2742?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1132,10 +1132,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01+15": { + "Stop-AzDevCenterUserDevBox+[NoContext]+Stop+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox2?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1205,10 +1205,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3:stop?api-version=2023-04-01+1": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3:stop?api-version=2023-10-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3:stop?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3:stop?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1248,7 +1248,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "019ce617-b24b-444e-ad73-d32601bc07f8" @@ -1257,7 +1257,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1284,10 +1284,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+2": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+2": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1327,7 +1327,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1339,7 +1339,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1366,10 +1366,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+3": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+3": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1409,7 +1409,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1421,7 +1421,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1448,10 +1448,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+4": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+4": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1491,7 +1491,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1503,7 +1503,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1530,10 +1530,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+5": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+5": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1573,7 +1573,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1585,7 +1585,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1612,10 +1612,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+6": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+6": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1655,7 +1655,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1667,7 +1667,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1694,10 +1694,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true+7": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true+7": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1737,7 +1737,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1749,7 +1749,7 @@ "2085e207-16cb-44af-b620-58e1be109019" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/ca745408-3274-491d-bad3-9cb144299c79?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1776,10 +1776,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01+8": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview+8": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox3?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1849,10 +1849,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4:stop?api-version=2023-04-01+9": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$POST+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4:stop?api-version=2023-10-01-preview+9": { "Request": { "Method": "POST", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4:stop?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4:stop?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1892,7 +1892,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "x-ms-correlation-request-id": [ "a873793b-134e-4305-b0d9-d43802cdc058" @@ -1901,7 +1901,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -1928,10 +1928,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+10": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+10": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -1971,7 +1971,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -1983,7 +1983,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2010,10 +2010,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+11": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+11": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2053,7 +2053,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2065,7 +2065,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2092,10 +2092,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+12": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+12": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2135,7 +2135,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2147,7 +2147,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2174,10 +2174,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+13": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+13": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2217,7 +2217,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2229,7 +2229,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2256,10 +2256,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+14": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+14": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2299,7 +2299,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2311,7 +2311,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2338,10 +2338,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+15": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2381,7 +2381,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2393,7 +2393,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2420,10 +2420,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+16": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+16": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2463,7 +2463,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2475,7 +2475,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2502,10 +2502,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+17": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+17": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2545,7 +2545,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2557,7 +2557,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2584,10 +2584,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+18": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+18": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2627,7 +2627,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2639,7 +2639,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2666,10 +2666,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+19": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+19": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2709,7 +2709,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2721,7 +2721,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2748,10 +2748,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+20": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+20": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2791,7 +2791,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2803,7 +2803,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2830,10 +2830,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+21": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+21": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2873,7 +2873,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2885,7 +2885,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2912,10 +2912,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+22": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+22": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -2955,7 +2955,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -2967,7 +2967,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -2994,10 +2994,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+23": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+23": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3037,7 +3037,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3049,7 +3049,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3076,10 +3076,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+24": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+24": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3119,7 +3119,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3131,7 +3131,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3158,10 +3158,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+25": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+25": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3201,7 +3201,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3213,7 +3213,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3240,10 +3240,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+26": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+26": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3283,7 +3283,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3295,7 +3295,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3322,10 +3322,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+27": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+27": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3365,7 +3365,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3377,7 +3377,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3404,10 +3404,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+28": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+28": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3447,7 +3447,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3459,7 +3459,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3486,10 +3486,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+29": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+29": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3529,7 +3529,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3541,7 +3541,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3568,10 +3568,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+30": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+30": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3611,7 +3611,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3623,7 +3623,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3650,10 +3650,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+31": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+31": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3693,7 +3693,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3705,7 +3705,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3732,10 +3732,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+32": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+32": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3775,7 +3775,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3787,7 +3787,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3814,10 +3814,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+33": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+33": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3857,7 +3857,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3869,7 +3869,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3896,10 +3896,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+34": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+34": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -3939,7 +3939,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -3951,7 +3951,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -3978,10 +3978,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+35": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+35": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4021,7 +4021,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4033,7 +4033,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4060,10 +4060,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+36": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+36": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4103,7 +4103,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4115,7 +4115,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4142,10 +4142,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+37": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+37": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4185,7 +4185,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4197,7 +4197,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4224,10 +4224,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+38": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+38": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4267,7 +4267,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4279,7 +4279,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4306,10 +4306,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+39": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+39": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4349,7 +4349,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4361,7 +4361,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4388,10 +4388,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+40": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+40": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4431,7 +4431,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4443,7 +4443,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4470,10 +4470,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+41": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+41": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4513,7 +4513,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4525,7 +4525,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4552,10 +4552,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+42": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+42": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4595,7 +4595,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4607,7 +4607,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4634,10 +4634,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+43": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+43": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4677,7 +4677,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4689,7 +4689,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4716,10 +4716,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+44": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+44": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4759,7 +4759,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4771,7 +4771,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4798,10 +4798,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+45": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+45": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4841,7 +4841,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4853,7 +4853,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4880,10 +4880,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+46": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+46": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -4923,7 +4923,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -4935,7 +4935,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -4962,10 +4962,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+47": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+47": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5005,7 +5005,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5017,7 +5017,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5044,10 +5044,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+48": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+48": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5087,7 +5087,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5099,7 +5099,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5126,10 +5126,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+49": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+49": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5169,7 +5169,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5181,7 +5181,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5208,10 +5208,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+50": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+50": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5251,7 +5251,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5263,7 +5263,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5290,10 +5290,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+51": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+51": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5333,7 +5333,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5345,7 +5345,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5372,10 +5372,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+52": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+52": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5415,7 +5415,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5427,7 +5427,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5454,10 +5454,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true+53": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true+53": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true", "Content": null, "isContentBase64": false, "Headers": { @@ -5497,7 +5497,7 @@ "keep-alive" ], "Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01\u0026monitor=true" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview\u0026monitor=true" ], "Retry-After": [ "30" @@ -5509,7 +5509,7 @@ "7719a2c2-b2bd-46cc-a209-534bc43c65f5" ], "Operation-Location": [ - "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-04-01" + "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshproja68gny/operationstatuses/b6618a82-8c3a-4db7-a016-e2def3db5dc0?api-version=2023-10-01-preview" ], "X-Rate-Limit-Limit": [ "1m" @@ -5536,10 +5536,10 @@ "isContentBase64": false } }, - "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01+15": { + "Stop-AzDevCenterUserDevBox+[NoContext]+StopViaIdentity+$GET+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview+15": { "Request": { "Method": "GET", - "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-04-01", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com/projects/pwshProja68gny/users/me/devboxes/skipDevBox4?api-version=2023-10-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Tests.ps1 index 28033191640b..2e2a8e639fa8 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Tests.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/Stop-AzDevCenterUserDevBox.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'Stop-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Hibernated" if ($Record -or $Live) { - $stopAction = Stop-AzDevCenterUserDevBox -DevCenter $env.devCenterName -Name $env.skipDevBox2 -ProjectName $env.projectName + $stopAction = Stop-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -Name $env.skipDevBox2 -ProjectName $env.projectName $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.skipDevBox2 -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Stopped" $devBox.PowerState | Should -Be "Hibernated" @@ -41,7 +41,7 @@ Describe 'Stop-AzDevCenterUserDevBox' { $devBox.PowerState | Should -Be "Hibernated" if ($Record -or $Live) { - $stopAction = Stop-AzDevCenterUserDevBox -DevCenter $env.devCenterName -InputObject $devBoxInput2 + $stopAction = Stop-AzDevCenterUserDevBox -DevCenterName $env.devCenterName -InputObject $devBoxInput2 $stopAction.Status | Should -Be "Succeeded" $devBox = Get-AzDevCenterUserDevBox -Endpoint $env.endpoint -Name $env.skipDevBox4 -ProjectName $env.projectName -UserId "me" $devBox.ActionState | Should -Be "Stopped" diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Recording.json b/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Recording.json new file mode 100644 index 000000000000..14a3cc9d3f70 --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Recording.json @@ -0,0 +1,74 @@ +{ + "Update-AzDevCenterUserEnvironment+[NoContext]+PatchExpanded+$PATCH+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh?api-version=2023-10-01-preview", + "Content": "{\r\n \"expirationDate\": \"2024-07-12T22:02:04.3117922-07:00\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "61" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:04 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "215e0c04-f93e-45b3-a19e-b353812616af" ], + "x-ms-client-request-id": [ "93ed34a0-9d80-4737-bf36-e8f7538ac1bb" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "294" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:20.3990084Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "603" ] + }, + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh\",\n \"name\": \"amlim-pwsh\",\n \"environmentType\": \"dev\",\n \"user\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"provisioningState\": \"Succeeded\",\n \"resourceGroupId\": \"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshproj3stxlh-amlim-pwsh\",\n \"catalogName\": \"i29785\",\n \"environmentDefinitionName\": \"Sandbox\",\n \"parameters\": {},\n \"expirationDate\": \"2024-07-13T05:02:04.3117922+00:00\"\n}", + "isContentBase64": false + } + }, + "Update-AzDevCenterUserEnvironment+[NoContext]+PatchViaIdentityExpanded+$PATCH+https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh?api-version=2023-10-01-preview+1": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshProj3stxlh/users/me/environments/amlim-pwsh?api-version=2023-10-01-preview", + "Content": "{\r\n \"expirationDate\": \"2024-08-12T22:02:04.7642679-07:00\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "61" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Date": [ "Mon, 13 Nov 2023 06:02:05 GMT" ], + "Connection": [ "keep-alive" ], + "x-ms-correlation-request-id": [ "5d1e16cb-7aa4-4121-acc2-f9f84f849baa" ], + "x-ms-client-request-id": [ "cf843b38-9db7-406a-8e3f-336d631f6a9d" ], + "X-Rate-Limit-Limit": [ "1m" ], + "X-Rate-Limit-Remaining": [ "294" ], + "X-Rate-Limit-Reset": [ "2023-11-13T06:02:19.2886182Z" ], + "Strict-Transport-Security": [ "max-age=15724800; includeSubDomains" ], + "Access-Control-Allow-Origin": [ "*" ], + "Access-Control-Max-Age": [ "86400" ], + "Access-Control-Expose-Headers": [ "Location,Operation-Location,x-ms-correlation-request-id,x-ms-client-request-id" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json; charset=utf-8" ], + "Content-Length": [ "603" ] + }, + "Content": "{\n \"uri\": \"https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/projects/pwshproj3stxlh/users/c3c951b7-d307-4c40-9495-70bd562d98d5/environments/amlim-pwsh\",\n \"name\": \"amlim-pwsh\",\n \"environmentType\": \"dev\",\n \"user\": \"c3c951b7-d307-4c40-9495-70bd562d98d5\",\n \"provisioningState\": \"Succeeded\",\n \"resourceGroupId\": \"/subscriptions/306bbddd-068b-4efc-a779-50342af2547a/resourceGroups/pwshproj3stxlh-amlim-pwsh\",\n \"catalogName\": \"i29785\",\n \"environmentDefinitionName\": \"Sandbox\",\n \"parameters\": {},\n \"expirationDate\": \"2024-08-13T05:02:04.7642679+00:00\"\n}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Tests.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Tests.ps1 new file mode 100644 index 000000000000..869156fbc06b --- /dev/null +++ b/src/DevCenter/DevCenterData.AutoRest/test/Update-AzDevCenterUserEnvironment.Tests.ps1 @@ -0,0 +1,38 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDevCenterUserEnvironment')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDevCenterUserEnvironment.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-AzDevCenterUserEnvironment' { + It 'PatchExpanded' { + $dateString = "2024-07-13T05:02:04.3117922Z" + $dateTime = [DateTime]::ParseExact($dateString, "yyyy-MM-ddTHH:mm:ss.fffffffZ", [System.Globalization.CultureInfo]::InvariantCulture, [System.Globalization.DateTimeStyles]::AssumeUniversal) + + + $updatedEnvironment = Update-AzDevCenterUserEnvironment -Endpoint $env.endpoint10 -EnvironmentName $env.envName10 -ProjectName $env.projectName10 -ExpirationDate $dateTime + $updatedEnvironment.ExpirationDate | Should -Be $dateTime.ToUniversalTime() + } + + + It 'PatchViaIdentityExpanded' { + $envInput = @{"UserId" = "me"; "ProjectName" = $env.projectName10; "EnvironmentName" = $env.envName10 } + + $dateString = "2024-08-13T05:02:04.7642679Z" + $dateTime = [DateTime]::ParseExact($dateString, "yyyy-MM-ddTHH:mm:ss.fffffffZ", [System.Globalization.CultureInfo]::InvariantCulture, [System.Globalization.DateTimeStyles]::AssumeUniversal) + + $updatedEnvironment = Update-AzDevCenterUserEnvironment -Endpoint $env.endpoint10 -InputObject $envInput -ExpirationDate $dateTime + $updatedEnvironment.ExpirationDate | Should -Be $dateTime.ToUniversalTime() + + } +} diff --git a/src/DevCenter/DevCenterData.AutoRest/test/deploymentTemplates/template.json b/src/DevCenter/DevCenterData.AutoRest/test/deploymentTemplates/template.json index e6a54a12d1ac..923c0fac56a9 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/deploymentTemplates/template.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/deploymentTemplates/template.json @@ -126,7 +126,7 @@ { "type": "Microsoft.DevCenter/devcenters", "name": "[parameters('devCenterName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "identity": { "type": "UserAssigned", @@ -138,7 +138,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -152,7 +152,7 @@ { "type": "Microsoft.DevCenter/projects", "name": "[parameters('projectName2')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devCenterId": "[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]", @@ -166,7 +166,7 @@ { "type": "Microsoft.DevCenter/networkconnections", "name": "[parameters('networkConnectionName')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "subnetId": "[parameters('subnetId')]", @@ -282,7 +282,7 @@ { "type": "microsoft.devcenter/devcenters/catalogs", "name": "[concat(parameters('devCenterName'), '/', parameters('catalogName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "gitHub": { "uri": "[parameters('gitHubRepo')]", @@ -295,7 +295,7 @@ { "type": "microsoft.devcenter/devcenters/attachednetworks", "name": "[concat(parameters('devCenterName'), '/', parameters('attachedNetworkName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "networkConnectionId": "[resourceId('Microsoft.DevCenter/networkConnections', parameters('networkConnectionName'))]" } @@ -304,7 +304,7 @@ "type": "microsoft.devcenter/devcenters/devboxdefinitions", "name": "[concat(parameters('devCenterName'), '/', parameters('devBoxDefinitionName'))]", "location": "[parameters('location')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "imageReference": { "id": "[parameters('imageReferenceId')]" @@ -319,7 +319,7 @@ { "type": "microsoft.devcenter/devcenters/environmenttypes", "name": "[concat(parameters('devCenterName'), '/', parameters('environmentTypeName'))]", - "apiVersion": "2023-04-01" + "apiVersion": "2023-10-01-preview" } ] } @@ -343,7 +343,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName'), '/', parameters('poolName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -360,7 +360,7 @@ { "type": "microsoft.devcenter/projects/pools", "name": "[concat(parameters('projectName2'), '/', parameters('poolName2'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "location": "[parameters('location')]", "properties": { "devBoxDefinitionName": "[parameters('devBoxDefinitionName')]", @@ -377,7 +377,7 @@ { "type": "microsoft.devcenter/projects/environmenttypes", "name": "[concat(parameters('projectName'), '/', parameters('environmentTypeName'))]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "deploymentTargetId": "[concat('/subscriptions/', parameters('subscriptionId'))]", "status": "Enabled", @@ -405,7 +405,7 @@ { "type": "microsoft.devcenter/projects/pools/schedules", "name": "[concat(parameters('projectName'), '/', parameters('poolName'), '/default')]", - "apiVersion": "2023-04-01", + "apiVersion": "2023-10-01-preview", "properties": { "frequency": "Daily", "state": "Enabled", diff --git a/src/DevCenter/DevCenterData.AutoRest/test/env.json b/src/DevCenter/DevCenterData.AutoRest/test/env.json index 197c8f9dda44..c8aeaae2cb13 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/env.json +++ b/src/DevCenter/DevCenterData.AutoRest/test/env.json @@ -1,68 +1,72 @@ { - "functionAppName13": "1ovd8f", - "SubscriptionId": "f141e9f2-4778-45a4-9aa0-8b31e6469454", - "skipDevBox2": "skipDevBox2", "skuName": "general_a_8c32gb1024ssd_v2", + "devboxName2": "4fwrtd", + "attachedNetworkName": "rm0uz7", + "gitHubBranch": "main", + "location": "canadacentral", + "resourceGroup": "pwshRgglmuf7", + "sandbox": "Sandbox", + "functionAppName3": "j8uhx4", + "environmentTypeName": "m780es", + "skipDevBox4": "skipDevBox4", + "devCenterId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/devcenters/pwshDc645vnb", "envName2": "kecfh8", - "osStorageType": "ssd_1024gb", - "catalogName": "x3vu7b", + "envNameToDelete4": "kfh3c4", + "poolName": "nzboe1", + "devBoxDefinitionName": "6lbjc5", + "endpoint": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com", + "gitHubSecretIdentifier": "https://dummyVault/dummy/00000000", + "subnetId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default", + "gitHubUri": "https://github.com/fake/fake.git", + "functionAppName9": "2jwit4", + "timeZone": "America/Los_Angeles", + "skipDevBox3": "skipDevBox3", + "imageVersion": "1.0.0", + "deleteDevBox1": "skipDevBox1", + "SubscriptionId": "f141e9f2-4778-45a4-9aa0-8b31e6469454", + "devCenterName": "pwshDc645vnb", + "envNameToDelete2": "c5dqaf", + "imageReferenceId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/devcenters/pwshDc645vnb/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", + "functionAppName8": "x3lawv", + "deleteDevBox2": "skipDevBox2", + "networkConnectionId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/networkConnections/zbw7d3", + "functionAppName6": "95itx0", + "functionAppName10": "576hfq", + "skipDevBox2": "skipDevBox2", "networkConnectionName": "zbw7d3", - "devboxName": "k507fd", - "projectName": "pwshProja68gny", - "functionAppName3": "j8uhx4", - "poolName2": "dxu5mw", + "functionAppName2": "tijokm", + "skipDevBox1": "skipDevBox1", + "gitHubPath": "/Environments", + "functionAppName12": "vceq6i", + "functionApp": "FunctionApp", "functionAppName5": "cr7gno", - "endpoint": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshdc645vnb.canadacentral.devcenter.azure.com", + "managedIdentityName": "pwshMsi7otye3", + "Tenant": "003b06c3-d471-4452-9686-9e7f3ca85f0a", + "functionAppName1": "pq2f39", + "poolName2": "dxu5mw", + "deleteDevBox4": "skipDevBox4", + "functionAppName11": "xch7t8", "envName": "smv3q9", - "skipDevBox4": "skipDevBox4", - "gitHubBranch": "main", - "poolName": "nzboe1", + "devboxName3": "k607fd", + "projectName2": "pwshProjt69b30", "functionAppParameters": { "name": "pq2f39" }, - "managedIdentityName": "pwshMsi7otye3", - "imageReferenceId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/devcenters/pwshDc645vnb/galleries/Default/images/MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", - "Tenant": "003b06c3-d471-4452-9686-9e7f3ca85f0a", - "gitHubUri": "https://github.com/fake/fake.git", - "gitHubPath": "/Environments", + "projectName": "pwshProja68gny", + "devboxName": "k507fd", "userObjectId": "c3c951b7-d307-4c40-9495-70bd562d98d5", - "environmentTypeName": "m780es", - "envNameToDelete4": "kfh3c4", - "attachedNetworkName": "rm0uz7", - "functionAppName8": "x3lawv", - "skipDevBox3": "skipDevBox3", - "gitHubSecretIdentifier": "https://dummyVault/dummy/00000000", - "devCenterId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/devcenters/pwshDc645vnb", - "envNameToDelete": "uwqne8", + "osStorageType": "ssd_1024gb", "time": "18:30", - "functionAppName6": "95itx0", - "functionAppName11": "xch7t8", - "functionAppName12": "vceq6i", - "devboxName2": "4fwrtd", - "functionAppName10": "576hfq", - "projectName2": "pwshProjt69b30", - "imageName": "MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", - "devboxName3": "k607fd", - "functionAppName9": "2jwit4", - "location": "canadacentral", - "devCenterName": "pwshDc645vnb", - "subnetId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/amlim-test/providers/Microsoft.Network/virtualNetworks/amlim-vnet-canadacentral/subnets/default", - "functionAppName1": "pq2f39", - "functionApp": "FunctionApp", - "timeZone": "America/Los_Angeles", - "envNameToDelete3": "q52klh", - "functionAppName2": "tijokm", + "functionAppName13": "1ovd8f", "functionAppName4": "k7so04", - "resourceGroup": "pwshRgglmuf7", - "skipDevBox1": "skipDevBox1", - "imageVersion": "1.0.0", - "networkConnectionId": "/subscriptions/f141e9f2-4778-45a4-9aa0-8b31e6469454/resourceGroups/pwshRgglmuf7/providers/Microsoft.DevCenter/networkConnections/zbw7d3", - "devBoxDefinitionName": "6lbjc5", - "sandbox": "Sandbox", - "envNameToDelete2": "c5dqaf", - "functionAppName7": "mxbr7p", - "deleteDevBox1": "skipDevBox1", - "deleteDevBox2": "skipDevBox2", + "catalogName": "x3vu7b", "deleteDevBox3": "skipDevBox3", - "deleteDevBox4": "skipDevBox4" + "envNameToDelete": "uwqne8", + "functionAppName7": "mxbr7p", + "envNameToDelete3": "q52klh", + "imageName": "MicrosoftWindowsDesktop_windows-ent-cpc_win11-22h2-ent-cpc-os", + "endpoint10": "https://003b06c3-d471-4452-9686-9e7f3ca85f0a-pwshtestdevcenter.centraluseuap.devcenter.azure.com/", + "projectName10": "pwshProj3stxlh", + "envName10": "amlim-pwsh", + "envName11": "amlim-pwsh2" } diff --git a/src/DevCenter/DevCenterData.AutoRest/test/utils.ps1 b/src/DevCenter/DevCenterData.AutoRest/test/utils.ps1 index 97a540831fc3..7e6eb58ec7f1 100644 --- a/src/DevCenter/DevCenterData.AutoRest/test/utils.ps1 +++ b/src/DevCenter/DevCenterData.AutoRest/test/utils.ps1 @@ -223,7 +223,6 @@ function setupEnv() { $env.Add("functionAppName13", $functionAppName13) - New-AzDevCenterUserEnvironment -Endpoint $endpoint -Name $envName -ProjectName $projectName -CatalogName $catalogName -EnvironmentDefinitionName $sandbox -EnvironmentType $environmentTypeName New-AzDevCenterUserEnvironment -Endpoint $endpoint -Name $envName2 -ProjectName $projectName -CatalogName $catalogName -EnvironmentDefinitionName $functionApp -EnvironmentType $environmentTypeName -Parameter $functionAppParameters New-AzDevCenterUserEnvironment -Endpoint $endpoint -Name $envNameToDelete -ProjectName $projectName -CatalogName $catalogName -EnvironmentDefinitionName $sandbox -EnvironmentType $environmentTypeName @@ -251,7 +250,6 @@ function setupEnv() { New-AzDevCenterUserDevBox -Endpoint $endpoint -Name $skipDevBox4 -ProjectName $projectName -PoolName $poolName - $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' @@ -260,5 +258,5 @@ function setupEnv() { } function cleanupEnv() { # Clean resources you create for testing - Remove-AzResourceGroup -Name $env.resourceGroup + Remove-AzResourceGroup -Name $env.resourceGroup } diff --git a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPool.md index a7027dd54e72..bd0ef599a4d5 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: List all Disk Pools in a resource group ```powershell -PS C:\> Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' +Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- disk-pool-1 eastus2euap Running Succeeded {3} @@ -11,7 +11,7 @@ This command lists all Disk Pools in a resource group ### Example 2: Get a Disk Pool ```powershell -PS C:\> Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' +Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- @@ -22,7 +22,7 @@ This command gets a Disk Pool. ### Example 3: List all Disk Pools under a subscription ```powershell -PS C:\> Get-AzDiskPool +Get-AzDiskPool Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- @@ -34,7 +34,7 @@ This command lists all the Disk Pools in a subscription. ### Example 4: Get a Disk Pool by object ```powershell -PS C:\> New-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -Location 'westeurope' -SkuName 'Standard' -SkuTier 'Standard' -SubnetId '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Network/virtualNetworks/disk-pool-vnet/subnets/default' -AvailabilityZone "1" | Get-AzDiskPool + New-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -Location 'westeurope' -SkuName 'Standard' -SkuTier 'Standard' -SubnetId '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Network/virtualNetworks/disk-pool-vnet/subnets/default' -AvailabilityZone "1" | Get-AzDiskPool Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolIscsiTarget.md index 9a2fe9001fe7..9a793bcc9ba6 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolIscsiTarget.md @@ -1,6 +1,6 @@ ### Example 1: List iSCSI targets in a Disk Pool ```powershell -PS C:\> Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' +Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' Name Type ---- ---- @@ -11,7 +11,7 @@ This command lists all iSCSI targets in a Disk Pool. ### Example 2: Get an iSCSI target ```powershell -PS C:\> Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' +Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' Name Type ---- ---- @@ -22,7 +22,7 @@ This command gets an iSCSI target. ### Example 3: Get an iSCSI target by object ```powershell -PS C:\> New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-5' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' | Get-AzDiskPoolIscsiTarget +New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-5' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' | Get-AzDiskPoolIscsiTarget Name Type ---- ---- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.md b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.md index 65a38c1ef546..14b7af2ecc17 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolOutboundNetworkDependencyEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: List network dependency endpoints for a Disk pool ```powershell -PS C:\> Get-AzDiskPoolOutboundNetworkDependencyEndpoint -DiskPoolName disk-pool-1 -ResourceGroupName storagepool-rg-test | ft -Wrap + Get-AzDiskPoolOutboundNetworkDependencyEndpoint -DiskPoolName disk-pool-1 -ResourceGroupName storagepool-rg-test | ft -Wrap Category Endpoint -------- -------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolResourceSku.md b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolResourceSku.md index 7ce155a61f03..8a34d38577ba 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolResourceSku.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolResourceSku.md @@ -1,6 +1,6 @@ ### Example 1: Lists all resources and skus in a location ```powershell -PS C:\> Get-AzDiskPoolResourceSku -Location AustraliaEast +Get-AzDiskPoolResourceSku -Location AustraliaEast ApiVersion Name ResourceType Tier ---------- ---- ------------ ---- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolZone.md b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolZone.md index 96c7b237de82..77aa5d58d252 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolZone.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Get-AzDiskPoolZone.md @@ -1,6 +1,6 @@ ### Example 1: List availability zones for a location ```powershell -PS C:\> Get-AzDiskPoolZone -Location eastus +Get-AzDiskPoolZone -Location eastus SkuName SkuTier AvailabilityZone AdditionalCapability ------- ------- ---------------- -------------------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Invoke-AzDiskPoolRedeployment.md b/src/DiskPool/DiskPool.Autorest/examples/Invoke-AzDiskPoolRedeployment.md index eddf52f94965..12945c753680 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Invoke-AzDiskPoolRedeployment.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Invoke-AzDiskPoolRedeployment.md @@ -1,6 +1,6 @@ ### Example 1: Redeploy a Disk Pool ```powershell -PS C:\> Invoke-AzDiskPoolRedeployment -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' +Invoke-AzDiskPoolRedeployment -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' ``` @@ -8,7 +8,7 @@ This command redeploys a Disk Pool. ### Example 2: Redeploy a Disk Pool by object ```powershell -PS C:\> Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Invoke-AzDiskPoolRedeployment +Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Invoke-AzDiskPoolRedeployment ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPool.md index a9d1426abf69..df5092df76f9 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: Create a Disk Pool ```powershell -PS C:\> New-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -Location 'eastus2euap' -SkuName 'Standard' -SkuTier 'Standard' -SubnetId '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Network/virtualNetworks/disk-pool-vnet/subnets/default' -AvailabilityZone "1" +New-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -Location 'eastus2euap' -SkuName 'Standard' -SkuTier 'Standard' -SubnetId '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Network/virtualNetworks/disk-pool-vnet/subnets/default' -AvailabilityZone "1" Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolAclObject.md b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolAclObject.md index fabb8ef12355..223fa081fe87 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolAclObject.md +++ b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolAclObject.md @@ -1,6 +1,6 @@ ### Example 1: Create an acl object ```powershell -PS C:\> New-AzDiskPoolAclObject -InitiatorIqn 'iqn.2021-05.com.microsoft:target0' -MappedLun @('lun0') +New-AzDiskPoolAclObject -InitiatorIqn 'iqn.2021-05.com.microsoft:target0' -MappedLun @('lun0') InitiatorIqn MappedLun ------------ --------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiLunObject.md b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiLunObject.md index eb5497011532..520ee30570da 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiLunObject.md +++ b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiLunObject.md @@ -1,6 +1,6 @@ ### Example 1: Create an iSCSI lun object ```powershell -PS C:\> New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk-pool-disk-1" -Name 'lun0' +New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk-pool-disk-1" -Name 'lun0' ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiTarget.md index bb4afd30c31d..151422e45887 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/examples/New-AzDiskPoolIscsiTarget.md @@ -1,6 +1,6 @@ ### Example 1: Create an iSCSI target ```powershell -PS C:\> New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-1' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' +New-AzDiskPoolIscsiTarget -DiskPoolName 'disk-pool-1' -Name 'target1' -ResourceGroupName 'storagepool-rg-test' -AclMode 'Dynamic' Name Type ---- ---- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPool.md index 0b55599e78ab..b8968479579f 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: Delete a Disk Pool ```powershell -PS C:\> Remove-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' +Remove-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' ``` @@ -8,7 +8,7 @@ This command deletes a Disk Pool. ### Example 2: Delete a Disk Pool by object ```powershell -PS C:\> Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Remove-AzDiskPool +Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Remove-AzDiskPool ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPoolIscsiTarget.md index 0615d10008c0..cf196509dfda 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Remove-AzDiskPoolIscsiTarget.md @@ -1,6 +1,6 @@ ### Example 1: Remove an iSCSI target ```powershell -PS C:\> Remove-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' +Remove-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' ``` @@ -8,7 +8,7 @@ This command removes an iSCSI target. ### Example 2: Remove an iSCSI target by object ```powershell -PS C:\> Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' | Remove-AzDiskPoolIscsiTarget +Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' | Remove-AzDiskPoolIscsiTarget ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/Start-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/Start-AzDiskPool.md index 135644a30e3b..252d3893ddc5 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Start-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Start-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: Start a Disk Pool ```powershell -PS C:\> Start-AzDiskPool -DiskPoolName 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' +Start-AzDiskPool -DiskPoolName 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' ``` @@ -8,7 +8,7 @@ This command starts a Disk Pool. ### Example 2: Start a Disk Pool by object ```powershell -PS C:\> Get-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' | Start-AzDiskPool +Get-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' | Start-AzDiskPool ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/Stop-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/Stop-AzDiskPool.md index ce25cd8f758b..f80e6ebe4110 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Stop-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Stop-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: Stop a Disk Pool ```powershell -PS C:\> Stop-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' +Stop-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' ``` @@ -8,7 +8,7 @@ This command deallocates a Disk Pool. ### Example 2: Stop a Disk Pool by object ```powershell -PS C:\> Get-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' | Stop-AzDiskPool +Get-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' | Stop-AzDiskPool ``` diff --git a/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPool.md b/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPool.md index de8aecd8bf7d..e952d28f6532 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPool.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPool.md @@ -1,6 +1,6 @@ ### Example 1: Update a Disk Pool ```powershell -PS C:\> Update-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -DiskId @() +Update-AzDiskPool -Name 'disk-pool-1' -ResourceGroupName 'storagepool-rg-test' -DiskId @() Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- @@ -11,7 +11,7 @@ This command updates a Disk Pool. ### Example 2: Update a Disk Pool by object ```powershell -PS C:\> Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Update-AzDiskPool -DiskId @() +Get-AzDiskPool -ResourceGroupName 'storagepool-rg-test' -Name 'disk-pool-1' | Update-AzDiskPool -DiskId @() Name Location Status ProvisioningState AvailabilityZone ---- -------- ------ ----------------- ---------------- diff --git a/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPoolIscsiTarget.md b/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPoolIscsiTarget.md index 5129da1a90ea..c6614f0b7381 100644 --- a/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPoolIscsiTarget.md +++ b/src/DiskPool/DiskPool.Autorest/examples/Update-AzDiskPoolIscsiTarget.md @@ -1,7 +1,7 @@ ### Example 1: Update an iSCSI target ```powershell -PS C:\> $lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" -PS C:\> Update-AzDiskPoolIscsiTarget -Name 'target0' -DiskPoolName 'disk-pool-5' -ResourceGroupName 'storagepool-rg-test' -Lun @($lun0) +$lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" +Update-AzDiskPoolIscsiTarget -Name 'target0' -DiskPoolName 'disk-pool-5' -ResourceGroupName 'storagepool-rg-test' -Lun @($lun0) Name Type ---- ---- @@ -12,8 +12,8 @@ This command updates an iSCSI target. ### Example 2: Update an iSCSI target by object ```powershell -PS C:\> $lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" -PS C:\> Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' | Update-AzDiskPoolIscsiTarget -Lun @($lun0) +$lun0 = New-AzDiskPoolIscsiLunObject -ManagedDiskAzureResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/storagepool-rg-test/providers/Microsoft.Compute/disks/disk1" -Name "lun0" +Get-AzDiskPoolIscsiTarget -ResourceGroupName 'storagepool-rg-test' -DiskPoolName 'disk-pool-5' -Name 'target0' | Update-AzDiskPoolIscsiTarget -Lun @($lun0) Name Type ---- ---- diff --git a/src/Dns/Dns.Autorest/docs/Az.Dns.md b/src/Dns/Dns.Autorest/help/Az.Dns.md similarity index 100% rename from src/Dns/Dns.Autorest/docs/Az.Dns.md rename to src/Dns/Dns.Autorest/help/Az.Dns.md diff --git a/src/Dns/Dns.Autorest/docs/Get-AzDnsDnssecConfig.md b/src/Dns/Dns.Autorest/help/Get-AzDnsDnssecConfig.md similarity index 100% rename from src/Dns/Dns.Autorest/docs/Get-AzDnsDnssecConfig.md rename to src/Dns/Dns.Autorest/help/Get-AzDnsDnssecConfig.md diff --git a/src/Dns/Dns.Autorest/docs/New-AzDnsDnssecConfig.md b/src/Dns/Dns.Autorest/help/New-AzDnsDnssecConfig.md similarity index 100% rename from src/Dns/Dns.Autorest/docs/New-AzDnsDnssecConfig.md rename to src/Dns/Dns.Autorest/help/New-AzDnsDnssecConfig.md diff --git a/src/Dns/Dns.Autorest/docs/README.md b/src/Dns/Dns.Autorest/help/README.md similarity index 100% rename from src/Dns/Dns.Autorest/docs/README.md rename to src/Dns/Dns.Autorest/help/README.md diff --git a/src/Dns/Dns.Autorest/docs/Remove-AzDnsDnssecConfig.md b/src/Dns/Dns.Autorest/help/Remove-AzDnsDnssecConfig.md similarity index 100% rename from src/Dns/Dns.Autorest/docs/Remove-AzDnsDnssecConfig.md rename to src/Dns/Dns.Autorest/help/Remove-AzDnsDnssecConfig.md diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md index f91f67898942..88468ebce552 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md @@ -1,7 +1,7 @@ ### Example 1: Get order details ```powershell -PS C:\> $order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" -PS C:\> $order | fl +$order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" +$order | fl CurrentStageDisplayName : CurrentStageName : Placed diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md index 70a9105d75c0..44d8fb2c0998 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md @@ -1,7 +1,7 @@ ### Example 1: Get address details ```powershell -PS C:\> $address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" -PS C:\> $address | fl +$address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" +$address | fl AddressValidationStatus : Valid ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md index a4fa5420f9ed..89da6897e47b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md @@ -1,11 +1,11 @@ ### Example 1: Get configuration details ```powershell -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $configuration +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$configuration AvailabilityInformationAvailabilityStage : Available AvailabilityInformationDisabledReason : None diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md index 855fe0824513..1ad37a64ad52 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md @@ -1,7 +1,7 @@ ### Example 1: Get orderItem details ```powershell -PS C:\> $orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -PS C:\> $ordderItem | fl +$orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" +$ordderItem | fl ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md index 9ceb9b3f99b3..325be95e93c5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md @@ -1,7 +1,7 @@ ### Example 1: Get details of specific productFamilies ```powershell -PS C:\> $familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" -PS C:\> $familyDetails.ProductLine.Product.Configuration.HierarchyInformation + $familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" +$familyDetails.ProductLine.Product.Configuration.HierarchyInformation ConfigurationName ProductFamilyName ProductLineName ProductName ----------------- ----------------- --------------- ----------- diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md index a05dec422077..bcd6b11a15bc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md @@ -1,7 +1,7 @@ ### Example 1: Gets available product families on procured subscription ```powershell -PS C:\> $productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId -PS C:\> $productFamilyMeta.HierarchyInformation +$productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId +$productFamilyMeta.HierarchyInformation ConfigurationName ProductFamilyName ProductLineName ProductName ----------------- ----------------- --------------- ----------- diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Invoke-AzEdgeOrderReturnOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Invoke-AzEdgeOrderReturnOrderItem.md index b2bcc7f7978f..f348c3a149f9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Invoke-AzEdgeOrderReturnOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Invoke-AzEdgeOrderReturnOrderItem.md @@ -1,5 +1,5 @@ ### Example 1: Command to initiate orderItem return ```powershell -PS C:\>Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" ``` Invoke orderItem return \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md index 4e068afd3947..9ba865616487 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md @@ -1,8 +1,8 @@ ### Example 1: Create a new address ```powershell -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -14,8 +14,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" -PS C:\> $address | fl +$address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" +$address | fl AddressValidationStatus : Valid ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md index de3af0127052..20c3f220aebc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md @@ -1,7 +1,7 @@ ### Example 1: Filterable property object ```powershell -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $filterableProperty | fl +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$filterableProperty | fl SupportedValue : {US} Type : ShipToCountries diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md index 2d8dcb4c4342..af3ef64053ac 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md @@ -1,7 +1,7 @@ ### Example 1: Creates hierarchy information object ```powershell -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $HierarchyInformation | fl +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$HierarchyInformation | fl ConfigurationName : EdgeP_High ProductFamilyName : azurestackedge diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md index 3f102cff33ae..4ef3df91c81d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md @@ -1,13 +1,13 @@ ### Example 1: Creates a new orderItem ```powershell -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $DebugPreference = "Continue" +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -19,8 +19,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $orderItem | fl +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem | fl ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress @@ -44,12 +44,12 @@ Creates a new orderItem. ### Example 2: Creates a new orderItem with preference set for transport, encryption and management resource ```powershell -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference -PS C:\> New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference +New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails Location Name Type -------- ---- ---- diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderOrderItemDetailsObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderOrderItemDetailsObject.md index b5de12d5a60a..2fbe86616d93 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderOrderItemDetailsObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderOrderItemDetailsObject.md @@ -1,7 +1,7 @@ ### Example 1: Creates orderItemDetails object. ```powershell -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} ``` Create an in-memory object for OrderItemDetails. \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderPreferencesObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderPreferencesObject.md index fe93473dc501..2d3610f9f8ab 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderPreferencesObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderPreferencesObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a preference object ```powershell -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} ``` Creates a in-memory preference object to set transport, encryption and management resource preference. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md index 735e543bc7db..c43f176a3771 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md @@ -1,6 +1,6 @@ ### Example 1: Creates shipping address object ```powershell -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" $ShippingDetails | fl diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Remove-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Remove-AzEdgeOrderAddress.md index d656862d081f..ccfbb324f418 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Remove-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Remove-AzEdgeOrderAddress.md @@ -1,5 +1,5 @@ ### Example 1: Delete address ```powershell -PS C:\> Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId +Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId ``` Delete Address \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md index 4dcbc182c854..e017f78e3a7a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md @@ -1,7 +1,7 @@ ### Example 1: Update address details ```powershell -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -13,8 +13,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddres $ShippingDetails -PS C:\> $updatedContactInAddress.ContactDetail.ContactName +$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddres $ShippingDetails +$updatedContactInAddress.ContactDetail.ContactName ContactName2 ``` Update address details. \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md index 20958c7604c6..05f05e5c721e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md @@ -1,7 +1,7 @@ ### Example 1: Update orderItem ```powershell -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -13,9 +13,9 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail +$updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail -PS C:\> $updatedOrderItem.ForwardAddressContactDetail | fl +$updatedOrderItem.ForwardAddressContactDetail | fl ContactName : ContactName2 EmailList : {useremailId} diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDeploymentInfo.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDeploymentInfo.md index 371559fccbd3..4405f5bba1d6 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDeploymentInfo.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDeploymentInfo.md @@ -1,6 +1,6 @@ ### Example 1: Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticDeploymentInfo -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +Get-AzElasticDeploymentInfo -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v DiskCapacity MemoryCapacity Status Version ------------ -------------- ------ ------- diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDetailVMIngestion.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDetailVMIngestion.md index 35d776798f2a..8643b4843da6 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDetailVMIngestion.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticDetailVMIngestion.md @@ -1,6 +1,6 @@ ### Example 1: List the vm ingestion details that will be monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticDetailVMIngestion -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +Get-AzElasticDetailVMIngestion -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v CloudId IngestionKey ------- ------------ @@ -11,7 +11,7 @@ This command lists the vm ingestion details that will be monitored by the Elasti ### Example 2: List the vm ingestion details that will be monitored by the Elastic monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v | Get-AzElasticDetailVMIngestion +Get-AzElasticMonitor -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v | Get-AzElasticDetailVMIngestion CloudId IngestionKey ------- ------------ diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitor.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitor.md index 60a2aadb04d3..2742c83a2549 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitor.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitor.md @@ -1,6 +1,6 @@ ### Example 1: List all elastic monitors under a subscription ```powershell -PS C:\> Get-AzElasticMonitor +Get-AzElasticMonitor Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- @@ -15,7 +15,7 @@ This command lists all elastic monitors under a subscription. ### Example 2: List all elastic monitors under a resource group ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- @@ -29,7 +29,7 @@ This command lists all elastic monitors under a resource group. ### Example 3: Get the properties of a specific monitor resource ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- @@ -40,7 +40,7 @@ This command gets the properties of a specific monitor resource. ### Example 4: Get the properties of a specific monitor resource by pipeline ```powershell -PS C:\> New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' | Get-AzElasticMonitor +New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' | Get-AzElasticMonitor Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitoredResource.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitoredResource.md index a4aa6b07ade2..d120193cac08 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitoredResource.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticMonitoredResource.md @@ -1,6 +1,6 @@ ### Example 1: List the resources currently being monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticMonitoredResource -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Get-AzElasticMonitoredResource -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 ``` diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticTagRule.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticTagRule.md index 30b33f731d3b..7f55626d18dc 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticTagRule.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Get a tag rule set for a given monitor resource ```powershell -PS C:\> Get-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 +Get-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- @@ -11,7 +11,7 @@ This command gets a tag rule set for a given monitor resource. ### Example 2: Get a tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 | Get-AzElasticTagRule +New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 | Get-AzElasticTagRule Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticVMHost.md b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticVMHost.md index d96ff8229ae1..93a81a9285ea 100644 --- a/src/Elastic/Elastic.Autorest/examples/Get-AzElasticVMHost.md +++ b/src/Elastic/Elastic.Autorest/examples/Get-AzElasticVMHost.md @@ -1,6 +1,6 @@ ### Example 1: List the vm resources currently being monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticVMHost -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Get-AzElasticVMHost -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 VMResourceId ------------ diff --git a/src/Elastic/Elastic.Autorest/examples/New-AzElasticFilteringTagObject.md b/src/Elastic/Elastic.Autorest/examples/New-AzElasticFilteringTagObject.md index bc3a27c8a1fe..a3b747bf75e3 100644 --- a/src/Elastic/Elastic.Autorest/examples/New-AzElasticFilteringTagObject.md +++ b/src/Elastic/Elastic.Autorest/examples/New-AzElasticFilteringTagObject.md @@ -1,7 +1,7 @@ ### Example 1: Create a in-memory object for FilteringTag used when creating tag rules ```powershell -PS C:\> $ft = New-AzElasticFilteringTagObject -Action Include -Name key -Value '1' -PS C:\> New-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 -LogRuleFilteringTag $ft +$ft = New-AzElasticFilteringTagObject -Action Include -Name key -Value '1' +New-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 -LogRuleFilteringTag $ft Name Type ---- ---- diff --git a/src/Elastic/Elastic.Autorest/examples/New-AzElasticMonitor.md b/src/Elastic/Elastic.Autorest/examples/New-AzElasticMonitor.md index f5e0a69c765a..8a0c2cf0a3d6 100644 --- a/src/Elastic/Elastic.Autorest/examples/New-AzElasticMonitor.md +++ b/src/Elastic/Elastic.Autorest/examples/New-AzElasticMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Create a monitor resource ```powershell -PS C:\> New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' +New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- diff --git a/src/Elastic/Elastic.Autorest/examples/New-AzElasticTagRule.md b/src/Elastic/Elastic.Autorest/examples/New-AzElasticTagRule.md index 335ab11ec4b1..b4a5e542bcbc 100644 --- a/src/Elastic/Elastic.Autorest/examples/New-AzElasticTagRule.md +++ b/src/Elastic/Elastic.Autorest/examples/New-AzElasticTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Create or update a tag rule set for a given monitor resource ```powershell -PS C:\> New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 -LogRuleSendActivityLog +New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 -LogRuleSendActivityLog Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Elastic/Elastic.Autorest/examples/Remove-AzElasticMonitor.md b/src/Elastic/Elastic.Autorest/examples/Remove-AzElasticMonitor.md index 5b4a7dc6b7ff..cda0e08b725a 100644 --- a/src/Elastic/Elastic.Autorest/examples/Remove-AzElasticMonitor.md +++ b/src/Elastic/Elastic.Autorest/examples/Remove-AzElasticMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Delete a monitor resource ```powershell -PS C:\> Remove-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Remove-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 ``` @@ -8,7 +8,7 @@ This command delete a monitor resource. ### Example 2: Delete a monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh03 | Remove-AzElasticMonitor +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh03 | Remove-AzElasticMonitor ``` diff --git a/src/Elastic/Elastic.Autorest/examples/Update-AzElasticMonitor.md b/src/Elastic/Elastic.Autorest/examples/Update-AzElasticMonitor.md index da7959669a00..d3f10d5af79d 100644 --- a/src/Elastic/Elastic.Autorest/examples/Update-AzElasticMonitor.md +++ b/src/Elastic/Elastic.Autorest/examples/Update-AzElasticMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Update a monitor resource ```powershell -PS C:\> Update-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +Update-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- @@ -11,7 +11,7 @@ This command updates a monitor resource. ### Example 2: Update a monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticMonitor -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticMonitor -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- diff --git a/src/Elastic/Elastic.Autorest/examples/Update-AzElasticVMCollection.md b/src/Elastic/Elastic.Autorest/examples/Update-AzElasticVMCollection.md index d01ec2e58658..c265690a7516 100644 --- a/src/Elastic/Elastic.Autorest/examples/Update-AzElasticVMCollection.md +++ b/src/Elastic/Elastic.Autorest/examples/Update-AzElasticVMCollection.md @@ -1,6 +1,6 @@ ### Example 1: Update the vm details that will be monitored by the Elastic monitor resource ```powershell -PS C:\> Update-AzElasticVMCollection -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -OperationName Add -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' +Update-AzElasticVMCollection -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -OperationName Add -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' ``` @@ -8,7 +8,7 @@ This command updates the vm details that will be monitored by the Elastic monito ### Example 2: Update the vm details that will be monitored by the Elastic monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticVMCollection -OperationName Delete -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' +Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticVMCollection -OperationName Delete -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' ``` diff --git a/src/EventHub/EventHub.Autorest/docs/Approve-AzEventHubPrivateEndpointConnection.md b/src/EventHub/EventHub.Autorest/help/Approve-AzEventHubPrivateEndpointConnection.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Approve-AzEventHubPrivateEndpointConnection.md rename to src/EventHub/EventHub.Autorest/help/Approve-AzEventHubPrivateEndpointConnection.md diff --git a/src/EventHub/EventHub.Autorest/docs/Az.EventHub.md b/src/EventHub/EventHub.Autorest/help/Az.EventHub.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Az.EventHub.md rename to src/EventHub/EventHub.Autorest/help/Az.EventHub.md diff --git a/src/EventHub/EventHub.Autorest/docs/Deny-AzEventHubPrivateEndpointConnection.md b/src/EventHub/EventHub.Autorest/help/Deny-AzEventHubPrivateEndpointConnection.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Deny-AzEventHubPrivateEndpointConnection.md rename to src/EventHub/EventHub.Autorest/help/Deny-AzEventHubPrivateEndpointConnection.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHub.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHub.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHub.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHub.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubApplicationGroup.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubApplicationGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubApplicationGroup.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubApplicationGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubAuthorizationRule.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubAuthorizationRule.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubAuthorizationRule.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubAuthorizationRule.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubCluster.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubCluster.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubCluster.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubCluster.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubClusterNamespace.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubClusterNamespace.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubClusterNamespace.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubClusterNamespace.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubClustersAvailableRegion.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubClustersAvailableRegion.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubClustersAvailableRegion.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubClustersAvailableRegion.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubConsumerGroup.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubConsumerGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubConsumerGroup.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubConsumerGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubGeoDRConfiguration.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubGeoDRConfiguration.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubGeoDRConfiguration.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubGeoDRConfiguration.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubKey.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubKey.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubKey.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubKey.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubNamespace.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubNamespace.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubNamespace.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubNamespace.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubNetworkRuleSet.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubNetworkRuleSet.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubNetworkRuleSet.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubNetworkRuleSet.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateEndpointConnection.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubPrivateEndpointConnection.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateEndpointConnection.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubPrivateEndpointConnection.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateLink.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubPrivateLink.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateLink.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubPrivateLink.md diff --git a/src/EventHub/EventHub.Autorest/docs/Get-AzEventHubSchemaGroup.md b/src/EventHub/EventHub.Autorest/help/Get-AzEventHubSchemaGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Get-AzEventHubSchemaGroup.md rename to src/EventHub/EventHub.Autorest/help/Get-AzEventHubSchemaGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHub.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHub.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHub.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHub.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubApplicationGroup.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubApplicationGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubApplicationGroup.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubApplicationGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubAuthorizationRule.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubAuthorizationRule.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubAuthorizationRule.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubAuthorizationRule.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubCluster.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubCluster.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubCluster.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubCluster.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubConsumerGroup.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubConsumerGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubConsumerGroup.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubConsumerGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubGeoDRConfiguration.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubGeoDRConfiguration.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubGeoDRConfiguration.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubGeoDRConfiguration.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubIPRuleConfig.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubIPRuleConfig.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubIPRuleConfig.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubIPRuleConfig.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubKey.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubKey.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubKey.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubKey.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubKeyVaultPropertiesObject.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubKeyVaultPropertiesObject.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubKeyVaultPropertiesObject.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubKeyVaultPropertiesObject.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubNamespace.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubNamespace.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubNamespace.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubNamespace.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubSchemaGroup.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubSchemaGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubSchemaGroup.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubSchemaGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubThrottlingPolicyConfig.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubThrottlingPolicyConfig.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubThrottlingPolicyConfig.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubThrottlingPolicyConfig.md diff --git a/src/EventHub/EventHub.Autorest/docs/New-AzEventHubVirtualNetworkRuleConfig.md b/src/EventHub/EventHub.Autorest/help/New-AzEventHubVirtualNetworkRuleConfig.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/New-AzEventHubVirtualNetworkRuleConfig.md rename to src/EventHub/EventHub.Autorest/help/New-AzEventHubVirtualNetworkRuleConfig.md diff --git a/src/EventHub/EventHub.Autorest/docs/README.md b/src/EventHub/EventHub.Autorest/help/README.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/README.md rename to src/EventHub/EventHub.Autorest/help/README.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHub.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHub.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHub.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHub.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubApplicationGroup.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubApplicationGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubApplicationGroup.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubApplicationGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubAuthorizationRule.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubAuthorizationRule.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubAuthorizationRule.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubAuthorizationRule.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubCluster.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubCluster.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubCluster.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubCluster.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubConsumerGroup.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubConsumerGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubConsumerGroup.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubConsumerGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubGeoDRConfiguration.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubGeoDRConfiguration.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubGeoDRConfiguration.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubGeoDRConfiguration.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubNamespace.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubNamespace.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubNamespace.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubNamespace.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubPrivateEndpointConnection.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubPrivateEndpointConnection.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubPrivateEndpointConnection.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubPrivateEndpointConnection.md diff --git a/src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubSchemaGroup.md b/src/EventHub/EventHub.Autorest/help/Remove-AzEventHubSchemaGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubSchemaGroup.md rename to src/EventHub/EventHub.Autorest/help/Remove-AzEventHubSchemaGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHub.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHub.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHub.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHub.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubApplicationGroup.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubApplicationGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubApplicationGroup.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubApplicationGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubAuthorizationRule.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubAuthorizationRule.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubAuthorizationRule.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubAuthorizationRule.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubCluster.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubCluster.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubCluster.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubCluster.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubConsumerGroup.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubConsumerGroup.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubConsumerGroup.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubConsumerGroup.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubGeoDRConfigurationBreakPair.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubGeoDRConfigurationBreakPair.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubGeoDRConfigurationBreakPair.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubGeoDRConfigurationBreakPair.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubGeoDRConfigurationFailOver.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubGeoDRConfigurationFailOver.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubGeoDRConfigurationFailOver.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubGeoDRConfigurationFailOver.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubNamespace.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubNamespace.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubNamespace.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubNamespace.md diff --git a/src/EventHub/EventHub.Autorest/docs/Set-AzEventHubNetworkRuleSet.md b/src/EventHub/EventHub.Autorest/help/Set-AzEventHubNetworkRuleSet.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Set-AzEventHubNetworkRuleSet.md rename to src/EventHub/EventHub.Autorest/help/Set-AzEventHubNetworkRuleSet.md diff --git a/src/EventHub/EventHub.Autorest/docs/Test-AzEventHubName.md b/src/EventHub/EventHub.Autorest/help/Test-AzEventHubName.md similarity index 100% rename from src/EventHub/EventHub.Autorest/docs/Test-AzEventHubName.md rename to src/EventHub/EventHub.Autorest/help/Test-AzEventHubName.md diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitor.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitor.md index 413067132225..dfeeb4ea58fa 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitor.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Get all SAP monitors under a subscription ```powershell -PS C:\> Get-AzSapMonitor +Get-AzSapMonitor Location Name Type -------- ---- ---- @@ -12,7 +12,7 @@ This command gets SAP monitors under a subscription. ### Example 2: Get a SAP monitor by name ```powershell -PS C:\> Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 +Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 Location Name Type -------- ---- ---- @@ -23,8 +23,8 @@ This command gets a SAP monitor by name. ### Example 3: Get a SAP monitor by object ```powershell -PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 -PS C:\> Get-AzSapMonitor -InputObject $sap +$sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 +Get-AzSapMonitor -InputObject $sap Location Name Type -------- ---- ---- @@ -35,7 +35,7 @@ This command gets a SAP monitor by object. ### Example 4: Get a SAP monitor by pipeline ```powershell -PS C:\> @{Id='/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01'} | Get-AzSapMonitor +@{Id='/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01'} | Get-AzSapMonitor Location Name Type -------- ---- ---- diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitorProviderInstance.md index c75e1a32275d..fd9b98f4a347 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitorProviderInstance.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Get-AzSapMonitorProviderInstance.md @@ -1,6 +1,6 @@ ### Example 1: Get all instances under a SAP monitor ```powershell -PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 +Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 Name Type ---- ---- @@ -12,7 +12,7 @@ This command gets all instances under a SAP monitor. ### Example 2: Get an instances of SAP monitor by name ```powershell -PS C:\> Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 +Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 Name Type ---- ---- @@ -23,8 +23,8 @@ This command gets an instances of SAP monitor by name. ### Example 3: Get an instances of SAP monitor by object ```powershell -PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 -PS C:\> Get-AzSapMonitorProviderInstance -InputObject $sapIns +$sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 +Get-AzSapMonitorProviderInstance -InputObject $sapIns Name Type ---- ---- @@ -35,7 +35,7 @@ This command gets an instances of SAP monitor by object. ### Example 4: Get an instances of SAP monitor by pipeline ```powershell -PS C:\> @{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01/providerInstances/ps-sapmonitorins-t02"} | Get-AzSapMonitorProviderInstance +@{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.HanaOnAzure/sapMonitors/ps-spamonitor-t01/providerInstances/ps-sapmonitorins-t02"} | Get-AzSapMonitorProviderInstance Name Type ---- ---- diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitor.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitor.md index 7fff8331e23c..2e7905c65d2b 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitor.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitor.md @@ -1,8 +1,8 @@ ### Example 1: New SAP monitor ```powershell -PS C:\> $Workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" -PS C:\> $WorkspaceKey = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -PS C:\> New-AzSapMonitor -Name ps-sapmonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey $WorkspaceKey.PrimarySharedKey -LogAnalyticsWorkspaceId $Workspace.CustomerId -LogAnalyticsWorkspaceResourceId $Workspace.ResourceId +$Workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName nancyc-hn1 -Name sapmonitor-test -Location westus2 -Sku "Standard" +$WorkspaceKey = Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName nancyc-hn1 -Name sapmonitor-test +New-AzSapMonitor -Name ps-sapmonitor-t01 -ResourceGroupName nancyc-hn1 -Location westus2 -EnableCustomerAnalytic -MonitorSubnet "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/nancyc-hn1/providers/Microsoft.Network/virtualNetworks/vnet-sap/subnets/subnet-admin" -LogAnalyticsWorkspaceSharedKey $WorkspaceKey.PrimarySharedKey -LogAnalyticsWorkspaceId $Workspace.CustomerId -LogAnalyticsWorkspaceResourceId $Workspace.ResourceId Location Name Type -------- ---- ---- diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitorProviderInstance.md index 57716a52e45b..5cea2ae6977e 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitorProviderInstance.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/New-AzSapMonitorProviderInstance.md @@ -1,6 +1,6 @@ ### Example 1: Create an instance of SAP monitor by string for HANA ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) +New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -Name ps-sapmonitorins-t01 -SapMonitorName yemingmonitor -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePassword (ConvertTo-SecureString "Manager1" -AsPlainText -Force) Name Type ---- ---- @@ -11,7 +11,7 @@ This command creates an instance of SAP monitor by string for HANA. ### Example 2: Create an instance of SAP monitor by key vault for HANA ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName sapMonitor-vayh7q-test -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://kv-9gosjc-test.vault.azure.net/secrets/hanaPassword/bf516d1dfcc144138e5cf55114f3344b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-8p50xe/providers/Microsoft.KeyVault/vaults/kv-9gosjc-test -Name sapins-kv-test +New-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName sapMonitor-vayh7q-test -ProviderType SapHana -HanaHostname 'hdb1-0' -HanaDatabaseName 'SYSTEMDB' -HanaDatabaseSqlPort 30015 -HanaDatabaseUsername SYSTEM -HanaDatabasePasswordSecretId https://kv-9gosjc-test.vault.azure.net/secrets/hanaPassword/bf516d1dfcc144138e5cf55114f3344b -HanaDatabasePasswordKeyVaultResourceId /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/costmanagement-rg-8p50xe/providers/Microsoft.KeyVault/vaults/kv-9gosjc-test -Name sapins-kv-test Name Type ---- ---- @@ -22,7 +22,7 @@ This command creates an instance of SAP monitor by key vault for HANA. ### Example 3: Create an instance of SAP monitor by dictionary for PrometheusHaCluster ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-promclt -SapMonitorName dolauli-test04 -ProviderType PrometheusHaCluster -InstanceProperty @{prometheusUrl='http://10.4.1.10:9664/metrics'} +New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-promclt -SapMonitorName dolauli-test04 -ProviderType PrometheusHaCluster -InstanceProperty @{prometheusUrl='http://10.4.1.10:9664/metrics'} Name Type @@ -34,7 +34,7 @@ This command creates an instance of SAP monitor by dictionary for PrometheusHaCl ### Example 4: Create an instance of SAP monitor by dictionary for PrometheusOS ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-prom -SapMonitorName dolauli-test04 -ProviderType PrometheusOS -InstanceProperty @{prometheusUrl='http://10.3.1.6:9100/metrics'} +New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-prom -SapMonitorName dolauli-test04 -ProviderType PrometheusOS -InstanceProperty @{prometheusUrl='http://10.3.1.6:9100/metrics'} Name Type ---- ---- @@ -45,7 +45,7 @@ This command creates an instance of SAP monitor by dictionary for PrometheusOS. ### Example 5: Create an instance of SAP monitor by dictionary for MsSqlServer ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-ms -SapMonitorName dolauli-test04 -ProviderType MsSqlServer -InstanceProperty @{sqlHostname="10.4.8.90";sqlPort=1433;sqlUsername="AMFSS";sqlPassword="fakepassword"} +New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-ms -SapMonitorName dolauli-test04 -ProviderType MsSqlServer -InstanceProperty @{sqlHostname="10.4.8.90";sqlPort=1433;sqlUsername="AMFSS";sqlPassword="fakepassword"} Name Type ---- ---- @@ -56,7 +56,7 @@ This command creates an instance of SAP monitor by dictionary for MsSqlServer. ### Example 6: Create an instance of SAP monitor by dictionary for SapHana ```powershell -PS C:\> New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-hana -SapMonitorName dolauli-test04 -ProviderType SapHana -InstanceProperty @{hanaHostname="10.1.2.6";hanaDbName="SYSTEMDB";hanaDbSqlPort=30113;hanaDbUsername="SYSTEM"; hanaDbPassword="Manager1"} +New-AzSapMonitorProviderInstance -ResourceGroupName donaliu-HN1 -Name dolauli-instance-hana -SapMonitorName dolauli-test04 -ProviderType SapHana -InstanceProperty @{hanaHostname="10.1.2.6";hanaDbName="SYSTEMDB";hanaDbSqlPort=30113;hanaDbUsername="SYSTEM"; hanaDbPassword="Manager1"} Name Type ---- ---- diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitor.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitor.md index 99704f4df816..7fc12dfb7900 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitor.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Remove a SAP monitor by name ```powershell -PS C:\> Remove-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t02 +Remove-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t02 ``` @@ -8,8 +8,8 @@ This command removes a SAP monitor by name. ### Example 2: Remove a SAP monitor by object ```powershell -PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 -PS C:\> Remove-AzSapMonitor -InputObject $sap +$sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +Remove-AzSapMonitor -InputObject $sap ``` diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitorProviderInstance.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitorProviderInstance.md index 3cac2a001399..e97d5f7c9c16 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitorProviderInstance.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Remove-AzSapMonitorProviderInstance.md @@ -1,6 +1,6 @@ ### Example 1: Remove instance of SAP monitor by name ```powershell -PS C:\> Remove-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 +Remove-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t02 ``` @@ -8,8 +8,8 @@ This command removes instance of SAP monitor by name. ### Example 2: Remove instance of SAP monitor by object ```powershell -PS C:\> $sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t01 -PS C:\> Remove-AzSapMonitorProviderInstance -InputObject $sapIns +$sapIns = Get-AzSapMonitorProviderInstance -ResourceGroupName nancyc-hn1 -SapMonitorName ps-spamonitor-t01 -Name ps-sapmonitorins-t01 +Remove-AzSapMonitorProviderInstance -InputObject $sapIns ``` diff --git a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Update-AzSapMonitor.md b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Update-AzSapMonitor.md index 95217aaf3172..05d6cbabeb3d 100644 --- a/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Update-AzSapMonitor.md +++ b/src/HanaOnAzure/HanaOnAzure.Autorest/examples/Update-AzSapMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Update a SAP monitor by name ```powershell -PS C:\> Update-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 -Tag @{'key'=1;'key2'=2; 'key3'=3} +Update-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-spamonitor-t01 -Tag @{'key'=1;'key2'=2; 'key3'=3} Location Name Type -------- ---- ---- @@ -11,8 +11,8 @@ This commands updates a SAP monitor by name. ### Example 2: Update a SAP monitor by object ```powershell -PS C:\> $sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 -PS C:\> Update-AzSapMonitor -InputObject $sap -Tag @{'key'=1;'key2'=2; 'key3'=3} +$sap = Get-AzSapMonitor -ResourceGroupName nancyc-hn1 -Name ps-sapmonitor-t01 +Update-AzSapMonitor -InputObject $sap -Tag @{'key'=1;'key2'=2; 'key3'=3} Location Name Type -------- ---- ---- diff --git a/src/HealthBot/HealthBot.Autorest/examples/Get-AzHealthBot.md b/src/HealthBot/HealthBot.Autorest/examples/Get-AzHealthBot.md index c17f54c0441b..e9df7f5a3ecf 100644 --- a/src/HealthBot/HealthBot.Autorest/examples/Get-AzHealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/examples/Get-AzHealthBot.md @@ -1,6 +1,6 @@ ### Example 1: Get all HealthBot ```powershell -PS C:\> Get-AzHealthBot +Get-AzHealthBot Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type -------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ---- @@ -12,7 +12,7 @@ Get all HealthBot ### Example 2: Get all HealthBot by ResourceGroupName ```powershell -PS C:\> Get-AzHealthBot -ResourceGroupName youriTest +Get-AzHealthBot -ResourceGroupName youriTest Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type -------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ---- @@ -24,7 +24,7 @@ Get all HealthBot by ResourceGroupName ### Example 3: Get HealthBot by ResourceGroupName and Name ```powershell -PS C:\> Get-AzHealthBot -ResourceGroupName youriTest -name yourihealthbot +Get-AzHealthBot -ResourceGroupName youriTest -name yourihealthbot Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type -------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ---- @@ -35,7 +35,7 @@ Get HealthBot by ResourceGroupName and Name ### Example 4: Get HealthBot by InputObject ```powershell -PS C:\> $getAzHealthBot = Get-AzHealthBot -ResourceGroupName youriTest -name yourihealthbot +$getAzHealthBot = Get-AzHealthBot -ResourceGroupName youriTest -name yourihealthbot Get-AzHealthBot -InputObject $getAzHealthBot Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type diff --git a/src/HealthBot/HealthBot.Autorest/examples/New-AzHealthBot.md b/src/HealthBot/HealthBot.Autorest/examples/New-AzHealthBot.md index 121cf765350f..202b5aa22543 100644 --- a/src/HealthBot/HealthBot.Autorest/examples/New-AzHealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/examples/New-AzHealthBot.md @@ -1,6 +1,6 @@ ### Example 1: Create new HealthBot ```powershell -PS C:\> New-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest -Location eastus -Sku F0 +New-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest -Location eastus -Sku F0 Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type -------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ---- diff --git a/src/HealthBot/HealthBot.Autorest/examples/Remove-AzHealthBot.md b/src/HealthBot/HealthBot.Autorest/examples/Remove-AzHealthBot.md index 1dd71c1e3bcf..31089cbb6411 100644 --- a/src/HealthBot/HealthBot.Autorest/examples/Remove-AzHealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/examples/Remove-AzHealthBot.md @@ -1,6 +1,6 @@ ### Example 1: Delete HealthBot by ResourceGroupName and Name ```powershell -PS C:\> Remove-AzHealthBot -Name yourihealthbot -ResourceGroupName youriTest +Remove-AzHealthBot -Name yourihealthbot -ResourceGroupName youriTest ``` @@ -8,7 +8,7 @@ Delete HealthBot by ResourceGroupName and Name ### Example 2: Delete HealthBot by InputObject ```powershell -PS C:\> $gethealthbot = Get-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest +$gethealthbot = Get-AzHealthBot -Name yourihealthbot1 -ResourceGroupName youriTest Remove-AzHealthBot -InputObject $gethealthbot ``` diff --git a/src/HealthBot/HealthBot.Autorest/examples/Update-AzHealthBot.md b/src/HealthBot/HealthBot.Autorest/examples/Update-AzHealthBot.md index 410d2d385402..f22c55ca3ef6 100644 --- a/src/HealthBot/HealthBot.Autorest/examples/Update-AzHealthBot.md +++ b/src/HealthBot/HealthBot.Autorest/examples/Update-AzHealthBot.md @@ -1,6 +1,6 @@ ### Example 1: update HealthBot by Resourcegroupname and Name ```powershell -PS C:\> update-AzHealthBot -ResourceGroupName youriTest -Name yourihealthbot -Sku S1 +update-AzHealthBot -ResourceGroupName youriTest -Name yourihealthbot -Sku S1 Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type -------- ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- ---- @@ -11,7 +11,7 @@ update HealthBot by Resourcegroupname and Name ### Example 2: update HealthBot by InputObject ```powershell -PS C:\> $getHealth = Get-AzHealthBot -ResourceGroupName youriTest -Name yourihealthbot +$getHealth = Get-AzHealthBot -ResourceGroupName youriTest -Name yourihealthbot Update-AzHealthBot -InputObject $getHealth -Sku F0 Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType Type diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisService.md index bc947d9a2edc..32358ebcffb6 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisService.md @@ -1,6 +1,6 @@ ### Example 1: List the metadata of service instance. ```powershell -PS C:\> Get-AzHealthcareApisService + Get-AzHealthcareApisService Location Name Kind ResourceGroupName -------- ---- ---- ----------------- @@ -11,7 +11,7 @@ List the metadata of service instance. ### Example 2: List the metadata of service instance by resource group. ```powershell -PS C:\> Get-AzHealthcareApisService -ResourceGroupName azps_test_group +Get-AzHealthcareApisService -ResourceGroupName azps_test_group Location Name Kind ResourceGroupName -------- ---- ---- ----------------- @@ -22,7 +22,7 @@ List the metadata of service instance by resource group. ### Example 3: Get the metadata of a service instance. ```powershell -PS C:\> Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice +Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisWorkspace.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisWorkspace.md index 0c4a93a14ea5..bf4afeb7029c 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisWorkspace.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareApisWorkspace.md @@ -1,6 +1,6 @@ ### Example 1: List the properties. ```powershell -PS C:\> Get-AzHealthcareApisWorkspace +Get-AzHealthcareApisWorkspace Location Name ResourceGroupName -------- ---- ----------------- @@ -12,7 +12,7 @@ List the properties. ### Example 2: Gets the properties of the specified workspace. ```powershell -PS C:\> Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group +Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group Location Name ResourceGroupName -------- ---- ----------------- @@ -23,7 +23,7 @@ Gets the properties of the specified workspace. ### Example 3: List the properties of the resource group. ```powershell -PS C:\> Get-AzHealthcareApisWorkspace -ResourceGroupName azps_test_group +Get-AzHealthcareApisWorkspace -ResourceGroupName azps_test_group Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareDicomService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareDicomService.md index 50d8b37c9202..6fb99f8c572a 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareDicomService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareDicomService.md @@ -1,6 +1,6 @@ ### Example 1: List the properties of the specified workspace. ```powershell -PS C:\> Get-AzHealthcareDicomService -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareDicomService -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ List the properties of the specified workspace. ### Example 2: Gets the properties of the specified DICOM Service. ```powershell -PS C:\> Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirDestination.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirDestination.md index b7afecda902c..b36f087c06d3 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirDestination.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirDestination.md @@ -1,6 +1,6 @@ ### Example 1: Lists all FHIR destinations for the given IoT Connector ```powershell -PS C:\> Get-AzHealthcareFhirDestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareFhirDestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirService.md index 4fb555b4c743..61101d60a871 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareFhirService.md @@ -1,6 +1,6 @@ ### Example 1: List the properties of the specified FHIR Service. ```powershell -PS C:\> Get-AzHealthcareFhirService -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareFhirService -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name Kind ResourceGroupName -------- ---- ---- ----------------- @@ -11,7 +11,7 @@ List the properties of the specified FHIR Service. ### Example 2: Gets the properties of the specified FHIR Service. ```powershell -PS C:\> Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnector.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnector.md index 5d1c861c2830..25dd0db68b4e 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnector.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnector.md @@ -1,6 +1,6 @@ ### Example 1: List the properties of the specified IoT Connector. ```powershell -PS C:\> Get-AzHealthcareIotConnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareIotConnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ List the properties of the specified IoT Connector. ### Example 2: Gets the properties of the specified IoT Connector. ```powershell -PS C:\> Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnectorFhirDestination.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnectorFhirDestination.md index 16afaca996b5..951b15df064b 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnectorFhirDestination.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Get-AzHealthcareIotConnectorFhirDestination.md @@ -1,6 +1,6 @@ ### Example 1: Gets the properties of the specified Iot Connector FHIR destination. ```powershell -PS C:\> Get-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Get-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisService.md index 0b87d4d4c1f8..f7d1026f72ee 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisService.md @@ -1,6 +1,6 @@ ### Example 1: Create or update the metadata of a service instance. ```powershell -PS C:\> New-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice -Kind 'fhir' -Location eastus2 -CosmosOfferThroughput 400 +New-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice -Kind 'fhir' -Location eastus2 -CosmosOfferThroughput 400 Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisWorkspace.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisWorkspace.md index c0466cb06091..90d78f7c9a95 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisWorkspace.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareApisWorkspace.md @@ -1,6 +1,6 @@ ### Example 1: Creates or update a workspace resource with the specified parameters. ```powershell -PS C:\> New-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group -Location eastus2 +New-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group -Location eastus2 Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareDicomService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareDicomService.md index 796cabda6cba..e3cd10a2b823 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareDicomService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareDicomService.md @@ -1,6 +1,6 @@ ### Example 1: Creates or updates a DICOM Service resource with the specified parameters. ```powershell -PS C:\> New-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 +New-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareFhirService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareFhirService.md index ba1f105669ad..566c4408b381 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareFhirService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareFhirService.md @@ -1,6 +1,6 @@ ### Example 1: Creates or updates a FHIR Service resource with the specified parameters. ```powershell -PS C:\> New-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 -Kind 'fhir-R4' -Authority "https://login.microsoftonline.com/{DirectoryID}" -Audience "https://azpshcws-{FhirServiceName}.fhir.azurehealthcareapis.com" +New-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 -Kind 'fhir-R4' -Authority "https://login.microsoftonline.com/{DirectoryID}" -Audience "https://azpshcws-{FhirServiceName}.fhir.azurehealthcareapis.com" Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnector.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnector.md index 1b426a836e33..b03cf572ee3b 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnector.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnector.md @@ -1,7 +1,7 @@ ### Example 1: Creates or updates an IoT Connector resource with the specified parameters. ```powershell -PS C:\> $arr = @() -PS C:\> New-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 -IngestionEndpointConfigurationConsumerGroup "sajob-01-portal_input-01_consumer_group" -IngestionEndpointConfigurationEventHubName "sajob01portaleventhub" -IngestionEndpointConfigurationFullyQualifiedEventHubNamespace "sdk-Namespace-4761.servicebus.windows.net" -DeviceMappingContent @{"templateType"="CollectionContent";"template"=$arr} +$arr = @() +New-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Location eastus2 -IngestionEndpointConfigurationConsumerGroup "sajob-01-portal_input-01_consumer_group" -IngestionEndpointConfigurationEventHubName "sajob01portaleventhub" -IngestionEndpointConfigurationFullyQualifiedEventHubNamespace "sdk-Namespace-4761.servicebus.windows.net" -DeviceMappingContent @{"templateType"="CollectionContent";"template"=$arr} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnectorFhirDestination.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnectorFhirDestination.md index bf4d54d04adc..f5774d482650 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnectorFhirDestination.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/New-AzHealthcareIotConnectorFhirDestination.md @@ -1,7 +1,7 @@ ### Example 1: Creates or updates an IoT Connector FHIR destination resource with the specified parameters. ```powershell -PS C:\> $arr = @() -PS C:\> New-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -FhirServiceResourceId "/subscriptions/{SubscriptionId}/resourceGroups/azps_test_group/providers/Microsoft.HealthcareApis/workspaces/azpshcws/fhirservices/azpsfhirservice" -ResourceIdentityResolutionType 'Create' -Location eastus2 -FhirMappingContent @{"templateType"="CollectionFhirTemplate";"template"=$arr} +$arr = @() +New-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -FhirServiceResourceId "/subscriptions/{SubscriptionId}/resourceGroups/azps_test_group/providers/Microsoft.HealthcareApis/workspaces/azpshcws/fhirservices/azpsfhirservice" -ResourceIdentityResolutionType 'Create' -Location eastus2 -FhirMappingContent @{"templateType"="CollectionFhirTemplate";"template"=$arr} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisService.md index 3c9283f883c4..4d68ae20367b 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisService.md @@ -1,6 +1,6 @@ ### Example 1: Delete a service instance. ```powershell -PS C:\> Remove-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice +Remove-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice ``` @@ -8,7 +8,7 @@ Delete a service instance. ### Example 2: Delete a service instance. ```powershell -PS C:\> Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice | Remove-AzHealthcareApisService +Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice | Remove-AzHealthcareApisService ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisWorkspace.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisWorkspace.md index 41ce57962649..ac9003c19d96 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisWorkspace.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareApisWorkspace.md @@ -1,6 +1,6 @@ ### Example 1: Deletes a specified workspace. ```powershell -PS C:\> Remove-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group +Remove-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group ``` @@ -8,7 +8,7 @@ Deletes a specified workspace. ### Example 2: Deletes a specified workspace. ```powershell -PS C:\> Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group | Remove-AzHealthcareApisWorkspace +Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group | Remove-AzHealthcareApisWorkspace ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareDicomService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareDicomService.md index 7278022981dd..51cde48a166c 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareDicomService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareDicomService.md @@ -1,6 +1,6 @@ ### Example 1: Delete ```powershell -PS C:\> Remove-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Remove-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws ``` @@ -8,7 +8,7 @@ Deletes a DICOM Service. ### Example 2: DeleteViaIdentity ```powershell -PS C:\> Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareDicomService +Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareDicomService ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareFhirService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareFhirService.md index a4017226738e..cd70f1000f38 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareFhirService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareFhirService.md @@ -1,6 +1,6 @@ ### Example 1: Deletes a FHIR Service. ```powershell -PS C:\> Remove-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Remove-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws ``` @@ -8,7 +8,7 @@ Deletes a FHIR Service. ### Example 2: Deletes a FHIR Service. ```powershell -PS C:\> Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareFhirService +Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareFhirService ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnector.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnector.md index aeff477d5a68..9291ad7b18a0 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnector.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnector.md @@ -1,6 +1,6 @@ ### Example 1: Deletes an IoT Connector. ```powershell -PS C:\> Remove-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Remove-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws ``` @@ -8,7 +8,7 @@ Deletes an IoT Connector. ### Example 2: Deletes an IoT Connector. ```powershell -PS C:\> Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareIotConnector +Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareIotConnector ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnectorFhirDestination.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnectorFhirDestination.md index add87b028e90..33e70f374b48 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnectorFhirDestination.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Remove-AzHealthcareIotConnectorFhirDestination.md @@ -1,6 +1,6 @@ ### Example 1: Deletes an IoT Connector FHIR destination. ```powershell -PS C:\> Remove-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws +Remove-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws ``` @@ -8,7 +8,7 @@ Deletes an IoT Connector FHIR destination. ### Example 2: Deletes an IoT Connector FHIR destination. ```powershell -PS C:\> Get-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareIotConnectorFhirDestination +Get-AzHealthcareIotConnectorFhirDestination -FhirDestinationName azpsfhirdestination -IotConnectorName azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Remove-AzHealthcareIotConnectorFhirDestination ``` diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Test-AzHealthcareServiceNameAvailability.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Test-AzHealthcareServiceNameAvailability.md index de4a7b2e82ad..a821290b33fe 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Test-AzHealthcareServiceNameAvailability.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Test-AzHealthcareServiceNameAvailability.md @@ -1,6 +1,6 @@ ### Example 1: Check if a service instance name is available. ```powershell -PS C:\> Test-AzHealthcareServiceNameAvailability -Name azpsdicom -Type Microsoft.HealthcareApis/services +Test-AzHealthcareServiceNameAvailability -Name azpsdicom -Type Microsoft.HealthcareApis/services Message NameAvailable Reason ------- ------------- ------ diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisService.md index 9b78d7deffdc..9ccc43fd39d1 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisService.md @@ -1,6 +1,6 @@ ### Example 1: Update the metadata of a service instance. ```powershell -PS C:\> Update-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice -Tag @{"abc"="123"} +Update-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice -Tag @{"abc"="123"} Location Name Kind ResourceGroupName -------- ---- ---- ----------------- @@ -11,7 +11,7 @@ Update the metadata of a service instance. ### Example 2: Update the metadata of a service instance. ```powershell -PS C:\> Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice | Update-AzHealthcareApisService -Tag @{"abc"="123"} +Get-AzHealthcareApisService -ResourceGroupName azps_test_group -Name azpsapiservice | Update-AzHealthcareApisService -Tag @{"abc"="123"} Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisWorkspace.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisWorkspace.md index 2afbb59010d4..984facbb4547 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisWorkspace.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareApisWorkspace.md @@ -1,6 +1,6 @@ ### Example 1: Patch workspace details. ```powershell -PS C:\> Update-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +Update-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group -Tag @{"abc"="123"} Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ Patch workspace details. ### Example 2: Patch workspace details. ```powershell -PS C:\> Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group | Update-AzHealthcareApisWorkspace -Tag @{"abc"="123"} +Get-AzHealthcareApisWorkspace -Name azpshcws -ResourceGroupName azps_test_group | Update-AzHealthcareApisWorkspace -Tag @{"abc"="123"} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareDicomService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareDicomService.md index 4429b1639df1..dc9972f3e1ec 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareDicomService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareDicomService.md @@ -1,6 +1,6 @@ ### Example 1: Patch DICOM Service details. ```powershell -PS C:\> Update-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} +Update-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ Patch DICOM Service details. ### Example 2: Patch DICOM Service details. ```powershell -PS C:\> Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareDicomService -Tag @{"123"="abc"} +Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareDicomService -Tag @{"123"="abc"} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareFhirService.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareFhirService.md index bc280d0677fe..bb3b8b8a569e 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareFhirService.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareFhirService.md @@ -1,6 +1,6 @@ ### Example 1: Patch FHIR Service details. ```powershell -PS C:\> Update-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} +Update-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} Location Name Kind ResourceGroupName -------- ---- ---- ----------------- @@ -11,7 +11,7 @@ Patch FHIR Service details. ### Example 2: Patch FHIR Service details. ```powershell -PS C:\> Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareFhirService -Tag @{"123"="abc"} + Get-AzHealthcareFhirService -Name azpsfhirservice -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareFhirService -Tag @{"123"="abc"} Location Name Kind ResourceGroupName -------- ---- ---- ----------------- diff --git a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareIotConnector.md b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareIotConnector.md index 2ac1a98ee3e8..d855e5072e82 100644 --- a/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareIotConnector.md +++ b/src/HealthcareApis/HealthcareApis.Autorest/examples/Update-AzHealthcareIotConnector.md @@ -1,6 +1,6 @@ ### Example 1: Patch an IoT Connector. ```powershell -PS C:\> Update-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} +Update-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws -Tag @{"123"="abc"} Location Name ResourceGroupName -------- ---- ----------------- @@ -11,7 +11,7 @@ Patch an IoT Connector. ### Example 2: Patch an IoT Connector. ```powershell -PS C:\> Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareIotConnector -Tag @{"123"="abc"} +Get-AzHealthcareIotConnector -Name azpsiotconnector -ResourceGroupName azps_test_group -WorkspaceName azpshcws | Update-AzHealthcareIotConnector -Tag @{"123"="abc"} Location Name ResourceGroupName -------- ---- ----------------- diff --git a/src/KeyVault/KeyVault.Autorest/docs/Add-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault.Autorest/help/Add-AzKeyVaultManagedHsmRegion.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Add-AzKeyVaultManagedHsmRegion.md rename to src/KeyVault/KeyVault.Autorest/help/Add-AzKeyVaultManagedHsmRegion.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md b/src/KeyVault/KeyVault.Autorest/help/Az.KeyVault.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Az.KeyVault.md rename to src/KeyVault/KeyVault.Autorest/help/Az.KeyVault.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/Get-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault.Autorest/help/Get-AzKeyVaultManagedHsmRegion.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Get-AzKeyVaultManagedHsmRegion.md rename to src/KeyVault/KeyVault.Autorest/help/Get-AzKeyVaultManagedHsmRegion.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/README.md b/src/KeyVault/KeyVault.Autorest/help/README.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/README.md rename to src/KeyVault/KeyVault.Autorest/help/README.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/Remove-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault.Autorest/help/Remove-AzKeyVaultManagedHsmRegion.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Remove-AzKeyVaultManagedHsmRegion.md rename to src/KeyVault/KeyVault.Autorest/help/Remove-AzKeyVaultManagedHsmRegion.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/Test-AzKeyVaultManagedHsmNameAvailability.md b/src/KeyVault/KeyVault.Autorest/help/Test-AzKeyVaultManagedHsmNameAvailability.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Test-AzKeyVaultManagedHsmNameAvailability.md rename to src/KeyVault/KeyVault.Autorest/help/Test-AzKeyVaultManagedHsmNameAvailability.md diff --git a/src/KeyVault/KeyVault.Autorest/docs/Test-AzKeyVaultNameAvailability.md b/src/KeyVault/KeyVault.Autorest/help/Test-AzKeyVaultNameAvailability.md similarity index 100% rename from src/KeyVault/KeyVault.Autorest/docs/Test-AzKeyVaultNameAvailability.md rename to src/KeyVault/KeyVault.Autorest/help/Test-AzKeyVaultNameAvailability.md diff --git a/src/LabServices/LabServices.Autorest/examples/Add-AzLabServicesUserQuota.md b/src/LabServices/LabServices.Autorest/examples/Add-AzLabServicesUserQuota.md index 25e255e70b68..b73f4f76c998 100644 --- a/src/LabServices/LabServices.Autorest/examples/Add-AzLabServicesUserQuota.md +++ b/src/LabServices/LabServices.Autorest/examples/Add-AzLabServicesUserQuota.md @@ -1,6 +1,6 @@ ### Example 1: Increase student usage quota. ```powershell -PS C:\> Add-AzLabUserQuota -ResourceGroupName "group name" -LabName "lab name" -Email 'student@contoso.com' -UsageQuotaToAddToExisting $(New-Timespan -Hours 4) +Add-AzLabUserQuota -ResourceGroupName "group name" -LabName "lab name" -Email 'student@contoso.com' -UsageQuotaToAddToExisting $(New-Timespan -Hours 4) Name Type ---- ---- @@ -11,8 +11,8 @@ This command increase the students quota by 4 hours. ### Example 2: Increase student usage quota with User object. ```powershell -PS C:\> $user = Get-AzLabUser -ResourceGroupName "group name" -LabName "lab name" -UserName 'ContosoUser12345' -PS C:\> $user | Add-AzLabUserQuota -UsageQuotaToAddToExisting $(New-Timespan -Hours 5) +$user = Get-AzLabUser -ResourceGroupName "group name" -LabName "lab name" -UserName 'ContosoUser12345' +$user | Add-AzLabUserQuota -UsageQuotaToAddToExisting $(New-Timespan -Hours 5) Name Type ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLab.md index f631fbe98e25..61f8873f6bfd 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLab.md @@ -1,6 +1,6 @@ ### Example 1: Get all labs ```powershell -PS C:\> Get-AzLab +Get-AzLab Location Name Type -------- ---- ---- @@ -14,7 +14,7 @@ Returns all labs for the current subscription. ### Example 2: Get a specific lab ```powershell -PS C:\> Get-AzLab -ResourceGroupName 'yourgroupname' -Name 'yourlabname' +Get-AzLab -ResourceGroupName 'yourgroupname' -Name 'yourlabname' Location Name Type -------- ---- ---- @@ -26,8 +26,8 @@ Get a specific lab using the resource group name and the lab name. ### Example 3: Get all labs created with a lab plan ```powershell -PS C:\> $plan = Get-AzLabPlan -LabPlanName 'lab plan name' -PS C:\> $plan | Get-AzLab -Name 'lab name' +$plan = Get-AzLabPlan -LabPlanName 'lab plan name' +$plan | Get-AzLab -Name 'lab name' Location Name Type -------- ---- ---- @@ -39,7 +39,7 @@ Get the specific lab in a lab plan using the lab plan object and the lab name. ### Example 4: Get labs using wildcards in the lab name. ```powershell -PS C:\> Get-AzLab -ResourceGroupName 'group name' -Name '*lab name' +Get-AzLab -ResourceGroupName 'group name' -Name '*lab name' Location Name Type -------- ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabForVM.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabForVM.md index bc0d28af0fb3..87757f1a35ce 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabForVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabForVM.md @@ -1,6 +1,6 @@ ### Example 1: Get the lab for a Virtual machine. ```powershell -PS C:\> Get-AzLabServicesLabForVm -ResourceId '/subscriptions//resourceGroups//providers/Microsoft.LabServices/labs//virtualMachines/' +Get-AzLabServicesLabForVm -ResourceId '/subscriptions//resourceGroups//providers/Microsoft.LabServices/labs//virtualMachines/' Location Name Type -------- ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabPlan.md index df0972c650c9..17a8ed48e91d 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesLabPlan.md @@ -1,6 +1,6 @@ ### Example 1: Get all lab plans in subscription. ```powershell -PS C:\> Get-AzLabServicesLabPlan +Get-AzLabServicesLabPlan Location Name Type -------- ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesPlanImage.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesPlanImage.md index 96fb3bb1cbd8..de86468b969d 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesPlanImage.md @@ -1,6 +1,6 @@ ### Example 1: Get all image in the lab plan. ```powershell -PS C:\> Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" +Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" Name ---- @@ -13,7 +13,7 @@ Gets all the available images, this is usually a long list of images. ### Example 2: Get specific image in the lab plan. ```powershell -PS C:\> Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" -Name 'canonical.0001-com-ubuntu-server-focal.20_04-lts' +Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" -Name 'canonical.0001-com-ubuntu-server-focal.20_04-lts' Name ---- @@ -24,7 +24,7 @@ Returns the specific image. ### Example 3: Get specific image using display name. ```powershell -PS C:\> Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" -DisplayName 'Ubuntu Server 20.04 LTS' +Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" -DisplayName 'Ubuntu Server 20.04 LTS' Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesSchedule.md index 19d37b584f33..4604df9cb2c1 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesSchedule.md @@ -1,6 +1,6 @@ ### Example 1: Get all schedules for a lab. ```powershell -PS C:\> Get-AzLabSchedule -ResourceGroupName "group name" -LabName "lab name" +Get-AzLabSchedule -ResourceGroupName "group name" -LabName "lab name" Name Type ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesTemplateVM.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesTemplateVM.md index 6c7b368c9679..61af8f5b6ba5 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesTemplateVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesTemplateVM.md @@ -1,6 +1,6 @@ ### Example 1: Get the template for the lab. ```powershell -PS C:\> Get-AzLabTemplateVM -ResourceGroupName "group name" -LabName "lab name" +Get-AzLabTemplateVM -ResourceGroupName "group name" -LabName "lab name" Name Type ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUser.md index 030284c78b65..d133ee42c254 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUser.md @@ -1,6 +1,6 @@ ### Example 1: Get all users for a lab. ```powershell -PS C:\> Get-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" +Get-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" Name ---- @@ -11,7 +11,7 @@ Gets all the users for a lab. ### Example 2: Get user using name ```powershell -PS C:\> Get-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" -Name "testuser" +Get-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" -Name "testuser" Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUserVM.md index 81d9ed1fa096..2952172d7419 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesUserVM.md @@ -1,6 +1,6 @@ ### Example 1: Get the Virtual machine assigned to a specific user. ```powershell -PS C:\> Get-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email 'user@contoso.com' +Get-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email 'user@contoso.com' Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesVM.md index de0b8c5860af..fcae6ce0dcbc 100644 --- a/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Get-AzLabServicesVM.md @@ -1,6 +1,6 @@ ### Example 1: Gets all the Virtual machines in the lab. ```powershell -PS C:\> Get-AzLabServicesVM -LabName "Lab Name" -ResourceGroupName "Group Name" +Get-AzLabServicesVM -LabName "Lab Name" -ResourceGroupName "Group Name" Name ---- @@ -13,7 +13,7 @@ Returns all the VMs. ### Example 2: Gets the specific VM in the lab. ```powershell -PS C:\> Get-AzLabServicesVM -LabName "Lab Name" -ResourceGroupName "Group Name" -Name 2 +Get-AzLabServicesVM -LabName "Lab Name" -ResourceGroupName "Group Name" -Name 2 Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLab.md index 02f86334d3cc..95a128cbc5cf 100644 --- a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLab.md @@ -1,6 +1,6 @@ ### Example 1: Create a new lab. ```powershell -PS C:\> New-AzLabServicesLab ` + New-AzLabServicesLab ` -Name "NewLab" ` -ResourceGroupName $ENV:ResourceGroupName ` -Location $ENV:Location ` diff --git a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLabPlan.md index 2ae3baf2c31d..1439a60e33a5 100644 --- a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesLabPlan.md @@ -1,6 +1,6 @@ ### Example 1: Create a new Lab plan. ```powershell -PS C:\> New-AzLabServicesLabPlan ` +New-AzLabServicesLabPlan ` -LabPlanName "testplan" ` -ResourceGroupName "Group Name" ` -Location "westus2" ` diff --git a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesSchedule.md index 6b3114f2b2d4..9041f3b73b03 100644 --- a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesSchedule.md @@ -1,6 +1,6 @@ ### Example 1: Create a new schedule in a lab. ```powershell -PS C:\> New-AzLabServicesSchedule ` + New-AzLabServicesSchedule ` -ResourceGroupName "Group Name" ` -LabName "Lab Name" ` -Name "Schedule Name" ` diff --git a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesUser.md index 051edab4fe9b..70bea6cd36ae 100644 --- a/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/examples/New-AzLabServicesUser.md @@ -1,6 +1,6 @@ ### Example 1: Add user to a lab ```powershell -PS C:\> New-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" -Name "User Name" -Email "User@contoso.com" +New-AzLabServicesUser -LabName "Lab Name" -ResourceGroupName "Group Name" -Name "User Name" -Email "User@contoso.com" Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Publish-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/examples/Publish-AzLabServicesLab.md index 102750a9f878..7c6cddd2357c 100644 --- a/src/LabServices/LabServices.Autorest/examples/Publish-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/examples/Publish-AzLabServicesLab.md @@ -1,6 +1,6 @@ ### Example 1: Publish the lab. ```powershell -PS C:\> Publish-AzLabServicesLab -Name "Lab Name" -ResourceGroupName "Group Name" +Publish-AzLabServicesLab -Name "Lab Name" -ResourceGroupName "Group Name" Location Name -------- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLab.md index 19b61963fba6..cab591b3d76b 100644 --- a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLab.md @@ -1,6 +1,6 @@ ### Example 1: Remove a lab. ```powershell -PS C:\> Remove-AzLabServicesLab -ResourceGroupName "Group Name" -Name "Lab Name" +Remove-AzLabServicesLab -ResourceGroupName "Group Name" -Name "Lab Name" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLabPlan.md index d88e08c5108a..d825f24cb35d 100644 --- a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesLabPlan.md @@ -1,6 +1,6 @@ ### Example 1: Remove a Lab plan ```powershell -PS C:\> Remove-AzLabServicesLabPlan -ResourceGroupName "Group Name" -Name "Lab Plan Name" +Remove-AzLabServicesLabPlan -ResourceGroupName "Group Name" -Name "Lab Plan Name" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesSchedule.md index 8b4d9eb1b289..e96d7f79a0e1 100644 --- a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesSchedule.md @@ -1,6 +1,6 @@ ### Example 1: Remove a schedule from a lab. ```powershell -PS C:\> Remove-AzLabServicesSchedule -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "Schedule Name" +Remove-AzLabServicesSchedule -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "Schedule Name" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesUser.md index 918c665cc310..f1efe413f69d 100644 --- a/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/examples/Remove-AzLabServicesUser.md @@ -1,6 +1,6 @@ ### Example 1: Remove a user from a lab. ```powershell -PS C:\> Remove-AzLabServicesUser -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" +Remove-AzLabServicesUser -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Reset-AzLabServicesVMPassword.md b/src/LabServices/LabServices.Autorest/examples/Reset-AzLabServicesVMPassword.md index 94a6d58dc753..22b00b74497f 100644 --- a/src/LabServices/LabServices.Autorest/examples/Reset-AzLabServicesVMPassword.md +++ b/src/LabServices/LabServices.Autorest/examples/Reset-AzLabServicesVMPassword.md @@ -1,6 +1,6 @@ ### Example 1: Reset the password on the VM. ```powershell -PS C:\> Reset-AzLabServicesVMPassword -ResourceGroupName "Group Name" -LabName "Lab Name" -VirtualMachineName 0 -Password "New Password" +Reset-AzLabServicesVMPassword -ResourceGroupName "Group Name" -LabName "Lab Name" -VirtualMachineName 0 -Password "New Password" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Save-AzLabServicesLabPlanImage.md b/src/LabServices/LabServices.Autorest/examples/Save-AzLabServicesLabPlanImage.md index 4911c8b541b1..d383defd0ce0 100644 --- a/src/LabServices/LabServices.Autorest/examples/Save-AzLabServicesLabPlanImage.md +++ b/src/LabServices/LabServices.Autorest/examples/Save-AzLabServicesLabPlanImage.md @@ -1,6 +1,6 @@ ### Example 1: Saves an image of the VM to the Shared Image Gallery. ```powershell -PS C:\> Save-AzLabServicesLabPlanImage -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "New Image Name" -LabVirtualMachineId "/subscriptions//resourceGroups//providers/Microsoft.LabServices/labs/labName/virtualMachines/" +Save-AzLabServicesLabPlanImage -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "New Image Name" -LabVirtualMachineId "/subscriptions//resourceGroups//providers/Microsoft.LabServices/labs/labName/virtualMachines/" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Send-AzLabServicesUserInvite.md b/src/LabServices/LabServices.Autorest/examples/Send-AzLabServicesUserInvite.md index 33f202084df0..f948f99a7b9b 100644 --- a/src/LabServices/LabServices.Autorest/examples/Send-AzLabServicesUserInvite.md +++ b/src/LabServices/LabServices.Autorest/examples/Send-AzLabServicesUserInvite.md @@ -1,6 +1,6 @@ ### Example 1: Send lab invite to the user. ```powershell -PS C:\> Send-AzLabServicesUserInvite -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" -Text "Welcome to the lab." +Send-AzLabServicesUserInvite -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" -Text "Welcome to the lab." ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesUserVM.md index dc3fcc5c3806..6fb55816cb17 100644 --- a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesUserVM.md @@ -1,6 +1,6 @@ ### Example 1: Start user assigned VM in the lab. ```powershell -PS C:\> Start-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email "user@contoso.com" +Start-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email "user@contoso.com" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVM.md index d117e7cff597..8429fe46d835 100644 --- a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVM.md @@ -1,6 +1,6 @@ ### Example 1: Start specific VM in the lab. ```powershell -PS C:\> Start-AzLabServicesVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 +Start-AzLabServicesVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVMRedeployment.md b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVMRedeployment.md index f1dee564600e..cd6bd9707743 100644 --- a/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVMRedeployment.md +++ b/src/LabServices/LabServices.Autorest/examples/Start-AzLabServicesVMRedeployment.md @@ -1,6 +1,6 @@ ### Example 1: Redeploy the specific Virtual machine. ```powershell -PS C:\> Start-AzLabServicesVMRedeployment -LabName "Lab Name" -ResourceGroupName "Group Name" -VirtualMachineName 1 +Start-AzLabServicesVMRedeployment -LabName "Lab Name" -ResourceGroupName "Group Name" -VirtualMachineName 1 ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesUserVM.md b/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesUserVM.md index c02dae870981..4b47e651c700 100644 --- a/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesUserVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesUserVM.md @@ -1,6 +1,6 @@ ### Example 1: Stop user assigned VM in the lab. ```powershell -PS C:\> Stop-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email "user@contoso.com" +Stop-AzLabServicesUserVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Email "user@contoso.com" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesVM.md b/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesVM.md index 548b7e0de1e5..9ecfa1d0b581 100644 --- a/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesVM.md +++ b/src/LabServices/LabServices.Autorest/examples/Stop-AzLabServicesVM.md @@ -1,6 +1,6 @@ ### Example 1: Stop specific VM in the lab. ```powershell -PS C:\> Stop-AzLabServicesVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 +Stop-AzLabServicesVM -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Sync-AzLabServicesLabUser.md b/src/LabServices/LabServices.Autorest/examples/Sync-AzLabServicesLabUser.md index d2e0fba647e3..fcf93e83e608 100644 --- a/src/LabServices/LabServices.Autorest/examples/Sync-AzLabServicesLabUser.md +++ b/src/LabServices/LabServices.Autorest/examples/Sync-AzLabServicesLabUser.md @@ -1,6 +1,6 @@ ### Example 1: Sync the users connected to the lab. ```powershell -PS C:\> Sync-AzLabServicesLabUser -ResourceGroupName "Group Name" -LabName "Lab Name" +Sync-AzLabServicesLabUser -ResourceGroupName "Group Name" -LabName "Lab Name" ``` diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLab.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLab.md index 30e4c5a090be..3d377319e23b 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLab.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLab.md @@ -1,6 +1,6 @@ ### Example 1: Update existing lab. ```powershell -PS C:\> Update-AzLabServicesLab -ResourceGroupName "Group Name" -Name "Lab Name" -AutoShutdownProfileShutdownOnDisconnect Enabled -AutoShutdownProfileDisconnectDelay "00:25:00" +Update-AzLabServicesLab -ResourceGroupName "Group Name" -Name "Lab Name" -AutoShutdownProfileShutdownOnDisconnect Enabled -AutoShutdownProfileDisconnectDelay "00:25:00" Location Name -------- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLabPlan.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLabPlan.md index 6b10a8d18e34..9d2fac877bc1 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLabPlan.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesLabPlan.md @@ -1,6 +1,6 @@ ### Example 1: Update Lab plan ```powershell -PS C:\> Update-AzLabServicesLabPlan -ResourceGroupName "Group Name" -Name "LabPlan Name" -DefaultAutoShutdownProfileShutdownOnDisconnect 'Enabled' -DefaultAutoShutdownProfileDisconnectDelay "00:17:00" +Update-AzLabServicesLabPlan -ResourceGroupName "Group Name" -Name "LabPlan Name" -DefaultAutoShutdownProfileShutdownOnDisconnect 'Enabled' -DefaultAutoShutdownProfileDisconnectDelay "00:17:00" Location Name -------- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesPlanImage.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesPlanImage.md index 5b6a2fcc6796..eef1cc38b3c3 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesPlanImage.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesPlanImage.md @@ -1,6 +1,6 @@ ### Example 1: Update a lab plan image. ```powershell -PS C:\> Update-AzLabServicesPlanImage -ResourceGroupName "Group Name" -LabPlanName "LabPlan Name" -Name "Image Name" -EnabledState "Enabled" +Update-AzLabServicesPlanImage -ResourceGroupName "Group Name" -LabPlanName "LabPlan Name" -Name "Image Name" -EnabledState "Enabled" Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesQuota.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesQuota.md index 94972bc779a0..f5b33c963f31 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesQuota.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesQuota.md @@ -1,6 +1,6 @@ ### Example 1: Update-AzLabServicesQuota ```powershell -PS C:\> Update-AzLabServicesQuota -ResourceGroupName "Group Name" -LabName "Lab Name" -LabQuota $(New-TimeSpan -Hours 3) +Update-AzLabServicesQuota -ResourceGroupName "Group Name" -LabName "Lab Name" -LabQuota $(New-TimeSpan -Hours 3) Location Name -------- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesSchedule.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesSchedule.md index 8b90720c03a9..d5fbf124d125 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesSchedule.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesSchedule.md @@ -1,6 +1,6 @@ ### Example 1: Update existing schedule. ```powershell -PS C:\> Update-AzLabServicesSchedule -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "Schedule Name" -Note "Update note." +Update-AzLabServicesSchedule -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "Schedule Name" -Note "Update note." Name Type ---- ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesUser.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesUser.md index 3ae3cfeee1a5..45078b4772b9 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesUser.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesUser.md @@ -1,6 +1,6 @@ ### Example 1: Update Lab User information. ```powershell -PS C:\> Update-AzLabServicesUser -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" -AdditionalUsageQuota $(New-TimeSpan -Hours 2) +Update-AzLabServicesUser -ResourceGroupName "Group Name" -LabName "Lab Name" -Name "User Name" -AdditionalUsageQuota $(New-TimeSpan -Hours 2) Name ---- diff --git a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesVMReimage.md b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesVMReimage.md index dd9d87050f4e..e06a844c2b5c 100644 --- a/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesVMReimage.md +++ b/src/LabServices/LabServices.Autorest/examples/Update-AzLabServicesVMReimage.md @@ -1,6 +1,6 @@ ### Example 1: Reimage an existing VM. ```powershell -PS C:\> Update-AzLabServicesVMReimage -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 +Update-AzLabServicesVMReimage -ResourceGroupName "Group Name" -LabName "Lab Name" -Name 0 Name ---- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitor.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitor.md index ee42412f0d12..3d995f2c5d35 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitor.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitor.md @@ -1,6 +1,6 @@ ### Example 1: List all logz monitor resources under a subscription ```powershell -PS C:\> Get-AzLogzMonitor +Get-AzLogzMonitor Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -13,7 +13,7 @@ This command lists all logz monitor resources under a subscription. ### Example 2: List all logz monitor resources under a resource group ```powershell -PS C:\> Get-AzLogzMonitor -ResourceGroupName logz-rg-test +Get-AzLogzMonitor -ResourceGroupName logz-rg-test Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -24,7 +24,7 @@ This command lists all logz monitor resources under a resource group. ### Example 3: Get the properties of a specific logz monitor resource ```powershell -PS C:\> Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-pwsh01 +Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-pwsh01 Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -35,7 +35,7 @@ This command gets the properties of a specific logz monitor resource. ### Example 4: Get the properties of a specific logz monitor resource by pipeline ```powershell -PS C:\> New-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-pwsh01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' | Get-AzLogzMonitor +New-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-pwsh01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' | Get-AzLogzMonitor Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorSSOConfiguration.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorSSOConfiguration.md index f6e76c606a57..38335d6570fa 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorSSOConfiguration.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorSSOConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Gets the default Logz single sign-on resource for the given Monitor ```powershell -PS C:\> Get-AzLogzMonitorSSOConfiguration -ResourceGroupName LPTrials -MonitorName lpatlogz +Get-AzLogzMonitorSSOConfiguration -ResourceGroupName LPTrials -MonitorName lpatlogz Name ProvisioningState SingleSignOnState SingleSignOnUrl ResourceGroupName ---- ----------------- ----------------- --------------- ----------------- @@ -11,7 +11,7 @@ This command gets the default Logz single sign-on resource for the given Monitor ### Example 2: Gets the default Logz single sign-on resource for the given Monitor by pipeline ```powershell -PS C:\> New-AzLogzMonitorSSOConfiguration -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Get-AzLogzMonitorSSOConfiguration +New-AzLogzMonitorSSOConfiguration -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Get-AzLogzMonitorSSOConfiguration Name ProvisioningState SingleSignOnState SingleSignOnUrl ResourceGroupName ---- ----------------- ----------------- --------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorTagRule.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorTagRule.md index 767484739987..bd02610aee62 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorTagRule.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Get the default tag rule set for a given monitor resource ```powershell -PS C:\> Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 +Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- @@ -11,7 +11,7 @@ This command gets the default tag rule set for a given monitor resource. ### Example 2: Get the default tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Get-AzLogzMonitorTagRule +Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Get-AzLogzMonitorTagRule Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorUserRole.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorUserRole.md index 79867b6c214a..fc700a45b795 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorUserRole.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorUserRole.md @@ -1,6 +1,6 @@ ### Example 1: List the user's roles configured on Logz.io side for the account corresponding to the monitor resource ```powershell -PS C:\> Get-AzLogzMonitorUserRole -ResourceGroupName logz-rg-test -Name pwsh-logz04 +Get-AzLogzMonitorUserRole -ResourceGroupName logz-rg-test -Name pwsh-logz04 Role ---- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorVMHost.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorVMHost.md index 5480d0ca8569..b5c8cffdb41f 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorVMHost.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitorVMHost.md @@ -1,6 +1,6 @@ ### Example 1: List the compute resources currently being monitored by the monitor resource ```powershell -PS C:\> Get-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 +Get-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 AgentVersion Id ------------ -- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitoredResource.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitoredResource.md index 7a58b48061b9..97184596d7d8 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitoredResource.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzMonitoredResource.md @@ -1,6 +1,6 @@ ### Example 1: List the resources currently being monitored by the Logz monitor resource ```powershell -PS C:\> Get-AzLogzMonitoredResource -ResourceGroupName LPTrials -MonitorName lpatlogz +Get-AzLogzMonitoredResource -ResourceGroupName LPTrials -MonitorName lpatlogz ReasonForLogsStatus ReasonForMetricsStatus SendingLog SendingMetric ------------------- ---------------------- ---------- ------------- @@ -15,7 +15,7 @@ This command lists the resources currently being monitored by the Logz monitor r ### Example 2: List the resources currently being monitored by the Logz sub account ```powershell -PS C:\> Get-AzLogzMonitoredResource -ResourceGroupName LPTrials -MonitorName lpatlogz -SubAccountName lpslogzsubaccount +Get-AzLogzMonitoredResource -ResourceGroupName LPTrials -MonitorName lpatlogz -SubAccountName lpslogzsubaccount ReasonForLogsStatus ReasonForMetricsStatus SendingLog SendingMetric ------------------- ---------------------- ---------- ------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccount.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccount.md index 2aeb7368bfed..5e9114230558 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccount.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccount.md @@ -1,6 +1,6 @@ ### Example 1: List all sub accounts under a given monitor resource ```powershell -PS C:\> Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 +Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -12,7 +12,7 @@ This command lists all sub accounts under a given monitor resource. ### Example 2: Get a sub account under a given monitor resource ```powershell -PS C:\> Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount01 +Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount01 Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -23,7 +23,7 @@ This command gets a sub account under a given monitor resource. ### Example 3: Get a sub account under a given monitor resource by pipeline ```powershell -PS C:\> New-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' | Get-AzLogzSubAccount +New-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' | Get-AzLogzSubAccount Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountTagRule.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountTagRule.md index 1aa8dbee4ba7..9720ffb9242b 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountTagRule.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Get the default tag rule set for a given logz sub account resource ```powershell -PS C:\> Get-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 +Get-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- @@ -11,7 +11,7 @@ This command gets the default tag rule set for a given logz sub account resource ### Example 2: Get the default tag rule set for a given logz sub account resourceby pipeline ```powershell -PS C:\> New-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 | Get-AzLogzSubAccountTagRule +New-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 | Get-AzLogzSubAccountTagRule Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountVMHost.md b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountVMHost.md index a16034df50db..a54bde43de1b 100644 --- a/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountVMHost.md +++ b/src/Logz/Logz.Autorest/examples/Get-AzLogzSubAccountVMHost.md @@ -1,6 +1,6 @@ ### Example 1: List the compute resources currently being monitored by the logz sub account resource ```powershell -PS C:\> Get-AzLogzSubAccountVMHost -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 +Get-AzLogzSubAccountVMHost -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 AgentVersion Id ------------ -- diff --git a/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostMonitor.md b/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostMonitor.md index 5d53799156d9..7eb12e04e4f9 100644 --- a/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostMonitor.md +++ b/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM ```powershell -PS C:\> Invoke-AzLogzHostMonitor -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 +Invoke-AzLogzHostMonitor -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 ApiKey Region ------ ------ @@ -11,7 +11,7 @@ This command returns the payload that needs to be passed in the request body for ### Example 2: Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM by pipeline ```powershell -PS C:\> Get-AzLogzMonitor -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Invoke-AzLogzHostMonitor +Get-AzLogzMonitor -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Invoke-AzLogzHostMonitor ApiKey Region ------ ------ diff --git a/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostSubAccount.md b/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostSubAccount.md index 345be54df662..91059f608d46 100644 --- a/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostSubAccount.md +++ b/src/Logz/Logz.Autorest/examples/Invoke-AzLogzHostSubAccount.md @@ -1,6 +1,6 @@ ### Example 1: Returns the payload of the logz sub account that needs to be passed in the request body for installing Logz.io agent on a VM ```powershell -PS C:\> Invoke-AzLogzHostSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 +Invoke-AzLogzHostSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 ApiKey Region ------ ------ @@ -11,7 +11,7 @@ This command returns the payload of the logz sub account that needs to be passed ### Example 2: Returns the payload of the logz sub account that needs to be passed in the request body for installing Logz.io agent on a VM by pipeline ```powershell -PS C:\> Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 | Invoke-AzLogzHostSubAccount +Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 | Invoke-AzLogzHostSubAccount ApiKey Region ------ ------ diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzFilteringTagObject.md b/src/Logz/Logz.Autorest/examples/New-AzLogzFilteringTagObject.md index 12a08228e860..fc7f4f1cfbbd 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzFilteringTagObject.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzFilteringTagObject.md @@ -1,7 +1,7 @@ ### Example 1: Create a in-memory object for FilteringTag pass into parameter LogRuleFilteringTag when creating a tage rule for the monitor resource ```powershell -PS C:\> $filter = New-AzLogzFilteringTagObject -Action 'Include' -Name 'Env' -Value "Prod" -PS C:\> New-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -LogRuleFilteringTag $filter +$filter = New-AzLogzFilteringTagObject -Action 'Include' -Name 'Env' -Value "Prod" +New-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -LogRuleFilteringTag $filter Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitor.md b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitor.md index 5533dba86635..6a51b807371d 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitor.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Create a monitor resource ```powershell -PS C:\> New-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz05 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanEffectiveDate (Get-Date -AsUTC) -PlanDetail '100gb14days' -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' +New-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz05 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanEffectiveDate (Get-Date -AsUTC) -PlanDetail '100gb14days' -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorSSOConfiguration.md b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorSSOConfiguration.md index 0ca5a5a42913..42e65b26c0da 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorSSOConfiguration.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorSSOConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Configures single-sign-on for this resource ```powershell -PS C:\> New-AzLogzMonitorSSOConfiguration -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 +New-AzLogzMonitorSSOConfiguration -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 Name ProvisioningState SingleSignOnState SingleSignOnUrl ResourceGroupName ---- ----------------- ----------------- --------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorTagRule.md b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorTagRule.md index a1d15398d7db..63337a3b70c5 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorTagRule.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzMonitorTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Create or update a tag rule set for a given monitor resource ```powershell -PS C:\> New-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 +New-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccount.md b/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccount.md index e2bb56868d75..32c36a16f60e 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccount.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccount.md @@ -1,6 +1,6 @@ ### Example 1: Create sub account under a given monitor resource ```powershell -PS C:\> New-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' +New-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Location 'westus2' -PlanBillingCycle 'Monthly' -PlanUsageType 'PAYG' -PlanDetail '100gb14days' -PlanEffectiveDate (Get-Date -AsUTC) -UserInfoEmailAddress 'xxxxx@microsoft.com' -UserInfoPhoneNumber 'xxxxxx' -UserInfoFirstName 'xxx' -UserInfoLastName 'xxx' Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccountTagRule.md b/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccountTagRule.md index f8b812f6a78f..55203f144a1f 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccountTagRule.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzSubAccountTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Create or update a tag rule set for a given sub account resource ```powershell -PS C:\> New-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 +New-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/New-AzLogzVMResourcesObject.md b/src/Logz/Logz.Autorest/examples/New-AzLogzVMResourcesObject.md index 5cd6bb9d581c..ed32d7899631 100644 --- a/src/Logz/Logz.Autorest/examples/New-AzLogzVMResourcesObject.md +++ b/src/Logz/Logz.Autorest/examples/New-AzLogzVMResourcesObject.md @@ -1,7 +1,7 @@ ### Example 1: Create a in-memory object for VMResources pass into parameter VMResource when updating vm host of the monitor resource ```powershell -PS C:\> $vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' -PS C:\> Update-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 -State 'Install' -VMResource $vmResource +$vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' +Update-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 -State 'Install' -VMResource $vmResource AgentVersion Id ------------ -- diff --git a/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitor.md b/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitor.md index 897937a1825c..34d7fc63a66c 100644 --- a/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitor.md +++ b/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Delete a monitor resource ```powershell -PS C:\> Remove-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-portal01 +Remove-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-portal01 ``` @@ -8,7 +8,7 @@ This command deletes a monitor resource ### Example 2: Delete a monitor resource by pipeline ```powershell -PS C:\> Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-portal01 | Remove-AzLogzMonitor +Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name logz-portal01 | Remove-AzLogzMonitor ``` diff --git a/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitorTagRule.md b/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitorTagRule.md index 74e872d14550..3ea3133a5bd3 100644 --- a/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitorTagRule.md +++ b/src/Logz/Logz.Autorest/examples/Remove-AzLogzMonitorTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Delete a tag rule set for a given monitor resource ```powershell -PS C:\> Remove-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 +Remove-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 ``` @@ -8,7 +8,7 @@ This command deletes a tag rule set for a given monitor resource. ### Example 2: Delete a tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Remove-AzLogzMonitorTagRule +Get-AzLogzMonitorTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 | Remove-AzLogzMonitorTagRule ``` diff --git a/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccount.md b/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccount.md index 16c710d2bc0e..ddac45f21f36 100644 --- a/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccount.md +++ b/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccount.md @@ -1,6 +1,6 @@ ### Example 1: Delete a sub account resource ```powershell -PS C:\> Remove-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount01 +Remove-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount01 ``` @@ -8,7 +8,7 @@ This command deletes a sub account resource. ### Example 2: Delete a sub account resource by pipeline ```powershell -PS C:\> Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount02 | Remove-AzLogzSubAccount +Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName logz-portal01 -Name logz01-subaccount02 | Remove-AzLogzSubAccount ``` diff --git a/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccountTagRule.md b/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccountTagRule.md index 4dc3fb690b3d..e936e2b24a7c 100644 --- a/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccountTagRule.md +++ b/src/Logz/Logz.Autorest/examples/Remove-AzLogzSubAccountTagRule.md @@ -1,6 +1,6 @@ ### Example 1: Delete a tag rule set for a given logz sub account resource ```powershell -PS C:\> Remove-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 +Remove-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 ``` @@ -8,7 +8,7 @@ This command deletes a tag rule set for a given logz sub account resource. ### Example 2: Delete a tag rule set for a given logz sub account resource by pipeline ```powershell -PS C:\> Get-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 | Remove-AzLogzSubAccountTagRule +Get-AzLogzSubAccountTagRule -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -SubAccountName logz-pwshsub01 | Remove-AzLogzSubAccountTagRule ``` diff --git a/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitor.md b/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitor.md index 2486b80ca649..32b0c9b3055a 100644 --- a/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitor.md +++ b/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitor.md @@ -1,6 +1,6 @@ ### Example 1: Update a monitor resource ```powershell -PS C:\> Update-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz04 -Tag @{'key01'=1;'key02'=2;'key03'=3} +Update-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz04 -Tag @{'key01'=1;'key02'=2;'key03'=3} Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -11,7 +11,7 @@ This command updates a monitor resource. ### Example 2: Update a monitor resource by pipeline ```powershell -PS C:\> Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz04 | Update-AzLogzMonitor -Tag @{'key01'=1;'key02'=2;'key03'=3} +Get-AzLogzMonitor -ResourceGroupName logz-rg-test -Name pwsh-logz04 | Update-AzLogzMonitor -Tag @{'key01'=1;'key02'=2;'key03'=3} Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitorVMHost.md b/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitorVMHost.md index 7b4ffaa2e39b..fd98a08c453b 100644 --- a/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitorVMHost.md +++ b/src/Logz/Logz.Autorest/examples/Update-AzLogzMonitorVMHost.md @@ -1,7 +1,7 @@ ### Example 1: Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor ```powershell -PS C:\> $vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' -PS C:\> Update-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 -State 'Install' -VMResource $vmResource +$vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' +Update-AzLogzMonitorVMHost -ResourceGroupName logz-rg-test -Name pwsh-logz04 -State 'Install' -VMResource $vmResource AgentVersion Id ------------ -- diff --git a/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccount.md b/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccount.md index 1900a297ab7f..51975e1efc93 100644 --- a/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccount.md +++ b/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccount.md @@ -1,6 +1,6 @@ ### Example 1: Update a logz sub account resource ```powershell -PS C:\> Update-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Tag @{'key01'=1;'key02'=2;'key03'=3} +Update-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -Tag @{'key01'=1;'key02'=2;'key03'=3} Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- @@ -11,7 +11,7 @@ This command updates a logz sub account resource. ### Example 2: Update a logz sub account resource by pipeline ```powershell -PS C:\> Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 | Update-AzLogzSubAccount -Tag @{'key01'=1;'key02'=2;'key03'=3} +Get-AzLogzSubAccount -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 | Update-AzLogzSubAccount -Tag @{'key01'=1;'key02'=2;'key03'=3} Name MonitoringStatus Location ResourceGroupName ---- ---------------- -------- ----------------- diff --git a/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccountVMHost.md b/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccountVMHost.md index cf480a570a71..bb02ea5ea608 100644 --- a/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccountVMHost.md +++ b/src/Logz/Logz.Autorest/examples/Update-AzLogzSubAccountVMHost.md @@ -1,7 +1,7 @@ ### Example 1: Sending request to update the collection when Logz.io agent has been installed on a VM for a logz sub account monitor ```powershell -PS C:\> $vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' -PS C:\> Update-AzLogzSubAccountVMHost -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -VMResource $vmResource -State 'Install' +$vmResource = New-AzLogzVMResourcesObject -AgentVersion '1.0' -Id '/SUBSCRIPTIONS/CE37D538-DFA3-49C3-B3CD-149B4B7DB48A/RESOURCEGROUPS/KOYTEST/PROVIDERS/MICROSOFT.COMPUTE/VIRTUALMACHINES/TEST-VM-1' +Update-AzLogzSubAccountVMHost -ResourceGroupName logz-rg-test -MonitorName pwsh-logz04 -Name logz-pwshsub01 -VMResource $vmResource -State 'Install' AgentVersion Id ------------ -- diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesAssignment.md index 74d00e9de11e..230074cde85d 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesAssignment.md @@ -1,6 +1,6 @@ ### Example 1: List all Azure Lighthouse registration assignments in a subscription ```powershell -PS C:\> Get-AzManagedServicesAssignment +Get-AzManagedServicesAssignment Name Type ---- ---- @@ -13,7 +13,7 @@ Lists all the Azure Lighthouse registration assignments in a given subscription ### Example 2: Get Azure Lighthouse registration assignment by name with selected properties ```powershell -PS C:\> Get-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, RegistrationDefinitionId, ProvisioningState +Get-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, RegistrationDefinitionId, ProvisioningState Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationAssignments/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx @@ -26,7 +26,7 @@ Gets Azure Lighthouse registration assignment by name with selected properties. ### Example 3: List all Azure Lighthouse registration assignments by scope ```powershell -PS C:\> Get-AzManagedServicesAssignment -Scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, RegistrationDefinitionId, ProvisioningState + Get-AzManagedServicesAssignment -Scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, RegistrationDefinitionId, ProvisioningState Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationAssignments/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesDefinition.md index 892470466336..8fafaa346243 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesDefinition.md @@ -1,6 +1,6 @@ ### Example 1: List all Azure Lighthouse registration definitions in a subscription ```powershell -PS C:\> Get-AzManagedServicesDefinition +Get-AzManagedServicesDefinition Name Type ---- ---- @@ -12,7 +12,7 @@ Lists all the Azure Lighthouse registration definitions in a given subscription ### Example 2: Get Azure Lighthouse registration definition by name with selected properties ```powershell -PS C:\> Get-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization + Get-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx @@ -26,7 +26,7 @@ Gets Azure Lighthouse registration definition by name with selected properties. ### Example 3: List all Azure Lighthouse registration definitions by scope ```powershell -PS C:\> Get-AzManagedServicesDefinition -Scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization +Get-AzManagedServicesDefinition -Scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesMarketplaceDefinition.md b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesMarketplaceDefinition.md index 7affc7988ae2..78f9d289a602 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesMarketplaceDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Get-AzManagedServicesMarketplaceDefinition.md @@ -1,6 +1,6 @@ ### Example 1: Get the Azure Lighthouse Marketplace registration definition offer details ```powershell -PS C:\> Get-AzManagedServicesMarketplaceDefinition -MarketplaceIdentifier marketplace_test.managed_offer.managed_plan1.1.0.1 | Format-List Id, PlanProduct, PlanPublisher, PlanName, PlanVersion +Get-AzManagedServicesMarketplaceDefinition -MarketplaceIdentifier marketplace_test.managed_offer.managed_plan1.1.0.1 | Format-List Id, PlanProduct, PlanPublisher, PlanName, PlanVersion Id : /providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions/marketplace_test.managed_offer.managed_plan1.1.0.1 PlanProduct : managed_offer diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAssignment.md index 53e8da9faef3..48d8585678c7 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Create new Azure Lighthouse registration assignment at subscription scope ```powershell -PS C:\> New-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RegistrationDefinitionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RegistrationDefinitionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Name Type ---- ---- @@ -11,7 +11,7 @@ Creates new Azure Lighthouse registration assignment at subscription scope with ### Example 2: Create new Azure Lighthouse registration assignment at resource group scope ```powershell -PS C:\> New-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testgroup" -RegistrationDefinitionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testgroup" -RegistrationDefinitionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Name Type ---- ---- diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAuthorizationObject.md b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAuthorizationObject.md index 4b2fcbfb55bb..b1fd0ad5e43d 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesAuthorizationObject.md @@ -1,6 +1,6 @@ ### Example 1: Create new Azure Lighthouse Authorization object to use with Registration definition ```powershell -PS C:\> New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" +New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" DelegatedRoleDefinitionId PrincipalId PrincipalIdDisplayName RoleDefinitionId ------------------------- ----------- ---------------------- ---------------- @@ -11,7 +11,7 @@ Creates new Azure Lighthouse authorization object to use with Registration defin ### Example 2: Create new Azure Lighthouse Authorization object with delegatedRoleDefinitionIds ```powershell -PS C:\> New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" DelegatedRoleDefinitionId PrincipalId PrincipalIdDisplayName RoleDefinitionId ------------------------- ----------- ---------------------- ---------------- diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesDefinition.md index 549b6bfc1af4..34242ecf395e 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesDefinition.md @@ -1,8 +1,8 @@ ### Example 1: Create new Azure Lighthouse registration definition object with permanent authorization ```powershell -PS C:\> $permantAuth = New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$permantAuth = New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PS C:\> New-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Name Type ---- ---- @@ -13,11 +13,11 @@ Creates new Azure Lighthouse registration definition object with permanent autho ### Example 2: Create new Azure Lighthouse registration definition object with both permanent and eligible authorizations ```powershell -PS C:\> $approver = New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approver group" +$approver = New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approver group" -PS C:\> $eligibleAuth = New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -JustInTimeAccessPolicyManagedByTenantApprover $approver -JustInTimeAccessPolicyMultiFactorAuthProvider Azure -JustInTimeAccessPolicyMaximumActivationDuration 0:30 +$eligibleAuth = New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -JustInTimeAccessPolicyManagedByTenantApprover $approver -JustInTimeAccessPolicyMultiFactorAuthProvider Azure -JustInTimeAccessPolicyMaximumActivationDuration 0:30 -PS C:\> New-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -EligibleAuthorization $eligibleAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-RegistrationDefinitionName "Test definition" -ManagedByTenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -Authorization $permantAuth -EligibleAuthorization $eligibleAuth -Description "Test definition desc" -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Name Type ---- ---- diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleApproverObject.md b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleApproverObject.md index 02b584661a81..8f2f412ccdcb 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleApproverObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleApproverObject.md @@ -1,6 +1,6 @@ ### Example 1: Creates Azure Lighthouse eligible authorization approver object ```powershell -PS C:\> New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approvers group" + New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approvers group" PrincipalId PrincipalIdDisplayName ----------- ---------------------- diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleAuthorizationObject.md b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleAuthorizationObject.md index 35745885b3d4..24ab33372ed4 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleAuthorizationObject.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/New-AzManagedServicesEligibleAuthorizationObject.md @@ -1,6 +1,6 @@ ### Example 1: Creates new Azure Lighthouse eligible authorization object to use with Registration definition ```powershell -PS C:\> New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" PrincipalId PrincipalIdDisplayName RoleDefinitionId ----------- ---------------------- ---------------- @@ -11,11 +11,11 @@ Creates new Azure Lighthouse eligible authorization object to use with Registrat ### Example 2: Create new Azure Lighthouse eligible authorization with JustInTime settings ```powershell -PS C:\> $approver = New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approver group" +$approver = New-AzManagedServicesEligibleApproverObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Approver group" -PS C:\> $eligibleAuth = New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -JustInTimeAccessPolicyManagedByTenantApprover $approver -JustInTimeAccessPolicyMultiFactorAuthProvider Azure -JustInTimeAccessPolicyMaximumActivationDuration 0:30 +$eligibleAuth = New-AzManagedServicesEligibleAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -JustInTimeAccessPolicyManagedByTenantApprover $approver -JustInTimeAccessPolicyMultiFactorAuthProvider Azure -JustInTimeAccessPolicyMaximumActivationDuration 0:30 -PS C:\> $eligibleAuth | Format-List -Property PrinciPalId, PrincipalIdDisplayName, RoleDefinitionId, JustInTimeAccessPolicyManagedByTenantApprover, JustInTimeAccessPolicyMultiFactorAuthProvider, JustInTimeAccessPolicyMaximumActivationDuration +$eligibleAuth | Format-List -Property PrinciPalId, PrincipalIdDisplayName, RoleDefinitionId, JustInTimeAccessPolicyManagedByTenantApprover, JustInTimeAccessPolicyMultiFactorAuthProvider, JustInTimeAccessPolicyMaximumActivationDuration PrincipalId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx PrincipalIdDisplayName : Test user diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesAssignment.md b/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesAssignment.md index 022d7991b560..ffb05a7e0fec 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesAssignment.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Removes Azure Lighthouse registration assignment at subscription scope ```powershell -PS C:\> Remove-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +Remove-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ``` @@ -8,7 +8,7 @@ Removes Azure Lighthouse registration assignment at subscription scope. ### Example 2: Removes Azure Lighthouse registration assignment at resource group scope ```powershell -PS C:\> Remove-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testgroup" +Remove-AzManagedServicesAssignment -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testgroup" ``` diff --git a/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesDefinition.md b/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesDefinition.md index a27f6776370b..c9bc1dc282a7 100644 --- a/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesDefinition.md +++ b/src/ManagedServices/ManagedServices.Autorest/examples/Remove-AzManagedServicesDefinition.md @@ -1,6 +1,6 @@ ### Example 1: Removes Azure Lighthouse registration definition ```powershell -PS C:\> Remove-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +Remove-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Scope "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ``` diff --git a/src/Maps/Maps.Autorest/examples/Get-AzMapsAccount.md b/src/Maps/Maps.Autorest/examples/Get-AzMapsAccount.md index fa10f77d5387..ae970f2fc5de 100644 --- a/src/Maps/Maps.Autorest/examples/Get-AzMapsAccount.md +++ b/src/Maps/Maps.Autorest/examples/Get-AzMapsAccount.md @@ -1,6 +1,6 @@ ### Example 1: List all Maps Accounts under a subscription ```powershell -PS C:\> Get-AzMapsAccount +Get-AzMapsAccount Location Name Type Kind -------- ---- ---- ---- @@ -11,7 +11,7 @@ This command lists all Maps Accounts under a subscription. ### Example 2: List all Maps Accounts under a resource group ```powershell -PS C:\> Get-AzMapsAccount -ResourceGroupName azure-rg-test +Get-AzMapsAccount -ResourceGroupName azure-rg-test Location Name Type Kind -------- ---- ---- ---- @@ -22,7 +22,7 @@ This command lists all Maps Accounts under a resource group. ### Example 3: Get a Maps Account ```powershell -PS C:\> Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 +Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 Location Name Type Kind -------- ---- ---- ---- @@ -33,7 +33,7 @@ This command gets a Maps Account. ### Example 4: Get a Maps Account by pipeline ```powershell -PS C:\> New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus | Get-AzMapsAccount +New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus | Get-AzMapsAccount Location Name Type Kind -------- ---- ---- ---- diff --git a/src/Maps/Maps.Autorest/examples/Get-AzMapsAccountKey.md b/src/Maps/Maps.Autorest/examples/Get-AzMapsAccountKey.md index deb100f8c3f6..ec1149f1fdaf 100644 --- a/src/Maps/Maps.Autorest/examples/Get-AzMapsAccountKey.md +++ b/src/Maps/Maps.Autorest/examples/Get-AzMapsAccountKey.md @@ -1,6 +1,6 @@ ### Example 1: Get the keys to use with the Maps APIs ```powershell -PS C:\> Get-AzMapsAccountKey -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount02 +Get-AzMapsAccountKey -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount02 PrimaryKey PrimaryKeyLastUpdated SecondaryKey SecondaryKeyLastUpdated ---------- --------------------- ------------ ----------------------- diff --git a/src/Maps/Maps.Autorest/examples/Get-AzMapsCreator.md b/src/Maps/Maps.Autorest/examples/Get-AzMapsCreator.md index fab5496566bc..ee2dee53de15 100644 --- a/src/Maps/Maps.Autorest/examples/Get-AzMapsCreator.md +++ b/src/Maps/Maps.Autorest/examples/Get-AzMapsCreator.md @@ -1,6 +1,6 @@ ### Example 1: List all Maps Creator resources under a Maps Account ```powershell -PS C:\> Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 +Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ This command lists Maps Creator resources under a Maps Account. ### Example 2: Get a Maps Creator resource ```powershell -PS C:\> Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 +Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 Location Name Type -------- ---- ---- @@ -22,7 +22,7 @@ This command gets a Maps Creator resource. ### Example 3: Get a Maps Creator resource by pipeline ```powershell -PS C:\> New-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 -Location eastus2 -StorageUnit 3 | Get-AzMapsCreator +New-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 -Location eastus2 -StorageUnit 3 | Get-AzMapsCreator Location Name Type -------- ---- ---- diff --git a/src/Maps/Maps.Autorest/examples/Get-AzMapsSubscriptionOperation.md b/src/Maps/Maps.Autorest/examples/Get-AzMapsSubscriptionOperation.md index 3deeee7099b6..41c9701efc44 100644 --- a/src/Maps/Maps.Autorest/examples/Get-AzMapsSubscriptionOperation.md +++ b/src/Maps/Maps.Autorest/examples/Get-AzMapsSubscriptionOperation.md @@ -1,6 +1,6 @@ ### Example 1: List operations available for the Maps Resource Provider ```powershell -PS C:\> Get-AzMapsSubscriptionOperation +Get-AzMapsSubscriptionOperation IsDataAction Name Origin ------------ ---- ------ diff --git a/src/Maps/Maps.Autorest/examples/New-AzMapsAccount.md b/src/Maps/Maps.Autorest/examples/New-AzMapsAccount.md index 75c19f3d9b3b..db019e7d5591 100644 --- a/src/Maps/Maps.Autorest/examples/New-AzMapsAccount.md +++ b/src/Maps/Maps.Autorest/examples/New-AzMapsAccount.md @@ -1,6 +1,6 @@ ### Example 1: Create a Maps Account. ```powershell -PS C:\> New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus +New-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -SkuName S0 -Location eastus Location Name Type Kind -------- ---- ---- ---- diff --git a/src/Maps/Maps.Autorest/examples/New-AzMapsAccountKey.md b/src/Maps/Maps.Autorest/examples/New-AzMapsAccountKey.md index 9bbf68d6b84d..e9baa7c86698 100644 --- a/src/Maps/Maps.Autorest/examples/New-AzMapsAccountKey.md +++ b/src/Maps/Maps.Autorest/examples/New-AzMapsAccountKey.md @@ -1,6 +1,6 @@ ### Example 1: Regenerate either the primary or secondary key for use with the Maps APIs ```powershell -PS C:\> New-AzMapsAccountKey -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -KeyType primary +New-AzMapsAccountKey -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 -KeyType primary PrimaryKey PrimaryKeyLastUpdated SecondaryKey SecondaryKeyLastUpdated ---------- --------------------- ------------ ----------------------- @@ -12,7 +12,7 @@ The old key will stop working immediately. ### Example 2: Regenerate either the primary or secondary key for use with the Maps APIs by pipeline ```powershell -PS C:\> Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 | New-AzMapsAccountKey -KeyType primary +Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 | New-AzMapsAccountKey -KeyType primary PrimaryKey PrimaryKeyLastUpdated SecondaryKey SecondaryKeyLastUpdated ---------- --------------------- ------------ ----------------------- diff --git a/src/Maps/Maps.Autorest/examples/New-AzMapsCreator.md b/src/Maps/Maps.Autorest/examples/New-AzMapsCreator.md index f3e4245b911b..7ffa104f31d0 100644 --- a/src/Maps/Maps.Autorest/examples/New-AzMapsCreator.md +++ b/src/Maps/Maps.Autorest/examples/New-AzMapsCreator.md @@ -1,6 +1,6 @@ ### Example 1: Create a Maps Creator resource ```powershell -PS C:\> New-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 -Location eastus2 -StorageUnit 3 +New-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 -Location eastus2 -StorageUnit 3 Location Name Type -------- ---- ---- diff --git a/src/Maps/Maps.Autorest/examples/Remove-AzMapsAccount.md b/src/Maps/Maps.Autorest/examples/Remove-AzMapsAccount.md index b252f1cb0493..52cf87249813 100644 --- a/src/Maps/Maps.Autorest/examples/Remove-AzMapsAccount.md +++ b/src/Maps/Maps.Autorest/examples/Remove-AzMapsAccount.md @@ -1,6 +1,6 @@ ### Example 1: Delete a Maps Account ```powershell -PS C:\> Remove-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 +Remove-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount01 ``` @@ -8,7 +8,7 @@ This command deletes a Maps Account. ### Example 2: Delete a Maps Account by pipeline ```powershell -PS C:\> Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount02 | Remove-AzMapsAccount +Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount02 | Remove-AzMapsAccount ``` diff --git a/src/Maps/Maps.Autorest/examples/Remove-AzMapsCreator.md b/src/Maps/Maps.Autorest/examples/Remove-AzMapsCreator.md index 0dddd410b49e..a4ffa2d7cd26 100644 --- a/src/Maps/Maps.Autorest/examples/Remove-AzMapsCreator.md +++ b/src/Maps/Maps.Autorest/examples/Remove-AzMapsCreator.md @@ -1,6 +1,6 @@ ### Example 1: Delete a Maps Creator resource ```powershell -PS C:\> Remove-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 +Remove-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 ``` @@ -8,7 +8,7 @@ This command deletes a Maps Creator resource. ### Example 2: Delete a Maps Creator resource by pipeline ```powershell -PS C:\> Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 | Remove-AzMapsCreator +Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount02 -Name creator-01 | Remove-AzMapsCreator ``` diff --git a/src/Maps/Maps.Autorest/examples/Update-AzMapsAccount.md b/src/Maps/Maps.Autorest/examples/Update-AzMapsAccount.md index 4d4ee85b0c7a..153899bece52 100644 --- a/src/Maps/Maps.Autorest/examples/Update-AzMapsAccount.md +++ b/src/Maps/Maps.Autorest/examples/Update-AzMapsAccount.md @@ -1,6 +1,6 @@ ### Example 1: Updates a Maps Account ```powershell -PS C:\> Update-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 -Tag @{'key1'='value1'; 'key2'='value2'} +Update-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type Kind -------- ---- ---- ---- @@ -12,7 +12,7 @@ Only a subset of the parameters may be updated after creation, such as Sku, Tags ### Example 2: Updates a Maps Account by pipeline ```powershell -PS C:\> Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 | Update-AzMapsAccount -Tag @{'key1'='value1'; 'key2'='value2'} +Get-AzMapsAccount -ResourceGroupName azure-rg-test -Name pwsh-mapsAccount03 | Update-AzMapsAccount -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type Kind -------- ---- ---- ---- diff --git a/src/Maps/Maps.Autorest/examples/Update-AzMapsCreator.md b/src/Maps/Maps.Autorest/examples/Update-AzMapsCreator.md index b753b81f4ede..e4c5970cba2e 100644 --- a/src/Maps/Maps.Autorest/examples/Update-AzMapsCreator.md +++ b/src/Maps/Maps.Autorest/examples/Update-AzMapsCreator.md @@ -1,6 +1,6 @@ ### Example 1: Updates the Maps Creator resource ```powershell -PS C:\> Update-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 -Tag @{'key1'='value1'; 'key2'='value2'} +Update-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type -------- ---- ---- @@ -12,7 +12,7 @@ Only a subset of the parameters may be updated after creation, such as Tags. ### Example 2: Updates the Maps Creator resource by pipeline ```powershell -PS C:\> Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 | Update-AzMapsCreator -Tag @{'key1'='value1'; 'key2'='value2'} +Get-AzMapsCreator -ResourceGroupName azure-rg-test -AccountName pwsh-mapsAccount03 -Name creator-01 | Update-AzMapsCreator -Tag @{'key1'='value1'; 'key2'='value2'} Location Name Type -------- ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConfiguration.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConfiguration.md index 124923120319..10fff4eb3128 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConfiguration.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: List all configuration under a MariaDB ```powershell -PS C:\> Get-AzMariaDbConfiguration -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 +Get-AzMariaDbConfiguration -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 Name Type ---- ---- @@ -165,7 +165,7 @@ This command lists all configuration under a MariaDB. ### Example 2: Get a configuration of MariaDB ```powershell -PS C:\> Get-AzMariaDbConfiguration -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 -Name max_connections +Get-AzMariaDbConfiguration -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 -Name max_connections Name Type ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConnectionString.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConnectionString.md index 74406a95950e..f2b437241f84 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConnectionString.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbConnectionString.md @@ -1,6 +1,6 @@ ### Example 1: Get a connection string of MariaDB ```powershell -PS C:\> Get-AzMariaDbConnectionString -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 -Client ADO.NET +Get-AzMariaDbConnectionString -ServerName mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 -Client ADO.NET Server=mariadb-asd-01.mariadb.database.azure.com; Port=3306; Database={your_database}; Uid=adminuser@mariadb-asd-01; Pwd={your_password}; SslMode=Preferred; ``` @@ -9,7 +9,7 @@ This command gets a connection string of MariaDB. ### Example 2: Get a connection string of MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -Name mariadb-gp-t03 -ResourceGroupName lucas-manual-test | Get-AzMariaDbConnectionString -Client PHP +Get-AzMariaDbServer -Name mariadb-gp-t03 -ResourceGroupName lucas-manual-test | Get-AzMariaDbConnectionString -Client PHP $con=mysqli_init();mysqli_ssl_set($con, NULL, NULL, {ca-cert filename}, NULL, NULL); mysqli_real_connect($con, "mariadb-gp-t03.mariadb.database.azure.com", "adminuser@mariadb-gp-t03", {your_password}, {your_database}, 3306); ``` diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbFirewallRule.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbFirewallRule.md index ee9a881ca379..5bb015f26471 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbFirewallRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbFirewallRule.md @@ -1,6 +1,6 @@ ### Example 1: List all firewall rule under a MariaDB ```powershell -PS C:\> Get-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig +Get-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig Name Type ---- ---- @@ -13,7 +13,7 @@ This command lists all girewall rule under a MariaDB. ### Example 2: Get a firewall rule under a MariaDB ```powershell -PS C:\> Get-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig -Name frname-001 +Get-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig -Name frname-001 Name Type ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbReplica.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbReplica.md index 37e9f3fc197e..8e30e8fab447 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbReplica.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbReplica.md @@ -1,6 +1,6 @@ ### Example 1: List all replica DB under a MariaDB ```powershell -PS C:\> Get-AzMariaDbReplica -ServerName mariadb-test-szp6dt -ResourceGroupName mariadb-test-qu5ov0 +Get-AzMariaDbReplica -ServerName mariadb-test-szp6dt -ResourceGroupName mariadb-test-qu5ov0 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbServer.md index 7880ea9e525d..94c9fdfa9dc8 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: List all MariaDB under a subscriptions ```powershell -PS C:\> Get-AzMariaDbServer +Get-AzMariaDbServer Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -24,7 +24,7 @@ This command lists all MariaDB under a subscriptions. ### Example 2: List all MariaDB under a resource group ```powershell -PS C:\> Get-AzMariaDbServer -ResourceGroupName mariadb-test-qu5ov0 +Get-AzMariaDbServer -ResourceGroupName mariadb-test-qu5ov0 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -44,7 +44,7 @@ This command lists all MariaDB under a resource group. ### Example 3: Get a MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -ResourceGroupName mariadb-test-qu5ov0 -Name mariadb-test-h3pame +Get-AzMariaDbServer -ResourceGroupName mariadb-test-qu5ov0 -Name mariadb-test-h3pame Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbVirtualNetworkRule.md b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbVirtualNetworkRule.md index fa98efb34e76..cd74d598ba95 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbVirtualNetworkRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Get-AzMariaDbVirtualNetworkRule.md @@ -1,6 +1,6 @@ ### Example 1: List all virtual network rule under a MariaDB ```powershell -PS C:\> Get-AzMariaDbVirtualNetworkRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn +Get-AzMariaDbVirtualNetworkRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn Name Type ---- ---- @@ -12,7 +12,7 @@ This command lists all virtual network rule under a MariaDB. ### Example 2: Get virtual network rule under a MariaDB ```powershell -PS C:\> Get-AzMariaDbVirtualNetworkRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn -Name vnetrule-QdMJpU +Get-AzMariaDbVirtualNetworkRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn -Name vnetrule-QdMJpU Name Type ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbFirewallRule.md b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbFirewallRule.md index 4c7f7ba3f28c..8e65d0d90c14 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbFirewallRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbFirewallRule.md @@ -1,6 +1,6 @@ ### Example 1: Create a firewall rule under a MariaDB ```powershell -PS C:\> New-AzMariaDbFirewallRule -Name firewall-101 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -EndIPAddress 0.0.2.255 -StartIPAddress 0.0.2.1 +New-AzMariaDbFirewallRule -Name firewall-101 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -EndIPAddress 0.0.2.255 -StartIPAddress 0.0.2.1 Name StartIPAddress EndIPAddress ---- -------------- ------------ @@ -11,7 +11,7 @@ This command creates a firewall rule under a MariaDB. ### Example 2: Create a new MariaDB Firewall Rule using -ClientIPAddress. ```powershell -PS C:\> New-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -ClientIPAddress 0.0.0.1 +New-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -ClientIPAddress 0.0.0.1 Name StartIPAddress EndIPAddress ---- -------------- ------------ @@ -22,7 +22,7 @@ This cmdlets create a MariaDB Firewall Rule using -ClientIPAddress. ### Example 3: Create a new MariaDB Firewall Rule to allow all IPs ```powershell -PS C:\> New-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -AllowAll +New-AzMariaDbFirewallRule -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-asd-01 -AllowAll Name StartIPAddress EndIPAddress ---- -------------- ------------ diff --git a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbReplica.md b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbReplica.md index fbe71faa3ac1..5b0d810d02d7 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbReplica.md +++ b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbReplica.md @@ -1,6 +1,6 @@ ### Example 1: Create a replica db for a MariaDB ```powershell -PS C:\> New-AzMariaDbReplica -MasterName mariadb-test-9pebvn -ReplicaName mariadb-test-9pebvn-rep01 -ResourceGroupName mariadb-test-qu5ov0 +New-AzMariaDbReplica -MasterName mariadb-test-9pebvn -ReplicaName mariadb-test-9pebvn-rep01 -ResourceGroupName mariadb-test-qu5ov0 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -11,7 +11,7 @@ This command creates a replica db for a MariaDB. ### Example 2: Create a replica db for a MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 | New-AzMariaDbReplica -ReplicaName mariadb-test-9pebvn-rep02 +Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 | New-AzMariaDbReplica -ReplicaName mariadb-test-9pebvn-rep02 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -22,8 +22,8 @@ This command creates a replica db for a MariaDB. ### Example 3: Create a replica db for a MariaDB ```powershell -PS C:\> $mariaDb = Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 -PS C:\> New-AzMariaDbReplica -Master $mariaDb -ReplicaName mariadb-test-9pebvn-rep03 +$mariaDb = Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 +New-AzMariaDbReplica -Master $mariaDb -ReplicaName mariadb-test-9pebvn-rep03 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- diff --git a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbServer.md index 65b6bafaea62..52641972205a 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: Create a new MariaDB ```powershell -PS C:\> New-AzMariaDbServer -Name mariadb-aassd-01 -ResourceGroupName lucas-manual-test -Sku 'B_Gen5_1' -Location eastus +New-AzMariaDbServer -Name mariadb-aassd-01 -ResourceGroupName lucas-manual-test -Sku 'B_Gen5_1' -Location eastus cmdlet New-AzMariaDbServer at command pipeline position 1 Supply values for the following parameters: AdministratorUsername: adminuser diff --git a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbVirtualNetworkRule.md b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbVirtualNetworkRule.md index c5f2dd39a1f5..8b794fe5f157 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbVirtualNetworkRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/New-AzMariaDbVirtualNetworkRule.md @@ -1,7 +1,7 @@ ### Example 1: Create a virtual network rule for a MariaDB ```powershell -PS C:\> $vnet = Get-AzVirtualNetwork -Name vnet -ResourceGroupName mariadb-test-qu5ov0 -PS C:\> New-AzMariaDbVirtualNetworkRule -ServerName mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 -Name vnet-001 -SubnetId $vnet.Subnets[0].Id -IgnoreMissingVnetServiceEndpoint +$vnet = Get-AzVirtualNetwork -Name vnet -ResourceGroupName mariadb-test-qu5ov0 +New-AzMariaDbVirtualNetworkRule -ServerName mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 -Name vnet-001 -SubnetId $vnet.Subnets[0].Id -IgnoreMissingVnetServiceEndpoint Name Type ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbFirewallRule.md b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbFirewallRule.md index 7e68f8077efb..7b09f93e6c16 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbFirewallRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbFirewallRule.md @@ -1,6 +1,6 @@ ### Example 1: Remove a firewall rule under a MariaDB ```powershell -PS C:\> Remove-AzMariaDbFirewallRule -Name frname-001 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig +Remove-AzMariaDbFirewallRule -Name frname-001 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-4rmtig ``` diff --git a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbServer.md index 409101860e4e..305687a0fe0c 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: Remove a MariaDB ```powershell -PS C:\> Remove-AzMariaDbServer -Name mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 +Remove-AzMariaDbServer -Name mariadb-asd-01 -ResourceGroupName mariadb-test-qu5ov0 ``` @@ -8,7 +8,7 @@ This command removes a MariaDB. ### Example 2: Remove a MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -Name mariadb-bc-t01 -ResourceGroupName mariadb-test-qu5ov0 | Remove-AzMariaDbServer +Get-AzMariaDbServer -Name mariadb-bc-t01 -ResourceGroupName mariadb-test-qu5ov0 | Remove-AzMariaDbServer ``` diff --git a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbVirtualNetworkRule.md b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbVirtualNetworkRule.md index 866f3c18e35e..e5c292020ed5 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbVirtualNetworkRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Remove-AzMariaDbVirtualNetworkRule.md @@ -1,6 +1,6 @@ ### Example 1: Remove a virtual network rule ```powershell -PS C:\> Remove-AzMariaDbVirtualNetworkRule -Name vnet-001 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn +Remove-AzMariaDbVirtualNetworkRule -Name vnet-001 -ResourceGroupName mariadb-test-qu5ov0 -ServerName mariadb-test-9pebvn ``` diff --git a/src/MariaDb/MariaDb.Autorest/examples/Restart-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/Restart-AzMariaDbServer.md index bd2e9f2c6f4c..f046c67d3b88 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Restart-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Restart-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: Restart a MariaDB ```powershell -PS C:\> Restart-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 +Restart-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 ``` @@ -8,7 +8,7 @@ This command restart a MariaDB. ### Example 2: Restart a MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 | Restart-AzMariaDbServer +Get-AzMariaDbServer -Name mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 | Restart-AzMariaDbServer ``` diff --git a/src/MariaDb/MariaDb.Autorest/examples/Restore-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/Restore-AzMariaDbServer.md index b8504ee0c66b..98464637fdd8 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Restore-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Restore-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: Restore a PointInTime MariaDB by server name. ```powershell -PS C:\> Restore-AzMariaDbServer -Name restore-db01 -ServerName mariadb-test-usegeo -ResourceGroupName mariadb-test-4rih5z -UsePointInTimeRestore -RestorePointInTime $(Get-Date) -Location eastus +Restore-AzMariaDbServer -Name restore-db01 -ServerName mariadb-test-usegeo -ResourceGroupName mariadb-test-4rih5z -UsePointInTimeRestore -RestorePointInTime $(Get-Date) -Location eastus Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -11,8 +11,8 @@ This command restore a PointInTime MariaDB by server name. ### Example 2: Restore a PointInTime MariaDB by server object ```powershell -PS C:\> $db = Get-AzMariaDbServer -Name mariadb-test-usegeo -ResourceGroupName mariadb-test-4rih5z -PS C:\>Restore-AzMariaDbServer -Name restore-db02 -InputObject $db -UsePointInTimeRestore -RestorePointInTime $(Get-Date) -Location eastus +$db = Get-AzMariaDbServer -Name mariadb-test-usegeo -ResourceGroupName mariadb-test-4rih5z +Restore-AzMariaDbServer -Name restore-db02 -InputObject $db -UsePointInTimeRestore -RestorePointInTime $(Get-Date) -Location eastus Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbConfiguration.md b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbConfiguration.md index 242bee49c49b..10d1be61b2c9 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbConfiguration.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Update MariaDB configuration ```powershell -PS C:\> Update-AzMariaDbConfiguration -Name delayed_insert_timeout -Value 200 -ServerName mariadb-test-h3pame -ResourceGroupName mariadb-test-qu5ov0 +Update-AzMariaDbConfiguration -Name delayed_insert_timeout -Value 200 -ServerName mariadb-test-h3pame -ResourceGroupName mariadb-test-qu5ov0 Name Type ---- ---- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbFirewallRule.md b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbFirewallRule.md index db1425ac1d67..48ac86f769fd 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbFirewallRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbFirewallRule.md @@ -1,6 +1,6 @@ ### Example 1: Update MariaDB firewall rule ```powershell -PS C:\> Update-AzMariaDbFirewallRule -Name fr-cfgl3y -ServerName mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 -StartIPAddress 0.0.3.1 -EndIPAddress 0.0.3.255 +Update-AzMariaDbFirewallRule -Name fr-cfgl3y -ServerName mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 -StartIPAddress 0.0.3.1 -EndIPAddress 0.0.3.255 Name StartIPAddress EndIPAddress ---- -------------- ------------ @@ -11,8 +11,8 @@ This command updates a MariaDB firewall rule. ### Example 2: Update MariaDB Firewall Rule by identity. ```powershell -PS C:\> $ID = "/subscriptions//resourceGroups/mariadb-test-qu5ov0/providers/Microsoft.DBforMariaDB/servers/mariadb-test-4rmtig/firewallRules/fr-cfgl3y" -PS C:\> Update-AzMariaDbFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 +$ID = "/subscriptions//resourceGroups/mariadb-test-qu5ov0/providers/Microsoft.DBforMariaDB/servers/mariadb-test-4rmtig/firewallRules/fr-cfgl3y" +Update-AzMariaDbFirewallRule -InputObject $ID -EndIPAddress 0.0.0.3 -StartIPAddress 0.0.0.2 Name StartIPAddress EndIPAddress ---- -------------- ------------ @@ -23,8 +23,8 @@ The cmdlet updates MariaDB Firewall Rule by identity. ### Example 3: Update MariaDB Firewall Rule by -ClientIPAddress. ```powershell -PS C:\> $ID = "/subscriptions//resourceGroups/mariadb-test-qu5ov0/providers/Microsoft.DBforMariaDB/servers/mariadb-test-4rmtig/firewallRules/fr-cfgl3y" -PS C:\> Update-AzMariaDbFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 +$ID = "/subscriptions//resourceGroups/mariadb-test-qu5ov0/providers/Microsoft.DBforMariaDB/servers/mariadb-test-4rmtig/firewallRules/fr-cfgl3y" +Update-AzMariaDbFirewallRule -InputObject $ID --ClientIPAddress 0.0.0.2 Name StartIPAddress EndIPAddress ---- -------------- ------------ diff --git a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbServer.md b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbServer.md index cdfec88642c3..6920013846f7 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbServer.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbServer.md @@ -1,6 +1,6 @@ ### Example 1: Update MariaDB ```powershell -PS C:\> Update-AzMariaDbServer -Name mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 -StorageInMb 8192 +Update-AzMariaDbServer -Name mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 -StorageInMb 8192 Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- @@ -11,7 +11,7 @@ This command updates a MariaDB. ### Example 2: Update MariaDB ```powershell -PS C:\> Get-AzMariaDbServer -Name mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 | Update-AzMariaDbServer -StorageInMb (8192+1024) +Get-AzMariaDbServer -Name mariadb-test-4rmtig -ResourceGroupName mariadb-test-qu5ov0 | Update-AzMariaDbServer -StorageInMb (8192+1024) Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier SslEnforcement ---- -------- ------------------ ------- ----------------------- ------- ------- -------------- diff --git a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbVirtualNetworkRule.md b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbVirtualNetworkRule.md index e0db0b144a75..8ffc72a55d45 100644 --- a/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbVirtualNetworkRule.md +++ b/src/MariaDb/MariaDb.Autorest/examples/Update-AzMariaDbVirtualNetworkRule.md @@ -1,7 +1,7 @@ ### Example 1: Update MariaDB virtual network rule ```powershell -PS C:\> $vnet = Get-AzVirtualNetwork -Name vnet -ResourceGroupName mariadb-test-qu5ov0 -PS C:\> Update-AzMariaDbVirtualNetworkRule -ServerName mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 -Name vnetrule-QdMJpU -SubnetId $vnet.Subnets[0].Id -IgnoreMissingVnetServiceEndpoint +$vnet = Get-AzVirtualNetwork -Name vnet -ResourceGroupName mariadb-test-qu5ov0 +Update-AzMariaDbVirtualNetworkRule -ServerName mariadb-test-9pebvn -ResourceGroupName mariadb-test-qu5ov0 -Name vnetrule-QdMJpU -SubnetId $vnet.Subnets[0].Id -IgnoreMissingVnetServiceEndpoint Name Type ---- ---- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Copy-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/examples/Copy-AzMarketplacePrivateStoreCollectionOffer.md index e5af0bcbd6c9..1abb7250e775 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Copy-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Copy-AzMarketplacePrivateStoreCollectionOffer.md @@ -1,7 +1,7 @@ ### Example 1: Copy offers from source collection to target collections. ```powershell -PS C:\> $payload = @{OfferIdsList = "aumatics.azure_managedservices"; Operation = "Copy"; TargetCollection = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a"} -PS C:\> Copy-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -Payload $payload +$payload = @{OfferIdsList = "aumatics.azure_managedservices"; Operation = "Copy"; TargetCollection = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a"} + Copy-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -Payload $payload Failed Succeeded ------ --------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceBillingPrivateStoreAccount.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceBillingPrivateStoreAccount.md index 9711bed1d256..140e8be5e1b8 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceBillingPrivateStoreAccount.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceBillingPrivateStoreAccount.md @@ -1,6 +1,6 @@ ### Example 1: Returns the billing account of a private store ```powershell -PS C:\> Get-AzMarketplaceBillingPrivateStoreAccount -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a +Get-AzMarketplaceBillingPrivateStoreAccount -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceCollectionToSubscriptionMapping.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceCollectionToSubscriptionMapping.md index b1e1cf36c518..07fdec7fafb8 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceCollectionToSubscriptionMapping.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceCollectionToSubscriptionMapping.md @@ -1,7 +1,7 @@ ### Example 1: For a given subscriptions list, the Cmdlet will return a map of collections and the related subscriptions from the supplied list. ```powershell -PS C:\> $res = Get-AzMarketplaceCollectionToSubscriptionMapping -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -Payload @{SubscriptionId = "53425a7b-4ac1-4729-8340-e1da5046212c"} -PS C:\> $res.keys + $res = Get-AzMarketplaceCollectionToSubscriptionMapping -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -Payload @{SubscriptionId = "53425a7b-4ac1-4729-8340-e1da5046212c"} +$res.keys e58535dc-1be3-4d2c-904c-1f97984ebe5d fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 ``` diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollection.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollection.md index c5a697717207..d509dadb2616 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollection.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollection.md @@ -1,6 +1,6 @@ ### Example 1: Get list of private store collections ```powershell -PS C:\> Get-AzMarketplacePrivateStoreCollection -PrivateStoreId 53425a7b-4ac1-4729-8340-e1da5046212c +Get-AzMarketplacePrivateStoreCollection -PrivateStoreId 53425a7b-4ac1-4729-8340-e1da5046212c Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollectionOffer.md index 5f6466690b62..c4c4079ec601 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreCollectionOffer.md @@ -1,6 +1,6 @@ ### Example 1: Gets collection offers. ```powershell -PS C:\> Get-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -CollectionId a260d38c-96cf-492d-a340-404d0c4b3ad6 +Get-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -CollectionId a260d38c-96cf-492d-a340-404d0c4b3ad6 Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreV1.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreV1.md index ca8b03d70565..fa275b34a16d 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreV1.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplacePrivateStoreV1.md @@ -1,6 +1,6 @@ ### Example 1: Get Private Store details ```powershell -PS C:\> Get-AzMarketplacePrivateStoreV1 +Get-AzMarketplacePrivateStoreV1 Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceQueryPrivateStoreOffer.md b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceQueryPrivateStoreOffer.md index ed98c84ced0f..386e7ebd208a 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceQueryPrivateStoreOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Get-AzMarketplaceQueryPrivateStoreOffer.md @@ -1,6 +1,6 @@ ### Example 1: Returns private store offer regardless of collections ```powershell -PS C:\> Get-AzMarketplaceQueryPrivateStoreOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a +Get-AzMarketplaceQueryPrivateStoreOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a CreatedAt ETag ModifiedAt OfferDisplayName PrivateStoreId PublisherDisplayName SpecificPlanIdLimitation UniqueOfferId --------- ---- ---------- ---------------- -------------- -------------------- ------------------------- ------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStore.md b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStore.md index bfdf0166baf5..ae575cce9f72 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStore.md +++ b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStore.md @@ -1,6 +1,6 @@ ### Example 1: Changes private store properties ```powershell -PS C:\> New-AzMarketplacePrivateStore -Id 0000000-0000-00000-0000-000000000000 -Availability 'disabled' -ETag '0000000-0000-00000-0000-000000000000' +New-AzMarketplacePrivateStore -Id 0000000-0000-00000-0000-000000000000 -Availability 'disabled' -ETag '0000000-0000-00000-0000-000000000000' ``` diff --git a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollection.md b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollection.md index afebcd810030..5622edcd5253 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollection.md +++ b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollection.md @@ -1,6 +1,6 @@ ### Example 1: Create or updates private store collection ```powershell -PS C:\> New-AzMarketplacePrivateStoreCollection -CollectionName test -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -SubscriptionsList 7f5402e4-e8f4-46bd-9bd1-8d27866a606b +New-AzMarketplacePrivateStoreCollection -CollectionName test -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -SubscriptionsList 7f5402e4-e8f4-46bd-9bd1-8d27866a606b Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollectionOffer.md index 86fd521a8653..1cfd5f3cd9ea 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/New-AzMarketplacePrivateStoreCollectionOffer.md @@ -1,7 +1,7 @@ ### Example 1: Creates or updates offer to private store collection ```powershell -PS C:\>$acc = @{Accessibility = "azure_managedservices_professional"} -PS C:\> New-AzMarketplacePrivateStoreCollectionOffer -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -OfferId aumatics.azure_managedservices -Plan $acc +$acc = @{Accessibility = "azure_managedservices_professional"} +New-AzMarketplacePrivateStoreCollectionOffer -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -OfferId aumatics.azure_managedservices -Plan $acc Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollection.md b/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollection.md index 3dfbff18415c..38cb5f882502 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollection.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollection.md @@ -1,6 +1,6 @@ ### Example 1: Removes private store collection ```powershell -PS C:\> Remove-AzMarketplacePrivateStoreCollection -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 +Remove-AzMarketplacePrivateStoreCollection -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 ``` This command removes private store collection diff --git a/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollectionOffer.md index 9793c6c7e818..9c8192ec6a7d 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Remove-AzMarketplacePrivateStoreCollectionOffer.md @@ -1,6 +1,6 @@ ### Example 1: Removes offer from private store collection ```powershell -PS C:\> Remove-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -OfferId aumatics.azure_managedservices + Remove-AzMarketplacePrivateStoreCollectionOffer -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -OfferId aumatics.azure_managedservices ``` This command removes offer from private store collection diff --git a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplaceBulkPrivateStoreCollectionAction.md b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplaceBulkPrivateStoreCollectionAction.md index 9531be5071fe..ed91bf2e7e5b 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplaceBulkPrivateStoreCollectionAction.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplaceBulkPrivateStoreCollectionAction.md @@ -1,6 +1,6 @@ ### Example 1: Preforms bulk action on collections ```powershell -PS C:\> Set-AzMarketplaceBulkPrivateStoreCollectionAction -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -Payload @{Action = "EnableCollections"; CollectionId = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a", "fdb889a1-cf3e-49f0-95b8-2bb012fa01f1" } +Set-AzMarketplaceBulkPrivateStoreCollectionAction -PrivateStoreId 3ac32d8c-e888-4dc6-b4ff-be4d755af13a -Payload @{Action = "EnableCollections"; CollectionId = "3ac32d8c-e888-4dc6-b4ff-be4d755af13a", "fdb889a1-cf3e-49f0-95b8-2bb012fa01f1" } Failed Succeeded ------ --------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStore.md b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStore.md index b47f601d7ffa..01a207bf3fc3 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStore.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStore.md @@ -1,6 +1,6 @@ ### Example 1: Changes private store properties ```powershell -PS C:\> Set-AzMarketplacePrivateStore -Id 0000000-0000-00000-0000-000000000000 -Availability 'disabled' -ETag '0000000-0000-00000-0000-000000000000' +Set-AzMarketplacePrivateStore -Id 0000000-0000-00000-0000-000000000000 -Availability 'disabled' -ETag '0000000-0000-00000-0000-000000000000' ``` diff --git a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollection.md b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollection.md index 29818e15a1ec..2824d025c48a 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollection.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollection.md @@ -1,6 +1,6 @@ ### Example 1: Creates or updates private store collection ```powershell -PS C:\>Set-AzMarketplacePrivateStoreCollection -CollectionId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -AllSubscription +Set-AzMarketplacePrivateStoreCollection -CollectionId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -AllSubscription Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollectionOffer.md b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollectionOffer.md index 86fd521a8653..1cfd5f3cd9ea 100644 --- a/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollectionOffer.md +++ b/src/Marketplace/Marketplace.Autorest/examples/Set-AzMarketplacePrivateStoreCollectionOffer.md @@ -1,7 +1,7 @@ ### Example 1: Creates or updates offer to private store collection ```powershell -PS C:\>$acc = @{Accessibility = "azure_managedservices_professional"} -PS C:\> New-AzMarketplacePrivateStoreCollectionOffer -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -OfferId aumatics.azure_managedservices -Plan $acc +$acc = @{Accessibility = "azure_managedservices_professional"} +New-AzMarketplacePrivateStoreCollectionOffer -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId 7f5402e4-e8f4-46bd-9bd1-8d27866a606b -OfferId aumatics.azure_managedservices -Plan $acc Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy SystemDataLastModifiedByType ---- ------------------- ------------------- ----------------------- ------------------------ ------------------------ ---------------------------- diff --git a/src/Monitor/ActionGroup.Autorest/docs/Az.ActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/Az.ActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Az.ActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/Az.ActionGroup.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md b/src/Monitor/ActionGroup.Autorest/help/Enable-AzActionGroupReceiver.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Enable-AzActionGroupReceiver.md rename to src/Monitor/ActionGroup.Autorest/help/Enable-AzActionGroupReceiver.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/Get-AzActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Get-AzActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/Get-AzActionGroup.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroup.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupArmRoleReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupArmRoleReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupArmRoleReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupArmRoleReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAutomationRunbookReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAutomationRunbookReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAutomationRunbookReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAutomationRunbookReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAzureAppPushReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAzureAppPushReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAzureAppPushReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAzureAppPushReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAzureFunctionReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAzureFunctionReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupAzureFunctionReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupAzureFunctionReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupEmailReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupEmailReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupEmailReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupEmailReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupEventHubReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupEventHubReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupEventHubReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupEventHubReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupItsmReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupItsmReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupItsmReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupItsmReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupLogicAppReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupLogicAppReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupLogicAppReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupLogicAppReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupSmsReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupSmsReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupSmsReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupSmsReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupVoiceReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupVoiceReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupVoiceReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupVoiceReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupWebhookReceiverObject.md b/src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupWebhookReceiverObject.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/New-AzActionGroupWebhookReceiverObject.md rename to src/Monitor/ActionGroup.Autorest/help/New-AzActionGroupWebhookReceiverObject.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/README.md b/src/Monitor/ActionGroup.Autorest/help/README.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/README.md rename to src/Monitor/ActionGroup.Autorest/help/README.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/Remove-AzActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Remove-AzActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/Remove-AzActionGroup.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/Test-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/Test-AzActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Test-AzActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/Test-AzActionGroup.md diff --git a/src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md b/src/Monitor/ActionGroup.Autorest/help/Update-AzActionGroup.md similarity index 100% rename from src/Monitor/ActionGroup.Autorest/docs/Update-AzActionGroup.md rename to src/Monitor/ActionGroup.Autorest/help/Update-AzActionGroup.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/help/Az.ActivityLogAlert.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/Az.ActivityLogAlert.md rename to src/Monitor/ActivityLogAlert.Autorest/help/Az.ActivityLogAlert.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/help/Get-AzActivityLogAlert.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/Get-AzActivityLogAlert.md rename to src/Monitor/ActivityLogAlert.Autorest/help/Get-AzActivityLogAlert.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlert.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlert.md rename to src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlert.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md b/src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertActionGroupObject.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md rename to src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertActionGroupObject.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md rename to src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md b/src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md rename to src/Monitor/ActivityLogAlert.Autorest/help/New-AzActivityLogAlertAlertRuleLeafConditionObject.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/README.md b/src/Monitor/ActivityLogAlert.Autorest/help/README.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/README.md rename to src/Monitor/ActivityLogAlert.Autorest/help/README.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/help/Remove-AzActivityLogAlert.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/Remove-AzActivityLogAlert.md rename to src/Monitor/ActivityLogAlert.Autorest/help/Remove-AzActivityLogAlert.md diff --git a/src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md b/src/Monitor/ActivityLogAlert.Autorest/help/Update-AzActivityLogAlert.md similarity index 100% rename from src/Monitor/ActivityLogAlert.Autorest/docs/Update-AzActivityLogAlert.md rename to src/Monitor/ActivityLogAlert.Autorest/help/Update-AzActivityLogAlert.md diff --git a/src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md b/src/Monitor/Autoscale.Autorest/help/Az.Autoscale.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/Az.Autoscale.md rename to src/Monitor/Autoscale.Autorest/help/Az.Autoscale.md diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md b/src/Monitor/Autoscale.Autorest/help/Get-AzAutoscalePredictiveMetric.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscalePredictiveMetric.md rename to src/Monitor/Autoscale.Autorest/help/Get-AzAutoscalePredictiveMetric.md diff --git a/src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/help/Get-AzAutoscaleSetting.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/Get-AzAutoscaleSetting.md rename to src/Monitor/Autoscale.Autorest/help/Get-AzAutoscaleSetting.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleNotificationObject.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleNotificationObject.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleProfileObject.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleProfileObject.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleScaleRuleMetricDimensionObject.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleScaleRuleObject.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleScaleRuleObject.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleSetting.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleSetting.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleSetting.md diff --git a/src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md b/src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleWebhookNotificationObject.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md rename to src/Monitor/Autoscale.Autorest/help/New-AzAutoscaleWebhookNotificationObject.md diff --git a/src/Monitor/Autoscale.Autorest/docs/README.md b/src/Monitor/Autoscale.Autorest/help/README.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/README.md rename to src/Monitor/Autoscale.Autorest/help/README.md diff --git a/src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/help/Remove-AzAutoscaleSetting.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/Remove-AzAutoscaleSetting.md rename to src/Monitor/Autoscale.Autorest/help/Remove-AzAutoscaleSetting.md diff --git a/src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md b/src/Monitor/Autoscale.Autorest/help/Update-AzAutoscaleSetting.md similarity index 100% rename from src/Monitor/Autoscale.Autorest/docs/Update-AzAutoscaleSetting.md rename to src/Monitor/Autoscale.Autorest/help/Update-AzAutoscaleSetting.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Az.DataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/help/Az.DataCollectionRule.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Az.DataCollectionRule.md rename to src/Monitor/DataCollectionRule.Autorest/help/Az.DataCollectionRule.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionEndpoint.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionEndpoint.md rename to src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionEndpoint.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionRule.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRule.md rename to src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionRule.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionRuleAssociation.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Get-AzDataCollectionRuleAssociation.md rename to src/Monitor/DataCollectionRule.Autorest/help/Get-AzDataCollectionRuleAssociation.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionEndpoint.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionEndpoint.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionEndpoint.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionRule.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRule.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionRule.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionRuleAssociation.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataCollectionRuleAssociation.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzDataCollectionRuleAssociation.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataFlowObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzDataFlowObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzDataFlowObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzDataFlowObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzEventHubDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzEventHubDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzEventHubDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzEventHubDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzEventHubDirectDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzEventHubDirectDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzEventHubDirectDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzEventHubDirectDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzExtensionDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzExtensionDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzExtensionDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzExtensionDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzIisLogsDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzIisLogsDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzIisLogsDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzIisLogsDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzLogAnalyticsDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzLogAnalyticsDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzLogAnalyticsDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzLogAnalyticsDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzLogFilesDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzLogFilesDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzLogFilesDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzLogFilesDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzMonitoringAccountDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzMonitoringAccountDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzMonitoringAccountDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzMonitoringAccountDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzPerfCounterDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzPerfCounterDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzPerfCounterDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzPerfCounterDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzPlatformTelemetryDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzPlatformTelemetryDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzPlatformTelemetryDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzPlatformTelemetryDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzPrometheusForwarderDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzPrometheusForwarderDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzPrometheusForwarderDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzPrometheusForwarderDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzStorageBlobDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzStorageBlobDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzStorageBlobDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzStorageBlobDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzStorageTableDestinationObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzStorageTableDestinationObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzStorageTableDestinationObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzStorageTableDestinationObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzSyslogDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzSyslogDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzSyslogDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzSyslogDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzWindowsEventLogDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzWindowsEventLogDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzWindowsEventLogDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzWindowsEventLogDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/New-AzWindowsFirewallLogsDataSourceObject.md b/src/Monitor/DataCollectionRule.Autorest/help/New-AzWindowsFirewallLogsDataSourceObject.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/New-AzWindowsFirewallLogsDataSourceObject.md rename to src/Monitor/DataCollectionRule.Autorest/help/New-AzWindowsFirewallLogsDataSourceObject.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/README.md b/src/Monitor/DataCollectionRule.Autorest/help/README.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/README.md rename to src/Monitor/DataCollectionRule.Autorest/help/README.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionEndpoint.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionEndpoint.md rename to src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionEndpoint.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionRule.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRule.md rename to src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionRule.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionRuleAssociation.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Remove-AzDataCollectionRuleAssociation.md rename to src/Monitor/DataCollectionRule.Autorest/help/Remove-AzDataCollectionRuleAssociation.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md b/src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionEndpoint.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionEndpoint.md rename to src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionEndpoint.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md b/src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionRule.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRule.md rename to src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionRule.md diff --git a/src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md b/src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionRuleAssociation.md similarity index 100% rename from src/Monitor/DataCollectionRule.Autorest/docs/Update-AzDataCollectionRuleAssociation.md rename to src/Monitor/DataCollectionRule.Autorest/help/Update-AzDataCollectionRuleAssociation.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Az.DiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/Az.DiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Az.DiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Az.DiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/Get-AzDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Get-AzDiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md b/src/Monitor/DiagnosticSetting.Autorest/help/Get-AzDiagnosticSettingCategory.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzDiagnosticSettingCategory.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Get-AzDiagnosticSettingCategory.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md b/src/Monitor/DiagnosticSetting.Autorest/help/Get-AzEventCategory.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzEventCategory.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Get-AzEventCategory.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/Get-AzSubscriptionDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Get-AzSubscriptionDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Get-AzSubscriptionDiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingLogSettingsObject.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md rename to src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingLogSettingsObject.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingMetricSettingsObject.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md rename to src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingMetricSettingsObject.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md b/src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md rename to src/Monitor/DiagnosticSetting.Autorest/help/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/New-AzSubscriptionDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/New-AzSubscriptionDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/New-AzSubscriptionDiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/README.md b/src/Monitor/DiagnosticSetting.Autorest/help/README.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/README.md rename to src/Monitor/DiagnosticSetting.Autorest/help/README.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/Remove-AzDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Remove-AzDiagnosticSetting.md diff --git a/src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md b/src/Monitor/DiagnosticSetting.Autorest/help/Remove-AzSubscriptionDiagnosticSetting.md similarity index 100% rename from src/Monitor/DiagnosticSetting.Autorest/docs/Remove-AzSubscriptionDiagnosticSetting.md rename to src/Monitor/DiagnosticSetting.Autorest/help/Remove-AzSubscriptionDiagnosticSetting.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Az.MonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/help/Az.MonitorWorkspace.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/Az.MonitorWorkspace.md rename to src/Monitor/MonitorWorkspace.Autorest/help/Az.MonitorWorkspace.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/help/Get-AzMonitorWorkspace.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/Get-AzMonitorWorkspace.md rename to src/Monitor/MonitorWorkspace.Autorest/help/Get-AzMonitorWorkspace.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/help/New-AzMonitorWorkspace.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/New-AzMonitorWorkspace.md rename to src/Monitor/MonitorWorkspace.Autorest/help/New-AzMonitorWorkspace.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/README.md b/src/Monitor/MonitorWorkspace.Autorest/help/README.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/README.md rename to src/Monitor/MonitorWorkspace.Autorest/help/README.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/help/Remove-AzMonitorWorkspace.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/Remove-AzMonitorWorkspace.md rename to src/Monitor/MonitorWorkspace.Autorest/help/Remove-AzMonitorWorkspace.md diff --git a/src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md b/src/Monitor/MonitorWorkspace.Autorest/help/Update-AzMonitorWorkspace.md similarity index 100% rename from src/Monitor/MonitorWorkspace.Autorest/docs/Update-AzMonitorWorkspace.md rename to src/Monitor/MonitorWorkspace.Autorest/help/Update-AzMonitorWorkspace.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Az.ScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/help/Az.ScheduledQueryRule.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/Az.ScheduledQueryRule.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/Az.ScheduledQueryRule.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/help/Get-AzScheduledQueryRule.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/Get-AzScheduledQueryRule.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/Get-AzScheduledQueryRule.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRule.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRule.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRule.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md b/src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRuleConditionObject.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRuleConditionObject.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md b/src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRuleDimensionObject.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/New-AzScheduledQueryRuleDimensionObject.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/README.md b/src/Monitor/ScheduledQueryRule.Autorest/help/README.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/README.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/README.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/help/Remove-AzScheduledQueryRule.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/Remove-AzScheduledQueryRule.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/Remove-AzScheduledQueryRule.md diff --git a/src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md b/src/Monitor/ScheduledQueryRule.Autorest/help/Update-AzScheduledQueryRule.md similarity index 100% rename from src/Monitor/ScheduledQueryRule.Autorest/docs/Update-AzScheduledQueryRule.md rename to src/Monitor/ScheduledQueryRule.Autorest/help/Update-AzScheduledQueryRule.md diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Get-AzMonitorLogAnalyticsSolution.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Get-AzMonitorLogAnalyticsSolution.md index f14c699d4adc..1dc636348fbf 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Get-AzMonitorLogAnalyticsSolution.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Get-AzMonitorLogAnalyticsSolution.md @@ -1,6 +1,6 @@ ### Example 1: Get a monitor log analytics solution by name ```powershell -PS C:\> Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Name 'Containers(azureps-monitor)' +Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Name 'Containers(azureps-monitor)' Name Type Location ---- ---- -------- @@ -11,7 +11,7 @@ This command gets a monitor log analytics solution by name. ### Example 2: Get a monitor log analytics solution by resource id ```powershell -PS C:\> @{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azureps-manual-test/providers/Microsoft.OperationsManagement/solutions/Containers(monitoringworkspace-t01)"} | Get-AzMonitorLogAnalyticsSolution +@{Id = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/azureps-manual-test/providers/Microsoft.OperationsManagement/solutions/Containers(monitoringworkspace-t01)"} | Get-AzMonitorLogAnalyticsSolution Name Type Location ---- ---- -------- @@ -23,8 +23,8 @@ This command gets a monitor log analytics solution by resource id. ### Example 3: Get a monitor log analytics solution by object ```powershell -PS C:\> $monitor = New-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Name 'Containers(azureps-monitor)' -PS C:\> Get-AzMonitorLogAnalyticsSolution -InputObject $monitor +$monitor = New-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor -Name 'Containers(azureps-monitor)' +Get-AzMonitorLogAnalyticsSolution -InputObject $monitor Name Type Location ---- ---- -------- Containers(azureps-monitor) Microsoft.OperationsManagement/solutions West US 2 @@ -34,7 +34,7 @@ This command gets a monitor log analytics solution by object. ### Example 4: Get all monitor log analytics solutions under a resource group ```powershell -PS C:\> Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor +Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-monitor Name Type Location ---- ---- -------- @@ -45,7 +45,7 @@ This command gets all monitor log analytics solutions under a resource group. ### Example 5: Get all monitor log analytics solutions under a subscription ```powershell -PS C:\> Get-AzMonitorLogAnalyticsSolution +Get-AzMonitorLogAnalyticsSolution Name Type Location ---- ---- -------- diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/New-AzMonitorLogAnalyticsSolution.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/New-AzMonitorLogAnalyticsSolution.md index 9dc9bab70503..aa5c6c46656c 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/New-AzMonitorLogAnalyticsSolution.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/New-AzMonitorLogAnalyticsSolution.md @@ -1,7 +1,7 @@ ### Example 1: Create a monitor log analytics solution for the log analytics workspace ```powershell -PS C:\> $workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n -PS C:\> New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId +$workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName azureps-manual-test -Name monitoringworkspace-2vob7n +New-AzMonitorLogAnalyticsSolution -Type Containers -ResourceGroupName azureps-manual-test -Location $workspace.Location -WorkspaceResourceId $workspace.ResourceId Name Type Location ---- ---- -------- diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Remove-AzMonitorLogAnalyticsSolution.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Remove-AzMonitorLogAnalyticsSolution.md index 9ce4df7f55ba..0a2639cef4a3 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Remove-AzMonitorLogAnalyticsSolution.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Remove-AzMonitorLogAnalyticsSolution.md @@ -1,6 +1,6 @@ ### Example 1: Remove a monitor log analytics solution by name ```powershell -PS C:\> Remove-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' +Remove-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' ``` @@ -8,8 +8,8 @@ This command removes a monitor log analytics solution by name. ### Example 2: Remove a monitor log analytics solution by object ```powershell -PS C:\> $monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-pevful)' -PS C:\> Remove-AzMonitorLogAnalyticsSolution -InputObject $monitor +$monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-pevful)' +Remove-AzMonitorLogAnalyticsSolution -InputObject $monitor ``` @@ -17,7 +17,7 @@ This command removes a monitor log analytics solution by object. ### Example 3: Remove a monitor log analytics solution by pipeline ```powershell -PS C:\> $monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-asdehu)' | Remove-AzMonitorLogAnalyticsSolution +$monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName azureps-manual-test -Name 'Containers(monitoringworkspace-asdehu)' | Remove-AzMonitorLogAnalyticsSolution ``` diff --git a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Update-AzMonitorLogAnalyticsSolution.md b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Update-AzMonitorLogAnalyticsSolution.md index 1c8593f10fd9..787cb97da942 100644 --- a/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Update-AzMonitorLogAnalyticsSolution.md +++ b/src/MonitoringSolutions/MonitoringSolutions.Autorest/examples/Update-AzMonitorLogAnalyticsSolution.md @@ -1,6 +1,6 @@ ### Example 1: Update a monitor log analytics solution by name ```powershell -PS C:\> Update-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' -Tag @{'Operation'='update';'Param'='Tag'} +Update-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' -Tag @{'Operation'='update';'Param'='Tag'} Name Type Location ---- ---- -------- @@ -11,8 +11,8 @@ This command updates a monitor log analytics solution by name. ### Example 2: Update a monitor log analytics solution by object ```powershell -PS C:\> $monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' -PS C:\> Update-AzMonitorLogAnalyticsSolution -InputObject $monitor -Tag @{'Operation'='update';'Param'='Tag'} +$monitor = Get-AzMonitorLogAnalyticsSolution -ResourceGroupName lucas-manual-test -Name 'Containers(monitoringworkspace-2vob7n)' +Update-AzMonitorLogAnalyticsSolution -InputObject $monitor -Tag @{'Operation'='update';'Param'='Tag'} Name Type Location ---- ---- -------- diff --git a/src/Portal/Portal.Autorest/examples/Get-AzPortalDashboard.md b/src/Portal/Portal.Autorest/examples/Get-AzPortalDashboard.md index 268d31fa7768..2dd31b78cd73 100644 --- a/src/Portal/Portal.Autorest/examples/Get-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/examples/Get-AzPortalDashboard.md @@ -1,6 +1,6 @@ ### Example 1: List all dashboards in a subscription ```powershell -PS C:> Get-AzPortalDashboard +Get-AzPortalDashboard Location Name Type -------- ---- ---- eastasia my-custom-dashboard1 Microsoft.Portal/dashboards @@ -12,7 +12,7 @@ List all dashboards in a subscription ### Example 2: Get details for a single Portal Dashboard ```powershell -PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard +Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard Location Name Type -------- ---- ---- diff --git a/src/Portal/Portal.Autorest/examples/New-AzPortalDashboard.md b/src/Portal/Portal.Autorest/examples/New-AzPortalDashboard.md index aa7c6d87f484..794c628645b0 100644 --- a/src/Portal/Portal.Autorest/examples/New-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/examples/New-AzPortalDashboard.md @@ -1,6 +1,6 @@ ### Example 1: Create a dashboard using a dashboard template file ```powershell -PS C:\> New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03 +New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03 Location Name Type -------- ---- ---- diff --git a/src/Portal/Portal.Autorest/examples/Remove-AzPortalDashboard.md b/src/Portal/Portal.Autorest/examples/Remove-AzPortalDashboard.md index 4fcf06b0b7b6..eeb50a8388a1 100644 --- a/src/Portal/Portal.Autorest/examples/Remove-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/examples/Remove-AzPortalDashboard.md @@ -1,13 +1,13 @@ ### Example 1: Remove a Dashboard ```powershell -PS C:\td\> Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 +Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 ``` Remove a Dashbaord using resource group name and dashboard name. ### Example 2: Remove a Dashboard using the pipeline ```powershell -PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard +Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard ``` Remove the dashboard returned from a Get-AzDashboard call. diff --git a/src/Portal/Portal.Autorest/examples/Set-AzPortalDashboard.md b/src/Portal/Portal.Autorest/examples/Set-AzPortalDashboard.md index cb8ba334190a..66eb202d862a 100644 --- a/src/Portal/Portal.Autorest/examples/Set-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/examples/Set-AzPortalDashboard.md @@ -1,6 +1,6 @@ ### Example 1: Update the dashboard definition using a dashboard template ```powershell -PS C:\> Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03 +Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03 Location Name Type -------- ---- ---- diff --git a/src/Portal/Portal.Autorest/examples/Update-AzPortalDashboard.md b/src/Portal/Portal.Autorest/examples/Update-AzPortalDashboard.md index 52bde0ae8e84..2b404705019e 100644 --- a/src/Portal/Portal.Autorest/examples/Update-AzPortalDashboard.md +++ b/src/Portal/Portal.Autorest/examples/Update-AzPortalDashboard.md @@ -1,6 +1,6 @@ ### Example 1: Update the Tags of a Dashboard ```powershell -PS C:\> Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} +Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ Update the tags in a dashboard. Tags are represented as an inline hashtable. ### Example 2: Update Dashboard tags using the pipeline ```powershell -PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} +Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"} Location Name Type -------- ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubCustomRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubCustomRollout.md index b7d589ac22f0..8703d0d14392 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubCustomRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubCustomRollout.md @@ -1,6 +1,6 @@ ### Example 1: Get a custom rollout by rollout name. ```powershell -PS C:\> Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1" +Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubDefaultRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubDefaultRollout.md index 725b87cfa4d2..33f4372b8fef 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubDefaultRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubDefaultRollout.md @@ -1,6 +1,6 @@ ### Example 1: List all default rollouts under the resource provider. ```powershell -PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" +Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" Name Type ---- ---- @@ -12,7 +12,7 @@ List all default rollouts under the resource provider. ### Example 2: Get a specific rollout by name. ```powershell -PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" +Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubNotificationRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubNotificationRegistration.md index d2124adcc05f..18fe64171183 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubNotificationRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubNotificationRegistration.md @@ -1,6 +1,6 @@ ### Example 1: List all the notification registration by ProviderNamespace. ```powershell -PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" +Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" Name ---- @@ -12,7 +12,7 @@ List all the notification registration in the provider namespace. ### Example 2: Get the notification registration by name. ```powershell -PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" +Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" Name ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubProviderRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubProviderRegistration.md index 6fd8d1c8d20b..42de79516002 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubProviderRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubProviderRegistration.md @@ -1,6 +1,6 @@ ### Example 1: Get the provider registration. ```powershell -PS C:\> Get-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" +Get-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubResourceTypeRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubResourceTypeRegistration.md index f44e1fc44d37..8ba2d7ad9077 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubResourceTypeRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubResourceTypeRegistration.md @@ -1,6 +1,6 @@ ### Example 1: List all resource types under the resource provider namespace. ```powershell -PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" +Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" Name Type ---- ---- @@ -12,7 +12,7 @@ List all resource types under the resource provider namespace. ### Example 2: Gets a resource type by name. ```powershell -PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1" +Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1" Name Type ---- ---- @@ -23,7 +23,7 @@ Gets a resource type by name. ### Example 3: Gets a nested resource type by name. ```powershell -PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1/nestedResourceType" +Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1/nestedResourceType" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubSku.md b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubSku.md index d6add632390d..68ac71830c1d 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubSku.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Get-AzProviderHubSku.md @@ -1,6 +1,6 @@ ### Example 1: Get the resource SKU definition. ```powershell -PS C:\> Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" +Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" Name Type ---- ---- @@ -11,7 +11,7 @@ Get the resource SKU definition. ### Example 2: Get the nested resource type SKU definition. ```powershell -PS C:\> Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" +Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Invoke-AzProviderHubManifestCheckin.md b/src/ProviderHub/ProviderHub.Autorest/examples/Invoke-AzProviderHubManifestCheckin.md index a12677b86ff4..e7683e525163 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Invoke-AzProviderHubManifestCheckin.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Invoke-AzProviderHubManifestCheckin.md @@ -1,6 +1,6 @@ ### Example 1: Checkin the resource provider manifest. ```powershell -PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "NorthEurope" -Environment "Canary" +Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "NorthEurope" -Environment "Canary" CommitId IsCheckedIn PullRequest StatusMessage -------- ----------- ----------- ------------- @@ -11,7 +11,7 @@ Checkin the resource provider manifest. ### Example 2: Checkin the resource provider manifest. ```powershell -PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "EastUS2EUAP" -Environment "Prod" +Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "EastUS2EUAP" -Environment "Prod" CommitId IsCheckedIn PullRequest StatusMessage -------- ----------- ----------- ------------- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubCustomRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubCustomRollout.md index 0ebd683ab6e6..cb7c718af97f 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubCustomRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubCustomRollout.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a resource provider custom rollout. ```powershell -PS C:\> New-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" -CanaryRegion "Eastus2EUAP" +New-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" -CanaryRegion "Eastus2EUAP" Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubDefaultRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubDefaultRollout.md index 415ec3ed6615..c2e0af7e621f 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubDefaultRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubDefaultRollout.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a resource provider default rollout. ```powershell -PS C:\> New-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" -CanarySkipRegion "brazilus" -NoWait +New-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" -CanarySkipRegion "brazilus" -NoWait Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubManifest.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubManifest.md index 79a93b9ec7de..9e324407cbda 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubManifest.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubManifest.md @@ -1,6 +1,6 @@ ### Example 1: Generate the resource provider manifest. ```powershell -PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso" +New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso" Namespace ProviderType ProviderVersion RequiredFeature --------- ------------ --------------- --------------- @@ -11,7 +11,7 @@ Generate the resource provider manifest. ### Example 2: Generate the resource provider manifest. ```powershell -PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso" +New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso" Namespace ProviderType ProviderVersion RequiredFeature --------- ------------ --------------- --------------- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubNotificationRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubNotificationRegistration.md index f9f930cd43e1..0ae35a7ae29e 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubNotificationRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubNotificationRegistration.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a notification registration. ```powershell -PS C:\> New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"} +New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"} Name ---- @@ -11,7 +11,7 @@ Create/Update a notification registration. ### Example 2: Create/Update a notification registration. ```powershell -PS C:\> New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"} +New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"} Name ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubProviderRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubProviderRegistration.md index 17221bc6e5b7..db7ba4e9d8d1 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubProviderRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubProviderRegistration.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a provider registration. ```powershell -PS C:\> New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Internal" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "help@microsoft.com" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"} +New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Internal" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "help@microsoft.com" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"} Name Type ---- ---- @@ -11,7 +11,7 @@ Create/Update a provider registration. ### Example 2: Create/Update a provider registration. ```powershell -PS C:\> New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Hidden" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "help@microsoft.com" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"} +New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Hidden" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "help@microsoft.com" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"} Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubResourceTypeRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubResourceTypeRegistration.md index eb606f2bd524..dfd6008d2980 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubResourceTypeRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubResourceTypeRegistration.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a resource type registration. ```powershell -PS C:\> New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -RoutingType "Default" -Regionality "Regional" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = "West US 2", "East US 2 EUAP"; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } -EnableAsyncOperation +New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -RoutingType "Default" -Regionality "Regional" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = "West US 2", "East US 2 EUAP"; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } -EnableAsyncOperation Name Type ---- ---- @@ -11,7 +11,7 @@ Create/Update a resource type registration. ### Example 2: Create/Update a nested resource type registration. ```powershell -PS C:\> New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -RoutingType "Default" -Regionality "Global" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = ""; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } +New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -RoutingType "Default" -Regionality "Global" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = ""; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubSku.md b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubSku.md index bc08114517fc..d556c660b6aa 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubSku.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/New-AzProviderHubSku.md @@ -1,6 +1,6 @@ ### Example 1: Create/Update a resource SKU definition. ```powershell -PS C:\> New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"} +New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"} Name Type ---- ---- @@ -11,7 +11,7 @@ Create/Update a resource SKU definition. ### Example 2: Create/Update a nested resource type SKU definition. ```powershell -PS C:\> New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"} +New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"} Name Type ---- ---- diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubDefaultRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubDefaultRollout.md index 72fdc88d03d7..80726a868127 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubDefaultRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubDefaultRollout.md @@ -1,13 +1,13 @@ ### Example 1: Delete a default rollout by name. ```powershell -PS C:\> Remove-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" +Remove-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" ``` Delete a default rollout by name. ### Example 2: Delete a default rollout by name. ```powershell -PS C:\> Remove-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" +Remove-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" ``` Delete a default rollout by name. diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubNotificationRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubNotificationRegistration.md index 80976cfec1c1..ebb756cb72f8 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubNotificationRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubNotificationRegistration.md @@ -1,13 +1,13 @@ ### Example 1: Delete a notification registration by name. ```powershell -PS C:\> Remove-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" +Remove-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" ``` Delete a notification registration by name. ### Example 2: Delete a notification registration by name. ```powershell -PS C:\> Remove-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" +Remove-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" ``` Delete a notification registration by name. diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubProviderRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubProviderRegistration.md index 6103d883ba75..c404d721caa0 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubProviderRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubProviderRegistration.md @@ -1,13 +1,13 @@ ### Example 1: Delete a provider registration by resource provider name. ```powershell -PS C:\> Remove-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" +Remove-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" ``` Delete a provider registration by resource provider name. ### Example 2: Delete a provider registration by resource provider name. ```powershell -PS C:\> Remove-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" +Remove-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" ``` Delete a provider registration by resource provider name. diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubResourceTypeRegistration.md b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubResourceTypeRegistration.md index cdfa26ead775..07f1794a447d 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubResourceTypeRegistration.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubResourceTypeRegistration.md @@ -1,13 +1,13 @@ ### Example 1: Delete a resource type registration by name. ```powershell -PS C:\> Remove-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" +Remove-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" ``` Delete a resource type registration by name. ### Example 2: Delete a nested resource type registration by name. ```powershell -PS C:\> Remove-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" +Remove-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" ``` Delete a nested resource type registration by name. diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubSku.md b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubSku.md index b8066763a711..c43f2a32ff76 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubSku.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Remove-AzProviderHubSku.md @@ -1,13 +1,13 @@ ### Example 1: Delete a resource SKU definition. ```powershell -PS C:\> Remove-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" +Remove-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default" ``` Delete a resource type SKU definition. ### Example 2: Delete a nested resource SKU definition. ```powershell -PS C:\> Remove-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" +Remove-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType/nestedResourceType" -Sku "default" ``` Delete a nested resource type SKU definition. diff --git a/src/ProviderHub/ProviderHub.Autorest/examples/Stop-AzProviderHubDefaultRollout.md b/src/ProviderHub/ProviderHub.Autorest/examples/Stop-AzProviderHubDefaultRollout.md index 83a7ba652a48..22d6d544dd2f 100644 --- a/src/ProviderHub/ProviderHub.Autorest/examples/Stop-AzProviderHubDefaultRollout.md +++ b/src/ProviderHub/ProviderHub.Autorest/examples/Stop-AzProviderHubDefaultRollout.md @@ -1,13 +1,13 @@ ### Example 1: Cancel a default rollout by rollout name. ```powershell -PS C:\> Stop-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" +Stop-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" ``` Cancel a default rollout by rollout name. ### Example 2: Cancel a default rollout by rollout name. ```powershell -PS C:\> Stop-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" +Stop-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" ``` Cancel a default rollout by rollout name. diff --git a/src/Purview/Purview.Autorest/docs/Add-AzPurviewAccountRootCollectionAdmin.md b/src/Purview/Purview.Autorest/help/Add-AzPurviewAccountRootCollectionAdmin.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Add-AzPurviewAccountRootCollectionAdmin.md rename to src/Purview/Purview.Autorest/help/Add-AzPurviewAccountRootCollectionAdmin.md diff --git a/src/Purview/Purview.Autorest/docs/Az.Purview.md b/src/Purview/Purview.Autorest/help/Az.Purview.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Az.Purview.md rename to src/Purview/Purview.Autorest/help/Az.Purview.md diff --git a/src/Purview/Purview.Autorest/docs/Get-AzPurviewAccount.md b/src/Purview/Purview.Autorest/help/Get-AzPurviewAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Get-AzPurviewAccount.md rename to src/Purview/Purview.Autorest/help/Get-AzPurviewAccount.md diff --git a/src/Purview/Purview.Autorest/docs/Get-AzPurviewAccountKey.md b/src/Purview/Purview.Autorest/help/Get-AzPurviewAccountKey.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Get-AzPurviewAccountKey.md rename to src/Purview/Purview.Autorest/help/Get-AzPurviewAccountKey.md diff --git a/src/Purview/Purview.Autorest/docs/Get-AzPurviewDefaultAccount.md b/src/Purview/Purview.Autorest/help/Get-AzPurviewDefaultAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Get-AzPurviewDefaultAccount.md rename to src/Purview/Purview.Autorest/help/Get-AzPurviewDefaultAccount.md diff --git a/src/Purview/Purview.Autorest/docs/New-AzPurviewAccount.md b/src/Purview/Purview.Autorest/help/New-AzPurviewAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/New-AzPurviewAccount.md rename to src/Purview/Purview.Autorest/help/New-AzPurviewAccount.md diff --git a/src/Purview/Purview.Autorest/docs/README.md b/src/Purview/Purview.Autorest/help/README.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/README.md rename to src/Purview/Purview.Autorest/help/README.md diff --git a/src/Purview/Purview.Autorest/docs/Remove-AzPurviewAccount.md b/src/Purview/Purview.Autorest/help/Remove-AzPurviewAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Remove-AzPurviewAccount.md rename to src/Purview/Purview.Autorest/help/Remove-AzPurviewAccount.md diff --git a/src/Purview/Purview.Autorest/docs/Remove-AzPurviewDefaultAccount.md b/src/Purview/Purview.Autorest/help/Remove-AzPurviewDefaultAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Remove-AzPurviewDefaultAccount.md rename to src/Purview/Purview.Autorest/help/Remove-AzPurviewDefaultAccount.md diff --git a/src/Purview/Purview.Autorest/docs/Set-AzPurviewDefaultAccount.md b/src/Purview/Purview.Autorest/help/Set-AzPurviewDefaultAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Set-AzPurviewDefaultAccount.md rename to src/Purview/Purview.Autorest/help/Set-AzPurviewDefaultAccount.md diff --git a/src/Purview/Purview.Autorest/docs/Test-AzPurviewAccountNameAvailability.md b/src/Purview/Purview.Autorest/help/Test-AzPurviewAccountNameAvailability.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Test-AzPurviewAccountNameAvailability.md rename to src/Purview/Purview.Autorest/help/Test-AzPurviewAccountNameAvailability.md diff --git a/src/Purview/Purview.Autorest/docs/Update-AzPurviewAccount.md b/src/Purview/Purview.Autorest/help/Update-AzPurviewAccount.md similarity index 100% rename from src/Purview/Purview.Autorest/docs/Update-AzPurviewAccount.md rename to src/Purview/Purview.Autorest/help/Update-AzPurviewAccount.md diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRule.md index ea8ff8bf4cd0..47f958d3ab57 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRule.md @@ -1,6 +1,6 @@ ### Example 1: Get custom classification rule by name ```powershell -PS C:\> Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1 +Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1 ClassificationAction : Keep ClassificationName : ClassificationName1 @@ -27,7 +27,7 @@ Get classification rule named Classification1 ### Example 2: Get all custom classification rules ```powershell -PS C:\> Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ ClassificationAction : Keep ClassificationName : ClassificationName1 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRuleVersion.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRuleVersion.md index 050c0f2fe54e..bb8364c79b92 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRuleVersion.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewClassificationRuleVersion.md @@ -1,6 +1,6 @@ ### Example 1: Get all version of a custom classification rule ```powershell -PS C:\> Get-AzPurviewClassificationRuleVersion -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'ClassificationRule5' +Get-AzPurviewClassificationRuleVersion -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'ClassificationRule5' ClassificationAction : Keep ClassificationName : ClassificationRule4 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewDataSource.md index 27756863dd7d..561b677e2bc6 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewDataSource.md @@ -1,6 +1,6 @@ ### Example 1: Get a data source by name ```powershell -PS C:\> Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' -Name 'NewDataSource' +Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' -Name 'NewDataSource' CollectionLastModifiedAt : 2/9/2022 2:49:14 AM CollectionReferenceName : brs-2 @@ -22,7 +22,7 @@ Get a data source named 'NewDataSource' ### Example 2: Get all data sources ```powershell -PS C:\> Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' + Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' CollectionLastModifiedAt : 1/31/2022 10:28:16 AM CollectionReferenceName : brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewFilter.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewFilter.md index f9086b13b2e6..920ee556a18d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewFilter.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewFilter.md @@ -1,6 +1,6 @@ ### Example 1: Get the scope filters of the scan ```powershell -PS C:\> Get-AzPurviewFilter -Endpoint 'https://brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData' -ScanName 'Scan1ForDemo' +Get-AzPurviewFilter -Endpoint 'https://brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData' -ScanName 'Scan1ForDemo' ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} Id : datasources/DataScanTestData/scans/Scan1ForDemo/filters/custom diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewKeyVaultConnection.md index 16f99e9e80a9..49adb23e4221 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewKeyVaultConnection.md @@ -1,6 +1,6 @@ ### Example 1: Get key vault connection by name ```powershell -PS C:\> Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection1' +Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection1' BaseUrl : https://datascantestcases.vault.azure.net/ Description : This is a Key Vault connection @@ -12,7 +12,7 @@ Get key vault connection named 'KeyVaultConnection1' ### Example 2: Get all key vault connections ```powershell -PS C:\> Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' +Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' BaseUrl : https://datascantestcases.vault.azure.net/ Description : This is a Key Vault connection diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScan.md index ca380711cd2b..fda4789dc446 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScan.md @@ -1,6 +1,6 @@ ### Example 1: Get scan instance within a data source ```powershell -PS C:\> Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' CollectionLastModifiedAt : 2/15/2022 3:49:23 PM CollectionReferenceName : parv-brs-2 @@ -23,7 +23,7 @@ Get scan instance named 'ScanTest' within a data source ### Example 2: Get all scan instances within a data source ```powershell -PS C:\> Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' + Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' CollectionLastModifiedAt : 2/13/2022 3:16:24 PM CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanResultScanHistory.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanResultScanHistory.md index 47a23351ba3c..17c4b76f1c0e 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanResultScanHistory.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanResultScanHistory.md @@ -1,6 +1,6 @@ ### Example 1: List all scan runs within a scan instance of a data source ```powershell -PS C:\> Get-AzPurviewScanResultScanHistory -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' | fl +Get-AzPurviewScanResultScanHistory -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' | fl AssetsClassified : 62 AssetsDiscovered : 97 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanRuleset.md index c09cfe0b760f..77b1a1cc08c9 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewScanRuleset.md @@ -1,6 +1,6 @@ ### Example 1: Get all custom scanrulesets ```powershell -PS C:\> Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ CreatedAt : 1/25/2022 2:01:38 AM Description : asdasd @@ -36,7 +36,7 @@ Get all custom scanrulesets ### Example 2: Get custom scanruleset by name ```powershell -PS C:\> Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule CreatedAt : 2/17/2022 2:30:15 PM Description : test desc diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRuleset.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRuleset.md index b1980ebc027c..93ec321a25d9 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRuleset.md @@ -1,6 +1,6 @@ ### Example 1: Get all system scanrulesets ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ Id : systemscanrulesets/AmazonMySql Kind : AmazonMySql @@ -39,7 +39,7 @@ Get all system scanrulesets ### Example 2: Get system scanruleset for a data source type ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' +Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' Id : systemscanrulesets/AdlsGen2 Kind : AdlsGen2 @@ -54,7 +54,7 @@ Get system scanruleset for a data source type ### Example 2: Get system scanruleset for a data source type and specific version ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' -Version 2 + Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' -Version 2 Id : systemscanrulesets/AdlsGen2 Kind : AdlsGen2 diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetLatest.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetLatest.md index 0aa8b8afd505..34a211fa1113 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetLatest.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetLatest.md @@ -1,6 +1,6 @@ ### Example 1: Get latest system scan ruleset available for a data source ```powershell -PS C:\> Get-AzPurviewSystemScanRulesetLatest -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +Get-AzPurviewSystemScanRulesetLatest -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' Id : systemscanrulesets/AzureStorage Kind : AzureStorage diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetVersion.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetVersion.md index c474f8360fc2..da90cf56e033 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetVersion.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewSystemScanRulesetVersion.md @@ -1,6 +1,6 @@ ### Example 1: Get all versions of system scanruleset available for a data source ```powershell -PS C:\> Get-AzPurviewSystemScanRulesetVersion -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +Get-AzPurviewSystemScanRulesetVersion -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' Id : systemscanrulesets/AzureStorage Kind : AzureStorage diff --git a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewTrigger.md index b30fe0cd7e13..1599b40894aa 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/examples/Get-AzPurviewTrigger.md @@ -1,6 +1,6 @@ ### Example 1: Get trigger schedule for scan run ```powershell -PS C:\> Get-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +Get-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' CreatedAt : 2/17/2022 1:35:12 PM Id : datasources/DataScanTestData-Parv/scans/Scan-6HK/triggers/default diff --git a/src/Purview/Purviewdata.Autorest/examples/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md b/src/Purview/Purviewdata.Autorest/examples/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md index 7b550241269e..a6ff59cb2b2f 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md +++ b/src/Purview/Purviewdata.Autorest/examples/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md @@ -1,6 +1,6 @@ ### Example 1: Set Classification Action on specific rule version ```powershell -PS C:\> Invoke-AzPurviewTagClassificationRuleClassificationVersion -Endpoint 'https://parv-brs-2.purview.azure.com/' -ClassificationRuleName 'ClassificationRule2' -ClassificationRuleVersion 1 -Action 'Delete' +Invoke-AzPurviewTagClassificationRuleClassificationVersion -Endpoint 'https://parv-brs-2.purview.azure.com/' -ClassificationRuleName 'ClassificationRule2' -ClassificationRuleVersion 1 -Action 'Delete' EndTime ScanResultId StartTime Status ------- ------------ --------- ------ diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1CredentialScanObject.md index 3e8cb79eef22..72664538dfa9 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1CredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen1 Credential scan object ```powershell -PS C:\> New-AzPurviewAdlsGen1CredentialScanObject -Kind 'AdlsGen1Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +New-AzPurviewAdlsGen1CredentialScanObject -Kind 'AdlsGen1Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1DataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1DataSourceObject.md index 02b511d6d514..2e8f5357d99c 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1DataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen1 data source object ```powershell -PS C:\> New-AzPurviewAdlsGen1DataSourceObject -Kind 'AdlsGen1' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'adl://adlsgen1datascan02ause.azuredatalakestore.net' +New-AzPurviewAdlsGen1DataSourceObject -Kind 'AdlsGen1' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'adl://adlsgen1datascan02ause.azuredatalakestore.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1MsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1MsiScanObject.md index e041aa401651..365d6ea32010 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1MsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1MsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen1 Msi scan object ```powershell -PS C:\> New-AzPurviewAdlsGen1MsiScanObject -Kind 'AdlsGen1Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +New-AzPurviewAdlsGen1MsiScanObject -Kind 'AdlsGen1Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1ScanRulesetObject.md index d29ceca7888c..e6865052e071 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen1ScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen1 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2CredentialScanObject.md index 992d44f7bc55..f8dbc7a9f373 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2CredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen2 Credential scan object ```powershell -PS C:\> New-AzPurviewAdlsGen2CredentialScanObject -Kind 'AdlsGen2Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +New-AzPurviewAdlsGen2CredentialScanObject -Kind 'AdlsGen2Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2DataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2DataSourceObject.md index 5d12d6e8ca9f..0a7aa254419a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2DataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen2 data source object ```powershell -PS C:\> New-AzPurviewAdlsGen2DataSourceObject -Kind 'AdlsGen2' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'https://adlsgen2datascan.dfs.core.windows.net' +New-AzPurviewAdlsGen2DataSourceObject -Kind 'AdlsGen2' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'https://adlsgen2datascan.dfs.core.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2MsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2MsiScanObject.md index 59ba1d9c2929..2b9fd324521a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2MsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2MsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen2 Msi scan object ```powershell -PS C:\> New-AzPurviewAdlsGen2MsiScanObject -Kind 'AdlsGen2Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +New-AzPurviewAdlsGen2MsiScanObject -Kind 'AdlsGen2Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2ScanRulesetObject.md index 3873c684cc0b..38d6388a9b45 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAdlsGen2ScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AdlsGen2 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAdlsGen2ScanRulesetObject -Kind 'AdlsGen2' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAdlsGen2ScanRulesetObject -Kind 'AdlsGen2' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountCredentialScanObject.md index 8eddbc0da7cd..1ea45f7134ae 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon Account Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonAccountCredentialScanObject -Kind 'AmazonAccountCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' +New-AzPurviewAmazonAccountCredentialScanObject -Kind 'AmazonAccountCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountDataSourceObject.md index 105dccb86d83..e5a505d6f9b8 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonAccountDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon Account data source object ```powershell -PS C:\> New-AzPurviewAmazonAccountDataSourceObject -Kind 'AmazonAccount' -AwsAccountId 123456789012 -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' +New-AzPurviewAmazonAccountDataSourceObject -Kind 'AmazonAccount' -AwsAccountId 123456789012 -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' AwsAccountId : 123456789012 CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md index 4767a398a64e..2267980b0447 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon Account PostgreSQL scan object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlCredentialScanObject -Kind 'AmazonPostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonPostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +New-AzPurviewAmazonPostgreSqlCredentialScanObject -Kind 'AmazonPostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonPostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlDataSourceObject.md index 6e4c7df744f2..93c044a934cc 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon PostgreSQL data source object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlDataSourceObject -Kind 'AmazonPostgreSql' -Port 5432 -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' -ServerEndpoint 'DummyServer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' + New-AzPurviewAmazonPostgreSqlDataSourceObject -Kind 'AmazonPostgreSql' -Port 5432 -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' -ServerEndpoint 'DummyServer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md index 91499568f796..aeb3e000c74c 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon PostgreSql custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlScanRulesetObject -Kind 'AmazonPostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' + New-AzPurviewAmazonPostgreSqlScanRulesetObject -Kind 'AmazonPostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3CredentialScanObject.md index 907222c376e6..6550fafe0a14 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3CredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon S3 Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonS3CredentialScanObject -Kind 'AmazonS3Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' -ScanRulesetName 'AmazonS3' -ScanRulesetType 'System' -IsMauiScan $false +New-AzPurviewAmazonS3CredentialScanObject -Kind 'AmazonS3Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' -ScanRulesetName 'AmazonS3' -ScanRulesetType 'System' -IsMauiScan $false CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3DataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3DataSourceObject.md index 9159b4d3a82e..c99e46bd2c57 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3DataSourceObject.md @@ -1,7 +1,7 @@ ### Example 1: Create AmazonS3 data source object ```powershell -PS C:\> New-AzPurviewAmazonS3DataSourceObject -Kind 'AmazonS3' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServiceUrl s3://multicloud-e2e-2 -PS C:\repos\az-pwsh-3\azure-powershell\src\Purview> New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'DS4' -Body $obj +New-AzPurviewAmazonS3DataSourceObject -Kind 'AmazonS3' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServiceUrl s3://multicloud-e2e-2 +New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'DS4' -Body $obj CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3ScanRulesetObject.md index 9f23930f2fa1..f0dbe7ba3b55 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonS3ScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create AmazonS3 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonS3ScanRulesetObject -Kind 'AmazonS3' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' + New-AzPurviewAmazonS3ScanRulesetObject -Kind 'AmazonS3' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlCredentialScanObject.md index 6ccb2dd03140..49f24f29835e 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon Sql Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonSqlCredentialScanObject -Kind 'AmazonSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +New-AzPurviewAmazonSqlCredentialScanObject -Kind 'AmazonSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlDataSourceObject.md index e2b8b6e819e9..ef83f74bdc79 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon SQL data source object ```powershell -PS C:\> New-AzPurviewAmazonSqlDataSourceObject -Kind 'AmazonSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 1433 -ServerEndpoint DummyEdnpoint -VpcEndpointServiceName com.amazonaws.ypce.wus.123456789 +New-AzPurviewAmazonSqlDataSourceObject -Kind 'AmazonSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 1433 -ServerEndpoint DummyEdnpoint -VpcEndpointServiceName com.amazonaws.ypce.wus.123456789 CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlScanRulesetObject.md index 82123cdbd8d5..e0224594e033 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAmazonSqlScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Amazon Sql custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonSqlScanRulesetObject -Kind 'AmazonSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAmazonSqlScanRulesetObject -Kind 'AmazonSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbCredentialScanObject.md index 05d4d933cf1f..64289c05236d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure CosmosDb Credential scan object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbCredentialScanObject -Kind 'AzureCosmosDbCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureCosmosDb' -ScanRulesetType 'System' -DatabaseName 'db' + New-AzPurviewAzureCosmosDbCredentialScanObject -Kind 'AzureCosmosDbCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureCosmosDb' -ScanRulesetType 'System' -DatabaseName 'db' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbDataSourceObject.md index 86d3bf773d14..8571c92c8eed 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure CosmosDB data source object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbDataSourceObject -Kind 'AzureCosmosDb' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -AccountUri 'https://cosmosd.documents.azure.com' +New-AzPurviewAzureCosmosDbDataSourceObject -Kind 'AzureCosmosDb' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -AccountUri 'https://cosmosd.documents.azure.com' AccountUri : https://cosmosd.documents.azure.com CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbScanRulesetObject.md index b6cee5e7fc96..2c782fc1f4c0 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureCosmosDbScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create CosmosDB custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbScanRulesetObject -Kind 'AzureCosmosDb' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureCosmosDbScanRulesetObject -Kind 'AzureCosmosDb' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerCredentialScanObject.md index 337c1d86fa03..a215a3597e6f 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Data Explorer Credential scan object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerCredentialScanObject -Kind 'AzureDataExplorerCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +New-AzPurviewAzureDataExplorerCredentialScanObject -Kind 'AzureDataExplorerCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerDataSourceObject.md index ff20426dfd72..2a8c60823f00 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Data Explorer data source object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerDataSourceObject -Kind 'AzureDataExplorer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://adxd.australiaeast.kusto.windows.net' +New-AzPurviewAzureDataExplorerDataSourceObject -Kind 'AzureDataExplorer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://adxd.australiaeast.kusto.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerMsiScanObject.md index dbfdb515c128..9605d59ba72a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Data Explorer Msi scan object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerMsiScanObject -Kind 'AzureDataExplorerMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +New-AzPurviewAzureDataExplorerMsiScanObject -Kind 'AzureDataExplorerMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerScanRulesetObject.md index e551c21e49d8..9735774d7b0a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureDataExplorerScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Data Explorer custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerScanRulesetObject -Kind 'AzureDataExplorer' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureDataExplorerScanRulesetObject -Kind 'AzureDataExplorer' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceCredentialScanObject.md index 7087d2cb4db3..eee3f0ff24b4 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure File Service Credential scan object ```powershell -PS C:\> New-AzPurviewAzureFileServiceCredentialScanObject -Kind 'AzureFileServiceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureFileService' -ScanRulesetType 'System' -ShareName 'share' +New-AzPurviewAzureFileServiceCredentialScanObject -Kind 'AzureFileServiceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureFileService' -ScanRulesetType 'System' -ShareName 'share' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceDataSourceObject.md index 4490c97e473a..98eaef778ca7 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure File Service data source object ```powershell -PS C:\> New-AzPurviewAzureFileServiceDataSourceObject -Kind 'AzureFileService' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://0cb22.file.core.windows.net/' +New-AzPurviewAzureFileServiceDataSourceObject -Kind 'AzureFileService' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://0cb22.file.core.windows.net/' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceScanRulesetObject.md index 68bce1e716c1..ea775ef267bc 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureFileServiceScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure File Service custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureFileServiceScanRulesetObject -Kind 'AzureFileService' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAzureFileServiceScanRulesetObject -Kind 'AzureFileService' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureKeyVaultObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureKeyVaultObject.md index d249c06a1096..8e2db6ba2eb1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureKeyVaultObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureKeyVaultObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a key vault connection object ```powershell -PS C:\> New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' +New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' BaseUrl : https://datascankv.vault.azure.net/ Description : This is a key vault diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlCredentialScanObject.md index 9a1aacb1ebb0..80a0c1dce51d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure MySql Credential scan object ```powershell -PS C:\> New-AzPurviewAzureMySqlCredentialScanObject -Kind 'AzureMySqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AzureMySql' -ScanRulesetType 'System' -ServerEndpoint 'tzn.mysql.database.azure.com' +New-AzPurviewAzureMySqlCredentialScanObject -Kind 'AzureMySqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AzureMySql' -ScanRulesetType 'System' -ServerEndpoint 'tzn.mysql.database.azure.com' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlDataSourceObject.md index cea81b8c05e5..9d9fa5518e6a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure MySQL data source object ```powershell -PS C:\> New-AzPurviewAzureMySqlDataSourceObject -Kind 'AzureMySql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 3306 -ServerEndpoint 'nause.mysql.database.azure.com' +New-AzPurviewAzureMySqlDataSourceObject -Kind 'AzureMySql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 3306 -ServerEndpoint 'nause.mysql.database.azure.com' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlScanRulesetObject.md index 8b3bd6d1f397..21806c27945a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureMySqlScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure MySQL custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureMySqlScanRulesetObject -Kind 'AzureMySql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureMySqlScanRulesetObject -Kind 'AzureMySql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlCredentialScanObject.md index 74532b294919..3afcbcf88eab 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure PostgreSql Credential scan object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlCredentialScanObject -Kind 'AzurePostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -SslMode 1 -ScanRulesetName 'AzurePostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'anstzn.postgres.database.azure.com' +New-AzPurviewAzurePostgreSqlCredentialScanObject -Kind 'AzurePostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -SslMode 1 -ScanRulesetName 'AzurePostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'anstzn.postgres.database.azure.com' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlDataSourceObject.md index 73ff63d35f7f..2e5b813666e8 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure PostgreSQL data source object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlDataSourceObject -Kind 'AzurePostgreSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 5432 -ServerEndpoint 'nause.postgres.database.azure.com' +New-AzPurviewAzurePostgreSqlDataSourceObject -Kind 'AzurePostgreSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 5432 -ServerEndpoint 'nause.postgres.database.azure.com' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlScanRulesetObject.md index fe2b4de1f3b9..50bb35fb2682 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzurePostgreSqlScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure PostgreSQL custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlScanRulesetObject -Kind 'AzurePostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzurePostgreSqlScanRulesetObject -Kind 'AzurePostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupCredentialScanObject.md index bb2d3e99d6a9..3006b6c8347d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure resource group Credential scan object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupCredentialScanObject -Kind 'AzureResourceGroupCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +New-AzPurviewAzureResourceGroupCredentialScanObject -Kind 'AzureResourceGroupCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupDataSourceObject.md index e05e31d69fd9..d1b17071a6d7 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure resource group data source object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupDataSourceObject -Kind 'AzureResourceGroup' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ResourceGroup 'rg' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +New-AzPurviewAzureResourceGroupDataSourceObject -Kind 'AzureResourceGroup' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ResourceGroup 'rg' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupMsiScanObject.md index a02974d16627..951c888ad90b 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureResourceGroupMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure resource group Msi scan object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupMsiScanObject -Kind 'AzureResourceGroupMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +New-AzPurviewAzureResourceGroupMsiScanObject -Kind 'AzureResourceGroupMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md index 6ef153089f3e..8f8ac7f59688 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Data Warehouse Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseCredentialScanObject -Kind 'AzureSqlDataWarehouseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' + New-AzPurviewAzureSqlDataWarehouseCredentialScanObject -Kind 'AzureSqlDataWarehouseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md index f7e2affa628c..a329f01585a8 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL datawarehouse data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseDataSourceObject -Kind 'AzureSqlDataWarehouse' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +New-AzPurviewAzureSqlDataWarehouseDataSourceObject -Kind 'AzureSqlDataWarehouse' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md index 200ce006b9d3..68d676a3bba1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Data Warehouse Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseMsiScanObject -Kind 'AzureSqlDataWarehouseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' +New-AzPurviewAzureSqlDataWarehouseMsiScanObject -Kind 'AzureSqlDataWarehouseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md index 4d886066cbb1..2a69c7d0f07d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL Data Warehouse custom scanruleset object ```powershell -PS C:\> {{ Add code here }} +{{ Add code here }} CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md index 269595805350..ff8c08dda106 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Db Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseCredentialScanObject -Kind 'AzureSqlDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' + New-AzPurviewAzureSqlDatabaseCredentialScanObject -Kind 'AzureSqlDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseDataSourceObject.md index e985a683f1e6..01b7e2fc937f 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL database data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseDataSourceObject -Kind 'AzureSqlDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +New-AzPurviewAzureSqlDatabaseDataSourceObject -Kind 'AzureSqlDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md index e90be529273d..5f9b914a13d7 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Database Managed Instance Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject -Kind 'AzureSqlDatabaseManagedInstanceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject -Kind 'AzureSqlDatabaseManagedInstanceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md index 949781106449..9d2c02740558 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL database managed instance data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject -Kind 'AzureSqlDatabaseManagedInstance' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'tcp:sqlause.public.3b6a39.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject -Kind 'AzureSqlDatabaseManagedInstance' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'tcp:sqlause.public.3b6a39.database.windows.net,3342' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md index ea21982cd4ce..9bac959ca1e5 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Database Managed Instance Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject -Kind 'AzureSqlDatabaseManagedInstanceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject -Kind 'AzureSqlDatabaseManagedInstanceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md index 8be3d54c2b61..364634217a21 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL Database Managed Instance custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject -Kind 'AzureSqlDatabaseManagedInstance' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject -Kind 'AzureSqlDatabaseManagedInstance' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseMsiScanObject.md index 1fb3b2b6dd58..282e3db92e38 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Sql Db Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseMsiScanObject -Kind 'AzureSqlDatabaseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' +New-AzPurviewAzureSqlDatabaseMsiScanObject -Kind 'AzureSqlDatabaseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md index 4bc36f2fec4f..a89f673756bf 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure SQL Database custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseScanRulesetObject -Kind 'AzureSqlDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSqlDatabaseScanRulesetObject -Kind 'AzureSqlDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageCredentialScanObject.md index b4b65f29bccd..b7ef76205890 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Storage Credential scan object ```powershell -PS C:\> New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageDataSourceObject.md index 658e9d7b84b6..49938d5d2885 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Storage data source object ```powershell -PS C:\> New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://bnsrpause.blob.core.windows.net' +New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://bnsrpause.blob.core.windows.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageMsiScanObject.md index f45f969b1761..e212fa75e8ae 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Storage Msi scan object ```powershell -PS C:\> New-AzPurviewAzureStorageMsiScanObject -Kind 'AzureStorageMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +New-AzPurviewAzureStorageMsiScanObject -Kind 'AzureStorageMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageScanRulesetObject.md index abb61a7f008c..e61b3a95fe23 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureStorageScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Storage custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureStorageScanRulesetObject -Kind 'AzureStorage' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAzureStorageScanRulesetObject -Kind 'AzureStorage' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionCredentialScanObject.md index 2b22f246e265..e3351bdce776 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure resource sub Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionCredentialScanObject -Kind 'AzureSubscriptionCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +New-AzPurviewAzureSubscriptionCredentialScanObject -Kind 'AzureSubscriptionCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionDataSourceObject.md index e6effb4ffb51..5ceea4136c24 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Subscription data source object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionDataSourceObject -Kind 'AzureSubscription' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +New-AzPurviewAzureSubscriptionDataSourceObject -Kind 'AzureSubscription' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionMsiScanObject.md index 638bd159025e..642e13e2e3ba 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSubscriptionMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure resource sub Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionMsiScanObject -Kind 'AzureSubscriptionMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +New-AzPurviewAzureSubscriptionMsiScanObject -Kind 'AzureSubscriptionMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md index a206263ed6af..a949a6fa91df 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Synapse Workspace Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceCredentialScanObject -Kind 'AzureSynapseWorkspaceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +New-AzPurviewAzureSynapseWorkspaceCredentialScanObject -Kind 'AzureSynapseWorkspaceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md index e607ecfb32e1..d299f517bdd5 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Synapse workspace data source object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceDataSourceObject -Kind 'AzureSynapseWorkspace' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DedicatedSqlEndpoint 'g1euap.sql.azuresynapse.net' -ServerlessSqlEndpoint 'rg1euap-ondemand.sql.azuresynapse.net' +New-AzPurviewAzureSynapseWorkspaceDataSourceObject -Kind 'AzureSynapseWorkspace' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DedicatedSqlEndpoint 'g1euap.sql.azuresynapse.net' -ServerlessSqlEndpoint 'rg1euap-ondemand.sql.azuresynapse.net' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md index df755d86f2a5..699b58dbcfcd 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Synapse Workspace Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceMsiScanObject -Kind 'AzureSynapseWorkspaceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +New-AzPurviewAzureSynapseWorkspaceMsiScanObject -Kind 'AzureSynapseWorkspaceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md index 58fc34c28682..bfd88e4557e4 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Synapse Workspace custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceScanRulesetObject -Kind 'AzureSynapseWorkspace' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSynapseWorkspaceScanRulesetObject -Kind 'AzureSynapseWorkspace' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewClassificationRule.md index 357ddde65f19..4d35ca96cd68 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewClassificationRule.md @@ -1,6 +1,6 @@ ### Example 1: Create custom classification object ```powershell -PS C:\> $reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +$reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' $reg2 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col2$' $regexarr = @($reg1, $reg2) $obj = New-AzPurviewCustomClassificationRuleObject -Kind 'Custom' -ClassificationName ClassificationRule4 -RuleStatus 'Enabled' -Description 'This is a rule2' -ColumnPattern $regexarr diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewCustomClassificationRuleObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewCustomClassificationRuleObject.md index ae0bc060a39c..00d665ca19e1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewCustomClassificationRuleObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewCustomClassificationRuleObject.md @@ -1,6 +1,6 @@ ### Example 1: Create custom classification rule object ```powershell -PS C:\> $reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +$reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' $reg2 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col2$' $regexarr = @($reg1, $reg2) New-AzPurviewCustomClassificationRuleObject -Kind 'Custom' -ClassificationName ClassificationRule4 -MinimumPercentageMatch 60 -RuleStatus 'Enabled' -Description 'This is a rule2' -ColumnPattern $regexarr diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewDataSource.md index 29dbdaab1bca..bbb5bc191555 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewDataSource.md @@ -1,6 +1,6 @@ ### Example 1: Create a data source ```powershell -PS C:\> $obj = New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint https://datascantest.blob.core.windows.net/ +$obj = New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint https://datascantest.blob.core.windows.net/ New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'NewDataSource' -Body $obj CollectionLastModifiedAt : 2/15/2022 10:36:25 AM diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilter.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilter.md index 36a63b901a3b..00e26c091a61 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilter.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilter.md @@ -1,6 +1,6 @@ ### Example 1: Create the scope filters of the scan ```powershell -PS C:\> $filterObj = New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') +$filterObj = New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') New-AzPurviewFilter -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -Body $filterObj ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilterObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilterObject.md index 1d0d8017aefd..5e1370d5d568 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilterObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewFilterObject.md @@ -1,6 +1,6 @@ ### Example 1: Create filter object ```powershell -PS C:\> New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') +New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} Id : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewKeyVaultConnection.md index 71e36fbb8f4e..c069123d7f95 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewKeyVaultConnection.md @@ -1,6 +1,6 @@ ### Example 1: Create a key vault connection ```powershell -PS C:\> $kvConn = New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' + $kvConn = New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' New-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName KeyVaultConnection2 -Body $kvConn BaseUrl : https://datascankv.vault.azure.net/ diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewOracleDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewOracleDataSourceObject.md index e4115f03596f..5d2d56f5aad1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewOracleDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewOracleDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Azure Synapse workspace data source object ```powershell -PS C:\> New-AzPurviewOracleDataSourceObject -Kind 'Oracle' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '13.1.0.46' -Port 1521 -Service 'xe' +New-AzPurviewOracleDataSourceObject -Kind 'Oracle' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '13.1.0.46' -Port 1521 -Service 'xe' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDataSourceObject.md index 71058894f17a..36e022fef2d1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create PowerBI data source object ```powershell -PS C:\> New-AzPurviewPowerBIDataSourceObject -Kind 'PowerBI' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx' +New-AzPurviewPowerBIDataSourceObject -Kind 'PowerBI' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDelegatedScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDelegatedScanObject.md index 8c0be8d42fe1..5d8c82c80eb3 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDelegatedScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIDelegatedScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create PowerBI delegated scan object ```powershell -PS C:\> New-AzPurviewPowerBIDelegatedScanObject -Kind 'PowerBIDelegated' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true -ClientId 'xxxxxxx-cdfd-4016-9e80-xxxxxxxx' -UserName 'abcd@msft.com' -Password 'pwd' +New-AzPurviewPowerBIDelegatedScanObject -Kind 'PowerBIDelegated' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true -ClientId 'xxxxxxx-cdfd-4016-9e80-xxxxxxxx' -UserName 'abcd@msft.com' -Password 'pwd' AuthenticationType : ClientId : xxxxxxx-cdfd-4016-9e80-xxxxxxxx diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIMsiScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIMsiScanObject.md index 6f4f47e661b5..fd0cf81e2a83 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewPowerBIMsiScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create PowerBI delegated scan object ```powershell -PS C:\> New-AzPurviewPowerBIMsiScanObject -Kind 'PowerBIMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true +New-AzPurviewPowerBIMsiScanObject -Kind 'PowerBIMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewRegexClassificationRulePatternObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewRegexClassificationRulePatternObject.md index 44ed6cc1cd10..605fa682ef7d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewRegexClassificationRulePatternObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewRegexClassificationRulePatternObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Regex Classification Rule Pattern Object ```powershell -PS C:\> New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' Kind Pattern ---- ------- diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapEccDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapEccDataSourceObject.md index 7f3cf22f34d4..862e8e19fcda 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapEccDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapEccDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create SAPECC data source object ```powershell -PS C:\> New-AzPurviewSapEccDataSourceObject -Kind 'SapEcc' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +New-AzPurviewSapEccDataSourceObject -Kind 'SapEcc' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 ApplicationServer : 12.13.14.12 CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaDataSourceObject.md index 047c9568edf2..5526e27c2435 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create SAPS4Hana data source object ```powershell -PS C:\> New-AzPurviewSapS4HanaDataSourceObject -Kind 'SapS4Hana' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +New-AzPurviewSapS4HanaDataSourceObject -Kind 'SapS4Hana' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 ApplicationServer : 12.13.14.12 CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md index 3867d2a6994d..cff52269219d 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create SAPS4 Hana Credential Scan Object ```powershell -PS C:\> New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject -Kind 'SapS4HanaSapS4HanaCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ClientId '444' -CredentialReferenceName 'fdsafsdf' -CredentialType 'BasicAuth' -MaximumMemoryAllowedInGb 4 -JCoLibraryPath 'file://asdas' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject -Kind 'SapS4HanaSapS4HanaCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ClientId '444' -CredentialReferenceName 'fdsafsdf' -CredentialType 'BasicAuth' -MaximumMemoryAllowedInGb 4 -JCoLibraryPath 'file://asdas' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' ClientId : 444 CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScan.md index 08d0c32e4e7f..97db952dec92 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScan.md @@ -1,6 +1,6 @@ ### Example 1: Create a scan instance under a data source ```powershell -PS C:\> $obj = New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +$obj = New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' New-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' -Body $obj CollectionLastModifiedAt : 2/15/2022 3:49:23 PM diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScanRuleset.md index 42db452a07cd..2c91d698019a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewScanRuleset.md @@ -1,6 +1,6 @@ ### Example 1: Create custom scanruleset ```powershell -PS C:\> $obj = New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +$obj = New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' New-AzPurviewScanRuleset -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'Rule1' -Body $obj CreatedAt : 2/17/2022 3:35:07 PM diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseCredentialScanObject.md index ba9f723727af..5cd38182d0e7 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseCredentialScanObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Sql Server DB Credential scan object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseCredentialScanObject -Kind 'SqlServerDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'SqlServer' -ScanRulesetType 'Custom' -ServerEndpoint '10.1.2.1' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +New-AzPurviewSqlServerDatabaseCredentialScanObject -Kind 'SqlServerDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'SqlServer' -ScanRulesetType 'Custom' -ServerEndpoint '10.1.2.1' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseDataSourceObject.md index ec2d1cfca23b..36f254ff20a3 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create SQL Server Database data source object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseDataSourceObject -Kind 'SqlServerDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint '12.13.14.12' +New-AzPurviewSqlServerDatabaseDataSourceObject -Kind 'SqlServerDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint '12.13.14.12' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseScanRulesetObject.md index 6013d442a504..26602f024401 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewSqlServerDatabaseScanRulesetObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Sql Server Db custom scanruleset object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseScanRulesetObject -Kind 'SqlServerDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewSqlServerDatabaseScanRulesetObject -Kind 'SqlServerDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTeradataDataSourceObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTeradataDataSourceObject.md index 5d08d9ade528..30834da6e596 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTeradataDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTeradataDataSourceObject.md @@ -1,6 +1,6 @@ ### Example 1: Create Teradata data source object ```powershell -PS C:\> New-AzPurviewTeradataDataSourceObject -Kind 'Teradata' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '12.13.14.12' +New-AzPurviewTeradataDataSourceObject -Kind 'Teradata' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '12.13.14.12' CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTrigger.md index 48bf88703696..d2b54be76be7 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTrigger.md @@ -1,6 +1,6 @@ ### Example 1: Create trigger schedule for scan run ```powershell -PS C:\> $obj = New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) +$obj = New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) New-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' -Body $obj CreatedAt : 2/17/2022 1:35:12 PM diff --git a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTriggerObject.md b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTriggerObject.md index 9ac200c38a0d..2a6807a0c097 100644 --- a/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTriggerObject.md +++ b/src/Purview/Purviewdata.Autorest/examples/New-AzPurviewTriggerObject.md @@ -1,6 +1,6 @@ ### Example 1: Create trigger object ```powershell -PS C:\> New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) +New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) CreatedAt : Id : diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewClassificationRule.md index dbea130f402c..50909e0740a1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewClassificationRule.md @@ -1,6 +1,6 @@ ### Example 1: Delete custom classification rule by name ```powershell -PS C:\> Remove-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'RuleDUmmy' +Remove-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'RuleDUmmy' ClassificationAction : Keep ClassificationName : MICROSOFT.GOVERNMENT.AUSTRALIA.DRIVERS_LICENSE_NUMBER diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewDataSource.md index 13195aa108a9..f2baea735ba1 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewDataSource.md @@ -1,6 +1,6 @@ ### Example 1: Remove a data source by name ```powershell -PS C:\> Remove-AzPurviewDataSource -Endpoint 'https://rs-2.purview.azure.com/' -Name 'NewDataSource' +Remove-AzPurviewDataSource -Endpoint 'https://rs-2.purview.azure.com/' -Name 'NewDataSource' CollectionLastModifiedAt : 2/9/2022 2:49:14 AM CollectionReferenceName : brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewKeyVaultConnection.md index 65f84f94544b..2e46392f3587 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewKeyVaultConnection.md @@ -1,6 +1,6 @@ ### Example 1: Remove a key vault connection ```powershell -PS C:\> Remove-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection5' +Remove-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection5' BaseUrl : https://datascankv.vault.azure.net/ Description : This is a key vault diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScan.md index 477ab89537f2..a48ade11819f 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScan.md @@ -1,6 +1,6 @@ ### Example 1: Delete a scan instance by name ```powershell -PS C:\> Remove-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +Remove-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' CollectionLastModifiedAt : 2/15/2022 3:49:23 PM CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScanRuleset.md index 47af933801c2..abd3610cfd4a 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewScanRuleset.md @@ -1,6 +1,6 @@ ### Example 1: Remove custom scanruleset by name ```powershell -PS C:\> Remove-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +Remove-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule CreatedAt : 2/17/2022 2:30:15 PM Description : test desc diff --git a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewTrigger.md index 4f39b156c7a1..6da41f71d1b3 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/examples/Remove-AzPurviewTrigger.md @@ -1,6 +1,6 @@ ### Example 1: Remove trigger schedule for a scan ```powershell -PS C:\> Remove-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +Remove-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' CreatedAt : 2/17/2022 1:35:12 PM Id : datasources/DataScanTestData-Parv/scans/Scan-6HK/triggers/default diff --git a/src/Purview/Purviewdata.Autorest/examples/Start-AzPurviewScanResultScan.md b/src/Purview/Purviewdata.Autorest/examples/Start-AzPurviewScanResultScan.md index d123264b79cf..d4eb9d12448f 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Start-AzPurviewScanResultScan.md +++ b/src/Purview/Purviewdata.Autorest/examples/Start-AzPurviewScanResultScan.md @@ -1,6 +1,6 @@ ### Example 1: Start a Scan Run ```powershell -PS C:\> Start-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '758a0499-b45e-40e3-9c06-408e2f3ac050' -ScanLevel 'Full' +Start-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '758a0499-b45e-40e3-9c06-408e2f3ac050' -ScanLevel 'Full' EndTime ScanResultId StartTime Status ------- ------------ --------- ------ diff --git a/src/Purview/Purviewdata.Autorest/examples/Stop-AzPurviewScanResultScan.md b/src/Purview/Purviewdata.Autorest/examples/Stop-AzPurviewScanResultScan.md index 75626eca8fb5..c0e3c6ad9728 100644 --- a/src/Purview/Purviewdata.Autorest/examples/Stop-AzPurviewScanResultScan.md +++ b/src/Purview/Purviewdata.Autorest/examples/Stop-AzPurviewScanResultScan.md @@ -1,6 +1,6 @@ ### Example 1: Stop a scan run by run id ```powershell -PS C:\> Stop-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '663623f3-8728-4b10-b5c8-8ed8dbc2ae7e' +Stop-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '663623f3-8728-4b10-b5c8-8ed8dbc2ae7e' EndTime ScanResultId StartTime Status ------- ------------ --------- ------ diff --git a/src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md b/src/Purview/Purviewdata.Autorest/help/Az.Purviewdata.md similarity index 100% rename from src/Purview/Purviewdata.Autorest/docs/Az.Purviewdata.md rename to src/Purview/Purviewdata.Autorest/help/Az.Purviewdata.md diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRule.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRule.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRule.md index 2eae6d042f02..18a22f0a1a8e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRule.md @@ -30,8 +30,10 @@ Get a classification rule ### Example 1: Get custom classification rule by name ```powershell -PS C:\> Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1 +Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1 +``` +```output ClassificationAction : Keep ClassificationName : ClassificationName1 ColumnPattern : {{ @@ -57,8 +59,10 @@ Get classification rule named Classification1 ### Example 2: Get all custom classification rules ```powershell -PS C:\> Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ +``` +```output ClassificationAction : Keep ClassificationName : ClassificationName1 ColumnPattern : {{ diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRuleVersion.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRuleVersion.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRuleVersion.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRuleVersion.md index 460125e34b15..dbd66f7bc7bd 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewClassificationRuleVersion.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewClassificationRuleVersion.md @@ -24,8 +24,10 @@ Lists the rule versions of a classification rule ### Example 1: Get all version of a custom classification rule ```powershell -PS C:\> Get-AzPurviewClassificationRuleVersion -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'ClassificationRule5' +Get-AzPurviewClassificationRuleVersion -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'ClassificationRule5' +``` +```output ClassificationAction : Keep ClassificationName : ClassificationRule4 ColumnPattern : {{ diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewDataSource.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewDataSource.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewDataSource.md index 43f89c75b056..ab0f3c5d6dcc 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewDataSource.md @@ -29,8 +29,10 @@ Get a data source ### Example 1: Get a data source by name ```powershell -PS C:\> Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' -Name 'NewDataSource' +Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' -Name 'NewDataSource' +``` +```output CollectionLastModifiedAt : 2/9/2022 2:49:14 AM CollectionReferenceName : brs-2 CollectionType : CollectionReference @@ -51,8 +53,10 @@ Get a data source named 'NewDataSource' ### Example 2: Get all data sources ```powershell -PS C:\> Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' + Get-AzPurviewDataSource -Endpoint 'https://brs-2.purview.azure.com/' +``` +```output CollectionLastModifiedAt : 1/31/2022 10:28:16 AM CollectionReferenceName : brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewFilter.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewFilter.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewFilter.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewFilter.md index 32d7dc267070..41c145ee2b08 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewFilter.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewFilter.md @@ -24,8 +24,10 @@ Get a filter ### Example 1: Get the scope filters of the scan ```powershell -PS C:\> Get-AzPurviewFilter -Endpoint 'https://brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData' -ScanName 'Scan1ForDemo' +Get-AzPurviewFilter -Endpoint 'https://brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData' -ScanName 'Scan1ForDemo' +``` +```output ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} Id : datasources/DataScanTestData/scans/Scan1ForDemo/filters/custom IncludeUriPrefix : {https://foo.file.core.windows.net/share1/user, diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewKeyVaultConnection.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewKeyVaultConnection.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewKeyVaultConnection.md index a6864e0d3496..4a9f139657b3 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewKeyVaultConnection.md @@ -30,8 +30,10 @@ Gets key vault information ### Example 1: Get key vault connection by name ```powershell -PS C:\> Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection1' +Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection1' +``` +```output BaseUrl : https://datascantestcases.vault.azure.net/ Description : This is a Key Vault connection Id : keyVaults/KeyVaultConnection1 @@ -42,8 +44,10 @@ Get key vault connection named 'KeyVaultConnection1' ### Example 2: Get all key vault connections ```powershell -PS C:\> Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' +Get-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' +``` +```output BaseUrl : https://datascantestcases.vault.azure.net/ Description : This is a Key Vault connection Id : keyVaults/KeyVaultConnection1 diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScan.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScan.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScan.md index 460e8473e74b..1d1ab84c4b3c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScan.md @@ -31,8 +31,10 @@ Gets a scan information ### Example 1: Get scan instance within a data source ```powershell -PS C:\> Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +``` +```output CollectionLastModifiedAt : 2/15/2022 3:49:23 PM CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference @@ -54,8 +56,10 @@ Get scan instance named 'ScanTest' within a data source ### Example 2: Get all scan instances within a data source ```powershell -PS C:\> Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' + Get-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' +``` +```output CollectionLastModifiedAt : 2/13/2022 3:16:24 PM CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanResultScanHistory.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanResultScanHistory.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanResultScanHistory.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanResultScanHistory.md index 3e2181f74e98..b7f5b3f0da9b 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanResultScanHistory.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanResultScanHistory.md @@ -24,8 +24,10 @@ Lists the scan history of a scan ### Example 1: List all scan runs within a scan instance of a data source ```powershell -PS C:\> Get-AzPurviewScanResultScanHistory -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' | fl +Get-AzPurviewScanResultScanHistory -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' | fl +``` +```output AssetsClassified : 62 AssetsDiscovered : 97 Code : diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanRuleset.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanRuleset.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanRuleset.md index 2ac96ea9b27a..e9ad1661e378 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewScanRuleset.md @@ -29,8 +29,10 @@ Get a scan ruleset ### Example 1: Get all custom scanrulesets ```powershell -PS C:\> Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +``` +```output CreatedAt : 1/25/2022 2:01:38 AM Description : asdasd ExcludedSystemClassification : {MICROSOFT.GOVERNMENT.CYPRUS.TAX.IDENTIFICATION.NUMBER, MICROSOFT.GOVERNMENT.CHILE.CDI_NUMBER, MICROSOFT.GOVERNMENT.MALTA.DRIVERS.LICENSE.NUMBER, @@ -65,8 +67,10 @@ Get all custom scanrulesets ### Example 2: Get custom scanruleset by name ```powershell -PS C:\> Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +Get-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +``` +```output CreatedAt : 2/17/2022 2:30:15 PM Description : test desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS, MICROSOFT.MISCELLANEOUS.IPADDRESS} diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRuleset.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRuleset.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRuleset.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRuleset.md index 31107a1a72e3..ee52ae58eb90 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRuleset.md @@ -36,8 +36,10 @@ Get a system scan ruleset for a data source ### Example 1: Get all system scanrulesets ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ +``` +```output Id : systemscanrulesets/AmazonMySql Kind : AmazonMySql Name : AmazonMySql @@ -75,8 +77,10 @@ Get all system scanrulesets ### Example 2: Get system scanruleset for a data source type ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' +Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' +``` +```output Id : systemscanrulesets/AdlsGen2 Kind : AdlsGen2 Name : AdlsGen2 @@ -90,8 +94,10 @@ Get system scanruleset for a data source type ### Example 2: Get system scanruleset for a data source type and specific version ```powershell -PS C:\> Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' -Version 2 + Get-AzPurviewSystemScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AdlsGen2' -Version 2 +``` +```output Id : systemscanrulesets/AdlsGen2 Kind : AdlsGen2 Name : AdlsGen2 diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetLatest.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetLatest.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetLatest.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetLatest.md index 9b7dfbf5b2ab..dcecbca24a2a 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetLatest.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetLatest.md @@ -24,8 +24,10 @@ Get the latest version of a system scan ruleset ### Example 1: Get latest system scan ruleset available for a data source ```powershell -PS C:\> Get-AzPurviewSystemScanRulesetLatest -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +Get-AzPurviewSystemScanRulesetLatest -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +``` +```output Id : systemscanrulesets/AzureStorage Kind : AzureStorage Name : AzureStorage diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetVersion.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetVersion.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetVersion.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetVersion.md index 60d1d3c2d7ef..f3cf30c01a32 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewSystemScanRulesetVersion.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewSystemScanRulesetVersion.md @@ -24,8 +24,10 @@ List system scan ruleset versions in Data catalog ### Example 1: Get all versions of system scanruleset available for a data source ```powershell -PS C:\> Get-AzPurviewSystemScanRulesetVersion -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +Get-AzPurviewSystemScanRulesetVersion -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceType 'AzureStorage' +``` +```output Id : systemscanrulesets/AzureStorage Kind : AzureStorage Name : AzureStorage diff --git a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewTrigger.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewTrigger.md rename to src/Purview/Purviewdata.Autorest/help/Get-AzPurviewTrigger.md index 7f7fc6a48305..ad5858e898a3 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Get-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/help/Get-AzPurviewTrigger.md @@ -24,8 +24,10 @@ Gets trigger information ### Example 1: Get trigger schedule for scan run ```powershell -PS C:\> Get-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +Get-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +``` +```output CreatedAt : 2/17/2022 1:35:12 PM Id : datasources/DataScanTestData-Parv/scans/Scan-6HK/triggers/default IncrementalScanStartTime : diff --git a/src/Purview/Purviewdata.Autorest/docs/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md b/src/Purview/Purviewdata.Autorest/help/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md rename to src/Purview/Purviewdata.Autorest/help/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md index 6711ed23b646..df1d176386d0 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md +++ b/src/Purview/Purviewdata.Autorest/help/Invoke-AzPurviewTagClassificationRuleClassificationVersion.md @@ -25,8 +25,10 @@ Sets Classification Action on a specific classification rule version. ### Example 1: Set Classification Action on specific rule version ```powershell -PS C:\> Invoke-AzPurviewTagClassificationRuleClassificationVersion -Endpoint 'https://parv-brs-2.purview.azure.com/' -ClassificationRuleName 'ClassificationRule2' -ClassificationRuleVersion 1 -Action 'Delete' +Invoke-AzPurviewTagClassificationRuleClassificationVersion -Endpoint 'https://parv-brs-2.purview.azure.com/' -ClassificationRuleName 'ClassificationRule2' -ClassificationRuleVersion 1 -Action 'Delete' +``` +```output EndTime ScanResultId StartTime Status ------- ------------ --------- ------ Accepted diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1CredentialScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1CredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1CredentialScanObject.md index 768a97e86ea4..e19f127f9c4c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1CredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AdlsGen1CredentialScan. ### Example 1: Create AdlsGen1 Credential scan object ```powershell -PS C:\> New-AzPurviewAdlsGen1CredentialScanObject -Kind 'AdlsGen1Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +New-AzPurviewAdlsGen1CredentialScanObject -Kind 'AdlsGen1Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1DataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1DataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1DataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1DataSourceObject.md index cee3cd4ab382..a627180ab1ef 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1DataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AdlsGen1DataSource. ### Example 1: Create AdlsGen1 data source object ```powershell -PS C:\> New-AzPurviewAdlsGen1DataSourceObject -Kind 'AdlsGen1' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'adl://adlsgen1datascan02ause.azuredatalakestore.net' +New-AzPurviewAdlsGen1DataSourceObject -Kind 'AdlsGen1' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'adl://adlsgen1datascan02ause.azuredatalakestore.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1MsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1MsiScanObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1MsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1MsiScanObject.md index 8162eb294b0d..fe6f1cdfe5a7 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1MsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1MsiScanObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AdlsGen1MsiScan. ### Example 1: Create AdlsGen1 Msi scan object ```powershell -PS C:\> New-AzPurviewAdlsGen1MsiScanObject -Kind 'AdlsGen1Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +New-AzPurviewAdlsGen1MsiScanObject -Kind 'AdlsGen1Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen1' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1ScanRulesetObject.md similarity index 89% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1ScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1ScanRulesetObject.md index 015700f2c2a4..12a1932fa1ef 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen1ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen1ScanRulesetObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AdlsGen1ScanRuleset. ### Example 1: Create AdlsGen1 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2CredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2CredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2CredentialScanObject.md index fb9e828175a6..309eaf56b120 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2CredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AdlsGen2CredentialScan. ### Example 1: Create AdlsGen2 Credential scan object ```powershell -PS C:\> New-AzPurviewAdlsGen2CredentialScanObject -Kind 'AdlsGen2Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +New-AzPurviewAdlsGen2CredentialScanObject -Kind 'AdlsGen2Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2DataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2DataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2DataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2DataSourceObject.md index 35de6477360f..fe3c91190ec7 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2DataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AdlsGen2DataSource. ### Example 1: Create AdlsGen2 data source object ```powershell -PS C:\> New-AzPurviewAdlsGen2DataSourceObject -Kind 'AdlsGen2' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'https://adlsgen2datascan.dfs.core.windows.net' +New-AzPurviewAdlsGen2DataSourceObject -Kind 'AdlsGen2' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint 'https://adlsgen2datascan.dfs.core.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2MsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2MsiScanObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2MsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2MsiScanObject.md index 596612089f3b..100feec165cb 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2MsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2MsiScanObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AdlsGen2MsiScan. ### Example 1: Create AdlsGen2 Msi scan object ```powershell -PS C:\> New-AzPurviewAdlsGen2MsiScanObject -Kind 'AdlsGen2Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +New-AzPurviewAdlsGen2MsiScanObject -Kind 'AdlsGen2Msi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AdlsGen2' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2ScanRulesetObject.md similarity index 89% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2ScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2ScanRulesetObject.md index 8a898cf1b8d5..1487da3bb50b 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAdlsGen2ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAdlsGen2ScanRulesetObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AdlsGen2ScanRuleset. ### Example 1: Create AdlsGen2 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAdlsGen2ScanRulesetObject -Kind 'AdlsGen2' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAdlsGen2ScanRulesetObject -Kind 'AdlsGen2' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountCredentialScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountCredentialScanObject.md index d254be9771af..d61707edc729 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AmazonAccountCredentialScan. ### Example 1: Create Amazon Account Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonAccountCredentialScanObject -Kind 'AmazonAccountCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' +New-AzPurviewAmazonAccountCredentialScanObject -Kind 'AmazonAccountCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountDataSourceObject.md index 7df5b841f1e1..1e7665d1bb72 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonAccountDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonAccountDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for AmazonAccountDataSource. ### Example 1: Create Amazon Account data source object ```powershell -PS C:\> New-AzPurviewAmazonAccountDataSourceObject -Kind 'AmazonAccount' -AwsAccountId 123456789012 -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' +New-AzPurviewAmazonAccountDataSourceObject -Kind 'AmazonAccount' -AwsAccountId 123456789012 -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' +``` +```output AwsAccountId : 123456789012 CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md index f23359b097c6..02ea5b75f918 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AmazonPostgreSqlCredentialScan. ### Example 1: Create Amazon Account PostgreSQL scan object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlCredentialScanObject -Kind 'AmazonPostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonPostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +New-AzPurviewAmazonPostgreSqlCredentialScanObject -Kind 'AmazonPostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonPostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlDataSourceObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlDataSourceObject.md index d0cf487afd36..d09b64dbdba1 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AmazonPostgreSqlDataSource. ### Example 1: Create Amazon PostgreSQL data source object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlDataSourceObject -Kind 'AmazonPostgreSql' -Port 5432 -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' -ServerEndpoint 'DummyServer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' + New-AzPurviewAmazonPostgreSqlDataSourceObject -Kind 'AmazonPostgreSql' -Port 5432 -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' -ServerEndpoint 'DummyServer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md index 86690f09b908..22a0ef03e387 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonPostgreSqlScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AmazonPostgreSqlScanRuleset. ### Example 1: Create Amazon PostgreSql custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonPostgreSqlScanRulesetObject -Kind 'AmazonPostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' + New-AzPurviewAmazonPostgreSqlScanRulesetObject -Kind 'AmazonPostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3CredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3CredentialScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3CredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3CredentialScanObject.md index 18a08d9f6845..31086fa8cd32 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3CredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3CredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AmazonS3CredentialScan. ### Example 1: Create Amazon S3 Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonS3CredentialScanObject -Kind 'AmazonS3Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' -ScanRulesetName 'AmazonS3' -ScanRulesetType 'System' -IsMauiScan $false +New-AzPurviewAmazonS3CredentialScanObject -Kind 'AmazonS3Credential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'rolearncred' -CredentialType 'AmazonARN' -ScanRulesetName 'AmazonS3' -ScanRulesetType 'System' -IsMauiScan $false +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3DataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3DataSourceObject.md similarity index 88% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3DataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3DataSourceObject.md index 82b284b538ec..eb772c52153d 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3DataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3DataSourceObject.md @@ -24,9 +24,12 @@ Create an in-memory object for AmazonS3DataSource. ### Example 1: Create AmazonS3 data source object ```powershell -PS C:\> New-AzPurviewAmazonS3DataSourceObject -Kind 'AmazonS3' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServiceUrl s3://multicloud-e2e-2 -PS C:\repos\az-pwsh-3\azure-powershell\src\Purview> New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'DS4' -Body $obj +New-AzPurviewAmazonS3DataSourceObject -Kind 'AmazonS3' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServiceUrl s3://multicloud-e2e-2 +New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'DS4' -Body $obj +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3ScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3ScanRulesetObject.md similarity index 89% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3ScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3ScanRulesetObject.md index 9c1a52347b09..38f723054303 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonS3ScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonS3ScanRulesetObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AmazonS3ScanRuleset. ### Example 1: Create AmazonS3 custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonS3ScanRulesetObject -Kind 'AmazonS3' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' + New-AzPurviewAmazonS3ScanRulesetObject -Kind 'AmazonS3' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlCredentialScanObject.md index 5ea8bbd7b15b..9455d51f34da 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AmazonSqlCredentialScan. ### Example 1: Create Amazon Sql Credential scan object ```powershell -PS C:\> New-AzPurviewAmazonSqlCredentialScanObject -Kind 'AmazonSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +New-AzPurviewAmazonSqlCredentialScanObject -Kind 'AmazonSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AmazonSql' -ScanRulesetType 'System' -ServerEndpoint 'DummyServer' -VpcEndpointServiceName 'com.amazonaws.ypce.wus.123456789' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlDataSourceObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlDataSourceObject.md index f92ae9303fa1..dba523d18a19 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AmazonSqlDataSource. ### Example 1: Create Amazon SQL data source object ```powershell -PS C:\> New-AzPurviewAmazonSqlDataSourceObject -Kind 'AmazonSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 1433 -ServerEndpoint DummyEdnpoint -VpcEndpointServiceName com.amazonaws.ypce.wus.123456789 +New-AzPurviewAmazonSqlDataSourceObject -Kind 'AmazonSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 1433 -ServerEndpoint DummyEdnpoint -VpcEndpointServiceName com.amazonaws.ypce.wus.123456789 +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlScanRulesetObject.md index ae7e23a663bc..28c2e116f142 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAmazonSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAmazonSqlScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AmazonSqlScanRuleset. ### Example 1: Create Amazon Sql custom scanruleset object ```powershell -PS C:\> New-AzPurviewAmazonSqlScanRulesetObject -Kind 'AmazonSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAmazonSqlScanRulesetObject -Kind 'AmazonSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbCredentialScanObject.md index d0a5ef5481cc..61363cc13ca2 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbCredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureCosmosDbCredentialScan. ### Example 1: Create Azure CosmosDb Credential scan object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbCredentialScanObject -Kind 'AzureCosmosDbCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureCosmosDb' -ScanRulesetType 'System' -DatabaseName 'db' + New-AzPurviewAzureCosmosDbCredentialScanObject -Kind 'AzureCosmosDbCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureCosmosDb' -ScanRulesetType 'System' -DatabaseName 'db' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbDataSourceObject.md index 54abc7b7c927..d687bf090840 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureCosmosDbDataSource. ### Example 1: Create Azure CosmosDB data source object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbDataSourceObject -Kind 'AzureCosmosDb' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -AccountUri 'https://cosmosd.documents.azure.com' +New-AzPurviewAzureCosmosDbDataSourceObject -Kind 'AzureCosmosDb' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -AccountUri 'https://cosmosd.documents.azure.com' +``` +```output AccountUri : https://cosmosd.documents.azure.com CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbScanRulesetObject.md index 3df5b68b5c8c..4137dfd9fddf 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureCosmosDbScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureCosmosDbScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureCosmosDbScanRuleset. ### Example 1: Create CosmosDB custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureCosmosDbScanRulesetObject -Kind 'AzureCosmosDb' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureCosmosDbScanRulesetObject -Kind 'AzureCosmosDb' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerCredentialScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerCredentialScanObject.md index 2ccd5197795d..b3df783f753e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerCredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureDataExplorerCredentialScan. ### Example 1: Create Azure Data Explorer Credential scan object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerCredentialScanObject -Kind 'AzureDataExplorerCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +New-AzPurviewAzureDataExplorerCredentialScanObject -Kind 'AzureDataExplorerCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'svcp' -CredentialType 'ServicePrincipal' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerDataSourceObject.md index f5cff28eb731..5581700fdfad 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureDataExplorerDataSource. ### Example 1: Create Azure Data Explorer data source object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerDataSourceObject -Kind 'AzureDataExplorer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://adxd.australiaeast.kusto.windows.net' +New-AzPurviewAzureDataExplorerDataSourceObject -Kind 'AzureDataExplorer' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://adxd.australiaeast.kusto.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerMsiScanObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerMsiScanObject.md index b75b270f34e2..194f86a90163 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerMsiScanObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureDataExplorerMsiScan. ### Example 1: Create Azure Data Explorer Msi scan object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerMsiScanObject -Kind 'AzureDataExplorerMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +New-AzPurviewAzureDataExplorerMsiScanObject -Kind 'AzureDataExplorerMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureDataExplorer' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerScanRulesetObject.md index 8007cfa357f7..d9a3d84736c4 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureDataExplorerScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureDataExplorerScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureDataExplorerScanRuleset. ### Example 1: Create Azure Data Explorer custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureDataExplorerScanRulesetObject -Kind 'AzureDataExplorer' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureDataExplorerScanRulesetObject -Kind 'AzureDataExplorer' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceCredentialScanObject.md index 13e936eb2e66..efdc6259b797 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceCredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureFileServiceCredentialScan. ### Example 1: Create Azure File Service Credential scan object ```powershell -PS C:\> New-AzPurviewAzureFileServiceCredentialScanObject -Kind 'AzureFileServiceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureFileService' -ScanRulesetType 'System' -ShareName 'share' +New-AzPurviewAzureFileServiceCredentialScanObject -Kind 'AzureFileServiceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureFileService' -ScanRulesetType 'System' -ShareName 'share' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceDataSourceObject.md index 079955401d63..6368c50ad313 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureFileServiceDataSource. ### Example 1: Create Azure File Service data source object ```powershell -PS C:\> New-AzPurviewAzureFileServiceDataSourceObject -Kind 'AzureFileService' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://0cb22.file.core.windows.net/' +New-AzPurviewAzureFileServiceDataSourceObject -Kind 'AzureFileService' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://0cb22.file.core.windows.net/' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceScanRulesetObject.md similarity index 89% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceScanRulesetObject.md index 6d5533275e64..02ee5882eac9 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureFileServiceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureFileServiceScanRulesetObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureFileServiceScanRuleset. ### Example 1: Create Azure File Service custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureFileServiceScanRulesetObject -Kind 'AzureFileService' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAzureFileServiceScanRulesetObject -Kind 'AzureFileService' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureKeyVaultObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureKeyVaultObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureKeyVaultObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureKeyVaultObject.md index 262850de28ba..2e76a5d946ab 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureKeyVaultObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureKeyVaultObject.md @@ -23,8 +23,10 @@ Create an in-memory object for AzureKeyVault. ### Example 1: Create a key vault connection object ```powershell -PS C:\> New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' +New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' +``` +```output BaseUrl : https://datascankv.vault.azure.net/ Description : This is a key vault Id : diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlCredentialScanObject.md index 530b436f718a..6cdcc30e162a 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlCredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureMySqlCredentialScan. ### Example 1: Create Azure MySql Credential scan object ```powershell -PS C:\> New-AzPurviewAzureMySqlCredentialScanObject -Kind 'AzureMySqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AzureMySql' -ScanRulesetType 'System' -ServerEndpoint 'tzn.mysql.database.azure.com' +New-AzPurviewAzureMySqlCredentialScanObject -Kind 'AzureMySqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -ScanRulesetName 'AzureMySql' -ScanRulesetType 'System' -ServerEndpoint 'tzn.mysql.database.azure.com' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlDataSourceObject.md index 19bf5f6b493a..66a865016be1 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureMySqlDataSource. ### Example 1: Create Azure MySQL data source object ```powershell -PS C:\> New-AzPurviewAzureMySqlDataSourceObject -Kind 'AzureMySql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 3306 -ServerEndpoint 'nause.mysql.database.azure.com' +New-AzPurviewAzureMySqlDataSourceObject -Kind 'AzureMySql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 3306 -ServerEndpoint 'nause.mysql.database.azure.com' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlScanRulesetObject.md index e6b93497ceaa..2b80567b9afd 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureMySqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureMySqlScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureMySqlScanRuleset. ### Example 1: Create Azure MySQL custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureMySqlScanRulesetObject -Kind 'AzureMySql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureMySqlScanRulesetObject -Kind 'AzureMySql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlCredentialScanObject.md index d9de86e66412..83f5e2815ef8 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzurePostgreSqlCredentialScan. ### Example 1: Create Azure PostgreSql Credential scan object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlCredentialScanObject -Kind 'AzurePostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -SslMode 1 -ScanRulesetName 'AzurePostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'anstzn.postgres.database.azure.com' +New-AzPurviewAzurePostgreSqlCredentialScanObject -Kind 'AzurePostgreSqlCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -Port 5432 -SslMode 1 -ScanRulesetName 'AzurePostgreSql' -ScanRulesetType 'System' -ServerEndpoint 'anstzn.postgres.database.azure.com' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlDataSourceObject.md index ed47d737f208..569716b2ae67 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzurePostgreSqlDataSource. ### Example 1: Create Azure PostgreSQL data source object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlDataSourceObject -Kind 'AzurePostgreSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 5432 -ServerEndpoint 'nause.postgres.database.azure.com' +New-AzPurviewAzurePostgreSqlDataSourceObject -Kind 'AzurePostgreSql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 5432 -ServerEndpoint 'nause.postgres.database.azure.com' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlScanRulesetObject.md index dca0edc4e05e..a031b92ab33e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzurePostgreSqlScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzurePostgreSqlScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzurePostgreSqlScanRuleset. ### Example 1: Create Azure PostgreSQL custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzurePostgreSqlScanRulesetObject -Kind 'AzurePostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzurePostgreSqlScanRulesetObject -Kind 'AzurePostgreSql' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupCredentialScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupCredentialScanObject.md index c0bfb47ec63a..bbce55b81f4e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureResourceGroupCredentialScan. ### Example 1: Create Azure resource group Credential scan object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupCredentialScanObject -Kind 'AzureResourceGroupCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +New-AzPurviewAzureResourceGroupCredentialScanObject -Kind 'AzureResourceGroupCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupDataSourceObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupDataSourceObject.md index bd404224ba11..924866263929 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for AzureResourceGroupDataSource. ### Example 1: Create Azure resource group data source object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupDataSourceObject -Kind 'AzureResourceGroup' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ResourceGroup 'rg' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +New-AzPurviewAzureResourceGroupDataSourceObject -Kind 'AzureResourceGroup' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ResourceGroup 'rg' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupMsiScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupMsiScanObject.md index 028dca17c7d5..0917f790a24e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureResourceGroupMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureResourceGroupMsiScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureResourceGroupMsiScan. ### Example 1: Create Azure resource group Msi scan object ```powershell -PS C:\> New-AzPurviewAzureResourceGroupMsiScanObject -Kind 'AzureResourceGroupMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +New-AzPurviewAzureResourceGroupMsiScanObject -Kind 'AzureResourceGroupMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md index 94e46efe48f6..d307b1d6bbe7 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureSqlDataWarehouseCredentialScan. ### Example 1: Create Azure Sql Data Warehouse Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseCredentialScanObject -Kind 'AzureSqlDataWarehouseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' + New-AzPurviewAzureSqlDataWarehouseCredentialScanObject -Kind 'AzureSqlDataWarehouseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md index a72125153331..248ec856ad48 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureSqlDataWarehouseDataSource. ### Example 1: Create Azure SQL datawarehouse data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseDataSourceObject -Kind 'AzureSqlDataWarehouse' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +New-AzPurviewAzureSqlDataWarehouseDataSourceObject -Kind 'AzureSqlDataWarehouse' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md index 328039d0547a..19d6a714cbb2 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseMsiScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureSqlDataWarehouseMsiScan. ### Example 1: Create Azure Sql Data Warehouse Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDataWarehouseMsiScanObject -Kind 'AzureSqlDataWarehouseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' +New-AzPurviewAzureSqlDataWarehouseMsiScanObject -Kind 'AzureSqlDataWarehouseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDataWarehouse' -ScanRulesetType 'System' -ServerEndpoint 'canstzn.database.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md similarity index 99% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md index a795a37e757c..e78519070340 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDataWarehouseScanRulesetObject.md @@ -25,7 +25,7 @@ Create an in-memory object for AzureSqlDataWarehouseScanRuleset. ### Example 1: Create Azure SQL Data Warehouse custom scanruleset object ```powershell -PS C:\> {{ Add code here }} +{{ Add code here }} CreatedAt : Description : desc diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md index cde28bdd8b13..21b4e33a0983 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureSqlDatabaseCredentialScan. ### Example 1: Create Azure Sql Db Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseCredentialScanObject -Kind 'AzureSqlDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' + New-AzPurviewAzureSqlDatabaseCredentialScanObject -Kind 'AzureSqlDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseDataSourceObject.md index 308526afd43d..9785a4f07df8 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureSqlDatabaseDataSource. ### Example 1: Create Azure SQL database data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseDataSourceObject -Kind 'AzureSqlDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +New-AzPurviewAzureSqlDatabaseDataSourceObject -Kind 'AzureSqlDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'ause.database.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md index 7d147d2b1c2d..edbe26c1b278 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureSqlDatabaseManagedInstanceCredentialScan. ### Example 1: Create Azure Sql Database Managed Instance Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject -Kind 'AzureSqlDatabaseManagedInstanceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceCredentialScanObject -Kind 'AzureSqlDatabaseManagedInstanceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md index 44f1712d38c5..31cb64812e72 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureSqlDatabaseManagedInstanceDataSource. ### Example 1: Create Azure SQL database managed instance data source object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject -Kind 'AzureSqlDatabaseManagedInstance' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'tcp:sqlause.public.3b6a39.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceDataSourceObject -Kind 'AzureSqlDatabaseManagedInstance' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint 'tcp:sqlause.public.3b6a39.database.windows.net,3342' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md index 0ad0bc70efed..a1da61e58ffb 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureSqlDatabaseManagedInstanceMsiScan. ### Example 1: Create Azure Sql Database Managed Instance Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject -Kind 'AzureSqlDatabaseManagedInstanceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +New-AzPurviewAzureSqlDatabaseManagedInstanceMsiScanObject -Kind 'AzureSqlDatabaseManagedInstanceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabaseManagedInstance' -ScanRulesetType 'System' -ServerEndpoint 'tcp:sqstzn.public.5aaf14.database.windows.net,3342' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md similarity index 90% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md index d74f511af8ba..7ed8d41d62e9 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureSqlDatabaseManagedInstanceScanRuleset. ### Example 1: Create Azure SQL Database Managed Instance custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject -Kind 'AzureSqlDatabaseManagedInstance' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSqlDatabaseManagedInstanceScanRulesetObject -Kind 'AzureSqlDatabaseManagedInstance' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseMsiScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseMsiScanObject.md index baab5d572202..91ad242bfc85 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseMsiScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureSqlDatabaseMsiScan. ### Example 1: Create Azure Sql Db Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseMsiScanObject -Kind 'AzureSqlDatabaseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' +New-AzPurviewAzureSqlDatabaseMsiScanObject -Kind 'AzureSqlDatabaseMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DatabaseName 'db' -ScanRulesetName 'AzureSqlDatabase' -ScanRulesetType 'System' -ServerEndpoint 'stzn.database.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md index bbf109e117ba..dd1edcc44263 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSqlDatabaseScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureSqlDatabaseScanRuleset. ### Example 1: Create Azure SQL Database custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSqlDatabaseScanRulesetObject -Kind 'AzureSqlDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSqlDatabaseScanRulesetObject -Kind 'AzureSqlDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageCredentialScanObject.md index 0018eb04e2c8..9b2d621aedcc 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageCredentialScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureStorageCredentialScan. ### Example 1: Create Azure Storage Credential scan object ```powershell -PS C:\> New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageDataSourceObject.md index 57c2e01c6599..9fd8e18135b7 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureStorageDataSource. ### Example 1: Create Azure Storage data source object ```powershell -PS C:\> New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://bnsrpause.blob.core.windows.net' +New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Endpoint 'https://bnsrpause.blob.core.windows.net' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageMsiScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageMsiScanObject.md index 847e551d225d..82c291bcfe58 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageMsiScanObject.md @@ -25,8 +25,10 @@ Create an in-memory object for AzureStorageMsiScan. ### Example 1: Create Azure Storage Msi scan object ```powershell -PS C:\> New-AzPurviewAzureStorageMsiScanObject -Kind 'AzureStorageMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +New-AzPurviewAzureStorageMsiScanObject -Kind 'AzureStorageMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageScanRulesetObject.md similarity index 89% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageScanRulesetObject.md index 21e58d1a54db..bdcf294d9d36 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureStorageScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureStorageScanRulesetObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureStorageScanRuleset. ### Example 1: Create Azure Storage custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureStorageScanRulesetObject -Kind 'AzureStorage' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +New-AzPurviewAzureStorageScanRulesetObject -Kind 'AzureStorage' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionCredentialScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionCredentialScanObject.md index f74bbe8784d7..4fbf8eed66ea 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureSubscriptionCredentialScan. ### Example 1: Create Azure resource sub Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionCredentialScanObject -Kind 'AzureSubscriptionCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +New-AzPurviewAzureSubscriptionCredentialScanObject -Kind 'AzureSubscriptionCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionDataSourceObject.md similarity index 91% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionDataSourceObject.md index 22c440a3d193..b6005e07b7dd 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for AzureSubscriptionDataSource. ### Example 1: Create Azure Subscription data source object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionDataSourceObject -Kind 'AzureSubscription' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +New-AzPurviewAzureSubscriptionDataSourceObject -Kind 'AzureSubscription' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionMsiScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionMsiScanObject.md index 82edd73c942b..7953fa7f71cd 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSubscriptionMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSubscriptionMsiScanObject.md @@ -26,8 +26,10 @@ Create an in-memory object for AzureSubscriptionMsiScan. ### Example 1: Create Azure resource sub Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSubscriptionMsiScanObject -Kind 'AzureSubscriptionMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +New-AzPurviewAzureSubscriptionMsiScanObject -Kind 'AzureSubscriptionMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md index 9a0d4b4ab337..1ec9e5f6ea98 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for AzureSynapseWorkspaceCredentialScan. ### Example 1: Create Azure Synapse Workspace Credential scan object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceCredentialScanObject -Kind 'AzureSynapseWorkspaceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +New-AzPurviewAzureSynapseWorkspaceCredentialScanObject -Kind 'AzureSynapseWorkspaceCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialType 'ServicePrincipal' -CredentialReferenceName 'svcp' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md index 5f99d6e76df4..f9c601e497ef 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceDataSourceObject.md @@ -25,8 +25,11 @@ Create an in-memory object for AzureSynapseWorkspaceDataSource. ### Example 1: Create Azure Synapse workspace data source object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceDataSourceObject -Kind 'AzureSynapseWorkspace' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DedicatedSqlEndpoint 'g1euap.sql.azuresynapse.net' -ServerlessSqlEndpoint 'rg1euap-ondemand.sql.azuresynapse.net' +New-AzPurviewAzureSynapseWorkspaceDataSourceObject -Kind 'AzureSynapseWorkspace' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -DedicatedSqlEndpoint 'g1euap.sql.azuresynapse.net' -ServerlessSqlEndpoint 'rg1euap-ondemand.sql.azuresynapse.net' +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md index eba9906ed7bc..7b0db54ef24f 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceMsiScanObject.md @@ -27,8 +27,11 @@ Create an in-memory object for AzureSynapseWorkspaceMsiScan. ### Example 1: Create Azure Synapse Workspace Msi scan object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceMsiScanObject -Kind 'AzureSynapseWorkspaceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +New-AzPurviewAzureSynapseWorkspaceMsiScanObject -Kind 'AzureSynapseWorkspaceMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ScanRulesetName 'AzureSynapseSQL' -ScanRulesetType 'System' +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md similarity index 90% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md index ebb8a715e856..1972d6c1aef2 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewAzureSynapseWorkspaceScanRulesetObject.md @@ -25,8 +25,11 @@ Create an in-memory object for AzureSynapseWorkspaceScanRuleset. ### Example 1: Create Azure Synapse Workspace custom scanruleset object ```powershell -PS C:\> New-AzPurviewAzureSynapseWorkspaceScanRulesetObject -Kind 'AzureSynapseWorkspace' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewAzureSynapseWorkspaceScanRulesetObject -Kind 'AzureSynapseWorkspace' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` + +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewClassificationRule.md similarity index 98% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewClassificationRule.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewClassificationRule.md index 9f2c6b4bdb30..fd297fe589e6 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewClassificationRule.md @@ -24,12 +24,15 @@ Creates or Updates a classification rule ### Example 1: Create custom classification object ```powershell -PS C:\> $reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +$reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' $reg2 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col2$' $regexarr = @($reg1, $reg2) $obj = New-AzPurviewCustomClassificationRuleObject -Kind 'Custom' -ClassificationName ClassificationRule4 -RuleStatus 'Enabled' -Description 'This is a rule2' -ColumnPattern $regexarr New-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName ClassificationRule5 -Body $obj +``` + +```output ClassificationAction : Keep ClassificationName : ClassificationRule4 ColumnPattern : {{ diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewCustomClassificationRuleObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewCustomClassificationRuleObject.md similarity index 97% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewCustomClassificationRuleObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewCustomClassificationRuleObject.md index 4f0909490498..12aee0d4daa3 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewCustomClassificationRuleObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewCustomClassificationRuleObject.md @@ -26,11 +26,14 @@ Create an in-memory object for CustomClassificationRule. ### Example 1: Create custom classification rule object ```powershell -PS C:\> $reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +$reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' $reg2 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col2$' $regexarr = @($reg1, $reg2) New-AzPurviewCustomClassificationRuleObject -Kind 'Custom' -ClassificationName ClassificationRule4 -MinimumPercentageMatch 60 -RuleStatus 'Enabled' -Description 'This is a rule2' -ColumnPattern $regexarr +``` + +```output ClassificationAction : ClassificationName : ClassificationRule4 ColumnPattern : {{ diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewDataSource.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewDataSource.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewDataSource.md index 037704c742e4..875821f0c3d3 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewDataSource.md @@ -24,9 +24,12 @@ Creates or Updates a data source ### Example 1: Create a data source ```powershell -PS C:\> $obj = New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint https://datascantest.blob.core.windows.net/ +$obj = New-AzPurviewAzureStorageDataSourceObject -Kind 'AzureStorage' -CollectionReferenceName parv-brs-2 -CollectionType 'CollectionReference' -Endpoint https://datascantest.blob.core.windows.net/ New-AzPurviewDataSource -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'NewDataSource' -Body $obj +``` + +```output CollectionLastModifiedAt : 2/15/2022 10:36:25 AM CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilter.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilter.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilter.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilter.md index e8d8b8334d5e..f6391d3d561c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilter.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilter.md @@ -24,9 +24,12 @@ Creates or updates a filter ### Example 1: Create the scope filters of the scan ```powershell -PS C:\> $filterObj = New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') +$filterObj = New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') New-AzPurviewFilter -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -Body $filterObj +``` + +```output ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} Id : datasources/DataScanTestData-Parv/scans/Scan1ForDemo/filters/custom IncludeUriPrefix : {https://foo.file.core.windows.net/share1/user, diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilterObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilterObject.md similarity index 87% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilterObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilterObject.md index aef950ba0226..23698ed8dd98 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewFilterObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewFilterObject.md @@ -23,8 +23,11 @@ Create an in-memory object for Filter. ### Example 1: Create filter object ```powershell -PS C:\> New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') +New-AzPurviewFilterObject -ExcludeUriPrefix @('https://foo.file.core.windows.net/share1/user/temp') -IncludeUriPrefix @('https://foo.file.core.windows.net/share1/user','https://foo.file.core.windows.net/share1/aggregated') +``` + +```output ExcludeUriPrefix : {https://foo.file.core.windows.net/share1/user/temp} Id : IncludeUriPrefix : {https://foo.file.core.windows.net/share1/user, diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewKeyVaultConnection.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewKeyVaultConnection.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewKeyVaultConnection.md index b7c4e4a6873c..244adcdb27d2 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewKeyVaultConnection.md @@ -24,9 +24,12 @@ Creates an instance of a key vault connection ### Example 1: Create a key vault connection ```powershell -PS C:\> $kvConn = New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' + $kvConn = New-AzPurviewAzureKeyVaultObject -BaseUrl 'https://datascankv.vault.azure.net/' -Description 'This is a key vault' New-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName KeyVaultConnection2 -Body $kvConn +``` + +```output BaseUrl : https://datascankv.vault.azure.net/ Description : This is a key vault Id : keyVaults/KeyVaultConnection2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewOracleDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewOracleDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewOracleDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewOracleDataSourceObject.md index 2d635a1ea63c..556f352999fc 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewOracleDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewOracleDataSourceObject.md @@ -24,8 +24,11 @@ Create an in-memory object for OracleDataSource. ### Example 1: Create Azure Synapse workspace data source object ```powershell -PS C:\> New-AzPurviewOracleDataSourceObject -Kind 'Oracle' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '13.1.0.46' -Port 1521 -Service 'xe' +New-AzPurviewOracleDataSourceObject -Kind 'Oracle' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '13.1.0.46' -Port 1521 -Service 'xe' +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDataSourceObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDataSourceObject.md index 0de5b239a534..b81666e7042c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDataSourceObject.md @@ -24,8 +24,11 @@ Create an in-memory object for PowerBIDataSource. ### Example 1: Create PowerBI data source object ```powershell -PS C:\> New-AzPurviewPowerBIDataSourceObject -Kind 'PowerBI' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx' +New-AzPurviewPowerBIDataSourceObject -Kind 'PowerBI' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx' +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDelegatedScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDelegatedScanObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDelegatedScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDelegatedScanObject.md index e3d532acf545..068067ae987c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIDelegatedScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIDelegatedScanObject.md @@ -27,8 +27,11 @@ Create an in-memory object for PowerBIDelegatedScan. ### Example 1: Create PowerBI delegated scan object ```powershell -PS C:\> New-AzPurviewPowerBIDelegatedScanObject -Kind 'PowerBIDelegated' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true -ClientId 'xxxxxxx-cdfd-4016-9e80-xxxxxxxx' -UserName 'abcd@msft.com' -Password 'pwd' +New-AzPurviewPowerBIDelegatedScanObject -Kind 'PowerBIDelegated' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true -ClientId 'xxxxxxx-cdfd-4016-9e80-xxxxxxxx' -UserName 'abcd@msft.com' -Password 'pwd' +``` + +```output AuthenticationType : ClientId : xxxxxxx-cdfd-4016-9e80-xxxxxxxx CollectionLastModifiedAt : diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIMsiScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIMsiScanObject.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIMsiScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIMsiScanObject.md index 9b95c78a74df..e3e8b7f793d6 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewPowerBIMsiScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewPowerBIMsiScanObject.md @@ -25,8 +25,11 @@ Create an in-memory object for PowerBIMsiScan. ### Example 1: Create PowerBI delegated scan object ```powershell -PS C:\> New-AzPurviewPowerBIMsiScanObject -Kind 'PowerBIMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true +New-AzPurviewPowerBIMsiScanObject -Kind 'PowerBIMsi' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -IncludePersonalWorkspace $true +``` + +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewRegexClassificationRulePatternObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewRegexClassificationRulePatternObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewRegexClassificationRulePatternObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewRegexClassificationRulePatternObject.md index 8f3faa226832..b213ba4a16e0 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewRegexClassificationRulePatternObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewRegexClassificationRulePatternObject.md @@ -23,8 +23,10 @@ Create an in-memory object for RegexClassificationRulePattern. ### Example 1: Create Regex Classification Rule Pattern Object ```powershell -PS C:\> New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$' +``` +```output Kind Pattern ---- ------- Regex ^col1$ diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapEccDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapEccDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapEccDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapEccDataSourceObject.md index 3f0d5b1e1be5..a534eed4952c 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapEccDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapEccDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for SapEccDataSource. ### Example 1: Create SAPECC data source object ```powershell -PS C:\> New-AzPurviewSapEccDataSourceObject -Kind 'SapEcc' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +New-AzPurviewSapEccDataSourceObject -Kind 'SapEcc' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +``` +```output ApplicationServer : 12.13.14.12 CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaDataSourceObject.md index d86efc3c206e..5a36405f0507 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for SapS4HanaDataSource. ### Example 1: Create SAPS4Hana data source object ```powershell -PS C:\> New-AzPurviewSapS4HanaDataSourceObject -Kind 'SapS4Hana' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +New-AzPurviewSapS4HanaDataSourceObject -Kind 'SapS4Hana' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ApplicationServer '12.13.14.12' -SystemNumber 32 +``` +```output ApplicationServer : 12.13.14.12 CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md index cefdb09e4bde..b27e97e93441 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for SapS4HanaSapS4HanaCredentialScan. ### Example 1: Create SAPS4 Hana Credential Scan Object ```powershell -PS C:\> New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject -Kind 'SapS4HanaSapS4HanaCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ClientId '444' -CredentialReferenceName 'fdsafsdf' -CredentialType 'BasicAuth' -MaximumMemoryAllowedInGb 4 -JCoLibraryPath 'file://asdas' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +New-AzPurviewSapS4HanaSapS4HanaCredentialScanObject -Kind 'SapS4HanaSapS4HanaCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ClientId '444' -CredentialReferenceName 'fdsafsdf' -CredentialType 'BasicAuth' -MaximumMemoryAllowedInGb 4 -JCoLibraryPath 'file://asdas' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +``` +```output ClientId : 444 CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewScan.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScan.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewScan.md index 31bfcd52559b..92ccabf90d42 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewScan.md @@ -24,9 +24,11 @@ Creates an instance of a scan ### Example 1: Create a scan instance under a data source ```powershell -PS C:\> $obj = New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' +$obj = New-AzPurviewAzureStorageCredentialScanObject -Kind 'AzureStorageCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'datascantestdataparv-accountkey' -CredentialType 'AccountKey' -ScanRulesetName 'AzureStorage' -ScanRulesetType 'System' New-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' -Body $obj +``` +```output CollectionLastModifiedAt : 2/15/2022 3:49:23 PM CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewScanRuleset.md similarity index 88% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScanRuleset.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewScanRuleset.md index 5fc086d31df7..785894f623d3 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewScanRuleset.md @@ -24,9 +24,11 @@ Creates or Updates a scan ruleset ### Example 1: Create custom scanruleset ```powershell -PS C:\> $obj = New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' +$obj = New-AzPurviewAdlsGen1ScanRulesetObject -Kind 'AdlsGen1' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom' New-AzPurviewScanRuleset -Endpoint 'https://parv-brs-2.purview.azure.com/' -Name 'Rule1' -Body $obj +``` +```output CreatedAt : 2/17/2022 3:35:07 PM Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseCredentialScanObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseCredentialScanObject.md similarity index 92% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseCredentialScanObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseCredentialScanObject.md index f6f2a43778b2..b1805daa05ac 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseCredentialScanObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseCredentialScanObject.md @@ -27,8 +27,10 @@ Create an in-memory object for SqlServerDatabaseCredentialScan. ### Example 1: Create Sql Server DB Credential scan object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseCredentialScanObject -Kind 'SqlServerDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'SqlServer' -ScanRulesetType 'Custom' -ServerEndpoint '10.1.2.1' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +New-AzPurviewSqlServerDatabaseCredentialScanObject -Kind 'SqlServerDatabaseCredential' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -CredentialReferenceName 'sqlauth' -CredentialType 'SqlAuth' -DatabaseName 'db' -ScanRulesetName 'SqlServer' -ScanRulesetType 'Custom' -ServerEndpoint '10.1.2.1' -ConnectedViaReferenceName 'IntegrationRuntime-NJh' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseDataSourceObject.md similarity index 94% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseDataSourceObject.md index b43072733fb1..ff2eb60fb436 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseDataSourceObject.md @@ -25,8 +25,10 @@ Create an in-memory object for SqlServerDatabaseDataSource. ### Example 1: Create SQL Server Database data source object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseDataSourceObject -Kind 'SqlServerDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint '12.13.14.12' +New-AzPurviewSqlServerDatabaseDataSourceObject -Kind 'SqlServerDatabase' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ServerEndpoint '12.13.14.12' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseScanRulesetObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseScanRulesetObject.md similarity index 90% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseScanRulesetObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseScanRulesetObject.md index d4b4349c4dff..4b2ea0956319 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewSqlServerDatabaseScanRulesetObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewSqlServerDatabaseScanRulesetObject.md @@ -25,8 +25,10 @@ Create an in-memory object for SqlServerDatabaseScanRuleset. ### Example 1: Create Sql Server Db custom scanruleset object ```powershell -PS C:\> New-AzPurviewSqlServerDatabaseScanRulesetObject -Kind 'SqlServerDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +New-AzPurviewSqlServerDatabaseScanRulesetObject -Kind 'SqlServerDatabase' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -Type 'Custom' +``` +```output CreatedAt : Description : desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS} diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTeradataDataSourceObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTeradataDataSourceObject.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTeradataDataSourceObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewTeradataDataSourceObject.md index 013bbe024760..b7cc17a68231 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTeradataDataSourceObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTeradataDataSourceObject.md @@ -24,8 +24,10 @@ Create an in-memory object for TeradataDataSource. ### Example 1: Create Teradata data source object ```powershell -PS C:\> New-AzPurviewTeradataDataSourceObject -Kind 'Teradata' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '12.13.14.12' +New-AzPurviewTeradataDataSourceObject -Kind 'Teradata' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Host '12.13.14.12' +``` +```output CollectionLastModifiedAt : CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTrigger.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTrigger.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewTrigger.md index d6d0db941dde..0394b6459758 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTrigger.md @@ -24,9 +24,11 @@ Creates an instance of a trigger ### Example 1: Create trigger schedule for scan run ```powershell -PS C:\> $obj = New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) +$obj = New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) New-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' -Body $obj +``` +```output CreatedAt : 2/17/2022 1:35:12 PM Id : datasources/DataScanTestData-Parv/scans/Scan-6HK/triggers/default IncrementalScanStartTime : diff --git a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTriggerObject.md b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTriggerObject.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTriggerObject.md rename to src/Purview/Purviewdata.Autorest/help/New-AzPurviewTriggerObject.md index c4639f7eb56f..45c00c3ea75a 100644 --- a/src/Purview/Purviewdata.Autorest/docs/New-AzPurviewTriggerObject.md +++ b/src/Purview/Purviewdata.Autorest/help/New-AzPurviewTriggerObject.md @@ -29,8 +29,10 @@ Create an in-memory object for Trigger. ### Example 1: Create trigger object ```powershell -PS C:\> New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) +New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10) +``` +```output CreatedAt : Id : IncrementalScanStartTime : diff --git a/src/Purview/Purviewdata.Autorest/docs/README.md b/src/Purview/Purviewdata.Autorest/help/README.md similarity index 100% rename from src/Purview/Purviewdata.Autorest/docs/README.md rename to src/Purview/Purviewdata.Autorest/help/README.md diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewClassificationRule.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewClassificationRule.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewClassificationRule.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewClassificationRule.md index cbd4495fe73b..58afd138b53e 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewClassificationRule.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewClassificationRule.md @@ -24,8 +24,10 @@ Deletes a classification rule ### Example 1: Delete custom classification rule by name ```powershell -PS C:\> Remove-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'RuleDUmmy' +Remove-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com -ClassificationRuleName 'RuleDUmmy' +``` +```output ClassificationAction : Keep ClassificationName : MICROSOFT.GOVERNMENT.AUSTRALIA.DRIVERS_LICENSE_NUMBER ColumnPattern : {{ diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewDataSource.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewDataSource.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewDataSource.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewDataSource.md index 0c65a4500875..c82e76c188d0 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewDataSource.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewDataSource.md @@ -24,8 +24,10 @@ Deletes a data source ### Example 1: Remove a data source by name ```powershell -PS C:\> Remove-AzPurviewDataSource -Endpoint 'https://rs-2.purview.azure.com/' -Name 'NewDataSource' +Remove-AzPurviewDataSource -Endpoint 'https://rs-2.purview.azure.com/' -Name 'NewDataSource' +``` +```output CollectionLastModifiedAt : 2/9/2022 2:49:14 AM CollectionReferenceName : brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewKeyVaultConnection.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewKeyVaultConnection.md similarity index 95% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewKeyVaultConnection.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewKeyVaultConnection.md index 5e043bf25534..980706d6bebf 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewKeyVaultConnection.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewKeyVaultConnection.md @@ -24,8 +24,10 @@ Deletes the key vault connection associated with the account ### Example 1: Remove a key vault connection ```powershell -PS C:\> Remove-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection5' +Remove-AzPurviewKeyVaultConnection -Endpoint 'https://parv-brs-2.purview.azure.com/' -KeyVaultName 'KeyVaultConnection5' +``` +```output BaseUrl : https://datascankv.vault.azure.net/ Description : This is a key vault Id : keyVaults/KeyVaultConnection5 diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScan.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScan.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScan.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScan.md index a53c703712b5..fd5240cbf3f6 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScan.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScan.md @@ -24,8 +24,10 @@ Deletes the scan associated with the data source ### Example 1: Delete a scan instance by name ```powershell -PS C:\> Remove-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +Remove-AzPurviewScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -Name 'ScanTest' +``` +```output CollectionLastModifiedAt : 2/15/2022 3:49:23 PM CollectionReferenceName : parv-brs-2 CollectionType : CollectionReference diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScanRuleset.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScanRuleset.md similarity index 97% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScanRuleset.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScanRuleset.md index a58efb5ebb2d..20d54d55e94f 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewScanRuleset.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewScanRuleset.md @@ -24,8 +24,10 @@ Deletes a scan ruleset ### Example 1: Remove custom scanruleset by name ```powershell -PS C:\> Remove-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +Remove-AzPurviewScanRuleset -Endpoint https://parv-brs-2.purview.azure.com/ -Name TestRule +``` +```output CreatedAt : 2/17/2022 2:30:15 PM Description : test desc ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS, MICROSOFT.MISCELLANEOUS.IPADDRESS} diff --git a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewTrigger.md b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewTrigger.md similarity index 96% rename from src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewTrigger.md rename to src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewTrigger.md index e10d283b9a50..271d9f759ccd 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Remove-AzPurviewTrigger.md +++ b/src/Purview/Purviewdata.Autorest/help/Remove-AzPurviewTrigger.md @@ -24,8 +24,10 @@ Deletes the trigger associated with the scan ### Example 1: Remove trigger schedule for a scan ```powershell -PS C:\> Remove-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +Remove-AzPurviewTrigger -Endpoint https://parv-brs-2.purview.azure.com/ -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan-6HK' +``` +```output CreatedAt : 2/17/2022 1:35:12 PM Id : datasources/DataScanTestData-Parv/scans/Scan-6HK/triggers/default IncrementalScanStartTime : diff --git a/src/Purview/Purviewdata.Autorest/docs/Start-AzPurviewScanResultScan.md b/src/Purview/Purviewdata.Autorest/help/Start-AzPurviewScanResultScan.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/Start-AzPurviewScanResultScan.md rename to src/Purview/Purviewdata.Autorest/help/Start-AzPurviewScanResultScan.md index 033417bbe284..7b5834f6772d 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Start-AzPurviewScanResultScan.md +++ b/src/Purview/Purviewdata.Autorest/help/Start-AzPurviewScanResultScan.md @@ -24,8 +24,10 @@ Runs the scan ### Example 1: Start a Scan Run ```powershell -PS C:\> Start-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '758a0499-b45e-40e3-9c06-408e2f3ac050' -ScanLevel 'Full' +Start-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '758a0499-b45e-40e3-9c06-408e2f3ac050' -ScanLevel 'Full' +``` +```output EndTime ScanResultId StartTime Status ------- ------------ --------- ------ 758a0499-b45e-40e3-9c06-408e2f3ac050 2/15/2022 2:34:06 PM Accepted diff --git a/src/Purview/Purviewdata.Autorest/docs/Stop-AzPurviewScanResultScan.md b/src/Purview/Purviewdata.Autorest/help/Stop-AzPurviewScanResultScan.md similarity index 93% rename from src/Purview/Purviewdata.Autorest/docs/Stop-AzPurviewScanResultScan.md rename to src/Purview/Purviewdata.Autorest/help/Stop-AzPurviewScanResultScan.md index 677fe17bdfd7..9b2714eb857b 100644 --- a/src/Purview/Purviewdata.Autorest/docs/Stop-AzPurviewScanResultScan.md +++ b/src/Purview/Purviewdata.Autorest/help/Stop-AzPurviewScanResultScan.md @@ -24,8 +24,10 @@ Cancels a scan ### Example 1: Stop a scan run by run id ```powershell -PS C:\> Stop-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '663623f3-8728-4b10-b5c8-8ed8dbc2ae7e' +Stop-AzPurviewScanResultScan -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' -RunId '663623f3-8728-4b10-b5c8-8ed8dbc2ae7e' +``` +```output EndTime ScanResultId StartTime Status ------- ------------ --------- ------ 2/15/2022 2:47:55 PM Accepted diff --git a/src/ResourceGraph/ResourceGraph.Autorest/examples/Get-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/examples/Get-AzResourceGraphQuery.md index d8f78c7f323a..a3821c059115 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/examples/Get-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/examples/Get-AzResourceGraphQuery.md @@ -1,6 +1,6 @@ ### Example 1: Get all resource graph query under a resource group ```powershell -PS C:\> Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test +Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test Location Name Type -------- ---- ---- @@ -11,7 +11,7 @@ This command gets all resource graph query under a resource group. ### Example 2: Get a resource graph query by name ```powershell -PS C:\> Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name SharedQuery-t01 +Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name SharedQuery-t01 Location Name Type -------- ---- ---- @@ -22,8 +22,8 @@ This command gets a resource graph query by name. ### Example 2: Get a resource graph query by objecy ```powershell -PS C:\> $query = New-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 -Location 'global' -Query 'project id, name, type, location' -Description 'test' -PS C:\> Get-AzResourceGraphQuery -InputObject $query +$query = New-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 -Location 'global' -Query 'project id, name, type, location' -Description 'test' +Get-AzResourceGraphQuery -InputObject $query Location Name Type -------- ---- ---- diff --git a/src/ResourceGraph/ResourceGraph.Autorest/examples/New-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/examples/New-AzResourceGraphQuery.md index c5e6d3f0a110..0cec994ed576 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/examples/New-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/examples/New-AzResourceGraphQuery.md @@ -1,6 +1,6 @@ ### Example 1: Create a resource graph query by the query parameter ```powershell -PS C:\> New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" +New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" Location Name Type @@ -12,7 +12,7 @@ This command creates a resource graph query by the query parameter. ### Example 2: Create a resource graph query by the file parameter ```powershell -PS C:\> New-AzResourceGraphQuery -Name query-t04 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -File 'D:\azure-service\ResourceGraph.Autorest\azure-powershell\src\ResourceGraph\ResourceGraph.Autorest\test\Query.kql' +New-AzResourceGraphQuery -Name query-t04 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -File 'D:\azure-service\ResourceGraph.Autorest\azure-powershell\src\ResourceGraph\ResourceGraph.Autorest\test\Query.kql' Location Name Type -------- ---- ---- diff --git a/src/ResourceGraph/ResourceGraph.Autorest/examples/Remove-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/examples/Remove-AzResourceGraphQuery.md index 844c63b01eab..01156dd66332 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/examples/Remove-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/examples/Remove-AzResourceGraphQuery.md @@ -1,6 +1,6 @@ ### Example 1: Remove a resource graph query by name ```powershell -PS C:\> Remove-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 +Remove-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 ``` @@ -8,8 +8,8 @@ This command removes a resource graph query by name. ### Example 2: Remove a resource graph query by object ```powershell -PS C:\> $query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t02 -PS C:\> Remove-AzResourceGraphQuery -InputObject $query +$query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t02 +Remove-AzResourceGraphQuery -InputObject $query ``` diff --git a/src/ResourceGraph/ResourceGraph.Autorest/examples/Update-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/examples/Update-AzResourceGraphQuery.md index e15cc5000ffb..5c1154b4a44f 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/examples/Update-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/examples/Update-AzResourceGraphQuery.md @@ -1,6 +1,6 @@ ### Example 1: Update the parameter query and tag by name ```powershell -PS C:\> Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} + Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} Location Name Type -------- ---- ---- @@ -11,8 +11,8 @@ This command updates the parameter query and tag by name. ### Example 2: Update the parameter file by object ```powershell -PS C:\> $query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -PS C:\> Update-AzResourceGraphQuery -InputObject $query -File './Query.kql' +$query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 +Update-AzResourceGraphQuery -InputObject $query -File './Query.kql' Location Name Type -------- ---- ---- diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md b/src/ResourceGraph/ResourceGraph.Autorest/help/Az.ResourceGraph.md similarity index 100% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/Az.ResourceGraph.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/Az.ResourceGraph.md diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/Get-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/help/Get-AzResourceGraphQuery.md similarity index 87% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/Get-AzResourceGraphQuery.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/Get-AzResourceGraphQuery.md index 83d51958dff6..e5324af5e9b4 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/docs/Get-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/help/Get-AzResourceGraphQuery.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ResourceGraph -online version: https://learn.microsoft.com/en-us/powershell/module/az.resourcegraph/get-azresourcegraphquery +online version: https://learn.microsoft.com/powershell/module/az.resourcegraph/get-azresourcegraphquery schema: 2.0.0 --- @@ -37,8 +37,10 @@ Get a single graph query by its resourceName. ### Example 1: Get all resource graph query under a resource group ```powershell -PS C:\> Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test +Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test +``` +```output Location Name Type -------- ---- ---- global SharedQuery-t01 microsoft.resourcegraph/queries @@ -48,8 +50,10 @@ This command gets all resource graph query under a resource group. ### Example 2: Get a resource graph query by name ```powershell -PS C:\> Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name SharedQuery-t01 +Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name SharedQuery-t01 +``` +```output Location Name Type -------- ---- ---- global SharedQuery-t01 microsoft.resourcegraph/queries @@ -57,11 +61,13 @@ Location Name Type This command gets a resource graph query by name. -### Example 2: Get a resource graph query by objecy +### Example 3: Get a resource graph query by objecy ```powershell -PS C:\> $query = New-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 -Location 'global' -Query 'project id, name, type, location' -Description 'test' -PS C:\> Get-AzResourceGraphQuery -InputObject $query +$query = New-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 -Location 'global' -Query 'project id, name, type, location' -Description 'test' +Get-AzResourceGraphQuery -InputObject $query +``` +```output Location Name Type -------- ---- ---- global SharedQuery-t01 microsoft.resourcegraph/queries diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/New-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/help/New-AzResourceGraphQuery.md similarity index 88% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/New-AzResourceGraphQuery.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/New-AzResourceGraphQuery.md index 1dced062a5ff..006d3a239c0e 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/docs/New-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/help/New-AzResourceGraphQuery.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ResourceGraph -online version: https://learn.microsoft.com/en-us/powershell/module/az.resourcegraph/new-azresourcegraphquery +online version: https://learn.microsoft.com/powershell/module/az.resourcegraph/new-azresourcegraphquery schema: 2.0.0 --- @@ -25,9 +25,10 @@ Create a new graph query. ### Example 1: Create a resource graph query by the query parameter ```powershell -PS C:\> New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" - +New-AzResourceGraphQuery -Name query-t03 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -Query "project id, name, type, location, tags" +``` +```output Location Name Type -------- ---- ---- global query-t03 microsoft.resourcegraph/queries @@ -37,8 +38,10 @@ This command creates a resource graph query by the query parameter. ### Example 2: Create a resource graph query by the file parameter ```powershell -PS C:\> New-AzResourceGraphQuery -Name query-t04 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -File 'D:\azure-service\ResourceGraph.Autorest\azure-powershell\src\ResourceGraph\ResourceGraph.Autorest\test\Query.kql' +New-AzResourceGraphQuery -Name query-t04 -ResourceGroupName azure-rg-test -Location "global" -Description "requesting a subset of resource fields." -File 'D:\azure-service\ResourceGraph.Autorest\azure-powershell\src\ResourceGraph\ResourceGraph.Autorest\test\Query.kql' +``` +```output Location Name Type -------- ---- ---- global query-t04 microsoft.resourcegraph/queries diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/README.md b/src/ResourceGraph/ResourceGraph.Autorest/help/README.md similarity index 100% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/README.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/README.md diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/Remove-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/help/Remove-AzResourceGraphQuery.md similarity index 92% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/Remove-AzResourceGraphQuery.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/Remove-AzResourceGraphQuery.md index 1d6024c251e1..b7d517d4d111 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/docs/Remove-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/help/Remove-AzResourceGraphQuery.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ResourceGraph -online version: https://learn.microsoft.com/en-us/powershell/module/az.resourcegraph/remove-azresourcegraphquery +online version: https://learn.microsoft.com/powershell/module/az.resourcegraph/remove-azresourcegraphquery schema: 2.0.0 --- @@ -31,17 +31,15 @@ Delete a graph query. ### Example 1: Remove a resource graph query by name ```powershell -PS C:\> Remove-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 - +Remove-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t03 ``` This command removes a resource graph query by name. ### Example 2: Remove a resource graph query by object ```powershell -PS C:\> $query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t02 -PS C:\> Remove-AzResourceGraphQuery -InputObject $query - +$query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t02 +Remove-AzResourceGraphQuery -InputObject $query ``` This command removes a resource graph query by object. diff --git a/src/ResourceGraph/ResourceGraph.Autorest/docs/Update-AzResourceGraphQuery.md b/src/ResourceGraph/ResourceGraph.Autorest/help/Update-AzResourceGraphQuery.md similarity index 92% rename from src/ResourceGraph/ResourceGraph.Autorest/docs/Update-AzResourceGraphQuery.md rename to src/ResourceGraph/ResourceGraph.Autorest/help/Update-AzResourceGraphQuery.md index b216c8521e66..45c863292d92 100644 --- a/src/ResourceGraph/ResourceGraph.Autorest/docs/Update-AzResourceGraphQuery.md +++ b/src/ResourceGraph/ResourceGraph.Autorest/help/Update-AzResourceGraphQuery.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.ResourceGraph -online version: https://learn.microsoft.com/en-us/powershell/module/az.resourcegraph/update-azresourcegraphquery +online version: https://learn.microsoft.com/powershell/module/az.resourcegraph/update-azresourcegraphquery schema: 2.0.0 --- @@ -32,8 +32,10 @@ Updates a graph query that has already been added. ### Example 1: Update the parameter query and tag by name ```powershell -PS C:\> Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} + Update-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -Query "project id, name, type, location, tags" -Tag @{'key1'=1;'key2'=2} +``` +```output Location Name Type -------- ---- ---- global query-t05 microsoft.resourcegraph/queries @@ -43,9 +45,11 @@ This command updates the parameter query and tag by name. ### Example 2: Update the parameter file by object ```powershell -PS C:\> $query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 -PS C:\> Update-AzResourceGraphQuery -InputObject $query -File './Query.kql' +$query = Get-AzResourceGraphQuery -ResourceGroupName azure-rg-test -Name query-t05 +Update-AzResourceGraphQuery -InputObject $query -File './Query.kql' +``` +```output Location Name Type -------- ---- ---- global query-t05 microsoft.resourcegraph/queries diff --git a/src/Resources/Authorization.Autorest/docs/Az.Authorization.md b/src/Resources/Authorization.Autorest/help/Az.Authorization.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Az.Authorization.md rename to src/Resources/Authorization.Autorest/help/Az.Authorization.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentSchedule.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentSchedule.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentSchedule.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentScheduleInstance.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleInstance.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentScheduleInstance.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleAssignmentScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleAssignmentScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilitySchedule.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilitySchedule.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilitySchedule.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilityScheduleInstance.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleInstance.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilityScheduleInstance.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilityScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibilityScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleEligibilityScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleEligibleChildResource.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleEligibleChildResource.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleEligibleChildResource.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleManagementPolicy.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicy.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleManagementPolicy.md diff --git a/src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/help/Get-AzRoleManagementPolicyAssignment.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Get-AzRoleManagementPolicyAssignment.md rename to src/Resources/Authorization.Autorest/help/Get-AzRoleManagementPolicyAssignment.md diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/help/New-AzRoleAssignmentScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/New-AzRoleAssignmentScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/New-AzRoleAssignmentScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/help/New-AzRoleEligibilityScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/New-AzRoleEligibilityScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/New-AzRoleEligibilityScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/help/New-AzRoleManagementPolicyAssignment.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/New-AzRoleManagementPolicyAssignment.md rename to src/Resources/Authorization.Autorest/help/New-AzRoleManagementPolicyAssignment.md diff --git a/src/Resources/Authorization.Autorest/docs/README.md b/src/Resources/Authorization.Autorest/help/README.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/README.md rename to src/Resources/Authorization.Autorest/help/README.md diff --git a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/help/Remove-AzRoleManagementPolicy.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicy.md rename to src/Resources/Authorization.Autorest/help/Remove-AzRoleManagementPolicy.md diff --git a/src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md b/src/Resources/Authorization.Autorest/help/Remove-AzRoleManagementPolicyAssignment.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Remove-AzRoleManagementPolicyAssignment.md rename to src/Resources/Authorization.Autorest/help/Remove-AzRoleManagementPolicyAssignment.md diff --git a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md b/src/Resources/Authorization.Autorest/help/Stop-AzRoleAssignmentScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Stop-AzRoleAssignmentScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/Stop-AzRoleAssignmentScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md b/src/Resources/Authorization.Autorest/help/Stop-AzRoleEligibilityScheduleRequest.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Stop-AzRoleEligibilityScheduleRequest.md rename to src/Resources/Authorization.Autorest/help/Stop-AzRoleEligibilityScheduleRequest.md diff --git a/src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md b/src/Resources/Authorization.Autorest/help/Update-AzRoleManagementPolicy.md similarity index 100% rename from src/Resources/Authorization.Autorest/docs/Update-AzRoleManagementPolicy.md rename to src/Resources/Authorization.Autorest/help/Update-AzRoleManagementPolicy.md diff --git a/src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/help/Add-AzADAppPermission.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Add-AzADAppPermission.md rename to src/Resources/MSGraph.Autorest/help/Add-AzADAppPermission.md diff --git a/src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/help/Add-AzADGroupMember.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Add-AzADGroupMember.md rename to src/Resources/MSGraph.Autorest/help/Add-AzADGroupMember.md diff --git a/src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md b/src/Resources/MSGraph.Autorest/help/Az.MSGraph.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Az.MSGraph.md rename to src/Resources/MSGraph.Autorest/help/Az.MSGraph.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/help/Get-AzADAppCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADAppCredential.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADAppCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppFederatedCredential.md b/src/Resources/MSGraph.Autorest/help/Get-AzADAppFederatedCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADAppFederatedCredential.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADAppFederatedCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/help/Get-AzADAppPermission.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADAppPermission.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADAppPermission.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md b/src/Resources/MSGraph.Autorest/help/Get-AzADApplication.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADApplication.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADApplication.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md b/src/Resources/MSGraph.Autorest/help/Get-AzADGroup.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADGroup.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADGroup.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/help/Get-AzADGroupMember.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADGroupMember.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADGroupMember.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADGroupOwner.md b/src/Resources/MSGraph.Autorest/help/Get-AzADGroupOwner.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADGroupOwner.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADGroupOwner.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADOrganization.md b/src/Resources/MSGraph.Autorest/help/Get-AzADOrganization.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADOrganization.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADOrganization.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/help/Get-AzADServicePrincipal.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADServicePrincipal.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADServicePrincipal.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/help/Get-AzADSpCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADSpCredential.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADSpCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md b/src/Resources/MSGraph.Autorest/help/Get-AzADUser.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Get-AzADUser.md rename to src/Resources/MSGraph.Autorest/help/Get-AzADUser.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/help/New-AzADAppCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADAppCredential.md rename to src/Resources/MSGraph.Autorest/help/New-AzADAppCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADAppFederatedCredential.md b/src/Resources/MSGraph.Autorest/help/New-AzADAppFederatedCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADAppFederatedCredential.md rename to src/Resources/MSGraph.Autorest/help/New-AzADAppFederatedCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md b/src/Resources/MSGraph.Autorest/help/New-AzADApplication.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADApplication.md rename to src/Resources/MSGraph.Autorest/help/New-AzADApplication.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md b/src/Resources/MSGraph.Autorest/help/New-AzADGroup.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADGroup.md rename to src/Resources/MSGraph.Autorest/help/New-AzADGroup.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADGroupOwner.md b/src/Resources/MSGraph.Autorest/help/New-AzADGroupOwner.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADGroupOwner.md rename to src/Resources/MSGraph.Autorest/help/New-AzADGroupOwner.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/help/New-AzADServicePrincipal.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADServicePrincipal.md rename to src/Resources/MSGraph.Autorest/help/New-AzADServicePrincipal.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/help/New-AzADSpCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADSpCredential.md rename to src/Resources/MSGraph.Autorest/help/New-AzADSpCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/New-AzADUser.md b/src/Resources/MSGraph.Autorest/help/New-AzADUser.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/New-AzADUser.md rename to src/Resources/MSGraph.Autorest/help/New-AzADUser.md diff --git a/src/Resources/MSGraph.Autorest/docs/README.md b/src/Resources/MSGraph.Autorest/help/README.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/README.md rename to src/Resources/MSGraph.Autorest/help/README.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADAppCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADAppCredential.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADAppCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppFederatedCredential.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADAppFederatedCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADAppFederatedCredential.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADAppFederatedCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADAppPermission.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADAppPermission.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADAppPermission.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADApplication.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADApplication.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADApplication.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADGroup.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADGroup.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADGroup.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADGroupMember.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupMember.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADGroupMember.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupOwner.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADGroupOwner.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADGroupOwner.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADGroupOwner.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADServicePrincipal.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADServicePrincipal.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADServicePrincipal.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADSpCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADSpCredential.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADSpCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md b/src/Resources/MSGraph.Autorest/help/Remove-AzADUser.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Remove-AzADUser.md rename to src/Resources/MSGraph.Autorest/help/Remove-AzADUser.md diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md b/src/Resources/MSGraph.Autorest/help/Update-AzADAppFederatedCredential.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Update-AzADAppFederatedCredential.md rename to src/Resources/MSGraph.Autorest/help/Update-AzADAppFederatedCredential.md diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md b/src/Resources/MSGraph.Autorest/help/Update-AzADApplication.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Update-AzADApplication.md rename to src/Resources/MSGraph.Autorest/help/Update-AzADApplication.md diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md b/src/Resources/MSGraph.Autorest/help/Update-AzADGroup.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Update-AzADGroup.md rename to src/Resources/MSGraph.Autorest/help/Update-AzADGroup.md diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md b/src/Resources/MSGraph.Autorest/help/Update-AzADServicePrincipal.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Update-AzADServicePrincipal.md rename to src/Resources/MSGraph.Autorest/help/Update-AzADServicePrincipal.md diff --git a/src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md b/src/Resources/MSGraph.Autorest/help/Update-AzADUser.md similarity index 100% rename from src/Resources/MSGraph.Autorest/docs/Update-AzADUser.md rename to src/Resources/MSGraph.Autorest/help/Update-AzADUser.md diff --git a/src/Resources/ResourceManager/SdkModels/Deployments/TemplateFileTypeDefinition.cs b/src/Resources/ResourceManager/SdkModels/Deployments/TemplateFileTypeDefinition.cs index 4300b2dfae44..6e9a1844691f 100644 --- a/src/Resources/ResourceManager/SdkModels/Deployments/TemplateFileTypeDefinition.cs +++ b/src/Resources/ResourceManager/SdkModels/Deployments/TemplateFileTypeDefinition.cs @@ -22,6 +22,9 @@ public class TemplateFileTypeDefinition [JsonProperty("type")] public string Type { get; set; } + [JsonProperty("nullable")] + public bool? Nullable { get; set; } + [JsonProperty("allowedValues")] public List AllowedValues { get; set; } diff --git a/src/Resources/ResourceManager/Utilities/TemplateUtility.cs b/src/Resources/ResourceManager/Utilities/TemplateUtility.cs index 4577c60c71c9..46cdb9f07a9b 100644 --- a/src/Resources/ResourceManager/Utilities/TemplateUtility.cs +++ b/src/Resources/ResourceManager/Utilities/TemplateUtility.cs @@ -311,7 +311,14 @@ private static TemplateFileTypeDefinition ResolveParameterType(TemplateFileParam throw new InvalidOperationException($"Invalid $ref {current.Ref}."); } - current = ResolveTypeFromPath(current.Ref, segments.Skip(2), definitions); + var resolved = ResolveTypeFromPath(current.Ref, segments.Skip(2), definitions); + // it's possible to override some of these properties: the highest-level non-null value wins + resolved.Nullable = current.Nullable ?? resolved.Nullable; + resolved.MinLength = current.MinLength ?? resolved.MinLength; + resolved.MaxLength = current.MaxLength ?? resolved.MaxLength; + resolved.AllowedValues = current.AllowedValues ?? resolved.AllowedValues; + + current = resolved; } return current; @@ -321,28 +328,29 @@ internal static RuntimeDefinedParameter ConstructDynamicParameter(string[] stati { const string duplicatedParameterSuffix = "FromTemplate"; var name = parameterKvp.Key; - var parameter = ResolveParameterType(parameterKvp.Value, definitions); - var defaultValue = parameterKvp.Value.DefaultValue; + var paramDefinition = parameterKvp.Value; + var paramType = ResolveParameterType(paramDefinition, definitions); + var isRequired = paramDefinition.DefaultValue is null && paramType.Nullable != true; RuntimeDefinedParameter runtimeParameter = new RuntimeDefinedParameter() { // For duplicated template parameter names, add a suffix FromTemplate to distinguish them from the cmdlet parameter. Name = staticParameters.Contains(name, StringComparer.OrdinalIgnoreCase) ? name + duplicatedParameterSuffix : name, - ParameterType = GetParameterType(parameter.Type), - Value = defaultValue + ParameterType = GetParameterType(paramType.Type), + Value = paramDefinition.DefaultValue }; runtimeParameter.Attributes.Add(new ParameterAttribute() { - Mandatory = defaultValue == null ? true : false, + Mandatory = isRequired, ValueFromPipelineByPropertyName = true, // Rely on the HelpMessage property to detect the original name for the dynamic parameter. HelpMessage = name }); - if (!string.IsNullOrEmpty(parameter.MinLength) && - !string.IsNullOrEmpty(parameter.MaxLength)) + if (!string.IsNullOrEmpty(paramType.MinLength) && + !string.IsNullOrEmpty(paramType.MaxLength)) { - runtimeParameter.Attributes.Add(new ValidateLengthAttribute(int.Parse(parameter.MinLength), int.Parse(parameter.MaxLength))); + runtimeParameter.Attributes.Add(new ValidateLengthAttribute(int.Parse(paramType.MinLength), int.Parse(paramType.MaxLength))); } return runtimeParameter; diff --git a/src/Resources/Resources.Test/Resources.Test.csproj b/src/Resources/Resources.Test/Resources.Test.csproj index 2a4ba41c2d1e..b9db1a2ce30a 100644 --- a/src/Resources/Resources.Test/Resources.Test.csproj +++ b/src/Resources/Resources.Test/Resources.Test.csproj @@ -31,7 +31,7 @@ - + diff --git a/src/Resources/Resources.Test/Resources/DeploymentTests/NullableParametersAreNotRequired/main.bicep b/src/Resources/Resources.Test/Resources/DeploymentTests/NullableParametersAreNotRequired/main.bicep new file mode 100644 index 000000000000..d8967e89c4ee --- /dev/null +++ b/src/Resources/Resources.Test/Resources/DeploymentTests/NullableParametersAreNotRequired/main.bicep @@ -0,0 +1,22 @@ +// sample from https://github.com/Azure/bicep/issues/12538 +targetScope = 'subscription' +param yourName string? + +output greeting string = !empty(yourName) + ? 'Hello, ${yourName}. Nice to meet you!' + : 'Hey, nice to meet you!' + +// verify this also works with nullable custom types +param optionalCustomType customType? +type customType = { + age: int +} + +param requiredNullableCustomType nullableCustomType +type nullableCustomType = { + age: int +}? + +type customTypeWithRequired = customType! + +param optionalRequiredCustomType customTypeWithRequired? diff --git a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs index 3bbb180dfa95..656e0b77fb12 100644 --- a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs +++ b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.cs @@ -202,6 +202,11 @@ public void TestNewDeploymentFromBicepFileAndBicepparamFile() TestRunner.RunTestScript("Test-NewDeploymentFromBicepFileAndBicepparamFile"); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestNullableParametersAreNotRequired() + => TestRunner.RunTestScript("Test-NullableParametersAreNotRequired"); + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewDeploymentFromBicepparamFileOnly() diff --git a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.ps1 b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.ps1 index e13b97c004a5..409230f9adee 100644 --- a/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.ps1 +++ b/src/Resources/Resources.Test/ScenarioTests/DeploymentTests.ps1 @@ -897,7 +897,31 @@ function Test-NewDeploymentFromBicepFileAndBicepparamFile } } +<# +.SYNOPSIS +Verifies that nullable parameters are not required to be passed +#> +function Test-NullableParametersAreNotRequired +{ + # Setup + $rname = Get-ResourceName + $location = "West US 2" + $subId = (Get-AzContext).Subscription.SubscriptionId + try + { + #Create deployment + $deployment = New-AzSubscriptionDeployment -Name $rname -Location $location -TemplateFile "Resources/DeploymentTests/NullableParametersAreNotRequired/main.bicep" + + # Assert + Assert-AreEqual Succeeded $deployment.ProvisioningState + } + finally + { + # Cleanup + Clean-DeploymentAtSubscription $deployment + } +} <# .SYNOPSIS diff --git a/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNullableParametersAreNotRequired.json b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNullableParametersAreNotRequired.json new file mode 100644 index 000000000000..b84b2898e633 --- /dev/null +++ b/src/Resources/Resources.Test/SessionRecords/Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests/TestNullableParametersAreNotRequired.json @@ -0,0 +1,279 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783/validate?api-version=2022-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTFiZmE2MzUtZjJiZi00MmYxLTg2YjUtODQ4YzY3NGZjMzIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RlcGxveW1lbnRzL3BzNTc4My92YWxpZGF0ZT9hcGktdmVyc2lvbj0yMDIyLTA5LTAx", + "RequestMethod": "POST", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e788f7d-3611-4bb8-a297-5f7122a6669d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/6.0.1523.11507", + "OSName/MacOs", + "OSVersion/Darwin.23.1.0.Darwin.Kernel.Version.23.1.0.Mon.Oct.9.21.27.24.PDT.2023.root.xnu.10002.41.9.6RELEASE.ARM64.T6000", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/6.12.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1733" + ] + }, + "RequestBody": "{\n \"location\": \"West US 2\",\n \"properties\": {\n \"template\": {\n \"$schema\": \"https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#\",\n \"languageVersion\": \"2.0\",\n \"contentVersion\": \"1.0.0.0\",\n \"metadata\": {\n \"_generator\": {\n \"name\": \"bicep\",\n \"version\": \"0.22.6.54827\",\n \"templateHash\": \"10503842062982214065\"\n }\n },\n \"definitions\": {\n \"customType\": {\n \"type\": \"object\",\n \"properties\": {\n \"age\": {\n \"type\": \"int\"\n }\n }\n },\n \"nullableCustomType\": {\n \"type\": \"object\",\n \"properties\": {\n \"age\": {\n \"type\": \"int\"\n }\n },\n \"nullable\": true\n },\n \"customTypeWithRequired\": {\n \"$ref\": \"#/definitions/customType\",\n \"nullable\": false\n }\n },\n \"parameters\": {\n \"yourName\": {\n \"type\": \"string\",\n \"nullable\": true\n },\n \"optionalCustomType\": {\n \"$ref\": \"#/definitions/customType\",\n \"nullable\": true\n },\n \"requiredNullableCustomType\": {\n \"$ref\": \"#/definitions/nullableCustomType\"\n },\n \"optionalRequiredCustomType\": {\n \"$ref\": \"#/definitions/customTypeWithRequired\",\n \"nullable\": true\n }\n },\n \"resources\": {},\n \"outputs\": {\n \"greeting\": {\n \"type\": \"string\",\n \"value\": \"[if(not(empty(parameters('yourName'))), format('Hello, {0}. Nice to meet you!', parameters('yourName')), 'Hey, nice to meet you!')]\"\n }\n }\n },\n \"parameters\": {},\n \"mode\": \"Incremental\"\n }\n}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "87c752eb-1059-40a3-905d-1d57692794b5" + ], + "x-ms-correlation-request-id": [ + "87c752eb-1059-40a3-905d-1d57692794b5" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20231207T152239Z:87c752eb-1059-40a3-905d-1d57692794b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 07 Dec 2023 15:22:38 GMT" + ], + "Content-Length": [ + "687" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Retry-After": [ + "0" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783\",\n \"name\": \"ps5783\",\n \"type\": \"Microsoft.Resources/deployments\",\n \"location\": \"westus2\",\n \"properties\": {\n \"templateHash\": \"10503842062982214065\",\n \"parameters\": {\n \"yourName\": {\n \"type\": \"String\",\n \"value\": null\n },\n \"optionalCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n },\n \"requiredNullableCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n },\n \"optionalRequiredCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n }\n },\n \"mode\": \"Incremental\",\n \"provisioningState\": \"Succeeded\",\n \"timestamp\": \"0001-01-01T00:00:00Z\",\n \"duration\": \"PT0S\",\n \"correlationId\": \"87c752eb-1059-40a3-905d-1d57692794b5\",\n \"providers\": [],\n \"dependencies\": [],\n \"validatedResources\": []\n }\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783?api-version=2022-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTFiZmE2MzUtZjJiZi00MmYxLTg2YjUtODQ4YzY3NGZjMzIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RlcGxveW1lbnRzL3BzNTc4Mz9hcGktdmVyc2lvbj0yMDIyLTA5LTAx", + "RequestMethod": "PUT", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e788f7d-3611-4bb8-a297-5f7122a6669d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/6.0.1523.11507", + "OSName/MacOs", + "OSVersion/Darwin.23.1.0.Darwin.Kernel.Version.23.1.0.Mon.Oct.9.21.27.24.PDT.2023.root.xnu.10002.41.9.6RELEASE.ARM64.T6000", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/6.12.1" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1733" + ] + }, + "RequestBody": "{\n \"location\": \"West US 2\",\n \"properties\": {\n \"template\": {\n \"$schema\": \"https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#\",\n \"languageVersion\": \"2.0\",\n \"contentVersion\": \"1.0.0.0\",\n \"metadata\": {\n \"_generator\": {\n \"name\": \"bicep\",\n \"version\": \"0.22.6.54827\",\n \"templateHash\": \"10503842062982214065\"\n }\n },\n \"definitions\": {\n \"customType\": {\n \"type\": \"object\",\n \"properties\": {\n \"age\": {\n \"type\": \"int\"\n }\n }\n },\n \"nullableCustomType\": {\n \"type\": \"object\",\n \"properties\": {\n \"age\": {\n \"type\": \"int\"\n }\n },\n \"nullable\": true\n },\n \"customTypeWithRequired\": {\n \"$ref\": \"#/definitions/customType\",\n \"nullable\": false\n }\n },\n \"parameters\": {\n \"yourName\": {\n \"type\": \"string\",\n \"nullable\": true\n },\n \"optionalCustomType\": {\n \"$ref\": \"#/definitions/customType\",\n \"nullable\": true\n },\n \"requiredNullableCustomType\": {\n \"$ref\": \"#/definitions/nullableCustomType\"\n },\n \"optionalRequiredCustomType\": {\n \"$ref\": \"#/definitions/customTypeWithRequired\",\n \"nullable\": true\n }\n },\n \"resources\": {},\n \"outputs\": {\n \"greeting\": {\n \"type\": \"string\",\n \"value\": \"[if(not(empty(parameters('yourName'))), format('Hello, {0}. Nice to meet you!', parameters('yourName')), 'Hey, nice to meet you!')]\"\n }\n }\n },\n \"parameters\": {},\n \"mode\": \"Incremental\"\n }\n}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783/operationStatuses/08584996443257678228?api-version=2022-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "dcfcaf74-0b07-473d-9813-bbd4d6e385d3" + ], + "x-ms-correlation-request-id": [ + "dcfcaf74-0b07-473d-9813-bbd4d6e385d3" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20231207T152241Z:dcfcaf74-0b07-473d-9813-bbd4d6e385d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 07 Dec 2023 15:22:40 GMT" + ], + "Content-Length": [ + "678" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Retry-After": [ + "0" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783\",\n \"name\": \"ps5783\",\n \"type\": \"Microsoft.Resources/deployments\",\n \"location\": \"westus2\",\n \"properties\": {\n \"templateHash\": \"10503842062982214065\",\n \"parameters\": {\n \"yourName\": {\n \"type\": \"String\",\n \"value\": null\n },\n \"optionalCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n },\n \"requiredNullableCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n },\n \"optionalRequiredCustomType\": {\n \"type\": \"Object\",\n \"value\": null\n }\n },\n \"mode\": \"Incremental\",\n \"provisioningState\": \"Accepted\",\n \"timestamp\": \"2023-12-07T15:22:40.8689087Z\",\n \"duration\": \"PT0.0001992S\",\n \"correlationId\": \"dcfcaf74-0b07-473d-9813-bbd4d6e385d3\",\n \"providers\": [],\n \"dependencies\": []\n }\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783/operations?api-version=2022-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTFiZmE2MzUtZjJiZi00MmYxLTg2YjUtODQ4YzY3NGZjMzIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RlcGxveW1lbnRzL3BzNTc4My9vcGVyYXRpb25zP2FwaS12ZXJzaW9uPTIwMjItMDktMDE=", + "RequestMethod": "GET", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e788f7d-3611-4bb8-a297-5f7122a6669d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/6.0.1523.11507", + "OSName/MacOs", + "OSVersion/Darwin.23.1.0.Darwin.Kernel.Version.23.1.0.Mon.Oct.9.21.27.24.PDT.2023.root.xnu.10002.41.9.6RELEASE.ARM64.T6000", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/6.12.1" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "00693073-a448-467b-a8a5-b570fb406f62" + ], + "x-ms-correlation-request-id": [ + "00693073-a448-467b-a8a5-b570fb406f62" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20231207T152241Z:00693073-a448-467b-a8a5-b570fb406f62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 07 Dec 2023 15:22:40 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "427" + ], + "Retry-After": [ + "0" + ] + }, + "ResponseBody": "{\n \"value\": [\n {\n \"id\": \"/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783/operations/08584996443257678228\",\n \"operationId\": \"08584996443257678228\",\n \"properties\": {\n \"provisioningOperation\": \"EvaluateDeploymentOutput\",\n \"provisioningState\": \"Succeeded\",\n \"timestamp\": \"2023-12-07T15:22:41.2571819Z\",\n \"duration\": \"PT0.0879489S\",\n \"trackingId\": \"70a0ef5d-a190-4a79-82a9-8a8f70974781\",\n \"statusCode\": \"OK\"\n }\n }\n ]\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783?api-version=2022-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYTFiZmE2MzUtZjJiZi00MmYxLTg2YjUtODQ4YzY3NGZjMzIxL3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RlcGxveW1lbnRzL3BzNTc4Mz9hcGktdmVyc2lvbj0yMDIyLTA5LTAx", + "RequestMethod": "GET", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e788f7d-3611-4bb8-a297-5f7122a6669d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/6.0.1523.11507", + "OSName/MacOs", + "OSVersion/Darwin.23.1.0.Darwin.Kernel.Version.23.1.0.Mon.Oct.9.21.27.24.PDT.2023.root.xnu.10002.41.9.6RELEASE.ARM64.T6000", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/6.12.1" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "64092fed-ada4-493c-a622-04329b6d15aa" + ], + "x-ms-correlation-request-id": [ + "64092fed-ada4-493c-a622-04329b6d15aa" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20231207T152241Z:64092fed-ada4-493c-a622-04329b6d15aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 07 Dec 2023 15:22:40 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "722" + ], + "Retry-After": [ + "0" + ] + }, + "ResponseBody": "{\n \"id\": \"/subscriptions/a1bfa635-f2bf-42f1-86b5-848c674fc321/providers/Microsoft.Resources/deployments/ps5783\",\n \"name\": \"ps5783\",\n \"type\": \"Microsoft.Resources/deployments\",\n \"location\": \"westus2\",\n \"properties\": {\n \"templateHash\": \"10503842062982214065\",\n \"parameters\": {\n \"yourName\": {\n \"type\": \"String\"\n },\n \"optionalCustomType\": {\n \"type\": \"Object\"\n },\n \"requiredNullableCustomType\": {\n \"type\": \"Object\"\n },\n \"optionalRequiredCustomType\": {\n \"type\": \"Object\"\n }\n },\n \"mode\": \"Incremental\",\n \"provisioningState\": \"Succeeded\",\n \"timestamp\": \"2023-12-07T15:22:41.2747924Z\",\n \"duration\": \"PT0.4060829S\",\n \"correlationId\": \"dcfcaf74-0b07-473d-9813-bbd4d6e385d3\",\n \"providers\": [],\n \"dependencies\": [],\n \"outputs\": {\n \"greeting\": {\n \"type\": \"String\",\n \"value\": \"Hey, nice to meet you!\"\n }\n },\n \"outputResources\": []\n }\n}", + "StatusCode": 200 + } + ], + "Names": { + "Test-NullableParametersAreNotRequired": [ + "ps5783" + ] + }, + "Variables": { + "SubscriptionId": "a1bfa635-f2bf-42f1-86b5-848c674fc321" + } +} \ No newline at end of file diff --git a/src/Resources/Resources/ChangeLog.md b/src/Resources/Resources/ChangeLog.md index cfccd444374e..5dcfe0fd4893 100644 --- a/src/Resources/Resources/ChangeLog.md +++ b/src/Resources/Resources/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Supported nullable Bicep parameters in Deployment cmdlets ## Version 6.12.1 * Used utf8 encoding for reading stdout & stderr when invoking Bicep. [#23246] diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Approve-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/help/Approve-AzServiceBusPrivateEndpointConnection.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Approve-AzServiceBusPrivateEndpointConnection.md rename to src/ServiceBus/ServiceBus.Autorest/help/Approve-AzServiceBusPrivateEndpointConnection.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md b/src/ServiceBus/ServiceBus.Autorest/help/Az.ServiceBus.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Az.ServiceBus.md rename to src/ServiceBus/ServiceBus.Autorest/help/Az.ServiceBus.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Complete-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/help/Complete-AzServiceBusMigration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Complete-AzServiceBusMigration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Complete-AzServiceBusMigration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Deny-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/help/Deny-AzServiceBusPrivateEndpointConnection.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Deny-AzServiceBusPrivateEndpointConnection.md rename to src/ServiceBus/ServiceBus.Autorest/help/Deny-AzServiceBusPrivateEndpointConnection.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusAuthorizationRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusAuthorizationRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusAuthorizationRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusGeoDRConfiguration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusGeoDRConfiguration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusGeoDRConfiguration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusKey.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusKey.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusKey.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusMigration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusMigration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusMigration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNamespace.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusNamespace.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNamespace.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusNamespace.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusNetworkRuleSet.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusNetworkRuleSet.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusNetworkRuleSet.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusPrivateEndpointConnection.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateEndpointConnection.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusPrivateEndpointConnection.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateLink.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusPrivateLink.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusPrivateLink.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusPrivateLink.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusQueue.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusQueue.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusQueue.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusSubscription.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusSubscription.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusSubscription.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusTopic.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Get-AzServiceBusTopic.md rename to src/ServiceBus/ServiceBus.Autorest/help/Get-AzServiceBusTopic.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusAuthorizationRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusAuthorizationRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusAuthorizationRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusGeoDRConfiguration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusGeoDRConfiguration.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusGeoDRConfiguration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusIPRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusIPRuleConfig.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusIPRuleConfig.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusIPRuleConfig.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKey.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusKey.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKey.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusKey.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKeyVaultPropertiesObject.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusKeyVaultPropertiesObject.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusKeyVaultPropertiesObject.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusKeyVaultPropertiesObject.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusNamespace.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusNamespace.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusNamespace.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusNamespace.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusQueue.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusQueue.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusQueue.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusSubscription.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusSubscription.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusSubscription.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusTopic.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusTopic.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusTopic.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusVirtualNetworkRuleConfig.md b/src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusVirtualNetworkRuleConfig.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/New-AzServiceBusVirtualNetworkRuleConfig.md rename to src/ServiceBus/ServiceBus.Autorest/help/New-AzServiceBusVirtualNetworkRuleConfig.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/README.md b/src/ServiceBus/ServiceBus.Autorest/help/README.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/README.md rename to src/ServiceBus/ServiceBus.Autorest/help/README.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusAuthorizationRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusAuthorizationRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusAuthorizationRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusGeoDRConfiguration.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusGeoDRConfiguration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusGeoDRConfiguration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusGeoDRConfiguration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusMigration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusMigration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusMigration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusNamespace.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusNamespace.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusNamespace.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusNamespace.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusPrivateEndpointConnection.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusPrivateEndpointConnection.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusPrivateEndpointConnection.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusPrivateEndpointConnection.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusQueue.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusQueue.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusQueue.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusSubscription.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusSubscription.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusSubscription.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusTopic.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Remove-AzServiceBusTopic.md rename to src/ServiceBus/ServiceBus.Autorest/help/Remove-AzServiceBusTopic.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusAuthorizationRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusAuthorizationRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusAuthorizationRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusAuthorizationRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationBreakPair.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusGeoDRConfigurationBreakPair.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationBreakPair.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusGeoDRConfigurationBreakPair.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationFailOver.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusGeoDRConfigurationFailOver.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusGeoDRConfigurationFailOver.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusGeoDRConfigurationFailOver.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNamespace.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusNamespace.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNamespace.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusNamespace.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNetworkRuleSet.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusNetworkRuleSet.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusNetworkRuleSet.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusNetworkRuleSet.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusQueue.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusQueue.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusQueue.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusQueue.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusRule.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusRule.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusRule.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusRule.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusSubscription.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusSubscription.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusSubscription.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusSubscription.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusTopic.md b/src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusTopic.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Set-AzServiceBusTopic.md rename to src/ServiceBus/ServiceBus.Autorest/help/Set-AzServiceBusTopic.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/help/Start-AzServiceBusMigration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Start-AzServiceBusMigration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Start-AzServiceBusMigration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Stop-AzServiceBusMigration.md b/src/ServiceBus/ServiceBus.Autorest/help/Stop-AzServiceBusMigration.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Stop-AzServiceBusMigration.md rename to src/ServiceBus/ServiceBus.Autorest/help/Stop-AzServiceBusMigration.md diff --git a/src/ServiceBus/ServiceBus.Autorest/docs/Test-AzServiceBusName.md b/src/ServiceBus/ServiceBus.Autorest/help/Test-AzServiceBusName.md similarity index 100% rename from src/ServiceBus/ServiceBus.Autorest/docs/Test-AzServiceBusName.md rename to src/ServiceBus/ServiceBus.Autorest/help/Test-AzServiceBusName.md diff --git a/src/SignalR/SignalR.Autorest/docs/Az.SignalR.md b/src/SignalR/SignalR.Autorest/help/Az.SignalR.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Az.SignalR.md rename to src/SignalR/SignalR.Autorest/help/Az.SignalR.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSub.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSub.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSub.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubCustomCertificate.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubCustomCertificate.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubCustomCertificate.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubCustomCertificate.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubCustomDomain.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubCustomDomain.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubCustomDomain.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubCustomDomain.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubHub.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubHub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubHub.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubHub.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubKey.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubKey.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubKey.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubKey.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubSku.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubSku.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubSku.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubSku.md diff --git a/src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubUsage.md b/src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubUsage.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Get-AzWebPubSubUsage.md rename to src/SignalR/SignalR.Autorest/help/Get-AzWebPubSubUsage.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSub.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSub.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSub.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubCustomCertificate.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubCustomCertificate.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubCustomCertificate.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubCustomCertificate.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubCustomDomain.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubCustomDomain.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubCustomDomain.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubCustomDomain.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubEventHubEndpointObject.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubEventHubEndpointObject.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubEventHubEndpointObject.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubEventHubEndpointObject.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubEventNameFilterObject.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubEventNameFilterObject.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubEventNameFilterObject.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubEventNameFilterObject.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubHub.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubHub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubHub.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubHub.md diff --git a/src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubKey.md b/src/SignalR/SignalR.Autorest/help/New-AzWebPubSubKey.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/New-AzWebPubSubKey.md rename to src/SignalR/SignalR.Autorest/help/New-AzWebPubSubKey.md diff --git a/src/SignalR/SignalR.Autorest/docs/README.md b/src/SignalR/SignalR.Autorest/help/README.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/README.md rename to src/SignalR/SignalR.Autorest/help/README.md diff --git a/src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSub.md b/src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSub.md rename to src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSub.md diff --git a/src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubCustomCertificate.md b/src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubCustomCertificate.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubCustomCertificate.md rename to src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubCustomCertificate.md diff --git a/src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubCustomDomain.md b/src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubCustomDomain.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubCustomDomain.md rename to src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubCustomDomain.md diff --git a/src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubHub.md b/src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubHub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Remove-AzWebPubSubHub.md rename to src/SignalR/SignalR.Autorest/help/Remove-AzWebPubSubHub.md diff --git a/src/SignalR/SignalR.Autorest/docs/Restart-AzWebPubSub.md b/src/SignalR/SignalR.Autorest/help/Restart-AzWebPubSub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Restart-AzWebPubSub.md rename to src/SignalR/SignalR.Autorest/help/Restart-AzWebPubSub.md diff --git a/src/SignalR/SignalR.Autorest/docs/Test-AzWebPubSubNameAvailability.md b/src/SignalR/SignalR.Autorest/help/Test-AzWebPubSubNameAvailability.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Test-AzWebPubSubNameAvailability.md rename to src/SignalR/SignalR.Autorest/help/Test-AzWebPubSubNameAvailability.md diff --git a/src/SignalR/SignalR.Autorest/docs/Update-AzWebPubSub.md b/src/SignalR/SignalR.Autorest/help/Update-AzWebPubSub.md similarity index 100% rename from src/SignalR/SignalR.Autorest/docs/Update-AzWebPubSub.md rename to src/SignalR/SignalR.Autorest/help/Update-AzWebPubSub.md diff --git a/src/Sql/Sql/help/Set-AzSqlInstanceDatabase.md b/src/Sql/Sql/help/Set-AzSqlInstanceDatabase.md index 56d4cbbfebb5..b0640de543ed 100644 --- a/src/Sql/Sql/help/Set-AzSqlInstanceDatabase.md +++ b/src/Sql/Sql/help/Set-AzSqlInstanceDatabase.md @@ -46,7 +46,7 @@ Set-AzSqlInstanceDatabase [-Tag ] [-ResourceId] [-AsJob] ### Example 1 ```powershell -PS C:\> Set-AzSqlInstanceDatabase -Name "name1" -InstanceName "instance1" -ResourceGroupName "rg1" -Tags @{tag1="value1"} +Set-AzSqlInstanceDatabase -Name "name1" -InstanceName "instance1" -ResourceGroupName "rg1" -Tags @{tag1="value1"} Location : westcentralus Tags : {[tag1, value1]} diff --git a/src/StackHCI/StackHCI.Autorest/docs/Add-AzStackHCIVMAttestation.md b/src/StackHCI/StackHCI.Autorest/help/Add-AzStackHCIVMAttestation.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Add-AzStackHCIVMAttestation.md rename to src/StackHCI/StackHCI.Autorest/help/Add-AzStackHCIVMAttestation.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Az.StackHCI.md b/src/StackHCI/StackHCI.Autorest/help/Az.StackHCI.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Az.StackHCI.md rename to src/StackHCI/StackHCI.Autorest/help/Az.StackHCI.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Disable-AzStackHCIAttestation.md b/src/StackHCI/StackHCI.Autorest/help/Disable-AzStackHCIAttestation.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Disable-AzStackHCIAttestation.md rename to src/StackHCI/StackHCI.Autorest/help/Disable-AzStackHCIAttestation.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Disable-AzStackHCIRemoteSupport.md b/src/StackHCI/StackHCI.Autorest/help/Disable-AzStackHCIRemoteSupport.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Disable-AzStackHCIRemoteSupport.md rename to src/StackHCI/StackHCI.Autorest/help/Disable-AzStackHCIRemoteSupport.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Enable-AzStackHCIAttestation.md b/src/StackHCI/StackHCI.Autorest/help/Enable-AzStackHCIAttestation.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Enable-AzStackHCIAttestation.md rename to src/StackHCI/StackHCI.Autorest/help/Enable-AzStackHCIAttestation.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Enable-AzStackHCIRemoteSupport.md b/src/StackHCI/StackHCI.Autorest/help/Enable-AzStackHCIRemoteSupport.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Enable-AzStackHCIRemoteSupport.md rename to src/StackHCI/StackHCI.Autorest/help/Enable-AzStackHCIRemoteSupport.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCILogsDirectory.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCILogsDirectory.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCILogsDirectory.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCILogsDirectory.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIRemoteSupportAccess.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIRemoteSupportAccess.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIRemoteSupportAccess.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIRemoteSupportAccess.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIRemoteSupportSessionHistory.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIRemoteSupportSessionHistory.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIRemoteSupportSessionHistory.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIRemoteSupportSessionHistory.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIVMAttestation.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIVMAttestation.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHCIVMAttestation.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHCIVMAttestation.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciArcSetting.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciArcSetting.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciArcSetting.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciArcSetting.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciCluster.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciCluster.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciCluster.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciCluster.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciExtension.md b/src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciExtension.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Get-AzStackHciExtension.md rename to src/StackHCI/StackHCI.Autorest/help/Get-AzStackHciExtension.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Install-AzStackHCIRemoteSupport.md b/src/StackHCI/StackHCI.Autorest/help/Install-AzStackHCIRemoteSupport.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Install-AzStackHCIRemoteSupport.md rename to src/StackHCI/StackHCI.Autorest/help/Install-AzStackHCIRemoteSupport.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Invoke-AzStackHciConsentAndInstallDefaultExtension.md b/src/StackHCI/StackHCI.Autorest/help/Invoke-AzStackHciConsentAndInstallDefaultExtension.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Invoke-AzStackHciConsentAndInstallDefaultExtension.md rename to src/StackHCI/StackHCI.Autorest/help/Invoke-AzStackHciConsentAndInstallDefaultExtension.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit.md b/src/StackHCI/StackHCI.Autorest/help/Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit.md rename to src/StackHCI/StackHCI.Autorest/help/Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciArcSetting.md b/src/StackHCI/StackHCI.Autorest/help/New-AzStackHciArcSetting.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciArcSetting.md rename to src/StackHCI/StackHCI.Autorest/help/New-AzStackHciArcSetting.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciCluster.md b/src/StackHCI/StackHCI.Autorest/help/New-AzStackHciCluster.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciCluster.md rename to src/StackHCI/StackHCI.Autorest/help/New-AzStackHciCluster.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciExtension.md b/src/StackHCI/StackHCI.Autorest/help/New-AzStackHciExtension.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/New-AzStackHciExtension.md rename to src/StackHCI/StackHCI.Autorest/help/New-AzStackHciExtension.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/README.md b/src/StackHCI/StackHCI.Autorest/help/README.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/README.md rename to src/StackHCI/StackHCI.Autorest/help/README.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Register-AzStackHCI.md b/src/StackHCI/StackHCI.Autorest/help/Register-AzStackHCI.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Register-AzStackHCI.md rename to src/StackHCI/StackHCI.Autorest/help/Register-AzStackHCI.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHCIRemoteSupport.md b/src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHCIRemoteSupport.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHCIRemoteSupport.md rename to src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHCIRemoteSupport.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHCIVMAttestation.md b/src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHCIVMAttestation.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHCIVMAttestation.md rename to src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHCIVMAttestation.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciArcSetting.md b/src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciArcSetting.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciArcSetting.md rename to src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciArcSetting.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciCluster.md b/src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciCluster.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciCluster.md rename to src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciCluster.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciExtension.md b/src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciExtension.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Remove-AzStackHciExtension.md rename to src/StackHCI/StackHCI.Autorest/help/Remove-AzStackHciExtension.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Set-AzStackHCI.md b/src/StackHCI/StackHCI.Autorest/help/Set-AzStackHCI.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Set-AzStackHCI.md rename to src/StackHCI/StackHCI.Autorest/help/Set-AzStackHCI.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Unregister-AzStackHCI.md b/src/StackHCI/StackHCI.Autorest/help/Unregister-AzStackHCI.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Unregister-AzStackHCI.md rename to src/StackHCI/StackHCI.Autorest/help/Unregister-AzStackHCI.md diff --git a/src/StackHCI/StackHCI.Autorest/docs/Update-AzStackHciCluster.md b/src/StackHCI/StackHCI.Autorest/help/Update-AzStackHciCluster.md similarity index 100% rename from src/StackHCI/StackHCI.Autorest/docs/Update-AzStackHciCluster.md rename to src/StackHCI/StackHCI.Autorest/help/Update-AzStackHciCluster.md diff --git a/src/Storage/Storage.Autorest/docs/Az.Storage.md b/src/Storage/Storage.Autorest/help/Az.Storage.md similarity index 100% rename from src/Storage/Storage.Autorest/docs/Az.Storage.md rename to src/Storage/Storage.Autorest/help/Az.Storage.md diff --git a/src/Storage/Storage.Autorest/docs/Get-AzStorageAccountMigration.md b/src/Storage/Storage.Autorest/help/Get-AzStorageAccountMigration.md similarity index 100% rename from src/Storage/Storage.Autorest/docs/Get-AzStorageAccountMigration.md rename to src/Storage/Storage.Autorest/help/Get-AzStorageAccountMigration.md diff --git a/src/Storage/Storage.Autorest/docs/README.md b/src/Storage/Storage.Autorest/help/README.md similarity index 100% rename from src/Storage/Storage.Autorest/docs/README.md rename to src/Storage/Storage.Autorest/help/README.md diff --git a/src/Storage/Storage.Autorest/docs/Start-AzStorageAccountMigration.md b/src/Storage/Storage.Autorest/help/Start-AzStorageAccountMigration.md similarity index 100% rename from src/Storage/Storage.Autorest/docs/Start-AzStorageAccountMigration.md rename to src/Storage/Storage.Autorest/help/Start-AzStorageAccountMigration.md diff --git a/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md b/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md index 14c7bb8e6613..ba9b824b984e 100644 --- a/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md +++ b/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md @@ -56,12 +56,12 @@ The **Add-AzStorageAccountManagementPolicyAction** cmdlet adds an action to the ``` -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -DaysAfterCreationGreaterThan 100 -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -DaysAfterLastTierChangeGreaterThan 40 -InputObject $action -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -DaysAfterLastAccessTimeGreaterThan 30 -EnableAutoTierToHotFromCool -InputObject $action -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToHot -DaysAfterCreationGreaterThan 100 -InputObject $action -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action -PS C:\>$action +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -DaysAfterCreationGreaterThan 100 +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -DaysAfterLastTierChangeGreaterThan 40 -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -DaysAfterLastAccessTimeGreaterThan 30 -EnableAutoTierToHotFromCool -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToHot -DaysAfterCreationGreaterThan 100 -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action +$action BaseBlob.TierToCool.DaysAfterModificationGreaterThan : BaseBlob.TierToCool.DaysAfterLastAccessTimeGreaterThan : 30 @@ -93,9 +93,9 @@ Version.Delete.DaysAfterCreationGreaterThan : Version.TierToCold.DaysAfterCreationGreaterThan : Version.TierToHot.DaysAfterCreationGreaterThan : -PS C:\>$filter = New-AzStorageAccountManagementPolicyFilter -PS C:\>$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -PS C:\>$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule +$filter = New-AzStorageAccountManagementPolicyFilter +$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter +$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule ``` The first command create a ManagementPolicy Action Group object, the following 3 commands add 3 actions to the object. Then add it to a management policy rule and set to a Storage account. @@ -105,14 +105,14 @@ The first command create a ManagementPolicy Action Group object, the following 3 ``` -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 40 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToArchive -daysAfterCreationGreaterThan 50 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToCool -daysAfterCreationGreaterThan 60 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction Delete -daysAfterCreationGreaterThan 70 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToArchive -daysAfterCreationGreaterThan 80 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCool -daysAfterCreationGreaterThan 90 -PS C:\> $action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCold -daysAfterCreationGreaterThan 100 -PS C:\> $action +$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 40 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToArchive -daysAfterCreationGreaterThan 50 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -SnapshotAction TierToCool -daysAfterCreationGreaterThan 60 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction Delete -daysAfterCreationGreaterThan 70 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToArchive -daysAfterCreationGreaterThan 80 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCool -daysAfterCreationGreaterThan 90 +$action = Add-AzStorageAccountManagementPolicyAction -InputObject $action -BlobVersionAction TierToCold -daysAfterCreationGreaterThan 100 +$action BaseBlob.TierToCool.DaysAfterModificationGreaterThan : BaseBlob.TierToCool.DaysAfterLastAccessTimeGreaterThan : @@ -144,9 +144,9 @@ Version.Delete.DaysAfterCreationGreaterThan : 70 Version.TierToCold.DaysAfterCreationGreaterThan : 100 Version.TierToHot.DaysAfterCreationGreaterThan : -PS C:\>$filter = New-AzStorageAccountManagementPolicyFilter -PS C:\>$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -PS C:\>$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule +$filter = New-AzStorageAccountManagementPolicyFilter +$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter +$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule ``` The first command create a ManagementPolicy Action Group object, the following 5 commands add 5 actions on snapshot and blob version to the object. Then add it to a management policy rule and set to a Storage account. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md b/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md index d2b61a68bdf9..cf636671a51e 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md @@ -41,9 +41,9 @@ The **Enable-AzStorageBlobRestorePolicy** cmdlet enables Blob Restore Policy for ```powershell -PS C:\> Enable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RetentionDays 5 +Enable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RetentionDays 5 -PS C:\> Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -EnableChangeFeed $true +Update-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -EnableChangeFeed $true StorageAccountName : mystorageaccount ResourceGroupName : myresourcegoup @@ -56,9 +56,9 @@ RestorePolicy.MinRestoreTime : ChangeFeed : True IsVersioningEnabled : True -PS C:\> Enable-AzStorageBlobRestorePolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RestoreDays 4 +Enable-AzStorageBlobRestorePolicy -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -RestoreDays 4 -PS C:\> Get-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" +Get-AzStorageBlobServiceProperty -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" StorageAccountName : mystorageaccount ResourceGroupName : myresourcegoup diff --git a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md index 384d02c3abc8..fce0d9b94958 100644 --- a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md @@ -28,8 +28,8 @@ This cmdlet only works if Hierarchical Namespace is enabled for the Storage acco ``` -PS C:\> $dir1 = Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/" -PS C:\> $dir1 +$dir1 = Get-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/" +$dir1 FileSystem Name: filesystem1 diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md index b3f5f0f8647e..9197d7b22767 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md @@ -36,14 +36,14 @@ This command gets the keys for the specified Azure Storage account. ``` This command gets a specific key for a Storage account. -PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")| Where-Object {$_.KeyName -eq "key1"} +(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")| Where-Object {$_.KeyName -eq "key1"} KeyName Value Permissions CreationTime ------- ----- ----------- ------------ key1 Full This command gets a specific key value for a Storage account. -PS C:\>(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")[0].Value +(Get-AzStorageAccountKey -ResourceGroupName "RG01" -Name "mystorageaccount")[0].Value ``` diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlob.md b/src/Storage/Storage.Management/help/Get-AzStorageBlob.md index 55bd8159338b..de5a803ccfcb 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlob.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlob.md @@ -161,9 +161,9 @@ This command gets a single blobs snapshot with SnapshotTime. ``` -PS C:\> $blobs = Get-AzStorageBlob -Container "containername" -IncludeTag +$blobs = Get-AzStorageBlob -Container "containername" -IncludeTag -PS C:\> $blobs +$blobs AccountName: storageaccountname, ContainerName: containername @@ -173,7 +173,7 @@ testblob BlockBlob 2097152 application/octet-stream 20 testblob2 BlockBlob 2097152 application/octet-stream 2020-07-23 09:35:04Z Hot False 2020-07-23T09:35:04.0856187Z * -PS C:\> $blobs[0].Tags +$blobs[0].Tags Name Value ---- ----- tag1 value1 diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md index ad32f488c4f2..14b89ef3c102 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md @@ -40,9 +40,9 @@ The **Get-AzStorageBlobInventoryPolicy** cmdlet gets blob inventory policy from ``` -PS C:\> $policy = Get-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" +$policy = Get-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -PS C:\> $policy +$policy StorageAccountName : mystorageaccount ResourceGroupName : myresourcegroup @@ -53,7 +53,7 @@ LastModifiedTime : 11/4/2020 9:18:30 AM Enabled : True Rules : {Test1, Test2} -PS C:\> $policy.Rules +$policy.Rules Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions BlobTypes PrefixMatch SchemaFields ---- ------- ----------- ---------- ------ -------- ---------------- ------------------- --------- ----------- ------------ diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md index 0f5678470b3c..c6528fc04d18 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md @@ -75,17 +75,17 @@ This command querys a blob succsssfully with input config as csv, and output con ```powershell -PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -SnapshotTime "2020-07-29T11:08:21.1097874Z" -Context $ctx +$blob = Get-AzStorageBlob -Container $containerName -Blob $blobName -SnapshotTime "2020-07-29T11:08:21.1097874Z" -Context $ctx -PS C:\> $inputconfig = New-AzStorageBlobQueryConfig -AsCsv -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\" -RecordSeparator "`n" -HasHeader +$inputconfig = New-AzStorageBlobQueryConfig -AsCsv -ColumnSeparator "," -QuotationCharacter """" -EscapeCharacter "\" -RecordSeparator "`n" -HasHeader -PS C:\> $outputconfig = New-AzStorageBlobQueryConfig -AsJson -RecordSeparator "`n" +$outputconfig = New-AzStorageBlobQueryConfig -AsJson -RecordSeparator "`n" -PS C:\> $queryString = "SELECT * FROM BlobStorage WHERE _1 LIKE '1%%'" +$queryString = "SELECT * FROM BlobStorage WHERE _1 LIKE '1%%'" -PS C:\> $result = $blob | Get-AzStorageBlobQueryResult -QueryString $queryString -ResultFile $localFilePath -InputTextConfiguration $inputconfig -OutputTextConfiguration $outputconfig +$result = $blob | Get-AzStorageBlobQueryResult -QueryString $queryString -ResultFile $localFilePath -InputTextConfiguration $inputconfig -OutputTextConfiguration $outputconfig -PS C:\> $result +$result BytesScanned FailureCount BlobQueryError ------------ ------------ -------------- @@ -93,7 +93,7 @@ BytesScanned FailureCount BlobQueryError -PS C:\> $result.BlobQueryError +$result.BlobQueryError Name Description IsFatal Position ---- ----------- ------- -------- diff --git a/src/Storage/Storage.Management/help/Get-AzStorageContainer.md b/src/Storage/Storage.Management/help/Get-AzStorageContainer.md index 96f1a9278a5b..f6c32d04883a 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageContainer.md @@ -53,9 +53,9 @@ This example uses the *Prefix* parameter to return a list of all containers with ``` -PS C:\> $containers = Get-AzStorageContainer -IncludeDeleted -Context $ctx +$containers = Get-AzStorageContainer -IncludeDeleted -Context $ctx -PS C:\> $containers +$containers Storage Account Name: storageaccountname @@ -64,7 +64,7 @@ Name PublicAccess LastModified IsDelet testcon Off 8/28/2020 10:18:13 AM +00:00 testcon2 9/4/2020 12:52:37 PM +00:00 True 01D67D248986B6DA -PS C:\> $c[1].BlobContainerProperties +$c[1].BlobContainerProperties LastModified : 9/4/2020 12:52:37 PM +00:00 LeaseStatus : Unlocked diff --git a/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md b/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md index f0799e3f558c..e1f0424125c6 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md @@ -51,7 +51,7 @@ This command gets a single encryption scope. ``` -PS C:\> Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" +Get-AzStorageEncryptionScope -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount diff --git a/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md b/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md index 8b0b02486c35..19d66f8568d0 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md @@ -34,9 +34,9 @@ The **Get-AzStorageLocalUser** cmdlet gets a specified local user or lists all l ``` -PS C:\> $localUser = Get-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 +$localUser = Get-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -PS C:\> $localUser +$localUser ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -44,7 +44,7 @@ Name Sid HomeDirectory HasSharedKe ---- --- ------------- ------------ --------- -------------- ---------------- testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1,...] -PS C:\> $localUser.PermissionScopes +$localUser.PermissionScopes Permissions Service ResourceName ----------- ------- ------------ diff --git a/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md index 0ce87b56cb47..0beaaa817a89 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md @@ -34,15 +34,15 @@ The **Get-AzStorageObjectReplicationPolicy** cmdlet gets or lists object replica ``` -PS C:\> $policy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId 56bfa11c-81ef-4f8d-b307-5e5386e16fba +$policy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId 56bfa11c-81ef-4f8d-b307-5e5386e16fba -PS C:\> $policy +$policy ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ----------------- ------------------ -------- ----------- ------------- ------------------ ----- myresourcegroup mydestaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysourceaccount mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] -PS C:\> $policy.Rules +$policy.Rules RuleId SourceContainer DestinationContainer Filters.PrefixMatch Filters.MinCreationTime ------ --------------- -------------------- ------------------- ----------------------- diff --git a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md index 1dd099571e15..55e4c84e83cb 100644 --- a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md +++ b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md @@ -39,15 +39,15 @@ Please understand the following impact to your storage account before you initia ``` -PS C:\>$account = Get-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -IncludeGeoReplicationStats -PS C:\>$account.GeoReplicationStats +$account = Get-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -IncludeGeoReplicationStats +$account.GeoReplicationStats Status LastSyncTime ------ ------------ Live 11/13/2018 2:44:22 AM -PS C:\>$job = Invoke-AzStorageAccountFailover -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Force -AsJob -PS C:\>$job | Wait-Job +$job = Invoke-AzStorageAccountFailover -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Force -AsJob +$job | Wait-Job ``` This command check the last sync time of a Storage account then invokes failover of it, the secondary cluster will become primary after failover. Since failover takes a long time, suggest to run it in the backend with -Asjob parameter, and then wait for the job complete. diff --git a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md index 1197859b9c4e..8338ca9e19d6 100644 --- a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md +++ b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md @@ -35,12 +35,12 @@ The **Invoke-AzStorageAccountHierarchicalNamespaceUpgrade** cmdlet can validate ``` -PS C:\> Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Validation +Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Validation True -PS C:\> $task = Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Upgrade -Force -AsJob +$task = Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -ResourceGroupName $rgname -Name $accountName -RequestType Upgrade -Force -AsJob -PS C:\> $task | Wait-Job +$task | Wait-Job ``` The first command validates if a stroage account can be upgrade to enable HierarchicalNamespace. diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md index 8c71b76f1490..8400cff99986 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md @@ -68,9 +68,9 @@ This command creates a Storage blob container with Storage account object and co ``` -PS C:\> $c = New-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "mystorageaccount" -Name testcontainer -DefaultEncryptionScope "testscope" -PreventEncryptionScopeOverride $true +$c = New-AzRmStorageContainer -ResourceGroupName "myResourceGroup" -AccountName "mystorageaccount" -Name testcontainer -DefaultEncryptionScope "testscope" -PreventEncryptionScopeOverride $true -PS C:\> $c +$c ResourceGroupName: myResourceGroup, StorageAccountName: mystorageaccount @@ -78,10 +78,10 @@ Name PublicAccess LastModified HasLegalHold HasImmutabilityPolicy ---- ------------ ------------ ------------ --------------------- testcontainer False False -PS C:\> $c.DefaultEncryptionScope +$c.DefaultEncryptionScope testscope -PS C:\> $c.DenyEncryptionScopeOverride +$c.DenyEncryptionScopeOverride True ``` @@ -93,12 +93,12 @@ Then show the related container properties. ``` -PS C:\> $container = New-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash AllSquash +$container = New-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash AllSquash -PS C:\> $container.EnableNfsV3AllSquash +$container.EnableNfsV3AllSquash True -PS C:\> $container.EnableNfsV3RootSquash +$container.EnableNfsV3RootSquash False ``` diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md index 0045bd19bfbd..e4c5ca3bca1e 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md @@ -66,7 +66,7 @@ This command creates a Storage file share with Storage account object and share ``` -PS C:\>$share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -AccessTier Hot +$share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -AccessTier Hot ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -82,7 +82,7 @@ This command creates a Storage file share with accesstier as Hot. ``` -PS C:\>$shareSnapshot = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -Snapshot +$shareSnapshot = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -Snapshot ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -98,9 +98,9 @@ This command creates a Storage file share snapshot of an existing base file shar ``` -PS C:\>$share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -EnabledProtocol NFS -RootSquash NoRootSquash +$share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -EnabledProtocol NFS -RootSquash NoRootSquash -PS C:\> $share +$share ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -108,7 +108,7 @@ Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ---- -------- ---------------- ---------- ------- ------- --------------- myshare NFS -PS C:\> $share.RootSquash +$share.RootSquash NoRootSquash ``` diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccount.md b/src/Storage/Storage.Management/help/New-AzStorageAccount.md index 5f5d39b344e5..a8ae27647230 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccount.md @@ -148,23 +148,23 @@ This command creates a Storage account withenable Files Active Directory Domain ```powershell -PS C:\>New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EncryptionKeyTypeForTable Account -EncryptionKeyTypeForQueue Account -RequireInfrastructureEncryption +New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -EncryptionKeyTypeForTable Account -EncryptionKeyTypeForQueue Account -RequireInfrastructureEncryption -PS C:\>$account = Get-AzStorageAccount -ResourceGroupName $rgname -Name $accountName +$account = Get-AzStorageAccount -ResourceGroupName $rgname -Name $accountName -PS C:\>$account.Encryption.Services.Queue +$account.Encryption.Services.Queue Enabled LastEnabledTime KeyType ------- --------------- ------- True 1/9/2020 6:09:11 AM Account -PS C:\>$account.Encryption.Services.Table +$account.Encryption.Services.Table Enabled LastEnabledTime KeyType ------- --------------- ------- True 1/9/2020 6:09:11 AM Account -PS C:\> $account.Encryption.RequireInfrastructureEncryption +$account.Encryption.RequireInfrastructureEncryption True ``` @@ -176,15 +176,15 @@ Then get the Storage account properties, and view the encryption keytype of Queu ``` -PS C:\> $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $false +$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $false -PS C:\> $account.MinimumTlsVersion +$account.MinimumTlsVersion TLS1_1 -PS C:\> $account.AllowBlobPublicAccess +$account.AllowBlobPublicAccess False -PS C:\> $a.AllowSharedKeyAccess +$a.AllowSharedKeyAccess False ``` @@ -195,15 +195,15 @@ The command create account with MinimumTlsVersion, AllowBlobPublicAccess, and di ```powershell -PS C:\>$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -PublishMicrosoftEndpoint $true -PublishInternetEndpoint $true -RoutingChoice MicrosoftRouting +$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -PublishMicrosoftEndpoint $true -PublishInternetEndpoint $true -RoutingChoice MicrosoftRouting -PS C:\>$account.RoutingPreference +$account.RoutingPreference RoutingChoice PublishMicrosoftEndpoints PublishInternetEndpoints ------------- ------------------------- ------------------------ MicrosoftRouting True True -PS C:\>$account.PrimaryEndpoints +$account.PrimaryEndpoints Blob : https://mystorageaccount.blob.core.windows.net/ Queue : https://mystorageaccount.queue.core.windows.net/ @@ -224,15 +224,15 @@ This command creates a Storage account with RoutingPreference setting: PublishMi ```powershell -PS C:\>$account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location westus -EdgeZone "microsoftlosangeles1" -AllowCrossTenantReplication $false +$account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location westus -EdgeZone "microsoftlosangeles1" -AllowCrossTenantReplication $false -PS C:\>$account.ExtendedLocation +$account.ExtendedLocation Name Type ---- ---- microsoftlosangeles1 EdgeZone -PS C:\> $account.AllowCrossTenantReplication +$account.AllowCrossTenantReplication False ``` @@ -243,12 +243,12 @@ This command creates a Storage account with EdgeZone as "microsoftlosangeles1" a ```powershell -PS C:\> $account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location eastus -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" +$account = New-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -SkuName Premium_LRS -Location eastus -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" -PS C:\> $account.KeyPolicy.KeyExpirationPeriodInDays +$account.KeyPolicy.KeyExpirationPeriodInDays 5 -PS C:\> $account.SasPolicy.SasExpirationPeriod +$account.SasPolicy.SasExpirationPeriod 1.12:05:06 ``` @@ -260,26 +260,26 @@ This command creates a Storage account with KeyExpirationPeriod and SasExpiratio ```powershell # Create KeyVault (no need if using exist keyvault) -PS C:\> $keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection -PS C:\> $key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' +$keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection +$key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' # create user assigned identity and grant access to keyvault (no need if using exist user assigned identity) -PS C:\> $userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName -PS C:\> Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation -PS C:\> $useridentityId= $userId.Id +$userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName +Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation +$useridentityId= $userId.Id # create Storage account with Keyvault encryption (access Keyvault with user assigned identity), then show properties -PS C:\> $account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` +$account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` -IdentityType SystemAssignedUserAssigned -UserAssignedIdentityId $useridentityId ` -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -PS C:\> $account.Encryption.EncryptionIdentity +$account.Encryption.EncryptionIdentity EncryptionUserAssignedIdentity ------------------------------ /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid -PS C:\> $account.Encryption.KeyVaultProperties +$account.Encryption.KeyVaultProperties KeyName : wrappingKey KeyVersion : @@ -323,12 +323,12 @@ The command creates account with disable PublicNetworkAccess of the account. ``` -PS C:\> $account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -EnableAccountLevelImmutability -ImmutabilityPeriod 1 -ImmutabilityPolicyState Unlocked +$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -SkuName Standard_LRS -Location centraluseuap -Kind StorageV2 -EnableAccountLevelImmutability -ImmutabilityPeriod 1 -ImmutabilityPolicyState Unlocked -PS C:\> $account.ImmutableStorageWithVersioning.Enabled +$account.ImmutableStorageWithVersioning.Enabled True -PS C:\> $account.ImmutableStorageWithVersioning.ImmutabilityPolicy +$account.ImmutableStorageWithVersioning.ImmutabilityPolicy ImmutabilityPeriodSinceCreationInDays State ------------------------------------- ----- @@ -353,17 +353,17 @@ This command creates a Storage account with enable Azure Files Active Directory ```powershell # create Storage account with Keyvault encryption (access Keyvault with FederatedClientId), then show properties -PS C:\> $account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` +$account = New-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -Kind StorageV2 -SkuName Standard_LRS -Location eastus2euap ` -IdentityType SystemAssignedUserAssigned -UserAssignedIdentityId $useridentityId ` -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -KeyVaultFederatedClientId $federatedClientId -PS C:\> $account.Encryption.EncryptionIdentity +$account.Encryption.EncryptionIdentity EncryptionUserAssignedIdentity EncryptionFederatedIdentityClientId ------------------------------ ----------------------------------- /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid ********-****-****-****-************ -PS C:\> $account.Encryption.KeyVaultProperties +$account.Encryption.KeyVaultProperties KeyName : wrappingKey KeyVersion : diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md index 6adf3dc31b1d..ab91eacacc9e 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md @@ -27,16 +27,16 @@ The **New-AzStorageAccountManagementPolicyBlobIndexMatchObject** cmdlet creates ``` -PS C:\> $blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" -PS C:\> $blobindexmatch1 +$blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" +$blobindexmatch1 Name Op Value ---- -- ----- tag1 == value1 -PS C:\> $blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" +$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" -PS C:\> New-AzStorageAccountManagementPolicyFilter -PrefixMatch prefix1,prefix2 -BlobType blockBlob ` +New-AzStorageAccountManagementPolicyFilter -PrefixMatch prefix1,prefix2 -BlobType blockBlob ` -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 PrefixMatch BlobTypes BlobIndexMatch diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md index ff46c2301431..e282c5ed8855 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md @@ -27,18 +27,18 @@ The **New-AzStorageAccountManagementPolicyFilter** cmdlet creates a ManagementPo ``` -PS C:\>$blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" -PS C:\>$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" -PS C:\>$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 -BlobType appendBlob,blockBlob -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 -PS C:\>$filter +$blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1" +$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2" +$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 -BlobType appendBlob,blockBlob -BlobIndexMatch $blobindexmatch1,$blobindexmatch2 +$filter PrefixMatch BlobTypes BlobIndexMatch ----------- --------- -------------- {blobprefix1, blobprefix2} {appendBlob, blockBlob} {tag1, tag2} -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 -PS C:\>$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter -PS C:\>$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 +$rule = New-AzStorageAccountManagementPolicyRule -Name Test -Action $action -Filter $filter +$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule ``` This command create a ManagementPolicy rule filter object. Then add it to a management policy rule and set to a Storage account. diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md index f5a0d1b115be..22bb6d170a95 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md @@ -27,15 +27,15 @@ The **New-AzStorageAccountManagementPolicyRule** cmdlet creates a ManagementPoli ``` -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -InputObject $action -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -daysAfterModificationGreaterThan 30 -InputObject $action -PS C:\>$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 100 +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 50 -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -daysAfterModificationGreaterThan 30 -InputObject $action +$action = Add-AzStorageAccountManagementPolicyAction -SnapshotAction Delete -daysAfterCreationGreaterThan 100 -InputObject $action -PS C:\>$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 +$filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch blobprefix1,blobprefix2 -PS C:\>$rule = New-AzStorageAccountManagementPolicyRule -Name rule1 -Action $action -Filter $filter -PS C:\>$rule +$rule = New-AzStorageAccountManagementPolicyRule -Name rule1 -Action $action -Filter $filter +$rule Enabled : True Name : rule1 @@ -69,7 +69,7 @@ Definition : { } } -PS C:\>$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule +$policy = Set-AzStorageAccountManagementPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Rule $rule ``` This command create a ManagementPolicy rule object, with a ManagementPolicy action group object contains 4 actions, a ManagementPolicy rule filter object, then set the rule to a Storage Account. diff --git a/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md b/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md index f349b620c05b..e78a608fa4ab 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md +++ b/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md @@ -36,16 +36,16 @@ The **New-AzStorageBlobInventoryPolicyRule** cmdlet creates a blob inventory pol ``` -PS C:\> $rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 +$rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 -PS C:\> $rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` +$rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` -BlobSchemaField name,Creation-Time,Last-Modified,Content-Length,Content-MD5,BlobType,AccessTier,AccessTierChangeTime,Expiry-Time,hdi_isfolder,Owner,Group,Permissions,Acl,Metadata -CreationTimeLastNDay 30 -PS C:\> $rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` +$rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` -ExcludePrefix ccc,ddd -BlobSchemaField name,Last-Modified,BlobType,AccessTier,AccessTierChangeTime,Content-Type,Content-CRC64,CopyId,DeletionId,Deleted,DeletedTime,RemainingRetentionDays -PS C:\> $policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2 +$policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2 -PS C:\> $policy +$policy StorageAccountName : mystorageaccount ResourceGroupName : myresourcegroup @@ -56,7 +56,7 @@ LastModifiedTime : 5/12/2021 8:53:38 AM Enabled : False Rules : {Test1, Test2, Test3} -PS C:\> $policy.Rules +$policy.Rules Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields CreationTime ---- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ ------------ diff --git a/src/Storage/Storage.Management/help/New-AzStorageContainer.md b/src/Storage/Storage.Management/help/New-AzStorageContainer.md index bee44e03d6c1..17ca9658c33d 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/New-AzStorageContainer.md @@ -53,12 +53,12 @@ It uses the **Split** method of the .NET **String** class and then passes the na ``` -PS C:\> $container = New-AzStorageContainer -Name "mycontainer" -DefaultEncryptionScope "myencryptscope" -PreventEncryptionScopeOverride $true +$container = New-AzStorageContainer -Name "mycontainer" -DefaultEncryptionScope "myencryptscope" -PreventEncryptionScopeOverride $true -PS C:\> $container.BlobContainerProperties.DefaultEncryptionScope +$container.BlobContainerProperties.DefaultEncryptionScope myencryptscope -PS C:\> $container.BlobContainerProperties.PreventEncryptionScopeOverride +$container.BlobContainerProperties.PreventEncryptionScopeOverride True ``` diff --git a/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md b/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md index fb13fb62c571..a716b2abc0b8 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md +++ b/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md @@ -27,13 +27,13 @@ The **New-AzStorageLocalUserPermissionScope** cmdlet creates a permission scope ``` -PS C:\> $permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 +$permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 -PS C:\> $permissionScope2 = New-AzStorageLocalUserPermissionScope -Permission rwd -Service file -ResourceName share2 +$permissionScope2 = New-AzStorageLocalUserPermissionScope -Permission rwd -Service file -ResourceName share2 -PS C:\> $localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -PermissionScope $permissionScope1,$permissionScope2 +$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -PermissionScope $permissionScope1,$permissionScope2 -PS C:\> $localuser +$localuser ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -41,7 +41,7 @@ Name Sid HomeDirectory HasSharedKe ---- --- ------------- ------------ --------- -------------- ---------------- ----------------- testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / [container1,...] -PS C:\> $localuser.PermissionScopes +$localuser.PermissionScopes Permissions Service ResourceName ----------- ------- ------------ diff --git a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md index c510e21fe2dc..9905f3ded0dc 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md +++ b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md @@ -27,13 +27,13 @@ The **New-AzStorageLocalUserSshPublicKey** cmdlet creates a SSH public key objec ``` -PS C:\> $sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykey=" -Description "sshpulickey name1" +$sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykey=" -Description "sshpulickey name1" -PS C:\> $sshkey2 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykew=" -Description "sshpulickey name2" +$sshkey2 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa keykeykeykeykew=" -Description "sshpulickey name2" -PS C:\> $localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1,$sshkey2 +$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1,$sshkey2 -PS C:\> $localuser +$localuser ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -41,7 +41,7 @@ Name Sid HomeDirectory HasSharedKe ---- --- ------------- ------------ --------- -------------- ---------------- ----------------- testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / [ssh-rsa keykeykeykeykey=,...] -PS C:\> $localuser.SshAuthorizedKeys +$localuser.SshAuthorizedKeys Description Key ----------- --- diff --git a/src/Storage/Storage.Management/help/New-AzStorageTable.md b/src/Storage/Storage.Management/help/New-AzStorageTable.md index 25ab5151be95..26b317eeb60b 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageTable.md +++ b/src/Storage/Storage.Management/help/New-AzStorageTable.md @@ -35,7 +35,7 @@ This command creates a storage table with a name of tableabc. ``` -PS C:\>"table1 table2 table3".split() | New-AzStorageTable +"table1 table2 table3".split() | New-AzStorageTable ``` This command creates multiple tables. diff --git a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md index 319e3a8ef500..1422bc5ca1c4 100644 --- a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md @@ -30,9 +30,9 @@ The ACL entries in original ACL, which has same AccessControlType, DefaultScope ``` -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -DefaultScope -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl -PS C:\> Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -DefaultScope +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl +Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. FailedEntries : @@ -49,10 +49,10 @@ This command first creates an ACL object with 2 acl entries, then removes ACL re ``` -PS C:\> $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx +$result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. -PS C:\> $result +$result FailedEntries : {dir1/dir2/file4} TotalDirectoriesSuccessfulCount : 500 @@ -60,7 +60,7 @@ TotalFilesSuccessfulCount : 2500 TotalFailureCount : 1 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -68,10 +68,10 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx +$result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx WARNING: To find the ACL Entry to remove, will only compare AccessControlType, DefaultScope and EntityId, will omit Permission. -PS C:\> $result +$result FailedEntries : TotalDirectoriesSuccessfulCount : 100 @@ -119,9 +119,9 @@ This script will remove ACL rescursively on directory chunk by chunk, with chunk ``` -PS C:\> $result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx +$result = Remove-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx -PS C:\> $result +$result FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} TotalDirectoriesSuccessfulCount : 100 @@ -129,7 +129,7 @@ TotalFilesSuccessfulCount : 500 TotalFailureCount : 2 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -138,7 +138,7 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> foreach ($path in $result.FailedEntries.Name) +foreach ($path in $result.FailedEntries.Name) { # user code to fix failed entry in $path diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md index 2816a16b764b..f19e93bbd3fc 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md @@ -38,9 +38,9 @@ The **Remove-AzStorageBlobImmutabilityPolicy** cmdlet removes immutability polic ``` -PS C:\> $blob = Remove-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname +$blob = Remove-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname -PS C:\> $blob +$blob AccountName: mystorageaccount, ContainerName: mycontainer @@ -48,7 +48,7 @@ Name BlobType Length ContentType La ---- -------- ------ ----------- ------------ ---------- ------------ --------- --------- testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * -PS C:\> $blob.BlobProperties.ImmutabilityPolicy +$blob.BlobProperties.ImmutabilityPolicy ExpiresOn PolicyMode --------- ---------- diff --git a/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md b/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md index bcdfe4d1c414..9ca0bb0cbe6f 100644 --- a/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md +++ b/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md @@ -37,8 +37,8 @@ This cmdlet only works if Hierarchical Namespace is enabled for the Storage acco ``` -PS C:\> $items = Get-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" -PS C:\> $items +$items = Get-AzDataLakeGen2DeletedItem -FileSystem "filesystem1" +$items FileSystem Name: filesystem1 @@ -48,7 +48,7 @@ dir0/dir1/file1 132658816156507617 2021-05-19 07:06:55Z 3 dir0/dir2 132658834541610122 2021-05-19 07:37:34Z 3 dir0/dir2/file3 132658834534174806 2021-05-19 07:37:33Z 3 -PS C:\> $items | Restore-AzDataLakeGen2DeletedItem +$items | Restore-AzDataLakeGen2DeletedItem FileSystem Name: filesystem1 diff --git a/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md index 05d8a1fb9a02..cb8782163060 100644 --- a/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md @@ -41,9 +41,9 @@ The **Restore-AzRmStorageShare** cmdlet restores a deleted file share within a v ```powershell -PS C:\> Remove-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -Force +Remove-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -Force -PS C:\> Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -IncludeDeleted +Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -IncludeDeleted ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -52,7 +52,7 @@ Name QuotaGiB EnabledProtocol AccessTier Deleted Version test 100 TransactionOptimized share1 100 TransactionOptimized True 01D61FD1FC5498B6 -PS C:\> Restore-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -DeletedShareVersion 01D61FD1FC5498B6 +Restore-AzRmStorageShare -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Name $shareName -DeletedShareVersion 01D61FD1FC5498B6 ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount diff --git a/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md b/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md index bf2efa4d53c0..281e6996e779 100644 --- a/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md +++ b/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md @@ -44,15 +44,15 @@ The start range is included, and the end range is excluded in blob restore. ```powershell -PS C:\> $range1 = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange container2/blob2 -PS C:\> $range2 = New-AzStorageBlobRangeToRestore -StartRange container3/blob3 -EndRange container4/blob4 -PS C:\> Restore-AzStorageBlobRange -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -TimeToRestore (Get-Date).AddDays(-1) -BlobRestoreRange $range1,$range2 +$range1 = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange container2/blob2 +$range2 = New-AzStorageBlobRangeToRestore -StartRange container3/blob3 -EndRange container4/blob4 +Restore-AzStorageBlobRange -ResourceGroupName "myresourcegoup" -StorageAccountName "mystorageaccount" -TimeToRestore (Get-Date).AddDays(-1) -BlobRestoreRange $range1,$range2 Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------ --------- ------------- ------------------------ --------------------- InProgress 6ca55a8b-fca0-461a-8e4c-13927a9707e6 2020-02-10T13:58:44.6841810Z ["container1/blob1" -> "container2/blob2",...] -PS C:\> (Get-AzStorageAccount -ResourceGroupName $rgname -StorageAccountName $accountName -IncludeBlobRestoreStatus).BlobRestoreStatus +(Get-AzStorageAccount -ResourceGroupName $rgname -StorageAccountName $accountName -IncludeBlobRestoreStatus).BlobRestoreStatus Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges ------ --------- ------------- ------------------------ --------------------- diff --git a/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md b/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md index b5f05535ec27..7fdf1a216383 100644 --- a/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md @@ -44,7 +44,7 @@ This command lists all containers include deleted containers, filter out all the ``` -PS C:\> Get-AzStorageContainer -IncludeDeleted -Context $ctx | Where-Object { $_.IsDeleted } +Get-AzStorageContainer -IncludeDeleted -Context $ctx | Where-Object { $_.IsDeleted } Storage Account Name: storageaccountname @@ -53,7 +53,7 @@ Name PublicAccess LastModified IsDelet container1 8/28/2020 10:18:13 AM +00:00 True 01D685BC91A88F22 container2 9/4/2020 12:52:37 PM +00:00 True 01D67D248986B6DA -PS C:\> Restore-AzStorageContainer -Name container1 -VersionId 01D685BC91A88F22 -Context $ctx +Restore-AzStorageContainer -Name container1 -VersionId 01D685BC91A88F22 -Context $ctx Storage Account Name: storageaccountname diff --git a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md index eb22f8f1aa75..b592fcc53851 100644 --- a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md @@ -48,9 +48,9 @@ This command first creates an ACL object with 3 acl entries, then sets ACL recur ``` -PS C:\> $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx +$result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -Context $ctx -PS C:\> $result +$result FailedEntries : {dir1/dir2/file4} TotalDirectoriesSuccessfulCount : 500 @@ -58,7 +58,7 @@ TotalFilesSuccessfulCount : 2500 TotalFailureCount : 1 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -66,9 +66,9 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx +$result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx -PS C:\> $result +$result FailedEntries : TotalDirectoriesSuccessfulCount : 100 @@ -116,9 +116,9 @@ This script sets ACL rescursively on directory chunk by chunk, with chunk size a ``` -PS C:\> $result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx +$result = Set-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx -PS C:\> $result +$result FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} TotalDirectoriesSuccessfulCount : 100 @@ -126,7 +126,7 @@ TotalFilesSuccessfulCount : 500 TotalFailureCount : 2 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -135,7 +135,7 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> foreach ($path in $result.FailedEntries.Name) +foreach ($path in $result.FailedEntries.Name) { # user code to fix failed entry in $path diff --git a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md index caad92672759..9dac4dcf478a 100644 --- a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md +++ b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md @@ -46,11 +46,11 @@ This command creates an ACL object with 3 ACL entries (use -InputObject paramete ``` -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -DefaultScope -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rwt" -InputObject $acl -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission rwx -InputObject $acl -PS C:\>$acl +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rwx -DefaultScope +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission "rwt" -InputObject $acl +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission rwx -InputObject $acl +$acl DefaultScope AccessControlType EntityId Permissions ------------ ----------------- -------- ----------- @@ -59,8 +59,8 @@ False Group rw- False Other rwt False User ********-****-****-****-************ rwx -PS C:\>$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl -PS C:\>$acl +$acl = Set-AzDataLakeGen2ItemAclObject -AccessControlType user -EntityId $id -Permission r-x -InputObject $acl +$acl DefaultScope AccessControlType EntityId Permissions ------------ ----------------- -------- ----------- diff --git a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md index bcb1484156bf..034324723b40 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md @@ -192,7 +192,7 @@ The command update a Storage account by enable Azure Files Microsoft Entra Domai ``` -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableActiveDirectoryDomainServicesForFile $true ` +$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableActiveDirectoryDomainServicesForFile $true ` -ActiveDirectoryDomainName "mydomain.com" ` -ActiveDirectoryNetBiosDomainName "mydomain.com" ` -ActiveDirectoryForestName "mydomain.com" ` @@ -202,10 +202,10 @@ PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Na -ActiveDirectorySamAccountName "samaccountname" ` -ActiveDirectoryAccountType Computer -PS C:\> $account.AzureFilesIdentityBasedAuth.DirectoryServiceOptions +$account.AzureFilesIdentityBasedAuth.DirectoryServiceOptions AD -PS C:\> $account.AzureFilesIdentityBasedAuth.ActiveDirectoryProperties +$account.AzureFilesIdentityBasedAuth.ActiveDirectoryProperties DomainName : mydomain.com NetBiosDomainName : mydomain.com @@ -224,15 +224,15 @@ The command updates a Storage account by enable Azure Files Active Directory Dom ``` -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $true +$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $true -PS C:\> $account.MinimumTlsVersion +$account.MinimumTlsVersion TLS1_1 -PS C:\> $account.AllowBlobPublicAccess +$account.AllowBlobPublicAccess False -PS C:\> $a.AllowSharedKeyAccess +$a.AllowSharedKeyAccess True ``` @@ -243,15 +243,15 @@ The command sets MinimumTlsVersion, AllowBlobPublicAccess and AllowSharedKeyAcce ```powershell -PS C:\>$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -PublishMicrosoftEndpoint $false -PublishInternetEndpoint $true -RoutingChoice InternetRouting +$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -PublishMicrosoftEndpoint $false -PublishInternetEndpoint $true -RoutingChoice InternetRouting -PS C:\>$account.RoutingPreference +$account.RoutingPreference RoutingChoice PublishMicrosoftEndpoints PublishInternetEndpoints ------------- ------------------------- ------------------------ InternetRouting False True -PS C:\>$account.PrimaryEndpoints +$account.PrimaryEndpoints Blob : https://mystorageaccount.blob.core.windows.net/ Queue : https://mystorageaccount.queue.core.windows.net/ @@ -271,12 +271,12 @@ This command updates a Storage account with RoutingPreference setting: PublishMi ```powershell -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" -EnableHttpsTrafficOnly $true +$account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -Name "mystorageaccount" -KeyExpirationPeriodInDay 5 -SasExpirationPeriod "1.12:05:06" -EnableHttpsTrafficOnly $true -PS C:\> $account.KeyPolicy.KeyExpirationPeriodInDays +$account.KeyPolicy.KeyExpirationPeriodInDays 5 -PS C:\> $account.SasPolicy.SasExpirationPeriod +$account.SasPolicy.SasExpirationPeriod 1.12:05:06 ``` @@ -288,23 +288,23 @@ This command updates a Storage account with KeyExpirationPeriod and SasExpiratio ```powershell # Create KeyVault (no need if using exist keyvault) -PS C:\> $keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection -PS C:\> $key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' +$keyVault = New-AzKeyVault -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -Location eastus2euap -EnablePurgeProtection +$key = Add-AzKeyVaultKey -VaultName $keyvaultName -Name $keyname -Destination 'Software' # create user assigned identity and grant access to keyvault (no need if using exist user assigned identity) -PS C:\> $userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName -PS C:\> Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation -PS C:\> $useridentityId= $userId.Id +$userId = New-AzUserAssignedIdentity -ResourceGroupName $resourceGroupName -Name $userIdName +Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $userId.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation +$useridentityId= $userId.Id # Update Storage account with Keyvault encryption and access Keyvault with user assigned identity, then show properties -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` +$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` -IdentityType UserAssigned -UserAssignedIdentityId $useridentityId ` -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -PS C:\> $account.Encryption.EncryptionIdentity.EncryptionUserAssignedIdentity +$account.Encryption.EncryptionIdentity.EncryptionUserAssignedIdentity /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid -PS C:\> $account.Encryption.KeyVaultProperties +$account.Encryption.KeyVaultProperties KeyName : wrappingKey KeyVersion : @@ -321,19 +321,19 @@ This command first creates a keyvault and a user assigned identity, then updates ```powershell # Assign System identity to the account, and give the system assigned identity acces to the keyvault -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned -PS C:\> Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $account.Identity.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation +$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned +Set-AzKeyVaultAccessPolicy -VaultName $keyvaultName -ResourceGroupName $resourceGroupName -ObjectId $account.Identity.PrincipalId -PermissionsToKeys get,wrapkey,unwrapkey -BypassObjectIdValidation # Update account from access Keyvault with user assigned identity to access Keyvault with system assigned identity $account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -IdentityType SystemAssignedUserAssigned -KeyName $keyname -KeyVaultUri $keyvaultUri -KeyVaultUserAssignedIdentityId "" # EncryptionUserAssignedIdentity is empty, so the account access keyvault with system assigned identity -PS C:\> $account.Encryption.EncryptionIdentity +$account.Encryption.EncryptionIdentity EncryptionUserAssignedIdentity ------------------------------ -PS C:\> $account.Encryption.KeyVaultProperties +$account.Encryption.KeyVaultProperties KeyName : wrappingKey KeyVersion : @@ -387,12 +387,12 @@ This command updates a Storage account by set PublicNetworkAccess as enabled. ``` -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -ImmutabilityPeriod 2 -ImmutabilityPolicyState Unlocked +$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -ImmutabilityPeriod 2 -ImmutabilityPolicyState Unlocked -PS C:\> $account.ImmutableStorageWithVersioning.Enabled +$account.ImmutableStorageWithVersioning.Enabled True -PS C:\> $account.ImmutableStorageWithVersioning.ImmutabilityPolicy +$account.ImmutableStorageWithVersioning.ImmutabilityPolicy ImmutabilityPeriodSinceCreationInDays State ------------------------------------- ----- @@ -408,12 +408,12 @@ The account-level immutability policy will be inherited and applied to objects t ```powershell -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableSftp $true -EnableLocalUser $true +$account = Set-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableSftp $true -EnableLocalUser $true -PS C:\> $account.EnableSftp +$account.EnableSftp True -PS C:\> $account.EnableLocalUser +$account.EnableLocalUser True ``` @@ -426,16 +426,16 @@ To run the command succssfully, the Storage account should already enable Hierar ```powershell # create Storage account with Keyvault encryption (access Keyvault with FederatedClientId), then show properties -PS C:\> $account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` +$account = Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName ` -KeyVaultUri $keyVault.VaultUri -KeyName $keyname -KeyVaultUserAssignedIdentityId $useridentityId -KeyVaultFederatedClientId $federatedClientId -PS C:\> $account.Encryption.EncryptionIdentity +$account.Encryption.EncryptionIdentity EncryptionUserAssignedIdentity EncryptionFederatedIdentityClientId ------------------------------ ----------------------------------- /subscriptions/{subscription-id}/resourceGroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuserid ********-****-****-****-************ -PS C:\> $account.Encryption.KeyVaultProperties +$account.Encryption.KeyVaultProperties KeyName : wrappingKey KeyVersion : diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md index ac4aff9da73d..32994031963c 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md @@ -41,9 +41,9 @@ The cmdlet only works when the blob container has already enabled immutable Stor ``` -PS C:\> $blob = Set-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname -ExpiresOn (Get-Date).AddDays(100) -PolicyMode Unlocked +$blob = Set-AzStorageBlobImmutabilityPolicy -Container $containerName -Blob $blobname -ExpiresOn (Get-Date).AddDays(100) -PolicyMode Unlocked -PS C:\> $blob +$blob AccountName: mystorageaccount, ContainerName: mycontainer @@ -51,7 +51,7 @@ Name BlobType Length ContentType La ---- -------- ------ ----------- ------------ ---------- ------------ --------- --------- testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * -PS C:\> $blob.BlobProperties.ImmutabilityPolicy +$blob.BlobProperties.ImmutabilityPolicy ExpiresOn PolicyMode --------- ---------- diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md index 045e6060e48d..c913efd564f6 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md @@ -60,17 +60,17 @@ The **Set-AzStorageBlobInventoryPolicy** cmdlet creates or updates blob inventor ``` -PS C:\> $rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 +$rule1 = New-AzStorageBlobInventoryPolicyRule -Name Test1 -Destination $containerName -Disabled -Format Csv -Schedule Daily -ContainerSchemaField Name,Metadata,PublicAccess,Last-mOdified,LeaseStatus,LeaseState,LeaseDuration,HasImmutabilityPolicy,HasLegalHold -PrefixMatch con1,con2 -PS C:\> $rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` +$rule2 = New-AzStorageBlobInventoryPolicyRule -Name Test2 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` -BlobSchemaField name,Creation-Time,Last-Modified,Content-Length,Content-MD5,BlobType,AccessTier,AccessTierChangeTime,Expiry-Time,hdi_isfolder,Owner,Group,Permissions,Acl,Metadata -PS C:\> $rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` +$rule3 = New-AzStorageBlobInventoryPolicyRule -Name Test3 -Destination $containerName -Format Parquet -Schedule Weekly -IncludeBlobVersion -IncludeSnapshot -IncludeDeleted -BlobType blockBlob,appendBlob -PrefixMatch aaa,bbb ` -ExcludePrefix ccc,ddd -BlobSchemaField name,Last-Modified,BlobType,AccessTier,AccessTierChangeTime,Content-Type,Content-CRC64,CopyId,x-ms-blob-sequence-number,TagCount -PS C:\> $policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2,$rule3 +$policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -Disabled -Rule $rule1,$rule2,$rule3 -PS C:\> $policy +$policy StorageAccountName : mystorageaccount ResourceGroupName : myresourcegroup @@ -81,7 +81,7 @@ LastModifiedTime : 5/12/2021 8:53:38 AM Enabled : False Rules : {Test1, Test2, Test3} -PS C:\> $policy.Rules +$policy.Rules Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields ---- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ @@ -98,7 +98,7 @@ The following command sets blob inventory policy to a Storage account with the 2 ``` -PS C:\> $policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName $resourceGroupName -StorageAccountName $accountName -Policy (@{ +$policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName $resourceGroupName -StorageAccountName $accountName -Policy (@{ Enabled=$true; Rules=(@{ Enabled=$true; @@ -151,7 +151,7 @@ PS C:\> $policy = Set-AzStorageBlobInventoryPolicy -ResourceGroupName $resourceG }) -PS C:\> $policy +$policy StorageAccountName : weiadlscanary1 ResourceGroupName : weitry @@ -162,7 +162,7 @@ LastModifiedTime : 5/12/2021 9:02:21 AM Enabled : True Rules : {Test1, Test2, Test3} -PS C:\> $policy.Rules +$policy.Rules Name Enabled Destination ObjectType Format Schedule IncludeSnapshots IncludeBlobVersions IncludeDeleted BlobTypes PrefixMatch ExcludePrefix SchemaFields ---- ------- ----------- ---------- ------ -------- ---------------- ------------------- -------------- --------- ----------- ------------- ------------ diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md index 892153fcb582..655649486ff4 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md @@ -55,9 +55,9 @@ The cmdlet only works when the blob container has already enabled immutable Stor ``` -PS C:\> $blob = Set-AzStorageBlobLegalHold -Container $containerName -Blob $blobname -EnableLegalHold +$blob = Set-AzStorageBlobLegalHold -Container $containerName -Blob $blobname -EnableLegalHold -PS C:\> $blob +$blob AccountName: mystorageaccount, ContainerName: mycontainer @@ -65,7 +65,7 @@ Name BlobType Length ContentType La ---- -------- ------ ----------- ------------ ---------- ------------ --------- --------- testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * -PS C:\> $blob.BlobProperties.HasLegalHold +$blob.BlobProperties.HasLegalHold True ``` @@ -77,9 +77,9 @@ The command only works when the blob container has already enabled immutable Sto ``` -PS C:\> $blob = Get-AzStorageBlob -Container $containerName -Blob $blobname | Set-AzStorageBlobLegalHold -DisableLegalHold +$blob = Get-AzStorageBlob -Container $containerName -Blob $blobname | Set-AzStorageBlobLegalHold -DisableLegalHold -PS C:\> $blob +$blob AccountName: mystorageaccount, ContainerName: mycontainer @@ -87,7 +87,7 @@ Name BlobType Length ContentType La ---- -------- ------ ----------- ------------ ---------- ------------ --------- --------- testblob BlockBlob 10485760 application/octet-stream 2021-07-19 08:56:00Z Hot False 2021-07-19T08:56:01.8120788Z * -PS C:\> $blob.BlobProperties.HasLegalHold +$blob.BlobProperties.HasLegalHold False ``` diff --git a/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md b/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md index 84999731e357..ccd007fb2cae 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md @@ -39,13 +39,13 @@ To run this cmdlet, the storage account must has already set EnableLocalUser as ``` -PS C:\> $sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa base64encodedkey=" -Description "sshpublickey name1" +$sshkey1 = New-AzStorageLocalUserSshPublicKey -Key "ssh-rsa base64encodedkey=" -Description "sshpublickey name1" -PS C:\> $permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 +$permissionScope1 = New-AzStorageLocalUserPermissionScope -Permission rw -Service blob -ResourceName container1 -PS C:\> $localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1 -PermissionScope $permissionScope1 -HasSharedKey $true -HasSshKey $true -HasSshPassword $true +$localuser = Set-AzStorageLocalUser -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -UserName testuser1 -HomeDirectory "/" -SshAuthorizedKey $sshkey1 -PermissionScope $permissionScope1 -HasSharedKey $true -HasSshKey $true -HasSshPassword $true -PS C:\> $localuser +$localuser ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -53,13 +53,13 @@ Name Sid HomeDirectory HasSharedKe ---- --- ------------- ------------ --------- -------------- ---------------- testuser1 S-1-2-0-0000000000-000000000-0000000000-0000 / True True True [container1] -PS C:\> $localuser.SshAuthorizedKeys +$localuser.SshAuthorizedKeys Description Key ----------- --- sshpublickey name1 ssh-rsa base64encodedkey= -PS C:\> $localuser.PermissionScopes +$localuser.PermissionScopes Permissions Service ResourceName ----------- ------- ------------ diff --git a/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md index 96c0ed5b26f4..98359b8fe6ec 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md @@ -44,21 +44,21 @@ The **Set-AzStorageObjectReplicationPolicy** cmdlet creates or updates the speci ``` -PS C:\> $rule1 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src1 -DestinationContainer dest1 +$rule1 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src1 -DestinationContainer dest1 -PS C:\> $rule2 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src -DestinationContainer dest -MinCreationTime 2019-01-01T16:00:00Z -PrefixMatch a,abc,dd +$rule2 = New-AzStorageObjectReplicationPolicyRule -SourceContainer src -DestinationContainer dest -MinCreationTime 2019-01-01T16:00:00Z -PrefixMatch a,abc,dd -PS C:\> $srcAccount = Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" +$srcAccount = Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" -PS C:\> Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId default -SourceAccount $srcAccount.Id -Rule $rule1,$rule2 +Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PolicyId default -SourceAccount $srcAccount.Id -Rule $rule1,$rule2 ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ----------------- ------------------ -------- ----------- ------------- ------------------ ----- myresourcegroup mydestaccount 56bfa11c-81ef-4f8d-b307-5e5386e16fba mysourceaccount mydestaccount [5fa8b1d6-4985-4abd-a0b3-ec4d07295a43,...] -PS C:\> $destPolicy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" +$destPolicy = Get-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mydestaccount" -PS C:\> Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" -InputObject $destPolicy +Set-AzStorageObjectReplicationPolicy -ResourceGroupName "myresourcegroup" -AccountName "mysourceaccount" -InputObject $destPolicy ResourceGroupName StorageAccountName PolicyId EnabledTime SourceAccount DestinationAccount Rules ----------------- ------------------ -------- ----------- ------------- ------------------ ----- diff --git a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md index e0d8941dae9a..c99ff9510e7a 100644 --- a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md @@ -48,9 +48,9 @@ This command first creates an ACL object with 3 acl entries, then updates ACL re ``` -PS C:\> $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx +$result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -Context $ctx -PS C:\> $result +$result FailedEntries : {dir1/dir2/file4} TotalDirectoriesSuccessfulCount : 500 @@ -58,7 +58,7 @@ TotalFilesSuccessfulCount : 2500 TotalFailureCount : 1 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -66,9 +66,9 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx +$result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinuationToken $result.ContinuationToken -Context $ctx -PS C:\> $result +$result FailedEntries : TotalDirectoriesSuccessfulCount : 100 @@ -125,9 +125,9 @@ This script will update ACL rescursively on directory chunk by chunk, with chunk ``` -PS C:\> $result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx +$result = Update-AzDataLakeGen2AclRecursive -FileSystem "filesystem1" -Path "dir1" -Acl $acl -ContinueOnFailure -Context $ctx -PS C:\> $result +$result FailedEntries : {dir0/dir1/file1, dir0/dir2/file4} TotalDirectoriesSuccessfulCount : 100 @@ -135,7 +135,7 @@ TotalFilesSuccessfulCount : 500 TotalFailureCount : 2 ContinuationToken : VBaHi5TfyO2ai1wYTRhIL2FjbGNibjA2c3RmATAxRDVEN0UzRENFQzZCRTAvYWRsc3Rlc3QyATAxRDY2M0ZCQTZBN0JGQTkvZGlyMC9kaXIxL2ZpbGUzFgAAAA== -PS C:\> $result.FailedEntries +$result.FailedEntries Name IsDirectory ErrorMessage ---- ----------- ------------ @@ -144,7 +144,7 @@ dir0/dir2/file4 False This request is not authorized to perform this opera # user need fix the failed item , then can resume with ContinuationToken -PS C:\> foreach ($path in $result.FailedEntries.Name) +foreach ($path in $result.FailedEntries.Name) { # user code to fix failed entry in $path diff --git a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md index 1ada880ca5f2..b14fb3bf3cbe 100644 --- a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md @@ -59,7 +59,7 @@ This command first creates an ACL object with 3 acl entry (use -InputObject para ``` -PS C:\> $file = Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" ` +$file = Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/file1" ` -Acl $acl ` -Property @{"ContentType" = "image/jpeg"; "ContentMD5" = "i727sP7HigloQDsqadNLHw=="; "ContentEncoding" = "UDF8"; "CacheControl" = "READ"; "ContentDisposition" = "True"; "ContentLanguage" = "EN-US"} ` -Metadata @{"tag1" = "value1"; "tag2" = "value2" } ` @@ -67,7 +67,7 @@ PS C:\> $file = Update-AzDataLakeGen2Item -FileSystem "filesystem1" -Path "dir1/ -Owner '$superuser' ` -Group '$superuser' -PS C:\> $file +$file FileSystem Name: filesystem1 @@ -75,7 +75,7 @@ Path IsDirectory Length LastModified Permissio ---- ----------- ------ ------------ ----------- ----- ----- dir1/file1 False 1024 2020-03-23 09:57:33Z rwxrw-rw- $superuser $superuser -PS C:\> $file.ACL +$file.ACL DefaultScope AccessControlType EntityId Permissions ------------ ----------------- -------- ----------- @@ -83,7 +83,7 @@ False User rwx False Group rw- False Other rw- -PS C:\> $file.Permissions +$file.Permissions Owner : Execute, Write, Read Group : Write, Read @@ -91,14 +91,14 @@ Other : Write, Read StickyBit : False ExtendedAcls : False -PS C:\> $file.Properties.Metadata +$file.Properties.Metadata Key Value --- ----- tag2 value2 tag1 value1 -PS C:\> $file.Properties +$file.Properties LastModified : 3/23/2020 9:57:33 AM +00:00 diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md index 475260671a70..ad39db28fefa 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md @@ -64,12 +64,12 @@ This command set public access as Blob for all Storage blob containers in a Stor ``` -PS C:\> $container = Update-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash NoRootSquash +$container = Update-AzRmStorageContainer -ResourceGroupName "myersourcegroup" -AccountName "mystorageaccount" -Name "mycontainer" -RootSquash NoRootSquash -PS C:\> $container.EnableNfsV3AllSquash +$container.EnableNfsV3AllSquash False -PS C:\> $container.EnableNfsV3RootSquash +$container.EnableNfsV3RootSquash False ``` diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md index 30399a3f15b5..45cfd00bd02d 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md @@ -50,9 +50,9 @@ The **New-AzRmStorageShare** cmdlet modifies a Storage file share. ``` -PS C:\>$share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -QuotaGiB 200 -Metadata @{tag0="value0";tag1="value1"} +$share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -QuotaGiB 200 -Metadata @{tag0="value0";tag1="value1"} -PS C:\>$share +$share ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -60,7 +60,7 @@ Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ---- -------- ---------------- ---------- ------- ------- --------------- myshare 200 -PS C:\>$share.Metadata +$share.Metadata Key Value --- ----- @@ -114,9 +114,9 @@ This command modifies a Storage file share with accesstier as Cool. ``` -PS C:\>$share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -RootSquash NoRootSquash +$share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -RootSquash NoRootSquash -PS C:\>$share +$share ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount @@ -124,7 +124,7 @@ Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes ---- -------- ---------------- ---------- ------- ------- --------------- myshare -PS C:\> $share.RootSquash +$share.RootSquash NoRootSquash ``` diff --git a/src/StorageSync/StorageSync/ChangeLog.md b/src/StorageSync/StorageSync/ChangeLog.md index efd4f642e98b..d725f4501e3b 100644 --- a/src/StorageSync/StorageSync/ChangeLog.md +++ b/src/StorageSync/StorageSync/ChangeLog.md @@ -18,7 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release - +* Updated dataset limit from 5 Tb to 100 Tib. + ## Version 2.1.0 * Fixed minor issues. * Updated supported character sets in `Invoke-AzStorageSyncCompatibilityCheck`. diff --git a/src/StorageSync/StorageSync/Config.json b/src/StorageSync/StorageSync/Config.json index 9a34c233c4d2..ee024d6a9e4b 100644 --- a/src/StorageSync/StorageSync/Config.json +++ b/src/StorageSync/StorageSync/Config.json @@ -3,7 +3,7 @@ "MaximumFileSizeInBytes": 100000000000, "MaximumPathLength": 2048, "MaximumTreeDepth": 250, - "MaximumDatasetSizeInBytes": 5000000000000, + "MaximumDatasetSizeInBytes": 109951162777600, "ValidFilesystems": [ "NTFS" ], @@ -51,4 +51,4 @@ 92, 124 ] -} \ No newline at end of file +} diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsCluster.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsCluster.md index c832ed246770..0fd75967085a 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsCluster.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsCluster.md @@ -1,6 +1,6 @@ ### Example 1: Get all the stream analytics clusters under a subscription ```powershell -PS C:\> Get-AzStreamAnalyticsCluster +Get-AzStreamAnalyticsCluster Location Name Type Etag -------- ---- ---- ---- @@ -11,7 +11,7 @@ This command gets all the stream analytics clusters under a subscription. ### Example 2: Get all the stream analytics clusters under a resource group ```powershell -PS C:\> Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test +Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test Location Name Type Etag -------- ---- ---- ---- @@ -22,7 +22,7 @@ This command gets all the stream analytics clusters under a resource group. ### Example 3: Get a stream analytics cluster by name ```powershell -PS C:\> Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 +Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 Location Name Type Etag -------- ---- ---- ---- @@ -33,7 +33,7 @@ This command gets a stream analytics cluster by name. ### Example 4: Get a stream analytics cluster by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 | Get-AzStreamAnalyticsCluster +Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 | Get-AzStreamAnalyticsCluster Location Name Type Etag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsClusterStreamingJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsClusterStreamingJob.md index 38315359755f..0d9813d4b616 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsClusterStreamingJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsClusterStreamingJob.md @@ -1,6 +1,6 @@ ### Example 1: Get all jobs under the stream analytics cluster ```powershell -PS C:\> Get-AzStreamAnalyticsClusterStreamingJob -ResourceGroupName pwshaz-rg-test -ClusterName sac-m-test01 +Get-AzStreamAnalyticsClusterStreamingJob -ResourceGroupName pwshaz-rg-test -ClusterName sac-m-test01 JobState StreamingUnit -------- ------------- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsDefaultFunctionDefinition.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsDefaultFunctionDefinition.md index 6ab15ef317e1..45395d8b119d 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsDefaultFunctionDefinition.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsDefaultFunctionDefinition.md @@ -1,6 +1,6 @@ ### Example 1: Get the default definition of a Stream Analytics function ```powershell -PS C:\> Get-AzStreamAnalyticsDefaultFunctionDefinition -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name mlsfunction-01 -BindingType Microsoft.MachineLearningServices -Endpoint "http://875da830-4d5f-44f1-b221-718a5f26a21d.eastus.azurecontainer.io/score"-UdfType Scalar +Get-AzStreamAnalyticsDefaultFunctionDefinition -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name mlsfunction-01 -BindingType Microsoft.MachineLearningServices -Endpoint "http://875da830-4d5f-44f1-b221-718a5f26a21d.eastus.azurecontainer.io/score"-UdfType Scalar Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsFunction.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsFunction.md index 4b899c906b0c..ca78f7b446d1 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsFunction.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsFunction.md @@ -1,6 +1,6 @@ ### Example 1: Get all Stream Analytics functions ```powershell -PS C:\> Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh +Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command gets the functions defined on the job. ### Example 2: Get a specific Stream Analytics function ```powershell -PS C:\> Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 +Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 Name Type ETag ---- ---- ---- @@ -22,7 +22,7 @@ This command gets information about the function defined on the job. ### Example 3: Get a specific Stream Analytics function by pipeline ```powershell -PS C:\> New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name function-05 -File .\test\template-json\Function_JavascriptUdf.json | Get-AzStreamAnalyticsFunction +New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name function-05 -File .\test\template-json\Function_JavascriptUdf.json | Get-AzStreamAnalyticsFunction Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsInput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsInput.md index fbe80aacd1fb..d26c5f3436e8 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsInput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsInput.md @@ -1,6 +1,6 @@ ### Example 1: Get information about the inputs defined on a job ```powershell -PS C:\> Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh +Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command returns information about all the inputs defined on the job Streami ### Example 2: Get information about a specific input defined on a job ```powershell -PS C:\> Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 +Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 Name Type ETag ---- ---- ---- @@ -22,7 +22,7 @@ This command returns information about the input named EntryStream defined on th ### Example 3: Get information about a specific input defined on a job by pipeline ```powershell -PS C:\> New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name input-05 -File .\test\template-json\IotHub.json | Get-AzStreamAnalyticsInput +New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name input-05 -File .\test\template-json\IotHub.json | Get-AzStreamAnalyticsInput Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsJob.md index d6f9ac1f2a84..94daf73a24f9 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Get information about all jobs in a subscription ```powershell -PS C:\> Get-AzStreamAnalyticsJob +Get-AzStreamAnalyticsJob Location Name Type ETag -------- ---- ---- ---- @@ -12,7 +12,7 @@ This command returns information about all the Stream Analytics jobs in the Azur ### Example 2: Get information about all jobs in a resource group ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test Location Name Type ETag -------- ---- ---- ---- @@ -24,7 +24,7 @@ This command returns information about all the Stream Analytics jobs in the reso ### Example 3: Get information about a specific job in a resource group ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh Location Name Type ETag -------- ---- ---- ---- @@ -36,7 +36,7 @@ This command returns information about the Stream Analytics job StreamingJob in ### Example 4: Get information about a specific job in a resource group by pipeline ```powershell -PS C:\> New-AzStreamAnalyticsJob -ResourceGroupName lucas-rg-test -Name sajob-02-pwsh -Location westcentralus -SkuName Standard | Get-AzStreamAnalyticsJob +New-AzStreamAnalyticsJob -ResourceGroupName lucas-rg-test -Name sajob-02-pwsh -Location westcentralus -SkuName Standard | Get-AzStreamAnalyticsJob Location Name Type ETag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsOutput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsOutput.md index 9b3cffd10f2f..9fe677e0afc9 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsOutput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsOutput.md @@ -1,6 +1,6 @@ ### Example 1: Get information about job outputs ```powershell -PS C:\> Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh +Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command returns information about the outputs defined on the job. ### Example 2: Get information about a specific job output ```powershell -PS C:\> Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 +Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 Name Type ETag ---- ---- ---- @@ -22,7 +22,7 @@ This command returns information about the output defined on the job. ### Example 3: Get information about a specific job output by pipeline ```powershell -PS C:\>New-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name output-05 -File .\test\template-json\StroageAccount.json | Get-AzStreamAnalyticsOutput +New-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name output-05 -File .\test\template-json\StroageAccount.json | Get-AzStreamAnalyticsOutput Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsQuota.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsQuota.md index 95aa91569c51..a51bbd19baa9 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsQuota.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsQuota.md @@ -1,6 +1,6 @@ ### Example 1: Get information about the Streaming Unit quota for a region ```powershell -PS C:\> Get-AzStreamAnalyticsQuota -Location 'WestCentralUS' +Get-AzStreamAnalyticsQuota -Location 'WestCentralUS' Name Type ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsTransformation.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsTransformation.md index d20506b14bcf..438b164125c0 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsTransformation.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Get-AzStreamAnalyticsTransformation.md @@ -1,6 +1,6 @@ ### Example 1: Get information about a Stream Analytics transformation ```powershell -PS C:\> Get-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 +Get-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command returns information about the transformation on the job. ### Example 2: Get information about a Stream Analytics transformation by pipeline ```powershell -PS C:\> New-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name tranf-01 -StreamingUnit 6 -Query "Select Id, Name from input-01" | Get-AzStreamAnalyticsTransformation + New-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-portal -Name tranf-01 -StreamingUnit 6 -Query "Select Id, Name from input-01" | Get-AzStreamAnalyticsTransformation Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsCluster.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsCluster.md index cdd5524dc3a5..4de089cb7635 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsCluster.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsCluster.md @@ -1,6 +1,6 @@ ### Example 1: Create a new stream analytics cluster ```powershell -PS C:\> New-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-ps-test01 -Location "West Central US" -SkuName "Default" -SkuCapacity 36 +New-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-ps-test01 -Location "West Central US" -SkuName "Default" -SkuCapacity 36 Location Name Type Etag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsFunction.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsFunction.md index d913b0811ada..00b327724cbc 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsFunction.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsFunction.md @@ -1,6 +1,6 @@ ### Example 1: Create a Stream Analytics function ```powershell -PS C:\> New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name function-01 -File .\test\template-json\Function_JavascriptUdf.json +New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name function-01 -File .\test\template-json\Function_JavascriptUdf.json Name Type ETag ---- ---- ---- @@ -38,7 +38,7 @@ This command creates a function from the file Function_JavascriptUdf.json. ### Example 2: Create a Stream Analytics function ```powershell -PS C:\> New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name function-01 -File .\test\template-json\MachineLearningServices.json +New-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name function-01 -File .\test\template-json\MachineLearningServices.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsInput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsInput.md index 48fc3d767625..0186637c320c 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsInput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsInput.md @@ -1,6 +1,6 @@ ### Example 1: Create a job input with a definition from a file ```powershell -PS C:\> New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\EventHub.json +New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\EventHub.json Name Type ETag ---- ---- ---- @@ -40,7 +40,7 @@ This command creates an input from the file EventHub.json. ### Example 2: Create a job input with a definition from a file ```powershell -PS C:\> New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\IotHub.json +New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\IotHub.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsJob.md index cd3c76e1ad41..960022e00506 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Create a stream analytics job ```powershell -PS C:\> New-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh -Location westcentralus -SkuName Standard +New-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh -Location westcentralus -SkuName Standard Location Name Type ETag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsOutput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsOutput.md index 24178a7ce0bc..c50a8f3c83a7 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsOutput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsOutput.md @@ -1,6 +1,6 @@ ### Example 1: Create an output to a stream analytics job ```powershell -PS C:\> New-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 -File .\test\template-json\StroageAccount.json +New-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 -File .\test\template-json\StroageAccount.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsTransformation.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsTransformation.md index 6ad2d24d28b8..2f622967d5bb 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsTransformation.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/New-AzStreamAnalyticsTransformation.md @@ -1,6 +1,6 @@ ### Example 1: Create or replace a transformation in a stream analytics job ```powershell -PS C:\> New-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 -StreamingUnit 6 -Query "Select Id, Name from input-01" +New-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 -StreamingUnit 6 -Query "Select Id, Name from input-01" Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsCluster.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsCluster.md index 456c1687b5be..d370ddabf89f 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsCluster.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsCluster.md @@ -1,6 +1,6 @@ ### Example 1: Remove a stream analytics by name ```powershell -PS C:\> Remove-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test02 +Remove-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test02 ``` This command removes a stream analytics by name. @@ -8,7 +8,7 @@ This command removes a stream analytics by name. ### Example 2: Remove a stream analytics by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 | Remove-AzStreamAnalyticsCluster +Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 | Remove-AzStreamAnalyticsCluster ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsFunction.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsFunction.md index f1e87ea85ed0..b1c493ded98e 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsFunction.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsFunction.md @@ -1,6 +1,6 @@ ### Example 1: Remove a Stream Analytics function ```powershell -PS C:\> Remove-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 +Remove-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 ``` @@ -8,7 +8,7 @@ This command removes the function from the job. ### Example 2: Remove a Stream Analytics function by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-02 | Remove-AzStreamAnalyticsFunction +Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-02 | Remove-AzStreamAnalyticsFunction ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsInput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsInput.md index f4fe17a5e6fb..f9a2dad96960 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsInput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsInput.md @@ -1,6 +1,6 @@ ### Example 1: Remove a Stream Analytics input ```powershell -PS C:\> Remove-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 +Remove-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 ``` @@ -8,7 +8,7 @@ This command removes the input from the job. ### Example 2: Remove a Stream Analytics input by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 | Remove-AzStreamAnalyticsInput +Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 | Remove-AzStreamAnalyticsInput ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsJob.md index 17dffe3bf90f..6348e8de0f9b 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Remove a stream analytics job ```powershell -PS C:\> Remove-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh +Remove-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh ``` @@ -8,7 +8,7 @@ This command removes the stream analytics job. ### Example 2: Remove a stream analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh | Remove-AzStreamAnalyticsJob +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-02-pwsh | Remove-AzStreamAnalyticsJob ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsOutput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsOutput.md index 153a56c0f6a1..0b3e14e4cd20 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsOutput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Remove-AzStreamAnalyticsOutput.md @@ -1,6 +1,6 @@ ### Example 1: Remove a Stream Analytics output ```powershell -PS C:\> Remove-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01 +Remove-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01 ``` @@ -8,7 +8,7 @@ This command removes the output from the job. ### Example 2: Remove a Stream Analytics output by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 | Remove-AzStreamAnalyticsOutput +Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name output-01 | Remove-AzStreamAnalyticsOutput ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Start-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Start-AzStreamAnalyticsJob.md index ed99ed71c6a9..5fadddbfda25 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Start-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Start-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Start a Stream Analytics job ```powershell -PS C:\> Start-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal +Start-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal ``` @@ -8,7 +8,7 @@ This command starts the job StreamingJob. ### Example 2: Start a Stream Analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal | Start-AzStreamAnalyticsJob +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal | Start-AzStreamAnalyticsJob ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Stop-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Stop-AzStreamAnalyticsJob.md index f6bfcdaf2c53..5f7b3815b79a 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Stop-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Stop-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Stop a Stream Analytics job ```powershell -PS C:\> Stop-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal +Stop-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal ``` @@ -8,7 +8,7 @@ This command stops the job StreamingJob. ### Example 2: Stop a Stream Analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal | Stop-AzStreamAnalyticsJob +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-portal | Stop-AzStreamAnalyticsJob ``` diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsFunction.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsFunction.md index 0124fd58e0b1..237c66e28d7a 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsFunction.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsFunction.md @@ -1,6 +1,6 @@ ### Example 1: Test a Stream Analytics function ```powershell -PS C:\> Test-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name mlsfunction-01 +Test-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name mlsfunction-01 Status ------ diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsInput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsInput.md index 1c0f66733226..db594858ec2b 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsInput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsInput.md @@ -1,6 +1,6 @@ ### Example 1: Test the connection status of an input ```powershell -PS C:\> Test-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 +Test-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 Status ------ diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsOutput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsOutput.md index abd8a0faeca7..f1d61ad3ffc6 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsOutput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Test-AzStreamAnalyticsOutput.md @@ -1,6 +1,6 @@ ### Example 1: Test the connection status of an output ```powershell -PS C:\> Test-AzStreamAnalyticsOutput -ResourceGroupName lucas-rg-test -JobName sajob-01-pwsh -Name output-01 +Test-AzStreamAnalyticsOutput -ResourceGroupName lucas-rg-test -JobName sajob-01-pwsh -Name output-01 Status ------ diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsCluster.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsCluster.md index 6eeaa6df8ad6..77164d6448d6 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsCluster.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsCluster.md @@ -1,6 +1,6 @@ ### Example 1: Update a stream analytics cluster by name ```powershell -PS C:\> Update-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 -Tag @{'key4'=4} +Update-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 -Tag @{'key4'=4} Location Name Type Etag -------- ---- ---- ---- @@ -11,8 +11,8 @@ This command updates a stream analytics cluster by name. ### Example 2: Update a stream analytics cluster by pipeline ```powershell -PS C:\> $sac = Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 -PS C:\> Update-AzStreamAnalyticsCluster -InputObject $sac -Tag @{'key2'=2;'key3'=3} +$sac = Get-AzStreamAnalyticsCluster -ResourceGroupName pwshaz-rg-test -Name sac-m-test01 +Update-AzStreamAnalyticsCluster -InputObject $sac -Tag @{'key2'=2;'key3'=3} Location Name Type Etag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsFunction.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsFunction.md index 327de0d4a5a4..5d9b5ec6e723 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsFunction.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsFunction.md @@ -1,6 +1,6 @@ ### Example 1: Update a Stream Analytics function ```powershell -PS C:\> Update-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 -File .\test\template-json\Function_JavascriptUdf.json +Update-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 -File .\test\template-json\Function_JavascriptUdf.json Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command updates a function from the file Function_JavascriptUdf.json. ### Example 2: Update a Stream Analytics function by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 | Update-AzStreamAnalyticsFunction -File .\test\template-json\MachineLearningServices.json +Get-AzStreamAnalyticsFunction -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name function-01 | Update-AzStreamAnalyticsFunction -File .\test\template-json\MachineLearningServices.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsInput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsInput.md index bc2a971998a8..a9d22b61181d 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsInput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsInput.md @@ -1,6 +1,6 @@ ### Example 1: Update a job input with a definition from a file ```powershell -PS C:\> Update-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 -File .\test\template-json\EventHub.json +Update-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 -File .\test\template-json\EventHub.json Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command updates an input from the file EventHub.json. ### Example 2: Update a job input with a definition from a file by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 | Update-AzStreamAnalyticsInput -File .\test\template-json\IotHub.json +Get-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name input-01 | Update-AzStreamAnalyticsInput -File .\test\template-json\IotHub.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsJob.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsJob.md index e410f6da9a71..b3e5a3fbc807 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsJob.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsJob.md @@ -1,6 +1,6 @@ ### Example 1: Update a stream analytics job ```powershell -PS C:\> Update-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh -EventsLateArrivalMaxDelayInSecond 13 -EventsOutOfOrderMaxDelayInSecond 21 +Update-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh -EventsLateArrivalMaxDelayInSecond 13 -EventsOutOfOrderMaxDelayInSecond 21 Location Name Type ETag -------- ---- ---- ---- @@ -11,7 +11,7 @@ This command updates a stream analytics job. ### Example 2: Update a stream analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh | Update-AzStreamAnalyticsJob -EventsLateArrivalMaxDelayInSecond 13 -EventsOutOfOrderMaxDelayInSecond 21 +Get-AzStreamAnalyticsJob -ResourceGroupName azure-rg-test -Name sajob-01-pwsh | Update-AzStreamAnalyticsJob -EventsLateArrivalMaxDelayInSecond 13 -EventsOutOfOrderMaxDelayInSecond 21 Location Name Type ETag -------- ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsOutput.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsOutput.md index 68aea7e3928e..70131887f462 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsOutput.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsOutput.md @@ -1,6 +1,6 @@ ### Example 1: Update an output to a stream analytics job ```powershell -PS C:\> Update-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01 -File .\test\template-json\StroageAccount.json +Update-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01 -File .\test\template-json\StroageAccount.json Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command updates a new output in the stream analytics job. ### Example 2: Update an output to a stream analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01| Update-AzStreamAnalyticsOutput -File .\test\template-json\StroageAccount.json + Get-AzStreamAnalyticsOutput -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name output-01| Update-AzStreamAnalyticsOutput -File .\test\template-json\StroageAccount.json Name Type ETag ---- ---- ---- diff --git a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsTransformation.md b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsTransformation.md index 550c2a20c820..1762d0534157 100644 --- a/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsTransformation.md +++ b/src/StreamAnalytics/StreamAnalytics.Autorest/examples/Update-AzStreamAnalyticsTransformation.md @@ -1,6 +1,6 @@ ### Example 1: Update a transformation in a stream analytics job ```powershell -PS C:\> Update-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 -StreamingUnit 1 +Update-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 -StreamingUnit 1 Name Type ETag ---- ---- ---- @@ -11,7 +11,7 @@ This command updates a transformation in a stream analytics job. ### Example 2: Update a transformation in a stream analytics job by pipeline ```powershell -PS C:\> Get-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 | Update-AzStreamAnalyticsTransformation -StreamingUnit 1 +Get-AzStreamAnalyticsTransformation -ResourceGroupName azure-rg-test -JobName sajob-01-pwsh -Name tranf-01 | Update-AzStreamAnalyticsTransformation -StreamingUnit 1 Name Type ETag ---- ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Add-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/examples/Add-AzSynapseKustoPoolLanguageExtension.md index 2fd80908259e..06c4152313c6 100644 --- a/src/Synapse/Synapse.Autorest/examples/Add-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/examples/Add-AzSynapseKustoPoolLanguageExtension.md @@ -1,6 +1,6 @@ ### Example 1: Add a list of language extensions ```powershell -PS C:\> Add-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}, @{Name="PYTHON"}) +Add-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}, @{Name="PYTHON"}) ``` The above command adds a list of language extensions that can run within KQL queries diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPool.md index 1a2fc693c3ea..93d3db11ef20 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: List all Kusto pools in a workspace ```powershell -PS C:\> Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws +Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws Location Name Type Etag -------- ---- ---- ---- @@ -12,7 +12,7 @@ The above command lists all Kusto pools in the resource group "testrg". ### Example 2: Get a specific Kusto pool by name ```powershell -PS C:\> Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool Location Name Type Etag -------- ---- ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index 771ed34b8601..05d5220f7dcc 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: List all the AttachedDatabaseConfigurations in a kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool +Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool Name Type Location ---- ---- -------- @@ -11,7 +11,7 @@ The above command lists all the AttachedDatabaseConfigurations in the kusto pool ### Example 2: Get a specific AttachedDatabaseConfiguration in a kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration +Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration Name Type Location ---- ---- -------- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDataConnection.md index 6c1e80e656c9..4e6d566ae936 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDataConnection.md @@ -1,6 +1,6 @@ ### Example 1: List all data connections in a specific database ```powershell -PS C:\> Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase Kind Location Name ---- -------- ---- @@ -11,7 +11,7 @@ The above command returns all Kusto connections in the workspace "testws" found ### Example 2: Get a specific data connection by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -DataConnectionName mykustodataconnection +Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -DataConnectionName mykustodataconnection Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabase.md index 21d958a685cd..82b3f3091c77 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabase.md @@ -1,6 +1,6 @@ ### Example 1: List all Kusto databases in a workspace by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool Kind Location Name ---- -------- ---- @@ -11,7 +11,7 @@ The above command returns all Kusto databases in Kusto Pool "testkustopool" in t ### Example 2: Get a specific Kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md index a5dad3607cf8..414845186809 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: List all PrincipalAssignments in a kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase Name Type ---- ---- @@ -12,7 +12,7 @@ The above command returns all PrincipalAssignments in the kusto database "mykust ### Example 2: Get a specific PrincipalAssignment in a kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 + Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 Name Type ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolFollowerDatabase.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolFollowerDatabase.md index 384513c9a48e..0e24d7a5d706 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolFollowerDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolFollowerDatabase.md @@ -1,6 +1,6 @@ ### Example 1: List all followed databases ```powershell -PS C:\> Get-AzSynapseKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool AttachedDatabaseConfigurationName DatabaseName KustoPoolResourceId --------------------------------- ------------ ------------------- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolLanguageExtension.md index 0a7415fbe6c5..80e43428fcde 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolLanguageExtension.md @@ -1,6 +1,6 @@ ### Example 1: List all language extensions set for a workspace ```powershell -PS C:\> Get-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testpool +Get-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testpool Name ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolPrincipalAssignment.md index b92c4218c344..508a8ab30102 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolPrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: List all Kusto principalAssignments ```powershell -PS C:\> Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool Name Type ---- ---- @@ -11,7 +11,7 @@ The above command lists all principalAssignments in the workspace "testws". ### Example 2: Gets a Kusto principalAssignment by name ```powershell -PS C:\> Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 +Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 Name Type ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolSku.md b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolSku.md index 7e8c06b13211..3746f9257d0f 100644 --- a/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolSku.md +++ b/src/Synapse/Synapse.Autorest/examples/Get-AzSynapseKustoPoolSku.md @@ -1,6 +1,6 @@ ### Example 1: Lists eligible SKUs ```powershell -PS C:\> Get-AzSynapseKustoPoolSku +Get-AzSynapseKustoPoolSku Location Name ResourceType Size -------- ---- ------------ ---- @@ -16,7 +16,7 @@ The above command lists eligible SKUs. ### Example 2: Lists eligible SKUs for specific kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolSku -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool +Get-AzSynapseKustoPoolSku -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool ResourceType ------------ diff --git a/src/Synapse/Synapse.Autorest/examples/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md b/src/Synapse/Synapse.Autorest/examples/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md index 819824aa4226..d022ca8a8c40 100644 --- a/src/Synapse/Synapse.Autorest/examples/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md @@ -1,6 +1,6 @@ ### Example 1: Detach a follower database ```powershell -PS C:\> Invoke-AzSynapseDetachKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -AttachedDatabaseConfigurationName "myfollowerconfiguration" -KustoPoolResourceId "/subscriptions/$subscriptionId/resourcegroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testfollowerkustopool" +Invoke-AzSynapseDetachKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -AttachedDatabaseConfigurationName "myfollowerconfiguration" -KustoPoolResourceId "/subscriptions/$subscriptionId/resourcegroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testfollowerkustopool" ``` diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPool.md index ac1d83db6346..1ff0f58251a0 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: Create a new Kusto pool ```powershell -PS C:\> New-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -Location 'East US' -SkuName "Storage optimized" -SkuSize Medium +New-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -Location 'East US' -SkuName "Storage optimized" -SkuSize Medium Location Name Type Etag -------- ---- ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index 2d2141b29859..73a9288ade59 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Create a new AttachedDatabaseConfiguration ```powershell -PS C:\> New-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration -KustoPoolResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testkustopool -DatabaseName testdatabase -DefaultPrincipalsModificationKind Union -Location eastus2 +New-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration -KustoPoolResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testkustopool -DatabaseName testdatabase -DefaultPrincipalsModificationKind Union -Location eastus2 Name Type Location ---- ---- -------- diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDataConnection.md index fdc98d1d6598..9f40cc469d81 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDataConnection.md @@ -1,6 +1,6 @@ ### Example 1: Create a new EventHub data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -11,7 +11,7 @@ The above command creates a new EventHub data connection named "eventhubdc" for ### Example 2: Create a new EventGrid data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" -IgnoreFirstRecord -BlobStorageEventType "Microsoft.Storage.BlobRenamed" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" -IgnoreFirstRecord -BlobStorageEventType "Microsoft.Storage.BlobRenamed" Kind Location Name ---- -------- ---- @@ -22,7 +22,7 @@ The above command creates a new EventGrid data connection named "eventgriddc" fo ### Example 3: Create a new IotHub data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabase.md index b9fa20b7dcd0..3be2c35529cb 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabase.md @@ -1,6 +1,6 @@ ### Example 1: Creates or updates a new kusto database in a workspace ```powershell -PS C:\> New-AzSynapseKustoPoolDatabase -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -Kind "ReadWrite" -Location "East US 2" +New-AzSynapseKustoPoolDatabase -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -Kind "ReadWrite" -Location "East US 2" Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md index 7cdab8dd4026..f3d722cd6f18 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Create a Kusto pool database principalAssignment ```powershell -PS C:\> New-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -PrincipalAssignmentName kustoprincipal -PrincipalId 00000000-0000-0000-0000-000000000000 -PrincipalType App -Role Viewer +New-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -PrincipalAssignmentName kustoprincipal -PrincipalId 00000000-0000-0000-0000-000000000000 -PrincipalType App -Role Viewer Name Type ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolPrincipalAssignment.md index f20e22efb338..d6c664132e7b 100644 --- a/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/New-AzSynapseKustoPoolPrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Create a Kusto pool principalAssignment ```powershell -PS C:\> New-AzKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool -PrincipalAssignmentName kustoprincipal -PrincipalId "00000000-0000-0000-0000-000000000000" -PrincipalType App -Role AllDatabasesAdmin +New-AzKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool -PrincipalAssignmentName kustoprincipal -PrincipalId "00000000-0000-0000-0000-000000000000" -PrincipalType App -Role AllDatabasesAdmin Name Type ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPool.md index 78eb667fb7e8..90fc20786713 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing Kusto pool by name ```powershell -PS C:\> Remove-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Remove-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command deletes the Kusto pool named "testnewkustopool" in the workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index 9cf4aebc84c9..ff47b367ce2e 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing AttachedDatabaseConfiguration by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -AttachedDatabaseConfigurationName "myfollowerconfiguration" +Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -AttachedDatabaseConfigurationName "myfollowerconfiguration" ``` The above command deletes the attached database configuration with the given name "myfollowerconfiguration" from workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDataConnection.md index 0b11529efe88..a0a554094f75 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDataConnection.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing data connection by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDataConnection -ResourceGroupName "testrg" -WrokspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -DataConnectionName "mykustodataconnection" +Remove-AzSynapseKustoPoolDataConnection -ResourceGroupName "testrg" -WrokspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -DataConnectionName "mykustodataconnection" ``` The above command deletes the data connection named "mykustodataconnection" in kusto database "mykustodatabase" of the existing workspace "testws" found in the resource group "testrg" diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabase.md index e3a2384e326b..70402b71bf07 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabase.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing Kusto database by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Name mykustodatabase +Remove-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Name mykustodatabase ``` The above command deletes the Kusto database named "mykustodatabase" in the workspace "testws" found in the resource group "testrg". diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md index 6d9d8eabc5d9..c8c77cef477b 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing Kusto database PrincipalAssignment by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 +Remove-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 ``` The above command deletes the PrincipalAssignment named "kustoprincipal1" in the Kusto database "mykustodatabase" in workspace "testws" found in resource group "testrg". diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolLanguageExtension.md index 0e49dbbc0249..cf0678b9d451 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolLanguageExtension.md @@ -1,6 +1,6 @@ ### Example 1: Remove a list of language extensions from kusto pool ```powershell -PS C:\> Remove-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}) +Remove-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}) ``` The above command removes a list of language extensions that can run within KQL queries. diff --git a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolPrincipalAssignment.md index 099351f7a79b..b9ddaf1e5bbd 100644 --- a/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/examples/Remove-AzSynapseKustoPoolPrincipalAssignment.md @@ -1,6 +1,6 @@ ### Example 1: Delete an existing Kusto pool PrincipalAssignment by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 +Remove-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 ``` The above command deletes a Kusto pool principalAssignment "kustoprincipal1" in the workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/examples/Start-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/Start-AzSynapseKustoPool.md index 62580b11b085..10e5cbf0a7d6 100644 --- a/src/Synapse/Synapse.Autorest/examples/Start-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/Start-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: Start a Kusto pool ```powershell -PS C:\> Start-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Start-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command starts a Kusto pool. diff --git a/src/Synapse/Synapse.Autorest/examples/Stop-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/Stop-AzSynapseKustoPool.md index 9d97bfe839be..f09dfb85f156 100644 --- a/src/Synapse/Synapse.Autorest/examples/Stop-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/Stop-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: Stop a Kusto pool ```powershell -PS C:\> Stop-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Stop-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command stops a Kusto pool. diff --git a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPool.md index e60d58a42ef1..f83728ac32b8 100644 --- a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPool.md @@ -1,6 +1,6 @@ ### Example 1: Update an existing cluster by name ```powershell -PS C:\> Update-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -SkuName "Storage optimized" -SkuSize Medium +Update-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -SkuName "Storage optimized" -SkuSize Medium Location Name Type Etag -------- ---- ---- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDataConnection.md index dc4497bc74bf..86c39e8a8b03 100644 --- a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDataConnection.md @@ -1,6 +1,6 @@ ### Example 1: Update an existing EventHub data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -11,7 +11,7 @@ The above command updates the existing EventHub data connection named "eventhubd ### Example 2: Update an existing EventGrid data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -22,7 +22,7 @@ The above command updates the existing EventGrid data connection named "eventgri ### Example 3: Update an existing IotHub data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -33,8 +33,8 @@ The above command updates the existing IotHub data connection named "iothubdc" f ### Example 4: Update an existing EventHub data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -45,8 +45,8 @@ The above command updates the existing EventHub data connection named "eventhubd ### Example 5: Update an existing EventGrid data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- @@ -57,8 +57,8 @@ The above command updates the existing EventGrid data connection named "eventgri ### Example 6: Update an existing IotHub data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDatabase.md index 852cfb201e75..3f49d1a6b1a0 100644 --- a/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/examples/Update-AzSynapseKustoPoolDatabase.md @@ -1,8 +1,8 @@ ### Example 1: Update an existing database by name ```powershell -PS C:\> $2ds = New-TimeSpan -Days 2 -PS C:\> $4ds = New-TimeSpan -Days 4 -PS C:\> Update-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +$2ds = New-TimeSpan -Days 2 +$4ds = New-TimeSpan -Days 4 +Update-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' Kind Location Name ---- -------- ---- @@ -13,10 +13,10 @@ The above command updates the soft deletion period and hot cache period of the K ### Example 2: Update an existing database via identity ```powershell -PS C:\> $database = Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PS C:\> $2ds = New-TimeSpan -Days 2 -PS C:\> $4ds = New-TimeSpan -Days 4 -PS C:\> Update-AzSynapseKustoPoolDatabase -InputObject $database -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +$database = Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +$2ds = New-TimeSpan -Days 2 +$4ds = New-TimeSpan -Days 4 +Update-AzSynapseKustoPoolDatabase -InputObject $database -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' Kind Location Name ---- -------- ---- diff --git a/src/Synapse/Synapse.Autorest/docs/Add-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/help/Add-AzSynapseKustoPoolLanguageExtension.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/Add-AzSynapseKustoPoolLanguageExtension.md rename to src/Synapse/Synapse.Autorest/help/Add-AzSynapseKustoPoolLanguageExtension.md index 5714bcbf1a60..95a2e18ec3bf 100644 --- a/src/Synapse/Synapse.Autorest/docs/Add-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/help/Add-AzSynapseKustoPoolLanguageExtension.md @@ -32,7 +32,7 @@ Add a list of language extensions that can run within KQL queries. ### Example 1: Add a list of language extensions ```powershell -PS C:\> Add-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}, @{Name="PYTHON"}) +Add-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}, @{Name="PYTHON"}) ``` The above command adds a list of language extensions that can run within KQL queries diff --git a/src/Synapse/Synapse.Autorest/docs/Az.Synapse.md b/src/Synapse/Synapse.Autorest/help/Az.Synapse.md similarity index 100% rename from src/Synapse/Synapse.Autorest/docs/Az.Synapse.md rename to src/Synapse/Synapse.Autorest/help/Az.Synapse.md diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPool.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPool.md index 8c49f11e9a8d..057d8829e224 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPool.md @@ -36,8 +36,10 @@ Gets a Kusto pool. ### Example 1: List all Kusto pools in a workspace ```powershell -PS C:\> Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws +Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws +``` +```output Location Name Type Etag -------- ---- ---- ---- East US 2 testws/testnewkustopool Microsoft.Synapse/workspaces/kustoPools @@ -48,8 +50,10 @@ The above command lists all Kusto pools in the resource group "testrg". ### Example 2: Get a specific Kusto pool by name ```powershell -PS C:\> Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Get-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +``` +```output Location Name Type Etag -------- ---- ---- ---- East US 2 testws/testnewkustopool Microsoft.Synapse/workspaces/kustoPools diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md similarity index 94% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index 51799aca9028..b9afc39767f5 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -38,8 +38,10 @@ Returns an attached database configuration. ### Example 1: List all the AttachedDatabaseConfigurations in a kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool +Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool +``` +```output Name Type Location ---- ---- -------- testws/testfollowerkustopool/followerconfiguration Microsoft.Synapse/workspaces/kustoPools/AttachedDatabaseConfigurations East US 2 @@ -49,8 +51,10 @@ The above command lists all the AttachedDatabaseConfigurations in the kusto pool ### Example 2: Get a specific AttachedDatabaseConfiguration in a kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration +Get-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration +``` +```output Name Type Location ---- ---- -------- testws/testfollowerkustopool/followerconfiguration Microsoft.Synapse/workspaces/kustoPools/AttachedDatabaseConfigurations East US 2 diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDataConnection.md similarity index 94% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDataConnection.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDataConnection.md index ca3b1506cf13..a145fcffb99f 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDataConnection.md @@ -39,8 +39,10 @@ Returns a data connection. ### Example 1: List all data connections in a specific database ```powershell -PS C:\> Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +``` +```output Kind Location Name ---- -------- ---- EventHub East US 2 testws/testkustopool/mykustodatabase/eventhubdc @@ -50,8 +52,10 @@ The above command returns all Kusto connections in the workspace "testws" found ### Example 2: Get a specific data connection by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -DataConnectionName mykustodataconnection +Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -DataConnectionName mykustodataconnection +``` +```output Kind Location Name ---- -------- ---- EventHub East US 2 testws/testkustopool/mykustodatabase/mykustodataconnection diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabase.md similarity index 95% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabase.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabase.md index 60ff7abe457b..33260d9e95ac 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabase.md @@ -37,8 +37,10 @@ Returns a database. ### Example 1: List all Kusto databases in a workspace by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +``` +```output Kind Location Name ---- -------- ---- ReadWrite East US 2 testws/testnewkustopool/mykustodatabase @@ -48,8 +50,10 @@ The above command returns all Kusto databases in Kusto Pool "testkustopool" in t ### Example 2: Get a specific Kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +``` +```output Kind Location Name ---- -------- ---- ReadWrite East US 2 testws/testnewkustopool/mykustodatabase diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md similarity index 93% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md index caaef5bfe3d8..359e676a2af7 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -39,8 +39,10 @@ Gets a Kusto pool database principalAssignment. ### Example 1: List all PrincipalAssignments in a kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +``` +```output Name Type ---- ---- testws/testkustopool/mykustodatabase/kustoprincipal1 Microsoft.Synapse/workspaces/kustoPools/Databases/PrincipalAssignments @@ -51,8 +53,10 @@ The above command returns all PrincipalAssignments in the kusto database "mykust ### Example 2: Get a specific PrincipalAssignment in a kusto database by name ```powershell -PS C:\> Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 + Get-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 +``` +```output Name Type ---- ---- testws/testkustopool/mykustodatabase/kustoprincipal1 Microsoft.Synapse/workspaces/kustoPools/Databases/PrincipalAssignments diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolFollowerDatabase.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolFollowerDatabase.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolFollowerDatabase.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolFollowerDatabase.md index 5524f2604368..0e9af3d23894 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolFollowerDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolFollowerDatabase.md @@ -25,8 +25,10 @@ Returns a list of databases that are owned by this Kusto Pool and were followed ### Example 1: List all followed databases ```powershell -PS C:\> Get-AzSynapseKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +``` +```output AttachedDatabaseConfigurationName DatabaseName KustoPoolResourceId --------------------------------- ------------ ------------------- conf1 testdatabase /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/followerpool diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolLanguageExtension.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolLanguageExtension.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolLanguageExtension.md index cdb36c4349eb..d7847406c090 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolLanguageExtension.md @@ -25,8 +25,10 @@ Returns a list of language extensions that can run within KQL queries. ### Example 1: List all language extensions set for a workspace ```powershell -PS C:\> Get-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testpool +Get-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testpool +``` +```output Name ---- PYTHON diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolPrincipalAssignment.md similarity index 94% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolPrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolPrincipalAssignment.md index ceb2a65c3e96..7fc283a78b2a 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolPrincipalAssignment.md @@ -38,8 +38,10 @@ Gets a Kusto pool principalAssignment. ### Example 1: List all Kusto principalAssignments ```powershell -PS C:\> Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool +``` +```output Name Type ---- ---- testws/testkustopool/kustoprincipal1 Microsoft.Synapse/workspaces/kustoPools/PrincipalAssignments @@ -49,8 +51,10 @@ The above command lists all principalAssignments in the workspace "testws". ### Example 2: Gets a Kusto principalAssignment by name ```powershell -PS C:\> Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 +Get-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 +``` +```output Name Type ---- ---- testws/testkustopool/kustoprincipal1 Microsoft.Synapse/workspaces/kustoPools/PrincipalAssignments diff --git a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolSku.md b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolSku.md similarity index 95% rename from src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolSku.md rename to src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolSku.md index 8c379a50617a..daa1eb345022 100644 --- a/src/Synapse/Synapse.Autorest/docs/Get-AzSynapseKustoPoolSku.md +++ b/src/Synapse/Synapse.Autorest/help/Get-AzSynapseKustoPoolSku.md @@ -30,8 +30,10 @@ Lists eligible SKUs for Kusto Pool resource. ### Example 1: Lists eligible SKUs ```powershell -PS C:\> Get-AzSynapseKustoPoolSku +Get-AzSynapseKustoPoolSku +``` +```output Location Name ResourceType Size -------- ---- ------------ ---- {australiacentral} Compute optimized workspaces/kustoPools Extra small @@ -46,8 +48,10 @@ The above command lists eligible SKUs. ### Example 2: Lists eligible SKUs for specific kusto pool ```powershell -PS C:\> Get-AzSynapseKustoPoolSku -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool +Get-AzSynapseKustoPoolSku -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool +``` +```output ResourceType ------------ Microsoft.Synapse/workspaces/kustoPools diff --git a/src/Synapse/Synapse.Autorest/docs/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md b/src/Synapse/Synapse.Autorest/help/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md similarity index 94% rename from src/Synapse/Synapse.Autorest/docs/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md rename to src/Synapse/Synapse.Autorest/help/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md index d2767ed0fa94..27f42dab7995 100644 --- a/src/Synapse/Synapse.Autorest/docs/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/Invoke-AzSynapseDetachKustoPoolFollowerDatabase.md @@ -34,7 +34,7 @@ Detaches all followers of a database owned by this Kusto Pool. ### Example 1: Detach a follower database ```powershell -PS C:\> Invoke-AzSynapseDetachKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -AttachedDatabaseConfigurationName "myfollowerconfiguration" -KustoPoolResourceId "/subscriptions/$subscriptionId/resourcegroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testfollowerkustopool" +Invoke-AzSynapseDetachKustoPoolFollowerDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -AttachedDatabaseConfigurationName "myfollowerconfiguration" -KustoPoolResourceId "/subscriptions/$subscriptionId/resourcegroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testfollowerkustopool" ``` diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPool.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPool.md index ec2fab572cba..0d987eccbe86 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPool.md @@ -27,8 +27,10 @@ Create or update a Kusto pool. ### Example 1: Create a new Kusto pool ```powershell -PS C:\> New-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -Location 'East US' -SkuName "Storage optimized" -SkuSize Medium +New-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -Location 'East US' -SkuName "Storage optimized" -SkuSize Medium +``` +```output Location Name Type Etag -------- ---- ---- ---- East US 2 testws/testnewkustopool Microsoft.Synapse/workspaces/kustoPools diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md similarity index 94% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index 8d39b1c218c6..4fe747b6eef0 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -32,8 +32,11 @@ Creates or updates an attached database configuration. ### Example 1: Create a new AttachedDatabaseConfiguration ```powershell -PS C:\> New-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration -KustoPoolResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testkustopool -DatabaseName testdatabase -DefaultPrincipalsModificationKind Union -Location eastus2 +New-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testfollowerkustopool -Name followerconfiguration -KustoPoolResourceId /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/kustoPools/testkustopool -DatabaseName testdatabase -DefaultPrincipalsModificationKind Union -Location eastus2 +``` + +```output Name Type Location ---- ---- -------- testws/testfollowerkustopool/followerconfiguration Microsoft.Synapse/workspaces/kustoPools/AttachedDatabaseConfigurations East US 2 diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDataConnection.md similarity index 87% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDataConnection.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDataConnection.md index dd19dd8719c6..d2f3abfbf1a6 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDataConnection.md @@ -69,8 +69,10 @@ Creates or updates a data connection. ### Example 1: Create a new EventHub data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- EventHub East US 2 testws/testkustopool/testdatabase/eventhubdc @@ -80,8 +82,10 @@ The above command creates a new EventHub data connection named "eventhubdc" for ### Example 2: Create a new EventGrid data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" -IgnoreFirstRecord -BlobStorageEventType "Microsoft.Storage.BlobRenamed" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" -IgnoreFirstRecord -BlobStorageEventType "Microsoft.Storage.BlobRenamed" +``` +```output Kind Location Name ---- -------- ---- EventGrid East US 2 testws/testkustopool/testdatabase/eventgriddc @@ -91,8 +95,10 @@ The above command creates a new EventGrid data connection named "eventgriddc" fo ### Example 3: Create a new IotHub data connection ```powershell -PS C:\> New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +New-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- IotHub East US 2 testws/testkustopool/testdatabase/iothubdc diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabase.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabase.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabase.md index 3ec523c1f456..57d13f60af27 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabase.md @@ -26,8 +26,10 @@ Creates or updates a database. ### Example 1: Creates or updates a new kusto database in a workspace ```powershell -PS C:\> New-AzSynapseKustoPoolDatabase -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -Kind "ReadWrite" -Location "East US 2" +New-AzSynapseKustoPoolDatabase -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -Kind "ReadWrite" -Location "East US 2" +``` +```output Kind Location Name ---- -------- ---- ReadWrite East US 2 testws/testkustopool/mykustodatabase diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md similarity index 95% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md index 4c4663d6b056..9415c956cfce 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -27,8 +27,10 @@ Creates a Kusto pool database principalAssignment. ### Example 1: Create a Kusto pool database principalAssignment ```powershell -PS C:\> New-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -PrincipalAssignmentName kustoprincipal -PrincipalId 00000000-0000-0000-0000-000000000000 -PrincipalType App -Role Viewer +New-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -PrincipalAssignmentName kustoprincipal -PrincipalId 00000000-0000-0000-0000-000000000000 -PrincipalType App -Role Viewer +``` +```output Name Type ---- ---- testws/testkustopool/testdatabase/kustoprincipal Microsoft.Synapse/workspaces/kustoPools/Databases/PrincipalAssignments diff --git a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolPrincipalAssignment.md similarity index 95% rename from src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolPrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolPrincipalAssignment.md index b912de2452fd..d1b33c7d9c71 100644 --- a/src/Synapse/Synapse.Autorest/docs/New-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/New-AzSynapseKustoPoolPrincipalAssignment.md @@ -26,8 +26,10 @@ Create a Kusto pool principalAssignment. ### Example 1: Create a Kusto pool principalAssignment ```powershell -PS C:\> New-AzKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool -PrincipalAssignmentName kustoprincipal -PrincipalId "00000000-0000-0000-0000-000000000000" -PrincipalType App -Role AllDatabasesAdmin +New-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testnewkustopool -PrincipalAssignmentName kustoprincipal -PrincipalId "00000000-0000-0000-0000-000000000000" -PrincipalType App -Role AllDatabasesAdmin +``` +```output Name Type ---- ---- testws/testnewkustopool/kustoprincipal Microsoft.Synapse/workspaces/kustoPools/PrincipalAssignments diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPool.md similarity index 98% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPool.md index 6209348b4ef0..c0423522c259 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPool.md @@ -32,7 +32,7 @@ Deletes a Kusto pool. ### Example 1: Delete an existing Kusto pool by name ```powershell -PS C:\> Remove-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Remove-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command deletes the Kusto pool named "testnewkustopool" in the workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md index f5c4525e53f6..35e1d0a230cc 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration.md @@ -32,7 +32,7 @@ Deletes the attached database configuration with the given name. ### Example 1: Delete an existing AttachedDatabaseConfiguration by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -AttachedDatabaseConfigurationName "myfollowerconfiguration" +Remove-AzSynapseKustoPoolAttachedDatabaseConfiguration -ResourceGroupName "testrg" -WorkspaceName "testws" -KustoPoolName "testkustopool" -AttachedDatabaseConfigurationName "myfollowerconfiguration" ``` The above command deletes the attached database configuration with the given name "myfollowerconfiguration" from workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDataConnection.md similarity index 96% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDataConnection.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDataConnection.md index 05f291e0d1c1..15a0d6761a72 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDataConnection.md @@ -32,7 +32,7 @@ Deletes the data connection with the given name. ### Example 1: Delete an existing data connection by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDataConnection -ResourceGroupName "testrg" -WrokspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -DataConnectionName "mykustodataconnection" +Remove-AzSynapseKustoPoolDataConnection -ResourceGroupName "testrg" -WrokspaceName "testws" -KustoPoolName "testkustopool" -DatabaseName "mykustodatabase" -DataConnectionName "mykustodataconnection" ``` The above command deletes the data connection named "mykustodataconnection" in kusto database "mykustodatabase" of the existing workspace "testws" found in the resource group "testrg" diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabase.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabase.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabase.md index 406213f7a4c4..83009daf9650 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabase.md @@ -32,7 +32,7 @@ Deletes the database with the given name. ### Example 1: Delete an existing Kusto database by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Name mykustodatabase +Remove-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Name mykustodatabase ``` The above command deletes the Kusto database named "mykustodatabase" in the workspace "testws" found in the resource group "testrg". diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md index 01371dd9aeb0..a1c7da1c6414 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolDatabasePrincipalAssignment.md @@ -33,7 +33,7 @@ Deletes a Kusto pool principalAssignment. ### Example 1: Delete an existing Kusto database PrincipalAssignment by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 +Remove-AzSynapseKustoPoolDatabasePrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -DatabaseName mykustodatabase -PrincipalAssignmentName kustoprincipal1 ``` The above command deletes the PrincipalAssignment named "kustoprincipal1" in the Kusto database "mykustodatabase" in workspace "testws" found in resource group "testrg". diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolLanguageExtension.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolLanguageExtension.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolLanguageExtension.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolLanguageExtension.md index 6fb659db456b..6778fb8e1b9f 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolLanguageExtension.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolLanguageExtension.md @@ -32,7 +32,7 @@ Remove a list of language extensions that can run within KQL queries. ### Example 1: Remove a list of language extensions from kusto pool ```powershell -PS C:\> Remove-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}) +Remove-AzSynapseKustoPoolLanguageExtension -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -Value (@{Name="R"}) ``` The above command removes a list of language extensions that can run within KQL queries. diff --git a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolPrincipalAssignment.md b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolPrincipalAssignment.md similarity index 97% rename from src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolPrincipalAssignment.md rename to src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolPrincipalAssignment.md index c69d2d5f4288..b861921e3522 100644 --- a/src/Synapse/Synapse.Autorest/docs/Remove-AzSynapseKustoPoolPrincipalAssignment.md +++ b/src/Synapse/Synapse.Autorest/help/Remove-AzSynapseKustoPoolPrincipalAssignment.md @@ -32,7 +32,7 @@ Deletes a Kusto pool principalAssignment. ### Example 1: Delete an existing Kusto pool PrincipalAssignment by name ```powershell -PS C:\> Remove-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 +Remove-AzSynapseKustoPoolPrincipalAssignment -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -PrincipalAssignmentName kustoprincipal1 ``` The above command deletes a Kusto pool principalAssignment "kustoprincipal1" in the workspace "testws". diff --git a/src/Synapse/Synapse.Autorest/docs/Start-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/Start-AzSynapseKustoPool.md similarity index 98% rename from src/Synapse/Synapse.Autorest/docs/Start-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/Start-AzSynapseKustoPool.md index e060034fb1fd..5378c9cbbc72 100644 --- a/src/Synapse/Synapse.Autorest/docs/Start-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/Start-AzSynapseKustoPool.md @@ -32,7 +32,7 @@ Starts a Kusto pool. ### Example 1: Start a Kusto pool ```powershell -PS C:\> Start-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Start-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command starts a Kusto pool. diff --git a/src/Synapse/Synapse.Autorest/docs/Stop-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/Stop-AzSynapseKustoPool.md similarity index 98% rename from src/Synapse/Synapse.Autorest/docs/Stop-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/Stop-AzSynapseKustoPool.md index 154a597076e8..7a70379c9695 100644 --- a/src/Synapse/Synapse.Autorest/docs/Stop-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/Stop-AzSynapseKustoPool.md @@ -32,7 +32,7 @@ Stops a Kusto pool. ### Example 1: Stop a Kusto pool ```powershell -PS C:\> Stop-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool +Stop-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool ``` The above command stops a Kusto pool. diff --git a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPool.md b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPool.md similarity index 98% rename from src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPool.md rename to src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPool.md index c7773bcd8c4d..00bedf237601 100644 --- a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPool.md +++ b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPool.md @@ -38,8 +38,10 @@ Update a Kusto Kusto Pool. ### Example 1: Update an existing cluster by name ```powershell -PS C:\> Update-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -SkuName "Storage optimized" -SkuSize Medium +Update-AzSynapseKustoPool -ResourceGroupName testrg -WorkspaceName testws -Name testnewkustopool -SkuName "Storage optimized" -SkuSize Medium +``` +```output Location Name Type Etag -------- ---- ---- ---- East US 2 testws/testnewkustopool Microsoft.Synapse/workspaces/kustoPools diff --git a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDataConnection.md b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDataConnection.md similarity index 82% rename from src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDataConnection.md rename to src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDataConnection.md index acd574423123..bdbbc9715e7f 100644 --- a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDataConnection.md +++ b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDataConnection.md @@ -76,8 +76,10 @@ Updates a data connection. ### Example 1: Update an existing EventHub data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- EventHub East US 2 testws/testkustopool/testdatabase/eventhubdc @@ -87,8 +89,10 @@ The above command updates the existing EventHub data connection named "eventhubd ### Example 2: Update an existing EventGrid data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- EventGrid East US 2 testws/testkustopool/testdatabase/eventgriddc @@ -98,8 +102,10 @@ The above command updates the existing EventGrid data connection named "eventgri ### Example 3: Update an existing IotHub data connection ```powershell -PS C:\> Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +Update-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- IotHub East US 2 testws/testkustopool/testdatabase/iothubdc @@ -109,9 +115,11 @@ The above command updates the existing IotHub data connection named "iothubdc" f ### Example 4: Update an existing EventHub data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventhubdc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventHub -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -DataFormat "JSON" -ConsumerGroup '$Default' -Compression "None" -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- EventHub East US 2 testws/testkustopool/testdatabase/eventhubdc @@ -121,9 +129,11 @@ The above command updates the existing EventHub data connection named "eventhubd ### Example 5: Update an existing EventGrid data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name eventgriddc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind EventGrid -EventHubResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.EventHub/namespaces/testeventhubns/eventhubs/testeventhub" -StorageAccountResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorage" -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- EventGrid East US 2 testws/testkustopool/testdatabase/eventgriddc @@ -133,9 +143,11 @@ The above command updates the existing EventGrid data connection named "eventgri ### Example 6: Update an existing IotHub data connection via identity ```powershell -PS C:\> $dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc -PS C:\> Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +$dataConnection = Get-AzSynapseKustoPoolDataConnection -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName testdatabase -Name iothubdc +Update-AzSynapseKustoPoolDataConnection -InputObject $dataConnection -Location eastus2 -Kind IotHub -IotHubResourceId "/subscriptions/051ddeca-1ed6-4d8b-ba6f-1ff561e5f3b3/resourceGroups/ywtest/providers/Microsoft.Devices/IotHubs/ywtestiothub" -SharedAccessPolicyName registryRead -DataFormat "JSON" -ConsumerGroup '$Default' -TableName "Events" -MappingRuleName "EventsMapping" +``` +```output Kind Location Name ---- -------- ---- IotHub East US 2 testws/testkustopool/testdatabase/iothubdc diff --git a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDatabase.md b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDatabase.md similarity index 91% rename from src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDatabase.md rename to src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDatabase.md index ef9ba0414d58..589141fa3032 100644 --- a/src/Synapse/Synapse.Autorest/docs/Update-AzSynapseKustoPoolDatabase.md +++ b/src/Synapse/Synapse.Autorest/help/Update-AzSynapseKustoPoolDatabase.md @@ -34,10 +34,12 @@ Updates a database. ### Example 1: Update an existing database by name ```powershell -PS C:\> $2ds = New-TimeSpan -Days 2 -PS C:\> $4ds = New-TimeSpan -Days 4 -PS C:\> Update-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +$2ds = New-TimeSpan -Days 2 +$4ds = New-TimeSpan -Days 4 +Update-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +``` +```output Kind Location Name ---- -------- ---- ReadWrite East US testws/testkustopool/mykustodatabase @@ -47,11 +49,13 @@ The above command updates the soft deletion period and hot cache period of the K ### Example 2: Update an existing database via identity ```powershell -PS C:\> $database = Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase -PS C:\> $2ds = New-TimeSpan -Days 2 -PS C:\> $4ds = New-TimeSpan -Days 4 -PS C:\> Update-AzSynapseKustoPoolDatabase -InputObject $database -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +$database = Get-AzSynapseKustoPoolDatabase -ResourceGroupName testrg -WorkspaceName testws -KustoPoolName testkustopool -DatabaseName mykustodatabase +$2ds = New-TimeSpan -Days 2 +$4ds = New-TimeSpan -Days 4 +Update-AzSynapseKustoPoolDatabase -InputObject $database -Kind ReadWrite -SoftDeletePeriod $4ds -HotCachePeriod $2ds -Location 'East US' +``` +```output Kind Location Name ---- -------- ---- ReadWrite East US testws/testkustopool/mykustodatabase diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsAccessPolicy.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsAccessPolicy.md index a6180401ad1d..cc867b60d2b1 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsAccessPolicy.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsAccessPolicy.md @@ -1,6 +1,6 @@ ### Example 1: List all access policies under a specified environment ```powershell -PS C:\> Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup +Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup Name Type ---- ---- @@ -12,7 +12,7 @@ This command lists all access policies under a specified environment. ### Example 2: Get a specified access policy by name ```powershell -PS C:\> Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name policy001 +Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name policy001 Name Type ---- ---- @@ -23,8 +23,8 @@ This command gets a specified access policy. ### Example 3: Get a specified access policy by object ```powershell -PS C:\>$ap = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsi-envv8u56x -ResourceGroupName tsi-test-i01k5l -Name tsi-apilgj5y -PS C:\>Get-AzTimeSeriesInsightsAccessPolicy -InputObject $ap +$ap = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsi-envv8u56x -ResourceGroupName tsi-test-i01k5l -Name tsi-apilgj5y +Get-AzTimeSeriesInsightsAccessPolicy -InputObject $ap Name Type ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEnvironment.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEnvironment.md index afc3ed9dd212..f70439790c70 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEnvironment.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEnvironment.md @@ -1,6 +1,6 @@ ### Example 1: Get a time series insights environment ```powershell -PS C:\> Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 +Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 DataAccessFqdn : b6d113a4-0865-405f-b09e-ad4355b5d046.env.timeseries.azure.com DataAccessId : b6d113a4-0865-405f-b09e-ad4355b5d046 @@ -29,7 +29,7 @@ This command gets a time series insights environment. ### Example 2: List all time series insights environments ```powershell -PS C:\> Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup +Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup DataAccessFqdn : 3de1d1e1-4f9b-4bc6-aad3-a835597dcd86.env.timeseries.azure.com DataAccessId : 3de1d1e1-4f9b-4bc6-aad3-a835597dcd86 @@ -80,8 +80,8 @@ This command lists all time series insights environments in a resource group. ### Example 3: Get a time series insights environment by object ```powershell -PS C:\> $env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName tsi-test-i01k5l -Name tsi-envv8u56x -PS C:\> Get-AzTimeSeriesInsightsEnvironment -InputObject $env +$env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName tsi-test-i01k5l -Name tsi-envv8u56x +Get-AzTimeSeriesInsightsEnvironment -InputObject $env DataAccessFqdn : d76a61f2-8a30-41a5-9587-f241eb9b48d9.env.timeseries.azure.com DataAccessId : d76a61f2-8a30-41a5-9587-f241eb9b48d9 diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEventSource.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEventSource.md index 39c0250f6c0c..076426887050 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEventSource.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsEventSource.md @@ -1,6 +1,6 @@ ### Example 1: List all event sources under the specified environment ```powershell -PS C:\> Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001 +Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001 ConsumerGroupName : testgroup2 EventHubName : hubname001 @@ -35,7 +35,7 @@ This command lists all event sources under the specified environments. ### Example 2: Get a specified event source by name ```powershell -PS C:\> Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001 -Name iots001 +Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001 -Name iots001 ConsumerGroupName : testgroup2 EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.Devices/IotHubs/iotname001 @@ -55,8 +55,8 @@ This command gets a specific event source. ### Example 3: Get a specified event source by object ```powershell -PS C:\> $es = Get-AzTimeSeriesInsightsEventSource -ResourceGroupName tsi-test-i01k5l -EnvironmentName tsi-envv8u56x -Name tsi-esrfyi9h -PS C:\> Get-AzTimeSeriesInsightsEventSource -InputObject $es +$es = Get-AzTimeSeriesInsightsEventSource -ResourceGroupName tsi-test-i01k5l -EnvironmentName tsi-envv8u56x -Name tsi-esrfyi9h +Get-AzTimeSeriesInsightsEventSource -InputObject $es ConsumerGroupName : tsi-test-i01k5l EventHubName : eventhubname-d2rvmp diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsReferenceDataSet.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsReferenceDataSet.md index ab3411c1bfe7..34c20eeaa4d3 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsReferenceDataSet.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Get-AzTimeSeriesInsightsReferenceDataSet.md @@ -1,6 +1,6 @@ ### Example 1: List all reference data sets under the specified environment ```powershell -PS C:\> Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup +Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup Location Name Type -------- ---- ---- @@ -12,7 +12,7 @@ This command lists all reference data sets under the specified environment. ### Example 2: Get a specified reference data set by name ```powershell -PS C:\> Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup -ReferenceDataSetName dstest001 +Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup -ReferenceDataSetName dstest001 Location Name Type -------- ---- ---- @@ -23,8 +23,8 @@ This command gets a specified reference data set. ### Example 3: Get a specified reference data set by object ```powershell -PS C:\> $ds = Get-AzTimeSeriesInsightsReferenceDataSet -ResourceGroupName tsi-test-i01k5l -EnvironmentName tsi-envv8u56x -Name tsirdsqwufij -PS C:\> Get-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds +$ds = Get-AzTimeSeriesInsightsReferenceDataSet -ResourceGroupName tsi-test-i01k5l -EnvironmentName tsi-envv8u56x -Name tsirdsqwufij +Get-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds Location Name Type -------- ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsAccessPolicy.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsAccessPolicy.md index 090c9a3ff894..487f42cddd1f 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsAccessPolicy.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsAccessPolicy.md @@ -1,6 +1,6 @@ ### Example 1: Create an access policy for a specified environment ```powershell -PS C:\> New-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -PrincipalObjectId ce74a389-b5e8-4f16-89c7-787031ddd903 -Role Contributor -Name policy001 +New-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -PrincipalObjectId ce74a389-b5e8-4f16-89c7-787031ddd903 -Role Contributor -Name policy001 Name Type ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEnvironment.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEnvironment.md index fbd3fa0201ee..fdea0f94b157 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEnvironment.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEnvironment.md @@ -1,7 +1,7 @@ ### Example 1: Create a Gen1 time series insights environment ```powershell -PS C:\> $TimeSpan = New-TimeSpan -Days 1 -Hours 1 -Minutes 25 -PS C:\> New-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 -Kind Gen1 -Location eastus -Sku S1 -DataRetentionTime $TimeSpan -Capacity 2 +$TimeSpan = New-TimeSpan -Days 1 -Hours 1 -Minutes 25 +New-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 -Kind Gen1 -Location eastus -Sku S1 -DataRetentionTime $TimeSpan -Capacity 2 Kind Location Name SkuCapacity SkuName Type ---- -------- ---- ----------- ------- ---- @@ -12,9 +12,9 @@ This command creates a Gen1 time series insights environment. ### Example 2: Create a Gen2 time series insights environment ```powershell -PS C:\> $ks = Get-AzStorageAccountKey -ResourceGroupName "testgroup" -Name "staccount001" -PS C:\> $k = $ks[0].Value | ConvertTo-SecureString -AsPlainText -Force -PS C:\> New-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest002 -Kind Gen2 -Location eastus -Sku L1 -StorageAccountName staccount001 -StorageAccountKey $k -TimeSeriesIdProperty @{name='cdc';type='string'} +$ks = Get-AzStorageAccountKey -ResourceGroupName "testgroup" -Name "staccount001" +$k = $ks[0].Value | ConvertTo-SecureString -AsPlainText -Force +New-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest002 -Kind Gen2 -Location eastus -Sku L1 -StorageAccountName staccount001 -StorageAccountKey $k -TimeSeriesIdProperty @{name='cdc';type='string'} Kind Location Name SkuCapacity SkuName Type ---- -------- ---- ----------- ------- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEventSource.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEventSource.md index c4dc6079c526..5aed973c008d 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEventSource.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsEventSource.md @@ -1,10 +1,10 @@ ### Example 1: Create an eventhub event source under the specified environment ```powershell -PS C:\> New-AzEventHubNamespace -Name spacename002 -ResourceGroupName testgroup -Location eastus -PS C:\> $ev = New-AzEventHub -ResourceGroupName testgroup -NamespaceName spacename002 -Name hubname001 -RetentionTimeInHour 72 -PartitionCount 2 -PS C:\> $ks = Get-AzEventHubKey -ResourceGroupName testgroup -NamespaceName spacename002 -AuthorizationRuleName RootManageSharedAccessKey -PS C:\> $k = $ks.PrimaryKey | ConvertTo-SecureString -AsPlainText -Force -PS C:\> New-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -Name estest001 -EnvironmentName tsitest001 -Kind Microsoft.EventHub -ConsumerGroupName testgroup -Location eastus -KeyName RootManageSharedAccessKey -ServiceBusNameSpace spacename002 -EventHubName hubname001 -EventSourceResourceId $ev.id -SharedAccessKey $k +New-AzEventHubNamespace -Name spacename002 -ResourceGroupName testgroup -Location eastus +$ev = New-AzEventHub -ResourceGroupName testgroup -NamespaceName spacename002 -Name hubname001 -RetentionTimeInHour 72 -PartitionCount 2 +$ks = Get-AzEventHubKey -ResourceGroupName testgroup -NamespaceName spacename002 -AuthorizationRuleName RootManageSharedAccessKey +$k = $ks.PrimaryKey | ConvertTo-SecureString -AsPlainText -Force +New-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -Name estest001 -EnvironmentName tsitest001 -Kind Microsoft.EventHub -ConsumerGroupName testgroup -Location eastus -KeyName RootManageSharedAccessKey -ServiceBusNameSpace spacename002 -EventHubName hubname001 -EventSourceResourceId $ev.id -SharedAccessKey $k Kind Location Name Type ---- -------- ---- ---- @@ -15,10 +15,10 @@ This command creates an eventhub event source under the specified environment. ### Example 2: Create an iothub event source under the specified environment ```powershell -PS C:\> $ev = New-AzIotHub -ResourceGroupName testgroup -Location eastus -Name iotname001 -SkuName S1 -Units 100 -PS C:\> $ks = Get-AzIotHubKey -ResourceGroupName testgroup -Name iotname001 -PS C:\> $k = $ks[0].PrimaryKey | ConvertTo-SecureString -AsPlainText -Force -PS C:\> New-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -Name iots001 -EnvironmentName tsitest001 -Kind Microsoft.IoTHub -ConsumerGroupName testgroup -Location eastus -KeyName RootManageSharedAccessKey -IoTHubName iotname001 -EventSourceResourceId $ev.id -SharedAccessKey $k +$ev = New-AzIotHub -ResourceGroupName testgroup -Location eastus -Name iotname001 -SkuName S1 -Units 100 +$ks = Get-AzIotHubKey -ResourceGroupName testgroup -Name iotname001 +$k = $ks[0].PrimaryKey | ConvertTo-SecureString -AsPlainText -Force +New-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -Name iots001 -EnvironmentName tsitest001 -Kind Microsoft.IoTHub -ConsumerGroupName testgroup -Location eastus -KeyName RootManageSharedAccessKey -IoTHubName iotname001 -EventSourceResourceId $ev.id -SharedAccessKey $k Location Name Type Kind -------- ---- ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsReferenceDataSet.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsReferenceDataSet.md index a6c1ae864bd7..c1615a9bdbff 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsReferenceDataSet.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/New-AzTimeSeriesInsightsReferenceDataSet.md @@ -1,7 +1,7 @@ ### Example 1: Create a reference data set for a specified environment ```powershell -PS C:\> $mykeyproperties = @{ "name" = "device01"; "type" = "Double"} -PS C:\> New-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup -Location eastus -DataStringComparisonBehavior Ordinal -KeyProperty $mykeyproperties +$mykeyproperties = @{ "name" = "device01"; "type" = "Double"} +New-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup -Location eastus -DataStringComparisonBehavior Ordinal -KeyProperty $mykeyproperties Location Name Type -------- ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsAccessPolicy.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsAccessPolicy.md index ca6739bff314..f54882d3b4e0 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsAccessPolicy.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsAccessPolicy.md @@ -1,6 +1,6 @@ ### Example 1: Remove a specified access policy by name ```powershell -PS C:\> Remove-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup +Remove-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup ``` @@ -8,8 +8,8 @@ This command removes a specified access policy. ### Example 2: Remove a specified access policy by object ```powershell -PS C:\> $policy = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup -PS C:\> Remove-AzTimeSeriesInsightsAccessPolicy -InputObject $policy +$policy = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup +Remove-AzTimeSeriesInsightsAccessPolicy -InputObject $policy ``` diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEnvironment.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEnvironment.md index 2885ec91c6bd..81e62524ed7f 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEnvironment.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEnvironment.md @@ -1,6 +1,6 @@ ### Example 1: Remove a time series insights environment by name ```powershell -PS C:\> Remove-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsill +Remove-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsill ``` @@ -8,8 +8,8 @@ This command removes a time series insights environment. ### Example 2: Remove a time series insights environment by object ```powershell -PS C:\> $env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsill -PS C:\> Remove-AzTimeSeriesInsightsEnvironment -InputObject $env +$env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsill +Remove-AzTimeSeriesInsightsEnvironment -InputObject $env ``` diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEventSource.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEventSource.md index 4bdb1a799df2..c17574fb7873 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEventSource.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsEventSource.md @@ -1,6 +1,6 @@ ### Example 1: Remove a specified event source by name ```powershell -PS C:\> Remove-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -Name iots001 -ResourceGroupName testgroup +Remove-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -Name iots001 -ResourceGroupName testgroup ``` @@ -8,8 +8,8 @@ This removes a specific event source. ### Example 2: Remove a specified event source by object ```powershell -PS C:\> $es = Get-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name iots001 -PS C:\> Remove-AzTimeSeriesInsightsEventSource -InputObject $es +$es = Get-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name iots001 +Remove-AzTimeSeriesInsightsEventSource -InputObject $es ``` diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsReferenceDataSet.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsReferenceDataSet.md index 9e8dddf6b01b..d037128ca36e 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsReferenceDataSet.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Remove-AzTimeSeriesInsightsReferenceDataSet.md @@ -1,6 +1,6 @@ ### Example 1: Remove a specified reference data set by name ```powershell -PS C:\> Remove-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup +Remove-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup ``` @@ -8,8 +8,8 @@ This command removes a specified reference data set. ### Example 2: Remove a specified reference data set by object ```powershell -PS C:\> $ds = Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup -PS C:\> Remove-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds +$ds = Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup +Remove-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds ``` diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsAccessPolicy.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsAccessPolicy.md index d10c07510e69..deab240510d8 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsAccessPolicy.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsAccessPolicy.md @@ -1,6 +1,6 @@ ### Example 1: Update a specified access policy by name ```powershell -PS C:\> Update-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup -Role Contributor,Reader +Update-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -Name policy001 -ResourceGroupName testgroup -Role Contributor,Reader Name Type ---- ---- @@ -11,8 +11,8 @@ This command updates a specified access policy. ### Example 2: Update a specified access policy by object ```powershell -PS C:\> $policy = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name policy001 -PS C:\> Update-AzTimeSeriesInsightsAccessPolicy -InputObject $policy -Role Contributor +$policy = Get-AzTimeSeriesInsightsAccessPolicy -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name policy001 +Update-AzTimeSeriesInsightsAccessPolicy -InputObject $policy -Role Contributor Name Type ---- ---- diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEnvironment.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEnvironment.md index 0b99b772ca10..76947711a4dd 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEnvironment.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEnvironment.md @@ -1,6 +1,6 @@ ### Example 1: Update a Gen1 time series insights environment ```powershell -PS C:\> Update-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 -Tag @{'key1'='val1'} +Update-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 -Tag @{'key1'='val1'} DataAccessFqdn : b6d113a4-0865-405f-b09e-ad4355b5d046.env.timeseries.azure.com DataAccessId : b6d113a4-0865-405f-b09e-ad4355b5d046 @@ -29,8 +29,8 @@ This command updates a Gen1 time series insights environment. ### Example 2: Update a Gen1 time series insights environment ```powershell -PS C:\> $env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 -PS C:\> Update-AzTimeSeriesInsightsEnvironment -InputObject $env -Tag @{'key2'='val2'} +$env = Get-AzTimeSeriesInsightsEnvironment -ResourceGroupName testgroup -Name tsitest001 +Update-AzTimeSeriesInsightsEnvironment -InputObject $env -Tag @{'key2'='val2'} DataAccessFqdn : b6d113a4-0865-405f-b09e-ad4355b5d046.env.timeseries.azure.com DataAccessId : b6d113a4-0865-405f-b09e-ad4355b5d046 diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEventSource.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEventSource.md index 648e0a84b432..bd515385260e 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEventSource.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsEventSource.md @@ -1,6 +1,6 @@ ### Example 1: Update a specified event source by name ```powershell -PS C:\> Update-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -Name iots001 -ResourceGroupName testgroup -Tag @{"tgk"="001"} +Update-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -Name iots001 -ResourceGroupName testgroup -Tag @{"tgk"="001"} ConsumerGroupName : testgroup2 EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.Devices/IotHubs/iotname001 @@ -19,8 +19,8 @@ This command updates a specific event source. ### Example 3: Update a specified event source by object ```powershell -PS C:\> $es = Get-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name iots001 -PS C:\> Update-AzTimeSeriesInsightsEventSource -InputObject $es -Tag @{"tgb"="002"} +$es = Get-AzTimeSeriesInsightsEventSource -EnvironmentName tsitest001 -ResourceGroupName testgroup -Name iots001 +Update-AzTimeSeriesInsightsEventSource -InputObject $es -Tag @{"tgb"="002"} ConsumerGroupName : testgroup2 EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.Devices/IotHubs/iotname001 diff --git a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsReferenceDataSet.md b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsReferenceDataSet.md index 062eb40ecae7..c34fa6650538 100644 --- a/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsReferenceDataSet.md +++ b/src/TimeSeriesInsights/TimeSeriesInsights.Autorest/examples/Update-AzTimeSeriesInsightsReferenceDataSet.md @@ -1,6 +1,6 @@ ### Example 1: Update a specified reference data set by name ```powershell -PS C:\> Update-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup -Tag @{"tstg"="lb001"} +Update-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -Name dstest001 -ResourceGroupName testgroup -Tag @{"tstg"="lb001"} Location Name Type -------- ---- ---- @@ -11,8 +11,8 @@ This command updates a specified reference data set. ### Example 2: Update a specified reference data set by object ```powershell -PS C:\> $ds = Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup -ReferenceDataSetName dstest001 -PS C:\> Update-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds -Tag @{"tstg"="lb001"} +$ds = Get-AzTimeSeriesInsightsReferenceDataSet -EnvironmentName tsitest001 -ResourceGroupName testgroup -ReferenceDataSetName dstest001 +Update-AzTimeSeriesInsightsReferenceDataSet -InputObject $ds -Tag @{"tstg"="lb001"} Location Name Type -------- ---- ---- diff --git a/src/Websites/Websites.Autorest/docs/Az.Websites.md b/src/Websites/Websites.Autorest/help/Az.Websites.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Az.Websites.md rename to src/Websites/Websites.Autorest/help/Az.Websites.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebApp.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebApp.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebApp.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuild.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuild.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuild.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuild.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildAppSetting.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildAppSetting.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildFunction.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildFunction.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildFunction.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildFunction.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildFunctionAppSetting.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildFunctionAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppBuildFunctionAppSetting.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppBuildFunctionAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppConfiguredRole.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppConfiguredRole.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppConfiguredRole.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppConfiguredRole.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppCustomDomain.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppCustomDomain.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppCustomDomain.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppCustomDomain.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppFunction.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppFunction.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppFunction.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppFunction.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppFunctionAppSetting.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppFunctionAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppFunctionAppSetting.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppFunctionAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppSecret.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppSecret.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppSecret.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppSecret.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppSetting.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppSetting.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppUser.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppUser.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppUser.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppUser.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppUserProvidedFunctionApp.md b/src/Websites/Websites.Autorest/help/Get-AzStaticWebAppUserProvidedFunctionApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzStaticWebAppUserProvidedFunctionApp.md rename to src/Websites/Websites.Autorest/help/Get-AzStaticWebAppUserProvidedFunctionApp.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppSlotContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppSlotContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppSlotTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppSlotTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotTriggeredWebJobHistory.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppSlotTriggeredWebJobHistory.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotTriggeredWebJobHistory.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppSlotTriggeredWebJobHistory.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppSlotWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppSlotWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppSlotWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppTriggeredWebJobHistory.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppTriggeredWebJobHistory.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppTriggeredWebJobHistory.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppTriggeredWebJobHistory.md diff --git a/src/Websites/Websites.Autorest/docs/Get-AzWebAppWebJob.md b/src/Websites/Websites.Autorest/help/Get-AzWebAppWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Get-AzWebAppWebJob.md rename to src/Websites/Websites.Autorest/help/Get-AzWebAppWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebApp.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebApp.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebApp.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildAppSetting.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppBuildAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildAppSetting.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppBuildAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildFunctionAppSetting.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppBuildFunctionAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppBuildFunctionAppSetting.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppBuildFunctionAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppCustomDomain.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppCustomDomain.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppCustomDomain.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppCustomDomain.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppFunctionAppSetting.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppFunctionAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppFunctionAppSetting.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppFunctionAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppSetting.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppSetting.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppSetting.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppSetting.md diff --git a/src/Websites/Websites.Autorest/docs/New-AzStaticWebAppUserRoleInvitationLink.md b/src/Websites/Websites.Autorest/help/New-AzStaticWebAppUserRoleInvitationLink.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/New-AzStaticWebAppUserRoleInvitationLink.md rename to src/Websites/Websites.Autorest/help/New-AzStaticWebAppUserRoleInvitationLink.md diff --git a/src/Websites/Websites.Autorest/docs/README.md b/src/Websites/Websites.Autorest/help/README.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/README.md rename to src/Websites/Websites.Autorest/help/README.md diff --git a/src/Websites/Websites.Autorest/docs/Register-AzStaticWebAppUserProvidedFunctionApp.md b/src/Websites/Websites.Autorest/help/Register-AzStaticWebAppUserProvidedFunctionApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Register-AzStaticWebAppUserProvidedFunctionApp.md rename to src/Websites/Websites.Autorest/help/Register-AzStaticWebAppUserProvidedFunctionApp.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzStaticWebApp.md b/src/Websites/Websites.Autorest/help/Remove-AzStaticWebApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzStaticWebApp.md rename to src/Websites/Websites.Autorest/help/Remove-AzStaticWebApp.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppAttachedRepository.md b/src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppAttachedRepository.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppAttachedRepository.md rename to src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppAttachedRepository.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppBuild.md b/src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppBuild.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppBuild.md rename to src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppBuild.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppCustomDomain.md b/src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppCustomDomain.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppCustomDomain.md rename to src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppCustomDomain.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppUser.md b/src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppUser.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzStaticWebAppUser.md rename to src/Websites/Websites.Autorest/help/Remove-AzStaticWebAppUser.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzWebAppContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Remove-AzWebAppContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzWebAppContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Remove-AzWebAppContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Remove-AzWebAppSlotContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzWebAppSlotContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Remove-AzWebAppSlotContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Remove-AzWebAppSlotTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzWebAppSlotTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Remove-AzWebAppSlotTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Remove-AzWebAppTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Remove-AzWebAppTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Remove-AzWebAppTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Remove-AzWebAppTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Reset-AzStaticWebAppApiKey.md b/src/Websites/Websites.Autorest/help/Reset-AzStaticWebAppApiKey.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Reset-AzStaticWebAppApiKey.md rename to src/Websites/Websites.Autorest/help/Reset-AzStaticWebAppApiKey.md diff --git a/src/Websites/Websites.Autorest/docs/Start-AzWebAppContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Start-AzWebAppContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Start-AzWebAppContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Start-AzWebAppContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Start-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Start-AzWebAppSlotContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Start-AzWebAppSlotContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Start-AzWebAppSlotContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Start-AzWebAppSlotTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Start-AzWebAppSlotTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Start-AzWebAppSlotTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Start-AzWebAppSlotTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Start-AzWebAppTriggeredWebJob.md b/src/Websites/Websites.Autorest/help/Start-AzWebAppTriggeredWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Start-AzWebAppTriggeredWebJob.md rename to src/Websites/Websites.Autorest/help/Start-AzWebAppTriggeredWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Stop-AzWebAppContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Stop-AzWebAppContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Stop-AzWebAppContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Stop-AzWebAppContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Stop-AzWebAppSlotContinuousWebJob.md b/src/Websites/Websites.Autorest/help/Stop-AzWebAppSlotContinuousWebJob.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Stop-AzWebAppSlotContinuousWebJob.md rename to src/Websites/Websites.Autorest/help/Stop-AzWebAppSlotContinuousWebJob.md diff --git a/src/Websites/Websites.Autorest/docs/Test-AzStaticWebAppCustomDomain.md b/src/Websites/Websites.Autorest/help/Test-AzStaticWebAppCustomDomain.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Test-AzStaticWebAppCustomDomain.md rename to src/Websites/Websites.Autorest/help/Test-AzStaticWebAppCustomDomain.md diff --git a/src/Websites/Websites.Autorest/docs/Unregister-AzStaticWebAppBuildUserProvidedFunctionApp.md b/src/Websites/Websites.Autorest/help/Unregister-AzStaticWebAppBuildUserProvidedFunctionApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Unregister-AzStaticWebAppBuildUserProvidedFunctionApp.md rename to src/Websites/Websites.Autorest/help/Unregister-AzStaticWebAppBuildUserProvidedFunctionApp.md diff --git a/src/Websites/Websites.Autorest/docs/Unregister-AzStaticWebAppUserProvidedFunctionApp.md b/src/Websites/Websites.Autorest/help/Unregister-AzStaticWebAppUserProvidedFunctionApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Unregister-AzStaticWebAppUserProvidedFunctionApp.md rename to src/Websites/Websites.Autorest/help/Unregister-AzStaticWebAppUserProvidedFunctionApp.md diff --git a/src/Websites/Websites.Autorest/docs/Update-AzStaticWebApp.md b/src/Websites/Websites.Autorest/help/Update-AzStaticWebApp.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Update-AzStaticWebApp.md rename to src/Websites/Websites.Autorest/help/Update-AzStaticWebApp.md diff --git a/src/Websites/Websites.Autorest/docs/Update-AzStaticWebAppUser.md b/src/Websites/Websites.Autorest/help/Update-AzStaticWebAppUser.md similarity index 100% rename from src/Websites/Websites.Autorest/docs/Update-AzStaticWebAppUser.md rename to src/Websites/Websites.Autorest/help/Update-AzStaticWebAppUser.md diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Get-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Get-AzWindowsIotServicesDevice.md index cc0eb32266cd..475a4191f2a0 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Get-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Get-AzWindowsIotServicesDevice.md @@ -1,6 +1,6 @@ ### Example 1: Get all Windows IoT services under a subscription ```powershell -PS C:\> Get-AzWindowsIotServicesDevice +Get-AzWindowsIotServicesDevice Location Name Type Etag -------- ---- ---- ---- @@ -12,7 +12,7 @@ This command gets all Windows IoT services under a subscription. ### Example 2: Get all Windows IoT services under a resource group ```powershell -PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test +Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test Location Name Type Etag -------- ---- ---- ---- @@ -24,7 +24,7 @@ This command gets all Windows IoT services under a resource group. ### Example 3: Get a Windows IoT service by name ```powershell -PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 +Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 Location Name Type Etag -------- ---- ---- ---- @@ -35,8 +35,8 @@ This command gets a Windows IoT service by name. ### Example 4: Get a Windows IoT service by object ```powershell -PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' -PS C:\> Get-AzWindowsIotServicesDevice -InputObject $wsi +$wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +Get-AzWindowsIotServicesDevice -InputObject $wsi Location Name Type Etag -------- ---- ---- ---- @@ -47,7 +47,7 @@ This command gets a Windows IoT service by object. ### Example 4: Get a Windows IoT service by pipeline ```powershell -PS C:\> $wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice +$wsi = New-AzWindowsIotServicesDevice -Name wsi-t01 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' | Get-AzWindowsIotServicesDevice Location Name Type Etag -------- ---- ---- ---- diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/New-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/New-AzWindowsIotServicesDevice.md index 80e3c5c6aa8a..d3746d212b5e 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/New-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/New-AzWindowsIotServicesDevice.md @@ -1,6 +1,6 @@ ### Example 1: Create a new Windows IoT services ```powershell -PS C:\> New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' +New-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Location eastus -Quantity 10 -BillingDomainName 'microsoft.onmicrosoft.com' -AdminDomainName 'microsoft.onmicrosoft.com' Location Name Type Etag -------- ---- ---- ---- diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Remove-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Remove-AzWindowsIotServicesDevice.md index 099d16ba85d5..d2e1458ec9f9 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Remove-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Remove-AzWindowsIotServicesDevice.md @@ -1,6 +1,6 @@ ### Example 1: Remove a Windows IoT services by name ```powershell -PS C:\> Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test +Remove-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test ``` @@ -8,7 +8,7 @@ This command removes a Windows IoT services by name. ### Example 2: Remove a Windows IoT services by pipeline ```powershell -PS C:\> Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice +Get-AzWindowsIotServicesDevice -ResourceGroupName azure-rg-test -Name wsi-t01 | Remove-AzWindowsIotServicesDevice ``` diff --git a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Update-AzWindowsIotServicesDevice.md b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Update-AzWindowsIotServicesDevice.md index 37aa5c3512d3..c2d371c943ec 100644 --- a/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Update-AzWindowsIotServicesDevice.md +++ b/src/WindowsIotServices/WindowsIotServices.Autorest/examples/Update-AzWindowsIotServicesDevice.md @@ -1,6 +1,6 @@ ### Example 1: Update a Windows IoT services by name ```powershell -PS C:\> Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 +Update-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test -Quantity 10 Location Name Type Etag -------- ---- ---- ---- @@ -11,7 +11,7 @@ This command updates a Windows IoT services by name. ### Example 2: Update a Windows IoT services by pipeline ```powershell -PS C:\> Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} +Get-AzWindowsIotServicesDevice -Name wsi-t03 -ResourceGroupName azure-rg-test | Update-AzWindowsIotServicesDevice-Quantity 100 -Tag @{'oper'='update'} Location Name Type Etag -------- ---- ---- ---- diff --git a/tools/Az/Az.psd1 b/tools/Az/Az.psd1 index 7a07f6a1c14d..547896953b76 100644 --- a/tools/Az/Az.psd1 +++ b/tools/Az/Az.psd1 @@ -82,7 +82,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }, @{ModuleName = 'Az.DataProtection'; RequiredVersion = '2.1.0'; }, @{ModuleName = 'Az.DataShare'; RequiredVersion = '1.0.1'; }, @{ModuleName = 'Az.DeploymentManager'; RequiredVersion = '1.1.0'; }, - @{ModuleName = 'Az.DesktopVirtualization'; RequiredVersion = '4.2.0'; }, + @{ModuleName = 'Az.DesktopVirtualization'; RequiredVersion = '4.2.1'; }, @{ModuleName = 'Az.DevCenter'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.DevTestLabs'; RequiredVersion = '1.0.2'; }, @{ModuleName = 'Az.Dns'; RequiredVersion = '1.2.0'; }, diff --git a/tools/AzPreview/AzPreview.psd1 b/tools/AzPreview/AzPreview.psd1 index d9e87c1d340a..e019718cf819 100644 --- a/tools/AzPreview/AzPreview.psd1 +++ b/tools/AzPreview/AzPreview.psd1 @@ -104,7 +104,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; }, @{ModuleName = 'Az.DataShare'; RequiredVersion = '1.0.1'; }, @{ModuleName = 'Az.DedicatedHsm'; RequiredVersion = '0.3.0'; }, @{ModuleName = 'Az.DeploymentManager'; RequiredVersion = '1.1.0'; }, - @{ModuleName = 'Az.DesktopVirtualization'; RequiredVersion = '4.2.0'; }, + @{ModuleName = 'Az.DesktopVirtualization'; RequiredVersion = '4.2.1'; }, @{ModuleName = 'Az.DevCenter'; RequiredVersion = '1.0.0'; }, @{ModuleName = 'Az.DeviceProvisioningServices'; RequiredVersion = '0.10.0'; }, @{ModuleName = 'Az.DeviceUpdate'; RequiredVersion = '0.1.0'; }, diff --git a/tools/Docs/az-ps-latest.csv b/tools/Docs/az-ps-latest.csv index f8d4732760d5..279cb7cbc37f 100644 --- a/tools/Docs/az-ps-latest.csv +++ b/tools/Docs/az-ps-latest.csv @@ -50,7 +50,7 @@ pac48,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-relea pac49,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DataShare.1.0.1.nupkg;sourceType=sa]Az.DataShare,1.0.1 pac50,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DedicatedHsm.0.3.0.nupkg;sourceType=sa]Az.DedicatedHsm,0.3.0 pac51,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DeploymentManager.1.1.0.nupkg;sourceType=sa]Az.DeploymentManager,1.1.0 -pac52,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DesktopVirtualization.4.2.0.nupkg;sourceType=sa]Az.DesktopVirtualization,4.2.0 +pac52,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DesktopVirtualization.4.2.1.nupkg;sourceType=sa]Az.DesktopVirtualization,4.2.1 pac53,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DevCenter.1.0.0.nupkg;sourceType=sa]Az.DevCenter,1.0.0 pac54,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DeviceProvisioningServices.0.10.0.nupkg;sourceType=sa]Az.DeviceProvisioningServices,0.10.0 pac55,[ps=true;customSource=https://azpspackage.blob.core.windows.net/docs-release/Az.DeviceUpdate.0.1.0.nupkg;sourceType=sa]Az.DeviceUpdate,0.1.0 diff --git a/tools/StaticAnalysis/Exceptions/Az.DevCenter/Az.DevCenter/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.DevCenter/Az.DevCenter/BreakingChangeIssues.csv new file mode 100644 index 000000000000..269aa3bde466 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.DevCenter/Az.DevCenter/BreakingChangeIssues.csv @@ -0,0 +1,2 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.DevCenter","Get-AzDevCenterUserSchedule","Get-AzDevCenterUserSchedule","0","1060","The parameter set 'Get' for cmdlet 'Get-AzDevCenterUserSchedule' is no longer the default parameter set.","Change the default parameter for cmdlet 'Get-AzDevCenterUserSchedule' back to 'Get'." \ No newline at end of file diff --git a/tools/Tools.Common/SerializedCmdlets/Az.DesktopVirtualization.json b/tools/Tools.Common/SerializedCmdlets/Az.DesktopVirtualization.json index 8354c8b3727f..1fdc24cefa3b 100644 --- a/tools/Tools.Common/SerializedCmdlets/Az.DesktopVirtualization.json +++ b/tools/Tools.Common/SerializedCmdlets/Az.DesktopVirtualization.json @@ -1,6 +1,6 @@ { "ModuleName": "Az.DesktopVirtualization", - "ModuleVersion": "4.2.0", + "ModuleVersion": "4.2.1", "Cmdlets": [ { "VerbName": "Disconnect", @@ -77,7 +77,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -125,7 +125,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -135,7 +135,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -299,7 +299,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -315,7 +315,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -396,7 +396,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -462,7 +462,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -478,7 +478,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -593,7 +593,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -609,7 +609,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -697,7 +697,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IExpandMsixImage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IExpandMsixImage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IExpandMsixImage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "PackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -754,7 +754,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -780,7 +780,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Uri": "System.String" } @@ -823,7 +823,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -833,7 +833,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -970,7 +970,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -986,7 +986,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1097,7 +1097,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Uri": "System.String" } @@ -1149,7 +1149,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1165,7 +1165,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1231,7 +1231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -1312,7 +1312,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1328,7 +1328,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1394,7 +1394,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -1426,7 +1426,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixImageUri, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Uri": "System.String" } @@ -1478,7 +1478,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1494,7 +1494,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1594,7 +1594,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1610,7 +1610,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1683,7 +1683,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImagePackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "ImagePackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -1755,7 +1755,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -1812,7 +1812,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1822,7 +1822,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1948,7 +1948,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -1964,7 +1964,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2110,7 +2110,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2126,7 +2126,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2257,7 +2257,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2273,7 +2273,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2339,7 +2339,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -2405,7 +2405,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2421,7 +2421,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2521,7 +2521,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2537,7 +2537,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2610,7 +2610,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CommandLineSetting": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", "IconContent": "System.Byte[]", @@ -2688,7 +2688,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -2763,7 +2763,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2773,7 +2773,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2944,7 +2944,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -2960,7 +2960,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3127,7 +3127,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3143,7 +3143,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3209,7 +3209,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -3275,7 +3275,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3291,7 +3291,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3391,7 +3391,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3407,7 +3407,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3480,7 +3480,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationGroupType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -3540,7 +3540,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -3624,7 +3624,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3634,7 +3634,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3760,7 +3760,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3776,7 +3776,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3967,7 +3967,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -3983,7 +3983,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4114,7 +4114,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4130,7 +4130,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4196,7 +4196,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -4262,7 +4262,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4278,7 +4278,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4378,7 +4378,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4394,7 +4394,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4467,7 +4467,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IconContent": "System.Byte[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -4533,7 +4533,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -4608,7 +4608,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4618,7 +4618,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4786,7 +4786,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4802,7 +4802,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4966,7 +4966,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -4982,7 +4982,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5048,7 +5048,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -5114,7 +5114,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5130,7 +5130,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5230,7 +5230,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5246,7 +5246,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5319,7 +5319,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "AgentUpdateMaintenanceWindow": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", @@ -5400,7 +5400,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -5475,7 +5475,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5485,7 +5485,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5611,7 +5611,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5627,7 +5627,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5803,7 +5803,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5819,7 +5819,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5980,7 +5980,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -5996,7 +5996,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6062,7 +6062,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -6128,7 +6128,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6144,7 +6144,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6244,7 +6244,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6260,7 +6260,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6333,7 +6333,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RegistrationTokenOperation": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]", "ExpirationTime": "System.Nullable`1[System.DateTime]", @@ -6379,7 +6379,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -6427,7 +6427,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6437,7 +6437,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6560,7 +6560,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6576,7 +6576,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6642,7 +6642,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -6708,7 +6708,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6724,7 +6724,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6824,7 +6824,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6840,7 +6840,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -6913,7 +6913,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "PackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -6985,7 +6985,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -7060,7 +7060,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7070,7 +7070,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7211,7 +7211,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7227,7 +7227,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7418,7 +7418,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7434,7 +7434,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7500,7 +7500,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -7566,7 +7566,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7582,7 +7582,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7682,7 +7682,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7698,7 +7698,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7771,7 +7771,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateEndpointConnectionWithSystemData", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateEndpointConnectionWithSystemData, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateEndpointConnectionWithSystemData, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", "SystemDataLastModifiedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -7841,7 +7841,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -7916,7 +7916,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -7926,7 +7926,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8067,7 +8067,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8083,7 +8083,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8247,7 +8247,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8263,7 +8263,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8454,7 +8454,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8470,7 +8470,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8616,7 +8616,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8632,7 +8632,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8698,7 +8698,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -8764,7 +8764,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8780,7 +8780,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8846,7 +8846,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -8912,7 +8912,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -8928,7 +8928,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9028,7 +9028,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9044,7 +9044,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9117,7 +9117,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateLinkResource", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateLinkResource, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IPrivateLinkResource, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "GroupId": "System.String", "RequiredMember": "System.String[]", @@ -9221,7 +9221,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9231,7 +9231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9384,7 +9384,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9400,7 +9400,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9591,7 +9591,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9607,7 +9607,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9798,7 +9798,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9814,7 +9814,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -9887,7 +9887,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.RegistrationInfo", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.RegistrationInfo, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.RegistrationInfo, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RegistrationTokenOperation": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]", "ExpirationTime": "System.Nullable`1[System.DateTime]", @@ -10041,7 +10041,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10051,7 +10051,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10173,7 +10173,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10189,7 +10189,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10262,7 +10262,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostPoolReference": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", "Schedule": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", @@ -10322,7 +10322,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -10406,7 +10406,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10416,7 +10416,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10542,7 +10542,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10558,7 +10558,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10749,7 +10749,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10765,7 +10765,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10941,7 +10941,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -10957,7 +10957,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11118,7 +11118,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11134,7 +11134,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11200,7 +11200,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -11266,7 +11266,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11282,7 +11282,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11382,7 +11382,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11398,7 +11398,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11471,7 +11471,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -11559,7 +11559,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -11634,7 +11634,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11644,7 +11644,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11812,7 +11812,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11828,7 +11828,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -11989,7 +11989,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12005,7 +12005,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12071,7 +12071,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -12137,7 +12137,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12153,7 +12153,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12253,7 +12253,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12269,7 +12269,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12342,7 +12342,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -12421,7 +12421,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -12496,7 +12496,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12506,7 +12506,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12674,7 +12674,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12690,7 +12690,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12851,7 +12851,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12867,7 +12867,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -12933,7 +12933,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -12999,7 +12999,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13015,7 +13015,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13115,7 +13115,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13131,7 +13131,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13204,7 +13204,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HealthCheckResult": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[]", "SystemDataLastModifiedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -13282,7 +13282,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -13357,7 +13357,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13367,7 +13367,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13535,7 +13535,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13551,7 +13551,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13715,7 +13715,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13731,7 +13731,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13797,7 +13797,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -13863,7 +13863,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13879,7 +13879,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13979,7 +13979,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -13995,7 +13995,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14068,7 +14068,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IStartMenuItem", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IStartMenuItem, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IStartMenuItem, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IconIndex": "System.Nullable`1[System.Int32]", "AppAlias": "System.String", @@ -14165,7 +14165,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14175,7 +14175,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14343,7 +14343,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14359,7 +14359,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14432,7 +14432,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IUserSession", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IUserSession, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IUserSession, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -14508,7 +14508,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -14592,7 +14592,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14602,7 +14602,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14785,7 +14785,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -14801,7 +14801,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15007,7 +15007,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15023,7 +15023,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15202,7 +15202,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15218,7 +15218,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15284,7 +15284,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -15350,7 +15350,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15366,7 +15366,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15466,7 +15466,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15482,7 +15482,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15555,7 +15555,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -15614,7 +15614,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -15689,7 +15689,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15699,7 +15699,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15825,7 +15825,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -15841,7 +15841,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16017,7 +16017,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16033,7 +16033,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16149,7 +16149,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16165,7 +16165,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16231,7 +16231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -16297,7 +16297,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16313,7 +16313,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16413,7 +16413,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16429,7 +16429,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16502,7 +16502,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImagePackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "ImagePackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -16570,7 +16570,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -16596,7 +16596,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageArchitecture": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures]", "Path": "System.String" @@ -16609,7 +16609,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -16649,7 +16649,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16659,7 +16659,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16747,7 +16747,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -16811,7 +16811,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16827,7 +16827,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -16938,7 +16938,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageArchitecture": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures]", "Path": "System.String" @@ -16991,7 +16991,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17007,7 +17007,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17073,7 +17073,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -17105,7 +17105,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -17169,7 +17169,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17185,7 +17185,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17251,7 +17251,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -17283,7 +17283,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IImportPackageInfoRequest, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageArchitecture": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures]", "Path": "System.String" @@ -17336,7 +17336,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17352,7 +17352,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17452,7 +17452,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17468,7 +17468,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -17541,7 +17541,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImagePackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "ImagePackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -17621,7 +17621,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -17640,7 +17640,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -17691,7 +17691,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -17731,7 +17731,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -17741,7 +17741,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -17913,7 +17913,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -17931,7 +17931,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity", "Plan": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan", @@ -18023,7 +18023,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -18033,7 +18033,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -18139,7 +18139,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -18274,7 +18274,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -18290,7 +18290,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -18356,7 +18356,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -18401,7 +18401,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -18446,7 +18446,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -18462,7 +18462,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -18733,7 +18733,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -18826,7 +18826,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -18961,7 +18961,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -18977,7 +18977,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19043,7 +19043,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity", "Plan": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan", @@ -19188,7 +19188,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -19323,7 +19323,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19339,7 +19339,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19412,7 +19412,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CommandLineSetting": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", "IconContent": "System.Byte[]", @@ -19480,7 +19480,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -19534,7 +19534,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -19619,7 +19619,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19629,7 +19629,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19723,7 +19723,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -19832,7 +19832,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19848,7 +19848,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -19980,7 +19980,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20089,7 +20089,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20105,7 +20105,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20171,7 +20171,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20327,7 +20327,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20436,7 +20436,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20452,7 +20452,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20525,7 +20525,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationGroupType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -20584,7 +20584,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20620,7 +20620,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20746,7 +20746,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20786,7 +20786,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20796,7 +20796,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -20887,7 +20887,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -20947,7 +20947,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21157,7 +21157,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21221,7 +21221,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -21237,7 +21237,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -21310,7 +21310,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "AgentUpdateMaintenanceWindow": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", @@ -21381,7 +21381,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21390,7 +21390,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21399,7 +21399,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21444,7 +21444,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties" }, "ValidateNotNullOrEmpty": false @@ -21463,7 +21463,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21517,7 +21517,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21553,7 +21553,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21607,7 +21607,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21625,7 +21625,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21679,7 +21679,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21706,7 +21706,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21782,7 +21782,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -21792,7 +21792,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -21868,7 +21868,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21883,7 +21883,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21898,7 +21898,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -21977,7 +21977,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -21993,7 +21993,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -22122,7 +22122,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22137,7 +22137,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22152,7 +22152,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22231,7 +22231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -22247,7 +22247,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -22313,7 +22313,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties" }, "ValidateNotNullOrEmpty": false @@ -22344,7 +22344,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22434,7 +22434,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22494,7 +22494,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22584,7 +22584,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22614,7 +22614,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22704,7 +22704,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22749,7 +22749,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22872,7 +22872,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22887,7 +22887,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22902,7 +22902,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -22981,7 +22981,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -22997,7 +22997,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23070,7 +23070,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "PackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -23195,7 +23195,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -23205,7 +23205,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -23273,7 +23273,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23283,7 +23283,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23465,7 +23465,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23481,7 +23481,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23580,7 +23580,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -23596,7 +23596,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -23811,7 +23811,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -23827,7 +23827,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24047,7 +24047,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24063,7 +24063,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24136,7 +24136,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RegistrationTokenOperation": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]", "ExpirationTime": "System.Nullable`1[System.DateTime]", @@ -24212,7 +24212,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24222,7 +24222,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24359,7 +24359,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24375,7 +24375,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24448,7 +24448,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostPoolReference": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", "Schedule": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", @@ -24543,7 +24543,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -24553,7 +24553,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -24562,7 +24562,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -24643,7 +24643,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -24689,7 +24689,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -24729,7 +24729,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24739,7 +24739,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -24890,7 +24890,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -24906,7 +24906,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -24921,7 +24921,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25056,7 +25056,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -25132,7 +25132,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25196,7 +25196,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -25212,7 +25212,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -25285,7 +25285,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -25372,7 +25372,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -25382,7 +25382,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25391,7 +25391,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25436,7 +25436,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25445,7 +25445,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25454,7 +25454,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25499,7 +25499,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25508,7 +25508,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25517,7 +25517,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25562,7 +25562,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25571,7 +25571,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25580,7 +25580,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25589,7 +25589,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25634,7 +25634,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25665,7 +25665,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -25675,7 +25675,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -25778,7 +25778,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -25794,7 +25794,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25809,7 +25809,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25884,7 +25884,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25899,7 +25899,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25914,7 +25914,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -25989,7 +25989,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26004,7 +26004,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26019,7 +26019,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26094,7 +26094,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26109,7 +26109,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26124,7 +26124,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26139,7 +26139,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26214,7 +26214,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26263,7 +26263,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -26279,7 +26279,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -26352,7 +26352,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -26430,7 +26430,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -26440,7 +26440,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26467,7 +26467,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26512,7 +26512,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26557,7 +26557,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26584,7 +26584,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26642,7 +26642,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -26652,7 +26652,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -26755,7 +26755,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -26771,7 +26771,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26816,7 +26816,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26891,7 +26891,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -26966,7 +26966,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27011,7 +27011,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27105,7 +27105,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27121,7 +27121,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27194,7 +27194,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -27280,7 +27280,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27361,7 +27361,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27406,7 +27406,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27446,7 +27446,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27456,7 +27456,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27593,7 +27593,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27728,7 +27728,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27803,7 +27803,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -27867,7 +27867,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27883,7 +27883,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -27956,7 +27956,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -28042,7 +28042,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28052,7 +28052,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28189,7 +28189,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28205,7 +28205,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28321,7 +28321,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -28378,7 +28378,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28388,7 +28388,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28537,7 +28537,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28553,7 +28553,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28634,7 +28634,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -28715,7 +28715,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28731,7 +28731,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28861,7 +28861,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -28877,7 +28877,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29020,7 +29020,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -29068,7 +29068,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29078,7 +29078,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29230,7 +29230,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29246,7 +29246,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29327,7 +29327,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -29393,7 +29393,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29409,7 +29409,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29524,7 +29524,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29540,7 +29540,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29671,7 +29671,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -29719,7 +29719,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29729,7 +29729,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29863,7 +29863,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29879,7 +29879,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -29960,7 +29960,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -30026,7 +30026,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30042,7 +30042,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30157,7 +30157,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30173,7 +30173,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30304,7 +30304,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -30361,7 +30361,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30371,7 +30371,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30520,7 +30520,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30536,7 +30536,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30617,7 +30617,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -30698,7 +30698,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30714,7 +30714,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30844,7 +30844,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -30860,7 +30860,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31000,7 +31000,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -31048,7 +31048,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31058,7 +31058,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31207,7 +31207,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31223,7 +31223,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31304,7 +31304,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -31370,7 +31370,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31386,7 +31386,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31501,7 +31501,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31517,7 +31517,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31666,7 +31666,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -31714,7 +31714,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31724,7 +31724,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31873,7 +31873,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -31889,7 +31889,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32067,7 +32067,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32083,7 +32083,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32164,7 +32164,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -32230,7 +32230,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32246,7 +32246,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32327,7 +32327,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -32393,7 +32393,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32409,7 +32409,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32524,7 +32524,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32540,7 +32540,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32678,7 +32678,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32688,7 +32688,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32810,7 +32810,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32826,7 +32826,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -32942,7 +32942,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -32990,7 +32990,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33000,7 +33000,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33134,7 +33134,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33150,7 +33150,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33231,7 +33231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -33297,7 +33297,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33313,7 +33313,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33428,7 +33428,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33444,7 +33444,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33581,7 +33581,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -33629,7 +33629,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33639,7 +33639,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33785,7 +33785,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33801,7 +33801,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33882,7 +33882,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -33948,7 +33948,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -33964,7 +33964,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34079,7 +34079,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34095,7 +34095,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34232,7 +34232,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -34280,7 +34280,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34290,7 +34290,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34436,7 +34436,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34452,7 +34452,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34533,7 +34533,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -34599,7 +34599,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34615,7 +34615,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34730,7 +34730,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34746,7 +34746,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34886,7 +34886,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -34943,7 +34943,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -34953,7 +34953,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35117,7 +35117,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35133,7 +35133,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35214,7 +35214,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -35295,7 +35295,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35311,7 +35311,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35441,7 +35441,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35457,7 +35457,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35606,7 +35606,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -35663,7 +35663,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35673,7 +35673,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35852,7 +35852,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35868,7 +35868,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -35949,7 +35949,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -36030,7 +36030,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36046,7 +36046,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36176,7 +36176,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36192,7 +36192,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36323,7 +36323,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -36371,7 +36371,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36381,7 +36381,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36515,7 +36515,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36531,7 +36531,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36612,7 +36612,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -36678,7 +36678,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36694,7 +36694,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36809,7 +36809,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36825,7 +36825,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -36971,7 +36971,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -37037,7 +37037,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37047,7 +37047,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37238,7 +37238,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37254,7 +37254,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37335,7 +37335,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -37431,7 +37431,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37447,7 +37447,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37592,7 +37592,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37608,7 +37608,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37696,7 +37696,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -37782,7 +37782,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37792,7 +37792,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37929,7 +37929,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -37945,7 +37945,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -38018,7 +38018,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IAppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ImagePackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "ImagePackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -38089,7 +38089,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -38115,7 +38115,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -38176,7 +38176,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -38216,7 +38216,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -38226,7 +38226,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -38308,7 +38308,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity", "Plan": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan", @@ -38400,7 +38400,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -38410,7 +38410,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -38501,7 +38501,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.AppAttachPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Identity": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity", "Plan": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan", @@ -38583,7 +38583,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -38718,7 +38718,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -38734,7 +38734,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -38878,7 +38878,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -38923,7 +38923,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -38939,7 +38939,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -39060,7 +39060,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -39195,7 +39195,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39211,7 +39211,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39277,7 +39277,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -39339,7 +39339,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -39384,7 +39384,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "ValidateNotNullOrEmpty": false @@ -39400,7 +39400,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "ValidateNotNullOrEmpty": false @@ -39521,7 +39521,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -39656,7 +39656,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39672,7 +39672,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39738,7 +39738,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -39873,7 +39873,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39889,7 +39889,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -39962,7 +39962,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplication, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "CommandLineSetting": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", "IconContent": "System.Byte[]", @@ -40066,7 +40066,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -40101,7 +40101,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -40119,7 +40119,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -40204,7 +40204,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40214,7 +40214,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40417,7 +40417,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40433,7 +40433,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40565,7 +40565,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -40595,7 +40595,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -40779,7 +40779,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40795,7 +40795,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40940,7 +40940,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -40956,7 +40956,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41022,7 +41022,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -41054,7 +41054,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -41084,7 +41084,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -41268,7 +41268,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41284,7 +41284,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41357,7 +41357,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IApplicationGroup, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ApplicationGroupType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -41416,7 +41416,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -41500,7 +41500,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41510,7 +41510,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41695,7 +41695,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41711,7 +41711,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41777,7 +41777,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -41903,7 +41903,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -41919,7 +41919,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42079,7 +42079,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42095,7 +42095,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42168,7 +42168,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IDesktop, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "IconContent": "System.Byte[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -42233,7 +42233,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -42308,7 +42308,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42318,7 +42318,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42503,7 +42503,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42519,7 +42519,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42585,7 +42585,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -42696,7 +42696,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42712,7 +42712,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42857,7 +42857,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42873,7 +42873,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -42946,7 +42946,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IHostPool, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "AgentUpdateMaintenanceWindow": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", @@ -43026,7 +43026,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -43052,7 +43052,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties" }, "ValidateNotNullOrEmpty": false @@ -43071,7 +43071,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43116,7 +43116,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43134,7 +43134,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43143,7 +43143,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43152,7 +43152,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43170,7 +43170,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43206,7 +43206,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43282,7 +43282,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -43292,7 +43292,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -43383,7 +43383,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties" }, "ValidateNotNullOrEmpty": false @@ -43414,7 +43414,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43489,7 +43489,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43519,7 +43519,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43534,7 +43534,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43549,7 +43549,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43579,7 +43579,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43639,7 +43639,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43763,7 +43763,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -43779,7 +43779,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -43845,7 +43845,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -43877,7 +43877,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties" }, "ValidateNotNullOrEmpty": false @@ -43908,7 +43908,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -43983,7 +43983,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44013,7 +44013,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44028,7 +44028,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44043,7 +44043,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44073,7 +44073,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44133,7 +44133,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44257,7 +44257,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -44273,7 +44273,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -44339,7 +44339,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties" }, "ValidateNotNullOrEmpty": false @@ -44370,7 +44370,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44445,7 +44445,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44475,7 +44475,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44490,7 +44490,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44505,7 +44505,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44535,7 +44535,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44595,7 +44595,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -44719,7 +44719,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -44735,7 +44735,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -44808,7 +44808,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackage, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PackageApplication": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", "PackageDependency": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", @@ -44879,7 +44879,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -44954,7 +44954,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -44964,7 +44964,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45149,7 +45149,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45165,7 +45165,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45231,7 +45231,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -45342,7 +45342,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45358,7 +45358,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45503,7 +45503,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45519,7 +45519,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45592,7 +45592,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlan, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HostPoolReference": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", "Schedule": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", @@ -45651,7 +45651,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -45704,7 +45704,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -45714,7 +45714,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -45764,7 +45764,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45774,7 +45774,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -45910,7 +45910,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -45926,7 +45926,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -46006,7 +46006,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46022,7 +46022,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46088,7 +46088,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -46165,7 +46165,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -46181,7 +46181,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -46261,7 +46261,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46277,7 +46277,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46388,7 +46388,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "ValidateNotNullOrEmpty": false @@ -46404,7 +46404,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "ValidateNotNullOrEmpty": false @@ -46484,7 +46484,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46500,7 +46500,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46573,7 +46573,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPersonalSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -46660,7 +46660,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -46686,7 +46686,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -46696,7 +46696,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46705,7 +46705,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46750,7 +46750,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46759,7 +46759,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46768,7 +46768,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46813,7 +46813,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46822,7 +46822,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46831,7 +46831,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46876,7 +46876,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46885,7 +46885,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46894,7 +46894,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46903,7 +46903,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46948,7 +46948,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -46979,7 +46979,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -46989,7 +46989,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -47092,7 +47092,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -47108,7 +47108,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47123,7 +47123,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47198,7 +47198,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47213,7 +47213,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47228,7 +47228,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47303,7 +47303,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47318,7 +47318,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47333,7 +47333,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47408,7 +47408,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47423,7 +47423,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47438,7 +47438,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47453,7 +47453,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47528,7 +47528,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47577,7 +47577,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -47593,7 +47593,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -47659,7 +47659,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -47691,7 +47691,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -47707,7 +47707,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47722,7 +47722,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47797,7 +47797,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47812,7 +47812,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47827,7 +47827,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47902,7 +47902,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47917,7 +47917,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -47932,7 +47932,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48007,7 +48007,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48022,7 +48022,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48037,7 +48037,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48052,7 +48052,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48127,7 +48127,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48176,7 +48176,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -48192,7 +48192,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -48258,7 +48258,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -48274,7 +48274,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48289,7 +48289,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48364,7 +48364,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48379,7 +48379,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48394,7 +48394,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48469,7 +48469,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48484,7 +48484,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48499,7 +48499,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48574,7 +48574,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48589,7 +48589,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48604,7 +48604,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48619,7 +48619,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48694,7 +48694,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48743,7 +48743,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -48759,7 +48759,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -48832,7 +48832,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingPlanPooledSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DaysOfWeek": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -48910,7 +48910,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -48936,7 +48936,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -48946,7 +48946,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -48973,7 +48973,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49018,7 +49018,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49063,7 +49063,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49090,7 +49090,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49148,7 +49148,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -49158,7 +49158,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -49261,7 +49261,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -49277,7 +49277,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49322,7 +49322,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49397,7 +49397,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49472,7 +49472,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49517,7 +49517,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49611,7 +49611,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -49627,7 +49627,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -49693,7 +49693,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -49725,7 +49725,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -49741,7 +49741,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49786,7 +49786,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49861,7 +49861,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49936,7 +49936,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -49981,7 +49981,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50075,7 +50075,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50091,7 +50091,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50157,7 +50157,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "ValidateNotNullOrEmpty": false @@ -50173,7 +50173,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50218,7 +50218,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50293,7 +50293,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50368,7 +50368,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50413,7 +50413,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -50507,7 +50507,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50523,7 +50523,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50596,7 +50596,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHost, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HealthCheckResult": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[]", "SystemDataLastModifiedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -50673,7 +50673,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -50757,7 +50757,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50767,7 +50767,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50967,7 +50967,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -50983,7 +50983,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51049,7 +51049,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -51175,7 +51175,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51191,7 +51191,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51351,7 +51351,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51367,7 +51367,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51440,7 +51440,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IWorkspace, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "PrivateEndpointConnection": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", "SystemDataCreatedByType": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", @@ -51498,7 +51498,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -51552,7 +51552,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -51592,7 +51592,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51602,7 +51602,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51739,7 +51739,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -51803,7 +51803,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51819,7 +51819,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -51885,7 +51885,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktopVirtualizationIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "AppAttachPackageName": "System.String", "ApplicationGroupName": "System.String", @@ -51963,7 +51963,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -52027,7 +52027,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -52043,7 +52043,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -52155,7 +52155,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "ValidateNotNullOrEmpty": false }, @@ -52219,7 +52219,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -52235,7 +52235,7 @@ "Type": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep" }, "ValidateNotNullOrEmpty": false @@ -52341,7 +52341,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.SendAsyncStep, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Target": "System.Object", "Method": "System.Reflection.MethodInfo" @@ -52524,13 +52524,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageApplications, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RawIcon": "System.Byte[]", "RawPng": "System.Byte[]", @@ -52550,13 +52550,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMsixPackageDependencies, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DependencyName": "System.String", "MinVersion": "System.String", @@ -52587,7 +52587,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType" ] @@ -52595,7 +52595,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CreatedByType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -52673,7 +52673,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure" ] @@ -52681,7 +52681,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.FailHealthCheckOnStagingFailure, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -52746,7 +52746,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped" ] @@ -52754,7 +52754,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PackageTimestamped, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -52819,7 +52819,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState" ] @@ -52827,7 +52827,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ProvisioningState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -52898,7 +52898,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -52963,7 +52963,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType" ] @@ -52971,7 +52971,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53044,7 +53044,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53109,13 +53109,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20.IPrivateEndpointConnection, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ProvisioningState": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState]", "PrivateLinkServiceConnectionStateStatus": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus]", @@ -53127,7 +53127,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState" ] @@ -53135,7 +53135,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointConnectionProvisioningState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53200,7 +53200,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus" ] @@ -53208,7 +53208,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PrivateEndpointServiceConnectionStatus, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53273,13 +53273,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowProperties, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DayOfWeek": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek]", "Hour": "System.Nullable`1[System.Int32]" @@ -53288,7 +53288,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" ] @@ -53296,7 +53296,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53361,7 +53361,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53426,7 +53426,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.LoadBalancerType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53491,7 +53491,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PreferredAppGroupType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53556,7 +53556,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess" ] @@ -53564,7 +53564,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HostpoolPublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53629,7 +53629,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType" ] @@ -53637,7 +53637,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PersonalDesktopAssignmentType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53702,7 +53702,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation" ] @@ -53710,7 +53710,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53775,7 +53775,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType" ] @@ -53783,7 +53783,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostComponentUpdateType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53848,7 +53848,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType" ] @@ -53856,7 +53856,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SsoSecretType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -53921,7 +53921,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IRegistrationInfo, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RegistrationTokenOperation": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RegistrationTokenOperation]", "ExpirationTime": "System.Nullable`1[System.DateTime]", @@ -53931,7 +53931,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Item": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.Json.JsonNode" }, @@ -53963,13 +53963,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingHostPoolReference, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "ScalingPlanEnabled": "System.Nullable`1[System.Boolean]", "HostPoolArmPath": "System.String" @@ -53978,13 +53978,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IScalingSchedule, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "RampDownLoadBalancingAlgorithm": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm]", "OffPeakLoadBalancingAlgorithm": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm]", @@ -54013,7 +54013,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm" ] @@ -54021,7 +54021,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHostLoadBalancingAlgorithm, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54086,7 +54086,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen" ] @@ -54094,7 +54094,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StopHostsWhen, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54159,7 +54159,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType" ] @@ -54167,7 +54167,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ScalingHostPoolType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54232,13 +54232,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek" }, "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation" ] @@ -54246,7 +54246,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionHandlingOperation, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54311,7 +54311,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect" ] @@ -54319,7 +54319,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SetStartVMOnConnect, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54384,7 +54384,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior" ] @@ -54392,7 +54392,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.StartupBehavior, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54457,13 +54457,13 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[]": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[]", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[], Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport[], Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "ElementType": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.ISessionHostHealthCheckReport, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "HealthCheckName": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName]", "HealthCheckResult": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult]", @@ -54475,7 +54475,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName" ] @@ -54483,7 +54483,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckName, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54548,7 +54548,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult" ] @@ -54556,7 +54556,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.HealthCheckResult, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54621,7 +54621,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status" ] @@ -54629,7 +54629,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.Status, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54694,7 +54694,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState" ] @@ -54702,7 +54702,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.UpdateState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54767,7 +54767,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType" ] @@ -54775,7 +54775,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ApplicationType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54840,7 +54840,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState" ] @@ -54848,7 +54848,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SessionState, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54913,7 +54913,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess" ] @@ -54921,7 +54921,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.PublicNetworkAccess, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -54986,7 +54986,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures" ] @@ -54994,7 +54994,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.AppAttachPackageArchitectures, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -55059,7 +55059,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IIdentity, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Type": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType]", "TenantId": "System.String", @@ -55069,7 +55069,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType" ] @@ -55077,7 +55077,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.ResourceIdentityType, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -55142,7 +55142,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IPlan, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Name": "System.String", "Product": "System.String", @@ -55154,12 +55154,12 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceModelWithAllowedPropertySetTags": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceModelWithAllowedPropertySetTags", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceModelWithAllowedPropertySetTags, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.IResourceModelWithAllowedPropertySetTags, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" }, "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.ISku": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.ISku", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.ISku, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.ISku, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "Tier": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier]", "Capacity": "System.Nullable`1[System.Int32]", @@ -55171,7 +55171,7 @@ "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier]": { "Namespace": "System", "Name": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier]", - "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", + "AssemblyQualifiedName": "System.Nullable`1[[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", "GenericTypeArguments": [ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier" ] @@ -55179,7 +55179,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.SkuTier, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Methods": [ { "Name": "CompleteArgument", @@ -55244,7 +55244,7 @@ "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties": { "Namespace": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview", "Name": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties", - "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties, Az.DesktopVirtualization.private, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", + "AssemblyQualifiedName": "Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231004Preview.IMaintenanceWindowPatchProperties, Az.DesktopVirtualization.private, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", "Properties": { "DayOfWeek": "System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.DayOfWeek]", "Hour": "System.Nullable`1[System.Int32]"